test_weak.pb.go 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. protoiface "google.golang.org/protobuf/runtime/protoiface"
  7. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  8. sync "sync"
  9. )
  10. const (
  11. // Verify that runtime/protoimpl is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
  13. // Verify that this generated code is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
  15. )
  16. type WeakImportMessage struct {
  17. A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
  18. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  19. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  20. XXX_sizecache protoimpl.SizeCache `json:"-"`
  21. }
  22. func (x *WeakImportMessage) Reset() {
  23. *x = WeakImportMessage{}
  24. }
  25. func (x *WeakImportMessage) String() string {
  26. return protoimpl.X.MessageStringOf(x)
  27. }
  28. func (*WeakImportMessage) ProtoMessage() {}
  29. func (x *WeakImportMessage) ProtoReflect() protoreflect.Message {
  30. return file_test_weak_test_weak_proto_msgTypes[0].MessageOf(x)
  31. }
  32. func (m *WeakImportMessage) XXX_Methods() *protoiface.Methods {
  33. return file_test_weak_test_weak_proto_msgTypes[0].Methods()
  34. }
  35. // Deprecated: Use WeakImportMessage.ProtoReflect.Type instead.
  36. func (*WeakImportMessage) Descriptor() ([]byte, []int) {
  37. return file_test_weak_test_weak_proto_rawDescGZIP(), []int{0}
  38. }
  39. func (x *WeakImportMessage) GetA() int32 {
  40. if x != nil && x.A != nil {
  41. return *x.A
  42. }
  43. return 0
  44. }
  45. var File_test_weak_test_weak_proto protoreflect.FileDescriptor
  46. var file_test_weak_test_weak_proto_rawDesc = []byte{
  47. 0x0a, 0x19, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x77, 0x65, 0x61, 0x6b, 0x2f, 0x74, 0x65, 0x73, 0x74,
  48. 0x5f, 0x77, 0x65, 0x61, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70,
  49. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e,
  50. 0x77, 0x65, 0x61, 0x6b, 0x22, 0x21, 0x0a, 0x11, 0x57, 0x65, 0x61, 0x6b, 0x49, 0x6d, 0x70, 0x6f,
  51. 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x61, 0x18, 0x01,
  52. 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x61, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  53. 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f,
  54. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74,
  55. 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x77,
  56. 0x65, 0x61, 0x6b,
  57. }
  58. var (
  59. file_test_weak_test_weak_proto_rawDescOnce sync.Once
  60. file_test_weak_test_weak_proto_rawDescData = file_test_weak_test_weak_proto_rawDesc
  61. )
  62. func file_test_weak_test_weak_proto_rawDescGZIP() []byte {
  63. file_test_weak_test_weak_proto_rawDescOnce.Do(func() {
  64. file_test_weak_test_weak_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_weak_test_weak_proto_rawDescData)
  65. })
  66. return file_test_weak_test_weak_proto_rawDescData
  67. }
  68. var file_test_weak_test_weak_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  69. var file_test_weak_test_weak_proto_goTypes = []interface{}{
  70. (*WeakImportMessage)(nil), // 0: goproto.proto.test.weak.WeakImportMessage
  71. }
  72. var file_test_weak_test_weak_proto_depIdxs = []int32{
  73. 0, // starting offset of method output_type sub-list
  74. 0, // starting offset of method input_type sub-list
  75. 0, // starting offset of extension type_name sub-list
  76. 0, // starting offset of extension extendee sub-list
  77. 0, // starting offset of field type_name sub-list
  78. }
  79. func init() { file_test_weak_test_weak_proto_init() }
  80. func file_test_weak_test_weak_proto_init() {
  81. if File_test_weak_test_weak_proto != nil {
  82. return
  83. }
  84. out := protoimpl.TypeBuilder{
  85. File: protoimpl.DescBuilder{
  86. RawDescriptor: file_test_weak_test_weak_proto_rawDesc,
  87. NumEnums: 0,
  88. NumMessages: 1,
  89. NumExtensions: 0,
  90. NumServices: 0,
  91. },
  92. GoTypes: file_test_weak_test_weak_proto_goTypes,
  93. DependencyIndexes: file_test_weak_test_weak_proto_depIdxs,
  94. MessageInfos: file_test_weak_test_weak_proto_msgTypes,
  95. }.Build()
  96. File_test_weak_test_weak_proto = out.File
  97. file_test_weak_test_weak_proto_rawDesc = nil
  98. file_test_weak_test_weak_proto_goTypes = nil
  99. file_test_weak_test_weak_proto_depIdxs = nil
  100. }