github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/grpc/interop/grpc_testing/empty.pb.go (about) 1 // Copyright 2015 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: grpc/testing/empty.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 // An empty message that you can re-use to avoid defining duplicated empty 43 // messages in your project. A typical example is to use it as argument or the 44 // return value of a service API. For instance: 45 // 46 // service Foo { 47 // rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { }; 48 // }; 49 // 50 type Empty struct { 51 state protoimpl.MessageState 52 sizeCache protoimpl.SizeCache 53 unknownFields protoimpl.UnknownFields 54 } 55 56 func (x *Empty) Reset() { 57 *x = Empty{} 58 if protoimpl.UnsafeEnabled { 59 mi := &file_grpc_testing_empty_proto_msgTypes[0] 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 ms.StoreMessageInfo(mi) 62 } 63 } 64 65 func (x *Empty) String() string { 66 return protoimpl.X.MessageStringOf(x) 67 } 68 69 func (*Empty) ProtoMessage() {} 70 71 func (x *Empty) ProtoReflect() protoreflect.Message { 72 mi := &file_grpc_testing_empty_proto_msgTypes[0] 73 if protoimpl.UnsafeEnabled && x != nil { 74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 75 if ms.LoadMessageInfo() == nil { 76 ms.StoreMessageInfo(mi) 77 } 78 return ms 79 } 80 return mi.MessageOf(x) 81 } 82 83 // Deprecated: Use Empty.ProtoReflect.Descriptor instead. 84 func (*Empty) Descriptor() ([]byte, []int) { 85 return file_grpc_testing_empty_proto_rawDescGZIP(), []int{0} 86 } 87 88 var File_grpc_testing_empty_proto protoreflect.FileDescriptor 89 90 var file_grpc_testing_empty_proto_rawDesc = []byte{ 91 0x0a, 0x18, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x65, 92 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63, 93 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 94 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 95 } 96 97 var ( 98 file_grpc_testing_empty_proto_rawDescOnce sync.Once 99 file_grpc_testing_empty_proto_rawDescData = file_grpc_testing_empty_proto_rawDesc 100 ) 101 102 func file_grpc_testing_empty_proto_rawDescGZIP() []byte { 103 file_grpc_testing_empty_proto_rawDescOnce.Do(func() { 104 file_grpc_testing_empty_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_testing_empty_proto_rawDescData) 105 }) 106 return file_grpc_testing_empty_proto_rawDescData 107 } 108 109 var file_grpc_testing_empty_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 110 var file_grpc_testing_empty_proto_goTypes = []interface{}{ 111 (*Empty)(nil), // 0: grpc.testing.Empty 112 } 113 var file_grpc_testing_empty_proto_depIdxs = []int32{ 114 0, // [0:0] is the sub-list for method output_type 115 0, // [0:0] is the sub-list for method input_type 116 0, // [0:0] is the sub-list for extension type_name 117 0, // [0:0] is the sub-list for extension extendee 118 0, // [0:0] is the sub-list for field type_name 119 } 120 121 func init() { file_grpc_testing_empty_proto_init() } 122 func file_grpc_testing_empty_proto_init() { 123 if File_grpc_testing_empty_proto != nil { 124 return 125 } 126 if !protoimpl.UnsafeEnabled { 127 file_grpc_testing_empty_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 128 switch v := v.(*Empty); i { 129 case 0: 130 return &v.state 131 case 1: 132 return &v.sizeCache 133 case 2: 134 return &v.unknownFields 135 default: 136 return nil 137 } 138 } 139 } 140 type x struct{} 141 out := protoimpl.TypeBuilder{ 142 File: protoimpl.DescBuilder{ 143 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 144 RawDescriptor: file_grpc_testing_empty_proto_rawDesc, 145 NumEnums: 0, 146 NumMessages: 1, 147 NumExtensions: 0, 148 NumServices: 0, 149 }, 150 GoTypes: file_grpc_testing_empty_proto_goTypes, 151 DependencyIndexes: file_grpc_testing_empty_proto_depIdxs, 152 MessageInfos: file_grpc_testing_empty_proto_msgTypes, 153 }.Build() 154 File_grpc_testing_empty_proto = out.File 155 file_grpc_testing_empty_proto_rawDesc = nil 156 file_grpc_testing_empty_proto_goTypes = nil 157 file_grpc_testing_empty_proto_depIdxs = nil 158 }