test_weak.pb.go 4.5 KB

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