google.golang.org/grpc@v1.72.2/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.36.5 18 // protoc v5.27.1 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 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 // An empty message that you can re-use to avoid defining duplicated empty 39 // messages in your project. A typical example is to use it as argument or the 40 // return value of a service API. For instance: 41 // 42 // service Foo { 43 // rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { }; 44 // }; 45 type Empty struct { 46 state protoimpl.MessageState `protogen:"open.v1"` 47 unknownFields protoimpl.UnknownFields 48 sizeCache protoimpl.SizeCache 49 } 50 51 func (x *Empty) Reset() { 52 *x = Empty{} 53 mi := &file_grpc_testing_empty_proto_msgTypes[0] 54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 55 ms.StoreMessageInfo(mi) 56 } 57 58 func (x *Empty) String() string { 59 return protoimpl.X.MessageStringOf(x) 60 } 61 62 func (*Empty) ProtoMessage() {} 63 64 func (x *Empty) ProtoReflect() protoreflect.Message { 65 mi := &file_grpc_testing_empty_proto_msgTypes[0] 66 if x != nil { 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 if ms.LoadMessageInfo() == nil { 69 ms.StoreMessageInfo(mi) 70 } 71 return ms 72 } 73 return mi.MessageOf(x) 74 } 75 76 // Deprecated: Use Empty.ProtoReflect.Descriptor instead. 77 func (*Empty) Descriptor() ([]byte, []int) { 78 return file_grpc_testing_empty_proto_rawDescGZIP(), []int{0} 79 } 80 81 var File_grpc_testing_empty_proto protoreflect.FileDescriptor 82 83 var file_grpc_testing_empty_proto_rawDesc = string([]byte{ 84 0x0a, 0x18, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x65, 85 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63, 86 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 87 0x79, 0x42, 0x2a, 0x0a, 0x1b, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 88 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 89 0x42, 0x0b, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 90 0x72, 0x6f, 0x74, 0x6f, 0x33, 91 }) 92 93 var ( 94 file_grpc_testing_empty_proto_rawDescOnce sync.Once 95 file_grpc_testing_empty_proto_rawDescData []byte 96 ) 97 98 func file_grpc_testing_empty_proto_rawDescGZIP() []byte { 99 file_grpc_testing_empty_proto_rawDescOnce.Do(func() { 100 file_grpc_testing_empty_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_grpc_testing_empty_proto_rawDesc), len(file_grpc_testing_empty_proto_rawDesc))) 101 }) 102 return file_grpc_testing_empty_proto_rawDescData 103 } 104 105 var file_grpc_testing_empty_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 106 var file_grpc_testing_empty_proto_goTypes = []any{ 107 (*Empty)(nil), // 0: grpc.testing.Empty 108 } 109 var file_grpc_testing_empty_proto_depIdxs = []int32{ 110 0, // [0:0] is the sub-list for method output_type 111 0, // [0:0] is the sub-list for method input_type 112 0, // [0:0] is the sub-list for extension type_name 113 0, // [0:0] is the sub-list for extension extendee 114 0, // [0:0] is the sub-list for field type_name 115 } 116 117 func init() { file_grpc_testing_empty_proto_init() } 118 func file_grpc_testing_empty_proto_init() { 119 if File_grpc_testing_empty_proto != nil { 120 return 121 } 122 type x struct{} 123 out := protoimpl.TypeBuilder{ 124 File: protoimpl.DescBuilder{ 125 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 126 RawDescriptor: unsafe.Slice(unsafe.StringData(file_grpc_testing_empty_proto_rawDesc), len(file_grpc_testing_empty_proto_rawDesc)), 127 NumEnums: 0, 128 NumMessages: 1, 129 NumExtensions: 0, 130 NumServices: 0, 131 }, 132 GoTypes: file_grpc_testing_empty_proto_goTypes, 133 DependencyIndexes: file_grpc_testing_empty_proto_depIdxs, 134 MessageInfos: file_grpc_testing_empty_proto_msgTypes, 135 }.Build() 136 File_grpc_testing_empty_proto = out.File 137 file_grpc_testing_empty_proto_goTypes = nil 138 file_grpc_testing_empty_proto_depIdxs = nil 139 }