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