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