google.golang.org/grpc@v1.74.2/reflection/grpc_testing/proto2.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.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 ToBeExtended struct { 39 state protoimpl.MessageState `protogen:"open.v1"` 40 Foo *int32 `protobuf:"varint,1,req,name=foo" json:"foo,omitempty"` 41 extensionFields protoimpl.ExtensionFields 42 unknownFields protoimpl.UnknownFields 43 sizeCache protoimpl.SizeCache 44 } 45 46 func (x *ToBeExtended) Reset() { 47 *x = ToBeExtended{} 48 mi := &file_reflection_grpc_testing_proto2_proto_msgTypes[0] 49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 50 ms.StoreMessageInfo(mi) 51 } 52 53 func (x *ToBeExtended) String() string { 54 return protoimpl.X.MessageStringOf(x) 55 } 56 57 func (*ToBeExtended) ProtoMessage() {} 58 59 func (x *ToBeExtended) ProtoReflect() protoreflect.Message { 60 mi := &file_reflection_grpc_testing_proto2_proto_msgTypes[0] 61 if x != nil { 62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 63 if ms.LoadMessageInfo() == nil { 64 ms.StoreMessageInfo(mi) 65 } 66 return ms 67 } 68 return mi.MessageOf(x) 69 } 70 71 // Deprecated: Use ToBeExtended.ProtoReflect.Descriptor instead. 72 func (*ToBeExtended) Descriptor() ([]byte, []int) { 73 return file_reflection_grpc_testing_proto2_proto_rawDescGZIP(), []int{0} 74 } 75 76 func (x *ToBeExtended) GetFoo() int32 { 77 if x != nil && x.Foo != nil { 78 return *x.Foo 79 } 80 return 0 81 } 82 83 var File_reflection_grpc_testing_proto2_proto protoreflect.FileDescriptor 84 85 const file_reflection_grpc_testing_proto2_proto_rawDesc = "" + 86 "\n" + 87 "$reflection/grpc_testing/proto2.proto\x12\fgrpc.testing\"&\n" + 88 "\fToBeExtended\x12\x10\n" + 89 "\x03foo\x18\x01 \x02(\x05R\x03foo*\x04\b\n" + 90 "\x10\x1fB0Z.google.golang.org/grpc/reflection/grpc_testing" 91 92 var ( 93 file_reflection_grpc_testing_proto2_proto_rawDescOnce sync.Once 94 file_reflection_grpc_testing_proto2_proto_rawDescData []byte 95 ) 96 97 func file_reflection_grpc_testing_proto2_proto_rawDescGZIP() []byte { 98 file_reflection_grpc_testing_proto2_proto_rawDescOnce.Do(func() { 99 file_reflection_grpc_testing_proto2_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reflection_grpc_testing_proto2_proto_rawDesc), len(file_reflection_grpc_testing_proto2_proto_rawDesc))) 100 }) 101 return file_reflection_grpc_testing_proto2_proto_rawDescData 102 } 103 104 var file_reflection_grpc_testing_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 105 var file_reflection_grpc_testing_proto2_proto_goTypes = []any{ 106 (*ToBeExtended)(nil), // 0: grpc.testing.ToBeExtended 107 } 108 var file_reflection_grpc_testing_proto2_proto_depIdxs = []int32{ 109 0, // [0:0] is the sub-list for method output_type 110 0, // [0:0] is the sub-list for method input_type 111 0, // [0:0] is the sub-list for extension type_name 112 0, // [0:0] is the sub-list for extension extendee 113 0, // [0:0] is the sub-list for field type_name 114 } 115 116 func init() { file_reflection_grpc_testing_proto2_proto_init() } 117 func file_reflection_grpc_testing_proto2_proto_init() { 118 if File_reflection_grpc_testing_proto2_proto != nil { 119 return 120 } 121 type x struct{} 122 out := protoimpl.TypeBuilder{ 123 File: protoimpl.DescBuilder{ 124 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 125 RawDescriptor: unsafe.Slice(unsafe.StringData(file_reflection_grpc_testing_proto2_proto_rawDesc), len(file_reflection_grpc_testing_proto2_proto_rawDesc)), 126 NumEnums: 0, 127 NumMessages: 1, 128 NumExtensions: 0, 129 NumServices: 0, 130 }, 131 GoTypes: file_reflection_grpc_testing_proto2_proto_goTypes, 132 DependencyIndexes: file_reflection_grpc_testing_proto2_proto_depIdxs, 133 MessageInfos: file_reflection_grpc_testing_proto2_proto_msgTypes, 134 }.Build() 135 File_reflection_grpc_testing_proto2_proto = out.File 136 file_reflection_grpc_testing_proto2_proto_goTypes = nil 137 file_reflection_grpc_testing_proto2_proto_depIdxs = nil 138 }