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