google.golang.org/grpc@v1.72.2/test/codec_perf/perf.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  // Messages used for performance tests that may not reference grpc directly for
    16  // reasons of import cycles.
    17  
    18  // Code generated by protoc-gen-go. DO NOT EDIT.
    19  // versions:
    20  // 	protoc-gen-go v1.36.5
    21  // 	protoc        v5.27.1
    22  // source: test/codec_perf/perf.proto
    23  
    24  package codec_perf
    25  
    26  import (
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  	reflect "reflect"
    30  	sync "sync"
    31  	unsafe "unsafe"
    32  )
    33  
    34  const (
    35  	// Verify that this generated code is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    37  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    39  )
    40  
    41  // Buffer is a message that contains a body of bytes that is used to exercise
    42  // encoding and decoding overheads.
    43  type Buffer struct {
    44  	state         protoimpl.MessageState `protogen:"open.v1"`
    45  	Body          []byte                 `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
    46  	unknownFields protoimpl.UnknownFields
    47  	sizeCache     protoimpl.SizeCache
    48  }
    49  
    50  func (x *Buffer) Reset() {
    51  	*x = Buffer{}
    52  	mi := &file_test_codec_perf_perf_proto_msgTypes[0]
    53  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    54  	ms.StoreMessageInfo(mi)
    55  }
    56  
    57  func (x *Buffer) String() string {
    58  	return protoimpl.X.MessageStringOf(x)
    59  }
    60  
    61  func (*Buffer) ProtoMessage() {}
    62  
    63  func (x *Buffer) ProtoReflect() protoreflect.Message {
    64  	mi := &file_test_codec_perf_perf_proto_msgTypes[0]
    65  	if x != nil {
    66  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    67  		if ms.LoadMessageInfo() == nil {
    68  			ms.StoreMessageInfo(mi)
    69  		}
    70  		return ms
    71  	}
    72  	return mi.MessageOf(x)
    73  }
    74  
    75  // Deprecated: Use Buffer.ProtoReflect.Descriptor instead.
    76  func (*Buffer) Descriptor() ([]byte, []int) {
    77  	return file_test_codec_perf_perf_proto_rawDescGZIP(), []int{0}
    78  }
    79  
    80  func (x *Buffer) GetBody() []byte {
    81  	if x != nil {
    82  		return x.Body
    83  	}
    84  	return nil
    85  }
    86  
    87  var File_test_codec_perf_perf_proto protoreflect.FileDescriptor
    88  
    89  var file_test_codec_perf_perf_proto_rawDesc = string([]byte{
    90  	0x0a, 0x1a, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x5f, 0x70, 0x65, 0x72,
    91  	0x66, 0x2f, 0x70, 0x65, 0x72, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x63, 0x6f,
    92  	0x64, 0x65, 0x63, 0x2e, 0x70, 0x65, 0x72, 0x66, 0x22, 0x1c, 0x0a, 0x06, 0x42, 0x75, 0x66, 0x66,
    93  	0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
    94  	0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x28, 0x5a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
    95  	0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63,
    96  	0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x5f, 0x70, 0x65, 0x72, 0x66,
    97  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
    98  })
    99  
   100  var (
   101  	file_test_codec_perf_perf_proto_rawDescOnce sync.Once
   102  	file_test_codec_perf_perf_proto_rawDescData []byte
   103  )
   104  
   105  func file_test_codec_perf_perf_proto_rawDescGZIP() []byte {
   106  	file_test_codec_perf_perf_proto_rawDescOnce.Do(func() {
   107  		file_test_codec_perf_perf_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_test_codec_perf_perf_proto_rawDesc), len(file_test_codec_perf_perf_proto_rawDesc)))
   108  	})
   109  	return file_test_codec_perf_perf_proto_rawDescData
   110  }
   111  
   112  var file_test_codec_perf_perf_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   113  var file_test_codec_perf_perf_proto_goTypes = []any{
   114  	(*Buffer)(nil), // 0: codec.perf.Buffer
   115  }
   116  var file_test_codec_perf_perf_proto_depIdxs = []int32{
   117  	0, // [0:0] is the sub-list for method output_type
   118  	0, // [0:0] is the sub-list for method input_type
   119  	0, // [0:0] is the sub-list for extension type_name
   120  	0, // [0:0] is the sub-list for extension extendee
   121  	0, // [0:0] is the sub-list for field type_name
   122  }
   123  
   124  func init() { file_test_codec_perf_perf_proto_init() }
   125  func file_test_codec_perf_perf_proto_init() {
   126  	if File_test_codec_perf_perf_proto != nil {
   127  		return
   128  	}
   129  	type x struct{}
   130  	out := protoimpl.TypeBuilder{
   131  		File: protoimpl.DescBuilder{
   132  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   133  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_test_codec_perf_perf_proto_rawDesc), len(file_test_codec_perf_perf_proto_rawDesc)),
   134  			NumEnums:      0,
   135  			NumMessages:   1,
   136  			NumExtensions: 0,
   137  			NumServices:   0,
   138  		},
   139  		GoTypes:           file_test_codec_perf_perf_proto_goTypes,
   140  		DependencyIndexes: file_test_codec_perf_perf_proto_depIdxs,
   141  		MessageInfos:      file_test_codec_perf_perf_proto_msgTypes,
   142  	}.Build()
   143  	File_test_codec_perf_perf_proto = out.File
   144  	file_test_codec_perf_perf_proto_goTypes = nil
   145  	file_test_codec_perf_perf_proto_depIdxs = nil
   146  }