b.pb.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. // Copyright 2018 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: import_public/b.proto
  6. package import_public
  7. import (
  8. sub "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. type Local struct {
  15. state protoimpl.MessageState
  16. sizeCache protoimpl.SizeCache
  17. unknownFields protoimpl.UnknownFields
  18. M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
  19. E *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.protoc.import_public.sub.E" json:"e,omitempty"`
  20. }
  21. func (x *Local) Reset() {
  22. *x = Local{}
  23. }
  24. func (x *Local) String() string {
  25. return protoimpl.X.MessageStringOf(x)
  26. }
  27. func (*Local) ProtoMessage() {}
  28. func (x *Local) ProtoReflect() protoreflect.Message {
  29. mi := &file_import_public_b_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 Local.ProtoReflect.Descriptor instead.
  40. func (*Local) Descriptor() ([]byte, []int) {
  41. return file_import_public_b_proto_rawDescGZIP(), []int{0}
  42. }
  43. func (x *Local) GetM() *sub.M {
  44. if x != nil {
  45. return x.M
  46. }
  47. return nil
  48. }
  49. func (x *Local) GetE() sub.E {
  50. if x != nil && x.E != nil {
  51. return *x.E
  52. }
  53. return sub.E_ZERO
  54. }
  55. var File_import_public_b_proto protoreflect.FileDescriptor
  56. var file_import_public_b_proto_rawDesc = []byte{
  57. 0x0a, 0x15, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f,
  58. 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  59. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70,
  60. 0x75, 0x62, 0x6c, 0x69, 0x63, 0x1a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75,
  61. 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x2f, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  62. 0x22, 0x6d, 0x0a, 0x05, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x12, 0x31, 0x0a, 0x01, 0x6d, 0x18, 0x01,
  63. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
  64. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62,
  65. 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75, 0x62, 0x2e, 0x4d, 0x52, 0x01, 0x6d, 0x12, 0x31, 0x0a, 0x01,
  66. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
  67. 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f,
  68. 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75, 0x62, 0x2e, 0x45, 0x52, 0x01, 0x65, 0x42,
  69. 0x45, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
  70. 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d,
  71. 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f,
  72. 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f,
  73. 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
  74. }
  75. var (
  76. file_import_public_b_proto_rawDescOnce sync.Once
  77. file_import_public_b_proto_rawDescData = file_import_public_b_proto_rawDesc
  78. )
  79. func file_import_public_b_proto_rawDescGZIP() []byte {
  80. file_import_public_b_proto_rawDescOnce.Do(func() {
  81. file_import_public_b_proto_rawDescData = protoimpl.X.CompressGZIP(file_import_public_b_proto_rawDescData)
  82. })
  83. return file_import_public_b_proto_rawDescData
  84. }
  85. var file_import_public_b_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  86. var file_import_public_b_proto_goTypes = []interface{}{
  87. (*Local)(nil), // 0: goproto.protoc.import_public.Local
  88. (*sub.M)(nil), // 1: goproto.protoc.import_public.sub.M
  89. (sub.E)(0), // 2: goproto.protoc.import_public.sub.E
  90. }
  91. var file_import_public_b_proto_depIdxs = []int32{
  92. 1, // 0: goproto.protoc.import_public.Local.m:type_name -> goproto.protoc.import_public.sub.M
  93. 2, // 1: goproto.protoc.import_public.Local.e:type_name -> goproto.protoc.import_public.sub.E
  94. 2, // [2:2] is the sub-list for method output_type
  95. 2, // [2:2] is the sub-list for method input_type
  96. 2, // [2:2] is the sub-list for extension type_name
  97. 2, // [2:2] is the sub-list for extension extendee
  98. 0, // [0:2] is the sub-list for field type_name
  99. }
  100. func init() { file_import_public_b_proto_init() }
  101. func file_import_public_b_proto_init() {
  102. if File_import_public_b_proto != nil {
  103. return
  104. }
  105. if !protoimpl.UnsafeEnabled {
  106. file_import_public_b_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  107. switch v := v.(*Local); i {
  108. case 0:
  109. return &v.state
  110. case 1:
  111. return &v.sizeCache
  112. case 2:
  113. return &v.unknownFields
  114. default:
  115. return nil
  116. }
  117. }
  118. }
  119. type x struct{}
  120. out := protoimpl.TypeBuilder{
  121. File: protoimpl.DescBuilder{
  122. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  123. RawDescriptor: file_import_public_b_proto_rawDesc,
  124. NumEnums: 0,
  125. NumMessages: 1,
  126. NumExtensions: 0,
  127. NumServices: 0,
  128. },
  129. GoTypes: file_import_public_b_proto_goTypes,
  130. DependencyIndexes: file_import_public_b_proto_depIdxs,
  131. MessageInfos: file_import_public_b_proto_msgTypes,
  132. }.Build()
  133. File_import_public_b_proto = out.File
  134. file_import_public_b_proto_rawDesc = nil
  135. file_import_public_b_proto_goTypes = nil
  136. file_import_public_b_proto_depIdxs = nil
  137. }