proto2_ext.pb.go 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. // Copyright 2017 gRPC authors.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // Code generated by protoc-gen-go. DO NOT EDIT.
  15. // versions:
  16. // protoc-gen-go v1.30.0
  17. // protoc v4.22.0
  18. // source: reflection/grpc_testing/proto2_ext.proto
  19. package grpc_testing
  20. import (
  21. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  22. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  23. reflect "reflect"
  24. sync "sync"
  25. )
  26. const (
  27. // Verify that this generated code is sufficiently up-to-date.
  28. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  29. // Verify that runtime/protoimpl is sufficiently up-to-date.
  30. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  31. )
  32. type Extension struct {
  33. state protoimpl.MessageState
  34. sizeCache protoimpl.SizeCache
  35. unknownFields protoimpl.UnknownFields
  36. Whatzit *int32 `protobuf:"varint,1,opt,name=whatzit" json:"whatzit,omitempty"`
  37. }
  38. func (x *Extension) Reset() {
  39. *x = Extension{}
  40. if protoimpl.UnsafeEnabled {
  41. mi := &file_reflection_grpc_testing_proto2_ext_proto_msgTypes[0]
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. ms.StoreMessageInfo(mi)
  44. }
  45. }
  46. func (x *Extension) String() string {
  47. return protoimpl.X.MessageStringOf(x)
  48. }
  49. func (*Extension) ProtoMessage() {}
  50. func (x *Extension) ProtoReflect() protoreflect.Message {
  51. mi := &file_reflection_grpc_testing_proto2_ext_proto_msgTypes[0]
  52. if protoimpl.UnsafeEnabled && x != nil {
  53. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  54. if ms.LoadMessageInfo() == nil {
  55. ms.StoreMessageInfo(mi)
  56. }
  57. return ms
  58. }
  59. return mi.MessageOf(x)
  60. }
  61. // Deprecated: Use Extension.ProtoReflect.Descriptor instead.
  62. func (*Extension) Descriptor() ([]byte, []int) {
  63. return file_reflection_grpc_testing_proto2_ext_proto_rawDescGZIP(), []int{0}
  64. }
  65. func (x *Extension) GetWhatzit() int32 {
  66. if x != nil && x.Whatzit != nil {
  67. return *x.Whatzit
  68. }
  69. return 0
  70. }
  71. var file_reflection_grpc_testing_proto2_ext_proto_extTypes = []protoimpl.ExtensionInfo{
  72. {
  73. ExtendedType: (*ToBeExtended)(nil),
  74. ExtensionType: (*int32)(nil),
  75. Field: 13,
  76. Name: "grpc.testing.foo",
  77. Tag: "varint,13,opt,name=foo",
  78. Filename: "reflection/grpc_testing/proto2_ext.proto",
  79. },
  80. {
  81. ExtendedType: (*ToBeExtended)(nil),
  82. ExtensionType: (*Extension)(nil),
  83. Field: 17,
  84. Name: "grpc.testing.bar",
  85. Tag: "bytes,17,opt,name=bar",
  86. Filename: "reflection/grpc_testing/proto2_ext.proto",
  87. },
  88. {
  89. ExtendedType: (*ToBeExtended)(nil),
  90. ExtensionType: (*SearchRequest)(nil),
  91. Field: 19,
  92. Name: "grpc.testing.baz",
  93. Tag: "bytes,19,opt,name=baz",
  94. Filename: "reflection/grpc_testing/proto2_ext.proto",
  95. },
  96. }
  97. // Extension fields to ToBeExtended.
  98. var (
  99. // optional int32 foo = 13;
  100. E_Foo = &file_reflection_grpc_testing_proto2_ext_proto_extTypes[0]
  101. // optional grpc.testing.Extension bar = 17;
  102. E_Bar = &file_reflection_grpc_testing_proto2_ext_proto_extTypes[1]
  103. // optional grpc.testing.SearchRequest baz = 19;
  104. E_Baz = &file_reflection_grpc_testing_proto2_ext_proto_extTypes[2]
  105. )
  106. var File_reflection_grpc_testing_proto2_ext_proto protoreflect.FileDescriptor
  107. var file_reflection_grpc_testing_proto2_ext_proto_rawDesc = []byte{
  108. 0x0a, 0x28, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70,
  109. 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
  110. 0x5f, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63,
  111. 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x1a, 0x24, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63,
  112. 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e,
  113. 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22,
  114. 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f,
  115. 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f,
  116. 0x74, 0x6f, 0x22, 0x25, 0x0a, 0x09, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  117. 0x18, 0x0a, 0x07, 0x77, 0x68, 0x61, 0x74, 0x7a, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
  118. 0x52, 0x07, 0x77, 0x68, 0x61, 0x74, 0x7a, 0x69, 0x74, 0x3a, 0x2c, 0x0a, 0x03, 0x66, 0x6f, 0x6f,
  119. 0x12, 0x1a, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e,
  120. 0x54, 0x6f, 0x42, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x18, 0x0d, 0x20, 0x01,
  121. 0x28, 0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x3a, 0x45, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x12, 0x1a,
  122. 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x6f,
  123. 0x42, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b,
  124. 0x32, 0x17, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e,
  125. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x62, 0x61, 0x72, 0x3a, 0x49,
  126. 0x0a, 0x03, 0x62, 0x61, 0x7a, 0x12, 0x1a, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
  127. 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x6f, 0x42, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65,
  128. 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74,
  129. 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71,
  130. 0x75, 0x65, 0x73, 0x74, 0x52, 0x03, 0x62, 0x61, 0x7a, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x6f, 0x6f,
  131. 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67,
  132. 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67,
  133. 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67,
  134. }
  135. var (
  136. file_reflection_grpc_testing_proto2_ext_proto_rawDescOnce sync.Once
  137. file_reflection_grpc_testing_proto2_ext_proto_rawDescData = file_reflection_grpc_testing_proto2_ext_proto_rawDesc
  138. )
  139. func file_reflection_grpc_testing_proto2_ext_proto_rawDescGZIP() []byte {
  140. file_reflection_grpc_testing_proto2_ext_proto_rawDescOnce.Do(func() {
  141. file_reflection_grpc_testing_proto2_ext_proto_rawDescData = protoimpl.X.CompressGZIP(file_reflection_grpc_testing_proto2_ext_proto_rawDescData)
  142. })
  143. return file_reflection_grpc_testing_proto2_ext_proto_rawDescData
  144. }
  145. var file_reflection_grpc_testing_proto2_ext_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  146. var file_reflection_grpc_testing_proto2_ext_proto_goTypes = []interface{}{
  147. (*Extension)(nil), // 0: grpc.testing.Extension
  148. (*ToBeExtended)(nil), // 1: grpc.testing.ToBeExtended
  149. (*SearchRequest)(nil), // 2: grpc.testing.SearchRequest
  150. }
  151. var file_reflection_grpc_testing_proto2_ext_proto_depIdxs = []int32{
  152. 1, // 0: grpc.testing.foo:extendee -> grpc.testing.ToBeExtended
  153. 1, // 1: grpc.testing.bar:extendee -> grpc.testing.ToBeExtended
  154. 1, // 2: grpc.testing.baz:extendee -> grpc.testing.ToBeExtended
  155. 0, // 3: grpc.testing.bar:type_name -> grpc.testing.Extension
  156. 2, // 4: grpc.testing.baz:type_name -> grpc.testing.SearchRequest
  157. 5, // [5:5] is the sub-list for method output_type
  158. 5, // [5:5] is the sub-list for method input_type
  159. 3, // [3:5] is the sub-list for extension type_name
  160. 0, // [0:3] is the sub-list for extension extendee
  161. 0, // [0:0] is the sub-list for field type_name
  162. }
  163. func init() { file_reflection_grpc_testing_proto2_ext_proto_init() }
  164. func file_reflection_grpc_testing_proto2_ext_proto_init() {
  165. if File_reflection_grpc_testing_proto2_ext_proto != nil {
  166. return
  167. }
  168. file_reflection_grpc_testing_proto2_proto_init()
  169. file_reflection_grpc_testing_test_proto_init()
  170. if !protoimpl.UnsafeEnabled {
  171. file_reflection_grpc_testing_proto2_ext_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  172. switch v := v.(*Extension); i {
  173. case 0:
  174. return &v.state
  175. case 1:
  176. return &v.sizeCache
  177. case 2:
  178. return &v.unknownFields
  179. default:
  180. return nil
  181. }
  182. }
  183. }
  184. type x struct{}
  185. out := protoimpl.TypeBuilder{
  186. File: protoimpl.DescBuilder{
  187. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  188. RawDescriptor: file_reflection_grpc_testing_proto2_ext_proto_rawDesc,
  189. NumEnums: 0,
  190. NumMessages: 1,
  191. NumExtensions: 3,
  192. NumServices: 0,
  193. },
  194. GoTypes: file_reflection_grpc_testing_proto2_ext_proto_goTypes,
  195. DependencyIndexes: file_reflection_grpc_testing_proto2_ext_proto_depIdxs,
  196. MessageInfos: file_reflection_grpc_testing_proto2_ext_proto_msgTypes,
  197. ExtensionInfos: file_reflection_grpc_testing_proto2_ext_proto_extTypes,
  198. }.Build()
  199. File_reflection_grpc_testing_proto2_ext_proto = out.File
  200. file_reflection_grpc_testing_proto2_ext_proto_rawDesc = nil
  201. file_reflection_grpc_testing_proto2_ext_proto_goTypes = nil
  202. file_reflection_grpc_testing_proto2_ext_proto_depIdxs = nil
  203. }