google.golang.org/grpc@v1.62.1/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.32.0 18 // protoc v4.25.2 19 // source: grpc/testing/empty.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 ) 29 30 const ( 31 // Verify that this generated code is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 33 // Verify that runtime/protoimpl is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 35 ) 36 37 // An empty message that you can re-use to avoid defining duplicated empty 38 // messages in your project. A typical example is to use it as argument or the 39 // return value of a service API. For instance: 40 // 41 // service Foo { 42 // rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { }; 43 // }; 44 type Empty struct { 45 state protoimpl.MessageState 46 sizeCache protoimpl.SizeCache 47 unknownFields protoimpl.UnknownFields 48 } 49 50 func (x *Empty) Reset() { 51 *x = Empty{} 52 if protoimpl.UnsafeEnabled { 53 mi := &file_grpc_testing_empty_proto_msgTypes[0] 54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 55 ms.StoreMessageInfo(mi) 56 } 57 } 58 59 func (x *Empty) String() string { 60 return protoimpl.X.MessageStringOf(x) 61 } 62 63 func (*Empty) ProtoMessage() {} 64 65 func (x *Empty) ProtoReflect() protoreflect.Message { 66 mi := &file_grpc_testing_empty_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 Empty.ProtoReflect.Descriptor instead. 78 func (*Empty) Descriptor() ([]byte, []int) { 79 return file_grpc_testing_empty_proto_rawDescGZIP(), []int{0} 80 } 81 82 var File_grpc_testing_empty_proto protoreflect.FileDescriptor 83 84 var file_grpc_testing_empty_proto_rawDesc = []byte{ 85 0x0a, 0x18, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x65, 86 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63, 87 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 88 0x79, 0x42, 0x2a, 0x0a, 0x1b, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 89 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 90 0x42, 0x0b, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 91 0x72, 0x6f, 0x74, 0x6f, 0x33, 92 } 93 94 var ( 95 file_grpc_testing_empty_proto_rawDescOnce sync.Once 96 file_grpc_testing_empty_proto_rawDescData = file_grpc_testing_empty_proto_rawDesc 97 ) 98 99 func file_grpc_testing_empty_proto_rawDescGZIP() []byte { 100 file_grpc_testing_empty_proto_rawDescOnce.Do(func() { 101 file_grpc_testing_empty_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_testing_empty_proto_rawDescData) 102 }) 103 return file_grpc_testing_empty_proto_rawDescData 104 } 105 106 var file_grpc_testing_empty_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 107 var file_grpc_testing_empty_proto_goTypes = []interface{}{ 108 (*Empty)(nil), // 0: grpc.testing.Empty 109 } 110 var file_grpc_testing_empty_proto_depIdxs = []int32{ 111 0, // [0:0] is the sub-list for method output_type 112 0, // [0:0] is the sub-list for method input_type 113 0, // [0:0] is the sub-list for extension type_name 114 0, // [0:0] is the sub-list for extension extendee 115 0, // [0:0] is the sub-list for field type_name 116 } 117 118 func init() { file_grpc_testing_empty_proto_init() } 119 func file_grpc_testing_empty_proto_init() { 120 if File_grpc_testing_empty_proto != nil { 121 return 122 } 123 if !protoimpl.UnsafeEnabled { 124 file_grpc_testing_empty_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 125 switch v := v.(*Empty); i { 126 case 0: 127 return &v.state 128 case 1: 129 return &v.sizeCache 130 case 2: 131 return &v.unknownFields 132 default: 133 return nil 134 } 135 } 136 } 137 type x struct{} 138 out := protoimpl.TypeBuilder{ 139 File: protoimpl.DescBuilder{ 140 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 141 RawDescriptor: file_grpc_testing_empty_proto_rawDesc, 142 NumEnums: 0, 143 NumMessages: 1, 144 NumExtensions: 0, 145 NumServices: 0, 146 }, 147 GoTypes: file_grpc_testing_empty_proto_goTypes, 148 DependencyIndexes: file_grpc_testing_empty_proto_depIdxs, 149 MessageInfos: file_grpc_testing_empty_proto_msgTypes, 150 }.Build() 151 File_grpc_testing_empty_proto = out.File 152 file_grpc_testing_empty_proto_rawDesc = nil 153 file_grpc_testing_empty_proto_goTypes = nil 154 file_grpc_testing_empty_proto_depIdxs = nil 155 }