test_weak.pb.go 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. // Copyright 2019 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Code generated by protoc-gen-go. DO NOT EDIT.
  5. // source: test/weak1/test_weak.proto
  6. package weak1
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. type WeakImportMessage1 struct {
  14. state protoimpl.MessageState
  15. sizeCache protoimpl.SizeCache
  16. unknownFields protoimpl.UnknownFields
  17. A *int32 `protobuf:"varint,1,req,name=a" json:"a,omitempty"`
  18. }
  19. func (x *WeakImportMessage1) Reset() {
  20. *x = WeakImportMessage1{}
  21. }
  22. func (x *WeakImportMessage1) String() string {
  23. return protoimpl.X.MessageStringOf(x)
  24. }
  25. func (*WeakImportMessage1) ProtoMessage() {}
  26. func (x *WeakImportMessage1) ProtoReflect() protoreflect.Message {
  27. mi := &file_test_weak1_test_weak_proto_msgTypes[0]
  28. if protoimpl.UnsafeEnabled && x != nil {
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. if ms.LoadMessageInfo() == nil {
  31. ms.StoreMessageInfo(mi)
  32. }
  33. return ms
  34. }
  35. return mi.MessageOf(x)
  36. }
  37. // Deprecated: Use WeakImportMessage1.ProtoReflect.Descriptor instead.
  38. func (*WeakImportMessage1) Descriptor() ([]byte, []int) {
  39. return file_test_weak1_test_weak_proto_rawDescGZIP(), []int{0}
  40. }
  41. func (x *WeakImportMessage1) GetA() int32 {
  42. if x != nil && x.A != nil {
  43. return *x.A
  44. }
  45. return 0
  46. }
  47. var File_test_weak1_test_weak_proto protoreflect.FileDescriptor
  48. var file_test_weak1_test_weak_proto_rawDesc = []byte{
  49. 0x0a, 0x1a, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x77, 0x65, 0x61, 0x6b, 0x31, 0x2f, 0x74, 0x65, 0x73,
  50. 0x74, 0x5f, 0x77, 0x65, 0x61, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f,
  51. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74,
  52. 0x2e, 0x77, 0x65, 0x61, 0x6b, 0x22, 0x22, 0x0a, 0x12, 0x57, 0x65, 0x61, 0x6b, 0x49, 0x6d, 0x70,
  53. 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x0c, 0x0a, 0x01, 0x61,
  54. 0x18, 0x01, 0x20, 0x02, 0x28, 0x05, 0x52, 0x01, 0x61, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x6f, 0x6f,
  55. 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70,
  56. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
  57. 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74,
  58. 0x2f, 0x77, 0x65, 0x61, 0x6b, 0x31,
  59. }
  60. var (
  61. file_test_weak1_test_weak_proto_rawDescOnce sync.Once
  62. file_test_weak1_test_weak_proto_rawDescData = file_test_weak1_test_weak_proto_rawDesc
  63. )
  64. func file_test_weak1_test_weak_proto_rawDescGZIP() []byte {
  65. file_test_weak1_test_weak_proto_rawDescOnce.Do(func() {
  66. file_test_weak1_test_weak_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_weak1_test_weak_proto_rawDescData)
  67. })
  68. return file_test_weak1_test_weak_proto_rawDescData
  69. }
  70. var file_test_weak1_test_weak_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  71. var file_test_weak1_test_weak_proto_goTypes = []interface{}{
  72. (*WeakImportMessage1)(nil), // 0: goproto.proto.test.weak.WeakImportMessage1
  73. }
  74. var file_test_weak1_test_weak_proto_depIdxs = []int32{
  75. 0, // [0:0] is the sub-list for method output_type
  76. 0, // [0:0] is the sub-list for method input_type
  77. 0, // [0:0] is the sub-list for extension type_name
  78. 0, // [0:0] is the sub-list for extension extendee
  79. 0, // [0:0] is the sub-list for field type_name
  80. }
  81. func init() { file_test_weak1_test_weak_proto_init() }
  82. func file_test_weak1_test_weak_proto_init() {
  83. if File_test_weak1_test_weak_proto != nil {
  84. return
  85. }
  86. if !protoimpl.UnsafeEnabled {
  87. file_test_weak1_test_weak_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  88. switch v := v.(*WeakImportMessage1); i {
  89. case 0:
  90. return &v.state
  91. case 1:
  92. return &v.sizeCache
  93. case 2:
  94. return &v.unknownFields
  95. default:
  96. return nil
  97. }
  98. }
  99. }
  100. type x struct{}
  101. out := protoimpl.TypeBuilder{
  102. File: protoimpl.DescBuilder{
  103. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  104. RawDescriptor: file_test_weak1_test_weak_proto_rawDesc,
  105. NumEnums: 0,
  106. NumMessages: 1,
  107. NumExtensions: 0,
  108. NumServices: 0,
  109. },
  110. GoTypes: file_test_weak1_test_weak_proto_goTypes,
  111. DependencyIndexes: file_test_weak1_test_weak_proto_depIdxs,
  112. MessageInfos: file_test_weak1_test_weak_proto_msgTypes,
  113. }.Build()
  114. File_test_weak1_test_weak_proto = out.File
  115. file_test_weak1_test_weak_proto_rawDesc = nil
  116. file_test_weak1_test_weak_proto_goTypes = nil
  117. file_test_weak1_test_weak_proto_depIdxs = nil
  118. }