github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/grpc/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.25.0 18 // protoc v3.14.0 19 // source: reflection/grpc_testing/proto2.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 protoiface "google.golang.org/protobuf/runtime/protoiface" 27 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 28 reflect "reflect" 29 sync "sync" 30 ) 31 32 const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37 ) 38 39 // This is a compile-time assertion that a sufficiently up-to-date version 40 // of the legacy proto package is being used. 41 const _ = proto.ProtoPackageIsVersion4 42 43 type ToBeExtended struct { 44 state protoimpl.MessageState 45 sizeCache protoimpl.SizeCache 46 unknownFields protoimpl.UnknownFields 47 extensionFields protoimpl.ExtensionFields 48 49 Foo *int32 `protobuf:"varint,1,req,name=foo" json:"foo,omitempty"` 50 } 51 52 func (x *ToBeExtended) Reset() { 53 *x = ToBeExtended{} 54 if protoimpl.UnsafeEnabled { 55 mi := &file_reflection_grpc_testing_proto2_proto_msgTypes[0] 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 ms.StoreMessageInfo(mi) 58 } 59 } 60 61 func (x *ToBeExtended) String() string { 62 return protoimpl.X.MessageStringOf(x) 63 } 64 65 func (*ToBeExtended) ProtoMessage() {} 66 67 func (x *ToBeExtended) ProtoReflect() protoreflect.Message { 68 mi := &file_reflection_grpc_testing_proto2_proto_msgTypes[0] 69 if protoimpl.UnsafeEnabled && x != nil { 70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 71 if ms.LoadMessageInfo() == nil { 72 ms.StoreMessageInfo(mi) 73 } 74 return ms 75 } 76 return mi.MessageOf(x) 77 } 78 79 // Deprecated: Use ToBeExtended.ProtoReflect.Descriptor instead. 80 func (*ToBeExtended) Descriptor() ([]byte, []int) { 81 return file_reflection_grpc_testing_proto2_proto_rawDescGZIP(), []int{0} 82 } 83 84 var extRange_ToBeExtended = []protoiface.ExtensionRangeV1{ 85 {Start: 10, End: 30}, 86 } 87 88 // Deprecated: Use ToBeExtended.ProtoReflect.Descriptor.ExtensionRanges instead. 89 func (*ToBeExtended) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { 90 return extRange_ToBeExtended 91 } 92 93 func (x *ToBeExtended) GetFoo() int32 { 94 if x != nil && x.Foo != nil { 95 return *x.Foo 96 } 97 return 0 98 } 99 100 var File_reflection_grpc_testing_proto2_proto protoreflect.FileDescriptor 101 102 var file_reflection_grpc_testing_proto2_proto_rawDesc = []byte{ 103 0x0a, 0x24, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 104 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 105 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 106 0x74, 0x69, 0x6e, 0x67, 0x22, 0x26, 0x0a, 0x0c, 0x54, 0x6f, 0x42, 0x65, 0x45, 0x78, 0x74, 0x65, 107 0x6e, 0x64, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x02, 0x28, 108 0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x2a, 0x04, 0x08, 0x0a, 0x10, 0x1f, 0x42, 0x30, 0x5a, 0x2e, 109 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 110 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 111 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 112 } 113 114 var ( 115 file_reflection_grpc_testing_proto2_proto_rawDescOnce sync.Once 116 file_reflection_grpc_testing_proto2_proto_rawDescData = file_reflection_grpc_testing_proto2_proto_rawDesc 117 ) 118 119 func file_reflection_grpc_testing_proto2_proto_rawDescGZIP() []byte { 120 file_reflection_grpc_testing_proto2_proto_rawDescOnce.Do(func() { 121 file_reflection_grpc_testing_proto2_proto_rawDescData = protoimpl.X.CompressGZIP(file_reflection_grpc_testing_proto2_proto_rawDescData) 122 }) 123 return file_reflection_grpc_testing_proto2_proto_rawDescData 124 } 125 126 var file_reflection_grpc_testing_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 127 var file_reflection_grpc_testing_proto2_proto_goTypes = []interface{}{ 128 (*ToBeExtended)(nil), // 0: grpc.testing.ToBeExtended 129 } 130 var file_reflection_grpc_testing_proto2_proto_depIdxs = []int32{ 131 0, // [0:0] is the sub-list for method output_type 132 0, // [0:0] is the sub-list for method input_type 133 0, // [0:0] is the sub-list for extension type_name 134 0, // [0:0] is the sub-list for extension extendee 135 0, // [0:0] is the sub-list for field type_name 136 } 137 138 func init() { file_reflection_grpc_testing_proto2_proto_init() } 139 func file_reflection_grpc_testing_proto2_proto_init() { 140 if File_reflection_grpc_testing_proto2_proto != nil { 141 return 142 } 143 if !protoimpl.UnsafeEnabled { 144 file_reflection_grpc_testing_proto2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 145 switch v := v.(*ToBeExtended); i { 146 case 0: 147 return &v.state 148 case 1: 149 return &v.sizeCache 150 case 2: 151 return &v.unknownFields 152 case 3: 153 return &v.extensionFields 154 default: 155 return nil 156 } 157 } 158 } 159 type x struct{} 160 out := protoimpl.TypeBuilder{ 161 File: protoimpl.DescBuilder{ 162 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 163 RawDescriptor: file_reflection_grpc_testing_proto2_proto_rawDesc, 164 NumEnums: 0, 165 NumMessages: 1, 166 NumExtensions: 0, 167 NumServices: 0, 168 }, 169 GoTypes: file_reflection_grpc_testing_proto2_proto_goTypes, 170 DependencyIndexes: file_reflection_grpc_testing_proto2_proto_depIdxs, 171 MessageInfos: file_reflection_grpc_testing_proto2_proto_msgTypes, 172 }.Build() 173 File_reflection_grpc_testing_proto2_proto = out.File 174 file_reflection_grpc_testing_proto2_proto_rawDesc = nil 175 file_reflection_grpc_testing_proto2_proto_goTypes = nil 176 file_reflection_grpc_testing_proto2_proto_depIdxs = nil 177 }