google.golang.org/grpc@v1.74.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.6
    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  const file_grpc_testing_empty_proto_rawDesc = "" +
    84  	"\n" +
    85  	"\x18grpc/testing/empty.proto\x12\fgrpc.testing\"\a\n" +
    86  	"\x05EmptyB*\n" +
    87  	"\x1bio.grpc.testing.integrationB\vEmptyProtosb\x06proto3"
    88  
    89  var (
    90  	file_grpc_testing_empty_proto_rawDescOnce sync.Once
    91  	file_grpc_testing_empty_proto_rawDescData []byte
    92  )
    93  
    94  func file_grpc_testing_empty_proto_rawDescGZIP() []byte {
    95  	file_grpc_testing_empty_proto_rawDescOnce.Do(func() {
    96  		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)))
    97  	})
    98  	return file_grpc_testing_empty_proto_rawDescData
    99  }
   100  
   101  var file_grpc_testing_empty_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   102  var file_grpc_testing_empty_proto_goTypes = []any{
   103  	(*Empty)(nil), // 0: grpc.testing.Empty
   104  }
   105  var file_grpc_testing_empty_proto_depIdxs = []int32{
   106  	0, // [0:0] is the sub-list for method output_type
   107  	0, // [0:0] is the sub-list for method input_type
   108  	0, // [0:0] is the sub-list for extension type_name
   109  	0, // [0:0] is the sub-list for extension extendee
   110  	0, // [0:0] is the sub-list for field type_name
   111  }
   112  
   113  func init() { file_grpc_testing_empty_proto_init() }
   114  func file_grpc_testing_empty_proto_init() {
   115  	if File_grpc_testing_empty_proto != nil {
   116  		return
   117  	}
   118  	type x struct{}
   119  	out := protoimpl.TypeBuilder{
   120  		File: protoimpl.DescBuilder{
   121  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   122  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_grpc_testing_empty_proto_rawDesc), len(file_grpc_testing_empty_proto_rawDesc)),
   123  			NumEnums:      0,
   124  			NumMessages:   1,
   125  			NumExtensions: 0,
   126  			NumServices:   0,
   127  		},
   128  		GoTypes:           file_grpc_testing_empty_proto_goTypes,
   129  		DependencyIndexes: file_grpc_testing_empty_proto_depIdxs,
   130  		MessageInfos:      file_grpc_testing_empty_proto_msgTypes,
   131  	}.Build()
   132  	File_grpc_testing_empty_proto = out.File
   133  	file_grpc_testing_empty_proto_goTypes = nil
   134  	file_grpc_testing_empty_proto_depIdxs = nil
   135  }