proto2_ext2.pb.go 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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_ext2.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 AnotherExtension struct {
  33. state protoimpl.MessageState
  34. sizeCache protoimpl.SizeCache
  35. unknownFields protoimpl.UnknownFields
  36. Whatchamacallit *int32 `protobuf:"varint,1,opt,name=whatchamacallit" json:"whatchamacallit,omitempty"`
  37. }
  38. func (x *AnotherExtension) Reset() {
  39. *x = AnotherExtension{}
  40. if protoimpl.UnsafeEnabled {
  41. mi := &file_reflection_grpc_testing_proto2_ext2_proto_msgTypes[0]
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. ms.StoreMessageInfo(mi)
  44. }
  45. }
  46. func (x *AnotherExtension) String() string {
  47. return protoimpl.X.MessageStringOf(x)
  48. }
  49. func (*AnotherExtension) ProtoMessage() {}
  50. func (x *AnotherExtension) ProtoReflect() protoreflect.Message {
  51. mi := &file_reflection_grpc_testing_proto2_ext2_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 AnotherExtension.ProtoReflect.Descriptor instead.
  62. func (*AnotherExtension) Descriptor() ([]byte, []int) {
  63. return file_reflection_grpc_testing_proto2_ext2_proto_rawDescGZIP(), []int{0}
  64. }
  65. func (x *AnotherExtension) GetWhatchamacallit() int32 {
  66. if x != nil && x.Whatchamacallit != nil {
  67. return *x.Whatchamacallit
  68. }
  69. return 0
  70. }
  71. var file_reflection_grpc_testing_proto2_ext2_proto_extTypes = []protoimpl.ExtensionInfo{
  72. {
  73. ExtendedType: (*ToBeExtended)(nil),
  74. ExtensionType: (*string)(nil),
  75. Field: 23,
  76. Name: "grpc.testing.frob",
  77. Tag: "bytes,23,opt,name=frob",
  78. Filename: "reflection/grpc_testing/proto2_ext2.proto",
  79. },
  80. {
  81. ExtendedType: (*ToBeExtended)(nil),
  82. ExtensionType: (*AnotherExtension)(nil),
  83. Field: 29,
  84. Name: "grpc.testing.nitz",
  85. Tag: "bytes,29,opt,name=nitz",
  86. Filename: "reflection/grpc_testing/proto2_ext2.proto",
  87. },
  88. }
  89. // Extension fields to ToBeExtended.
  90. var (
  91. // optional string frob = 23;
  92. E_Frob = &file_reflection_grpc_testing_proto2_ext2_proto_extTypes[0]
  93. // optional grpc.testing.AnotherExtension nitz = 29;
  94. E_Nitz = &file_reflection_grpc_testing_proto2_ext2_proto_extTypes[1]
  95. )
  96. var File_reflection_grpc_testing_proto2_ext2_proto protoreflect.FileDescriptor
  97. var file_reflection_grpc_testing_proto2_ext2_proto_rawDesc = []byte{
  98. 0x0a, 0x29, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70,
  99. 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
  100. 0x5f, 0x65, 0x78, 0x74, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70,
  101. 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x1a, 0x24, 0x72, 0x65, 0x66, 0x6c, 0x65,
  102. 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69,
  103. 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
  104. 0x3c, 0x0a, 0x10, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  105. 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x0f, 0x77, 0x68, 0x61, 0x74, 0x63, 0x68, 0x61, 0x6d, 0x61,
  106. 0x63, 0x61, 0x6c, 0x6c, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x77, 0x68,
  107. 0x61, 0x74, 0x63, 0x68, 0x61, 0x6d, 0x61, 0x63, 0x61, 0x6c, 0x6c, 0x69, 0x74, 0x3a, 0x2e, 0x0a,
  108. 0x04, 0x66, 0x72, 0x6f, 0x62, 0x12, 0x1a, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
  109. 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x6f, 0x42, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65,
  110. 0x64, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x62, 0x3a, 0x4e, 0x0a,
  111. 0x04, 0x6e, 0x69, 0x74, 0x7a, 0x12, 0x1a, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
  112. 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x6f, 0x42, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65,
  113. 0x64, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74,
  114. 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x45, 0x78,
  115. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x69, 0x74, 0x7a, 0x42, 0x30, 0x5a,
  116. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
  117. 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69,
  118. 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67,
  119. }
  120. var (
  121. file_reflection_grpc_testing_proto2_ext2_proto_rawDescOnce sync.Once
  122. file_reflection_grpc_testing_proto2_ext2_proto_rawDescData = file_reflection_grpc_testing_proto2_ext2_proto_rawDesc
  123. )
  124. func file_reflection_grpc_testing_proto2_ext2_proto_rawDescGZIP() []byte {
  125. file_reflection_grpc_testing_proto2_ext2_proto_rawDescOnce.Do(func() {
  126. file_reflection_grpc_testing_proto2_ext2_proto_rawDescData = protoimpl.X.CompressGZIP(file_reflection_grpc_testing_proto2_ext2_proto_rawDescData)
  127. })
  128. return file_reflection_grpc_testing_proto2_ext2_proto_rawDescData
  129. }
  130. var file_reflection_grpc_testing_proto2_ext2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  131. var file_reflection_grpc_testing_proto2_ext2_proto_goTypes = []interface{}{
  132. (*AnotherExtension)(nil), // 0: grpc.testing.AnotherExtension
  133. (*ToBeExtended)(nil), // 1: grpc.testing.ToBeExtended
  134. }
  135. var file_reflection_grpc_testing_proto2_ext2_proto_depIdxs = []int32{
  136. 1, // 0: grpc.testing.frob:extendee -> grpc.testing.ToBeExtended
  137. 1, // 1: grpc.testing.nitz:extendee -> grpc.testing.ToBeExtended
  138. 0, // 2: grpc.testing.nitz:type_name -> grpc.testing.AnotherExtension
  139. 3, // [3:3] is the sub-list for method output_type
  140. 3, // [3:3] is the sub-list for method input_type
  141. 2, // [2:3] is the sub-list for extension type_name
  142. 0, // [0:2] is the sub-list for extension extendee
  143. 0, // [0:0] is the sub-list for field type_name
  144. }
  145. func init() { file_reflection_grpc_testing_proto2_ext2_proto_init() }
  146. func file_reflection_grpc_testing_proto2_ext2_proto_init() {
  147. if File_reflection_grpc_testing_proto2_ext2_proto != nil {
  148. return
  149. }
  150. file_reflection_grpc_testing_proto2_proto_init()
  151. if !protoimpl.UnsafeEnabled {
  152. file_reflection_grpc_testing_proto2_ext2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  153. switch v := v.(*AnotherExtension); i {
  154. case 0:
  155. return &v.state
  156. case 1:
  157. return &v.sizeCache
  158. case 2:
  159. return &v.unknownFields
  160. default:
  161. return nil
  162. }
  163. }
  164. }
  165. type x struct{}
  166. out := protoimpl.TypeBuilder{
  167. File: protoimpl.DescBuilder{
  168. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  169. RawDescriptor: file_reflection_grpc_testing_proto2_ext2_proto_rawDesc,
  170. NumEnums: 0,
  171. NumMessages: 1,
  172. NumExtensions: 2,
  173. NumServices: 0,
  174. },
  175. GoTypes: file_reflection_grpc_testing_proto2_ext2_proto_goTypes,
  176. DependencyIndexes: file_reflection_grpc_testing_proto2_ext2_proto_depIdxs,
  177. MessageInfos: file_reflection_grpc_testing_proto2_ext2_proto_msgTypes,
  178. ExtensionInfos: file_reflection_grpc_testing_proto2_ext2_proto_extTypes,
  179. }.Build()
  180. File_reflection_grpc_testing_proto2_ext2_proto = out.File
  181. file_reflection_grpc_testing_proto2_ext2_proto_rawDesc = nil
  182. file_reflection_grpc_testing_proto2_ext2_proto_goTypes = nil
  183. file_reflection_grpc_testing_proto2_ext2_proto_depIdxs = nil
  184. }