test_weak.pb.go 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. state protoimpl.MessageState
  18. A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
  19. sizeCache protoimpl.SizeCache
  20. unknownFields protoimpl.UnknownFields
  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. mi := &file_test_weak_test_weak_proto_msgTypes[0]
  31. if protoimpl.UnsafeEnabled && x != nil {
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. if ms.LoadMessageInfo() == nil {
  34. ms.StoreMessageInfo(mi)
  35. }
  36. return ms
  37. }
  38. return mi.MessageOf(x)
  39. }
  40. func (x *WeakImportMessage) XXX_Methods() *protoiface.Methods {
  41. return file_test_weak_test_weak_proto_msgTypes[0].Methods()
  42. }
  43. // Deprecated: Use WeakImportMessage.ProtoReflect.Type instead.
  44. func (*WeakImportMessage) Descriptor() ([]byte, []int) {
  45. return file_test_weak_test_weak_proto_rawDescGZIP(), []int{0}
  46. }
  47. func (x *WeakImportMessage) GetA() int32 {
  48. if x != nil && x.A != nil {
  49. return *x.A
  50. }
  51. return 0
  52. }
  53. var File_test_weak_test_weak_proto protoreflect.FileDescriptor
  54. var file_test_weak_test_weak_proto_rawDesc = []byte{
  55. 0x0a, 0x19, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x77, 0x65, 0x61, 0x6b, 0x2f, 0x74, 0x65, 0x73, 0x74,
  56. 0x5f, 0x77, 0x65, 0x61, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70,
  57. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e,
  58. 0x77, 0x65, 0x61, 0x6b, 0x22, 0x21, 0x0a, 0x11, 0x57, 0x65, 0x61, 0x6b, 0x49, 0x6d, 0x70, 0x6f,
  59. 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x61, 0x18, 0x01,
  60. 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x61, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  61. 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f,
  62. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74,
  63. 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x77,
  64. 0x65, 0x61, 0x6b,
  65. }
  66. var (
  67. file_test_weak_test_weak_proto_rawDescOnce sync.Once
  68. file_test_weak_test_weak_proto_rawDescData = file_test_weak_test_weak_proto_rawDesc
  69. )
  70. func file_test_weak_test_weak_proto_rawDescGZIP() []byte {
  71. file_test_weak_test_weak_proto_rawDescOnce.Do(func() {
  72. file_test_weak_test_weak_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_weak_test_weak_proto_rawDescData)
  73. })
  74. return file_test_weak_test_weak_proto_rawDescData
  75. }
  76. var file_test_weak_test_weak_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  77. var file_test_weak_test_weak_proto_goTypes = []interface{}{
  78. (*WeakImportMessage)(nil), // 0: goproto.proto.test.weak.WeakImportMessage
  79. }
  80. var file_test_weak_test_weak_proto_depIdxs = []int32{
  81. 0, // starting offset of method output_type sub-list
  82. 0, // starting offset of method input_type sub-list
  83. 0, // starting offset of extension type_name sub-list
  84. 0, // starting offset of extension extendee sub-list
  85. 0, // starting offset of field type_name sub-list
  86. }
  87. func init() { file_test_weak_test_weak_proto_init() }
  88. func file_test_weak_test_weak_proto_init() {
  89. if File_test_weak_test_weak_proto != nil {
  90. return
  91. }
  92. if !protoimpl.UnsafeEnabled {
  93. file_test_weak_test_weak_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  94. switch v := v.(*WeakImportMessage); i {
  95. case 0:
  96. return &v.state
  97. case 2:
  98. return &v.sizeCache
  99. case 3:
  100. return &v.unknownFields
  101. default:
  102. return nil
  103. }
  104. }
  105. }
  106. out := protoimpl.TypeBuilder{
  107. File: protoimpl.DescBuilder{
  108. RawDescriptor: file_test_weak_test_weak_proto_rawDesc,
  109. NumEnums: 0,
  110. NumMessages: 1,
  111. NumExtensions: 0,
  112. NumServices: 0,
  113. },
  114. GoTypes: file_test_weak_test_weak_proto_goTypes,
  115. DependencyIndexes: file_test_weak_test_weak_proto_depIdxs,
  116. MessageInfos: file_test_weak_test_weak_proto_msgTypes,
  117. }.Build()
  118. File_test_weak_test_weak_proto = out.File
  119. file_test_weak_test_weak_proto_rawDesc = nil
  120. file_test_weak_test_weak_proto_goTypes = nil
  121. file_test_weak_test_weak_proto_depIdxs = nil
  122. }