google.golang.org/grpc@v1.74.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.6 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 const file_reflection_grpc_testing_proto2_ext_proto_rawDesc = "" + 122 "\n" + 123 "(reflection/grpc_testing/proto2_ext.proto\x12\fgrpc.testing\x1a$reflection/grpc_testing/proto2.proto\x1a\"reflection/grpc_testing/test.proto\"%\n" + 124 "\tExtension\x12\x18\n" + 125 "\awhatzit\x18\x01 \x01(\x05R\awhatzit:,\n" + 126 "\x03foo\x12\x1a.grpc.testing.ToBeExtended\x18\r \x01(\x05R\x03foo:E\n" + 127 "\x03bar\x12\x1a.grpc.testing.ToBeExtended\x18\x11 \x01(\v2\x17.grpc.testing.ExtensionR\x03bar:I\n" + 128 "\x03baz\x12\x1a.grpc.testing.ToBeExtended\x18\x13 \x01(\v2\x1b.grpc.testing.SearchRequestR\x03bazB0Z.google.golang.org/grpc/reflection/grpc_testing" 129 130 var ( 131 file_reflection_grpc_testing_proto2_ext_proto_rawDescOnce sync.Once 132 file_reflection_grpc_testing_proto2_ext_proto_rawDescData []byte 133 ) 134 135 func file_reflection_grpc_testing_proto2_ext_proto_rawDescGZIP() []byte { 136 file_reflection_grpc_testing_proto2_ext_proto_rawDescOnce.Do(func() { 137 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))) 138 }) 139 return file_reflection_grpc_testing_proto2_ext_proto_rawDescData 140 } 141 142 var file_reflection_grpc_testing_proto2_ext_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 143 var file_reflection_grpc_testing_proto2_ext_proto_goTypes = []any{ 144 (*Extension)(nil), // 0: grpc.testing.Extension 145 (*ToBeExtended)(nil), // 1: grpc.testing.ToBeExtended 146 (*SearchRequest)(nil), // 2: grpc.testing.SearchRequest 147 } 148 var file_reflection_grpc_testing_proto2_ext_proto_depIdxs = []int32{ 149 1, // 0: grpc.testing.foo:extendee -> grpc.testing.ToBeExtended 150 1, // 1: grpc.testing.bar:extendee -> grpc.testing.ToBeExtended 151 1, // 2: grpc.testing.baz:extendee -> grpc.testing.ToBeExtended 152 0, // 3: grpc.testing.bar:type_name -> grpc.testing.Extension 153 2, // 4: grpc.testing.baz:type_name -> grpc.testing.SearchRequest 154 5, // [5:5] is the sub-list for method output_type 155 5, // [5:5] is the sub-list for method input_type 156 3, // [3:5] is the sub-list for extension type_name 157 0, // [0:3] is the sub-list for extension extendee 158 0, // [0:0] is the sub-list for field type_name 159 } 160 161 func init() { file_reflection_grpc_testing_proto2_ext_proto_init() } 162 func file_reflection_grpc_testing_proto2_ext_proto_init() { 163 if File_reflection_grpc_testing_proto2_ext_proto != nil { 164 return 165 } 166 file_reflection_grpc_testing_proto2_proto_init() 167 file_reflection_grpc_testing_test_proto_init() 168 type x struct{} 169 out := protoimpl.TypeBuilder{ 170 File: protoimpl.DescBuilder{ 171 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 172 RawDescriptor: unsafe.Slice(unsafe.StringData(file_reflection_grpc_testing_proto2_ext_proto_rawDesc), len(file_reflection_grpc_testing_proto2_ext_proto_rawDesc)), 173 NumEnums: 0, 174 NumMessages: 1, 175 NumExtensions: 3, 176 NumServices: 0, 177 }, 178 GoTypes: file_reflection_grpc_testing_proto2_ext_proto_goTypes, 179 DependencyIndexes: file_reflection_grpc_testing_proto2_ext_proto_depIdxs, 180 MessageInfos: file_reflection_grpc_testing_proto2_ext_proto_msgTypes, 181 ExtensionInfos: file_reflection_grpc_testing_proto2_ext_proto_extTypes, 182 }.Build() 183 File_reflection_grpc_testing_proto2_ext_proto = out.File 184 file_reflection_grpc_testing_proto2_ext_proto_goTypes = nil 185 file_reflection_grpc_testing_proto2_ext_proto_depIdxs = nil 186 }