test_weak.pb.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: test/weak/test_weak.proto
  3. package weak
  4. import (
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoregistry "google.golang.org/protobuf/reflect/protoregistry"
  7. protoiface "google.golang.org/protobuf/runtime/protoiface"
  8. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  9. sync "sync"
  10. )
  11. const (
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
  16. )
  17. type WeakImportMessage struct {
  18. A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
  19. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  20. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  21. XXX_sizecache protoimpl.SizeCache `json:"-"`
  22. }
  23. func (x *WeakImportMessage) Reset() {
  24. *x = WeakImportMessage{}
  25. }
  26. func (x *WeakImportMessage) String() string {
  27. return protoimpl.X.MessageStringOf(x)
  28. }
  29. func (*WeakImportMessage) ProtoMessage() {}
  30. func (x *WeakImportMessage) ProtoReflect() protoreflect.Message {
  31. return file_test_weak_test_weak_proto_msgTypes[0].MessageOf(x)
  32. }
  33. func (m *WeakImportMessage) XXX_Methods() *protoiface.Methods {
  34. return file_test_weak_test_weak_proto_msgTypes[0].Methods()
  35. }
  36. // Deprecated: Use WeakImportMessage.ProtoReflect.Type instead.
  37. func (*WeakImportMessage) Descriptor() ([]byte, []int) {
  38. return file_test_weak_test_weak_proto_rawDescGZIP(), []int{0}
  39. }
  40. func (x *WeakImportMessage) GetA() int32 {
  41. if x != nil && x.A != nil {
  42. return *x.A
  43. }
  44. return 0
  45. }
  46. var File_test_weak_test_weak_proto protoreflect.FileDescriptor
  47. var file_test_weak_test_weak_proto_rawDesc = []byte{
  48. 0x0a, 0x19, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x77, 0x65, 0x61, 0x6b, 0x2f, 0x74, 0x65, 0x73, 0x74,
  49. 0x5f, 0x77, 0x65, 0x61, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70,
  50. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e,
  51. 0x77, 0x65, 0x61, 0x6b, 0x22, 0x21, 0x0a, 0x11, 0x57, 0x65, 0x61, 0x6b, 0x49, 0x6d, 0x70, 0x6f,
  52. 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x61, 0x18, 0x01,
  53. 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x61, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  54. 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f,
  55. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74,
  56. 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x77,
  57. 0x65, 0x61, 0x6b,
  58. }
  59. var (
  60. file_test_weak_test_weak_proto_rawDescOnce sync.Once
  61. file_test_weak_test_weak_proto_rawDescData = file_test_weak_test_weak_proto_rawDesc
  62. )
  63. func file_test_weak_test_weak_proto_rawDescGZIP() []byte {
  64. file_test_weak_test_weak_proto_rawDescOnce.Do(func() {
  65. file_test_weak_test_weak_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_weak_test_weak_proto_rawDescData)
  66. })
  67. return file_test_weak_test_weak_proto_rawDescData
  68. }
  69. var file_test_weak_test_weak_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  70. var file_test_weak_test_weak_proto_goTypes = []interface{}{
  71. (*WeakImportMessage)(nil), // 0: goproto.proto.test.weak.WeakImportMessage
  72. }
  73. var file_test_weak_test_weak_proto_depIdxs = []int32{}
  74. func init() { file_test_weak_test_weak_proto_init() }
  75. func file_test_weak_test_weak_proto_init() {
  76. if File_test_weak_test_weak_proto != nil {
  77. return
  78. }
  79. File_test_weak_test_weak_proto = protoimpl.FileBuilder{
  80. RawDescriptor: file_test_weak_test_weak_proto_rawDesc,
  81. GoTypes: file_test_weak_test_weak_proto_goTypes,
  82. DependencyIndexes: file_test_weak_test_weak_proto_depIdxs,
  83. MessageOutputTypes: file_test_weak_test_weak_proto_msgTypes,
  84. FilesRegistry: protoregistry.GlobalFiles,
  85. TypesRegistry: protoregistry.GlobalTypes,
  86. }.Init()
  87. file_test_weak_test_weak_proto_rawDesc = nil
  88. file_test_weak_test_weak_proto_goTypes = nil
  89. file_test_weak_test_weak_proto_depIdxs = nil
  90. }