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