...

Source file src/google.golang.org/grpc/test/codec_perf/perf.pb.go

Documentation: google.golang.org/grpc/test/codec_perf

     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.33.0
    21  // 	protoc        v4.25.2
    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  )
    32  
    33  const (
    34  	// Verify that this generated code is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    36  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    38  )
    39  
    40  // Buffer is a message that contains a body of bytes that is used to exercise
    41  // encoding and decoding overheads.
    42  type Buffer struct {
    43  	state         protoimpl.MessageState
    44  	sizeCache     protoimpl.SizeCache
    45  	unknownFields protoimpl.UnknownFields
    46  
    47  	Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
    48  }
    49  
    50  func (x *Buffer) Reset() {
    51  	*x = Buffer{}
    52  	if protoimpl.UnsafeEnabled {
    53  		mi := &file_test_codec_perf_perf_proto_msgTypes[0]
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		ms.StoreMessageInfo(mi)
    56  	}
    57  }
    58  
    59  func (x *Buffer) String() string {
    60  	return protoimpl.X.MessageStringOf(x)
    61  }
    62  
    63  func (*Buffer) ProtoMessage() {}
    64  
    65  func (x *Buffer) ProtoReflect() protoreflect.Message {
    66  	mi := &file_test_codec_perf_perf_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 Buffer.ProtoReflect.Descriptor instead.
    78  func (*Buffer) Descriptor() ([]byte, []int) {
    79  	return file_test_codec_perf_perf_proto_rawDescGZIP(), []int{0}
    80  }
    81  
    82  func (x *Buffer) GetBody() []byte {
    83  	if x != nil {
    84  		return x.Body
    85  	}
    86  	return nil
    87  }
    88  
    89  var File_test_codec_perf_perf_proto protoreflect.FileDescriptor
    90  
    91  var file_test_codec_perf_perf_proto_rawDesc = []byte{
    92  	0x0a, 0x1a, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x5f, 0x70, 0x65, 0x72,
    93  	0x66, 0x2f, 0x70, 0x65, 0x72, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x63, 0x6f,
    94  	0x64, 0x65, 0x63, 0x2e, 0x70, 0x65, 0x72, 0x66, 0x22, 0x1c, 0x0a, 0x06, 0x42, 0x75, 0x66, 0x66,
    95  	0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
    96  	0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x28, 0x5a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
    97  	0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63,
    98  	0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x5f, 0x70, 0x65, 0x72, 0x66,
    99  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   100  }
   101  
   102  var (
   103  	file_test_codec_perf_perf_proto_rawDescOnce sync.Once
   104  	file_test_codec_perf_perf_proto_rawDescData = file_test_codec_perf_perf_proto_rawDesc
   105  )
   106  
   107  func file_test_codec_perf_perf_proto_rawDescGZIP() []byte {
   108  	file_test_codec_perf_perf_proto_rawDescOnce.Do(func() {
   109  		file_test_codec_perf_perf_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_codec_perf_perf_proto_rawDescData)
   110  	})
   111  	return file_test_codec_perf_perf_proto_rawDescData
   112  }
   113  
   114  var file_test_codec_perf_perf_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   115  var file_test_codec_perf_perf_proto_goTypes = []interface{}{
   116  	(*Buffer)(nil), // 0: codec.perf.Buffer
   117  }
   118  var file_test_codec_perf_perf_proto_depIdxs = []int32{
   119  	0, // [0:0] is the sub-list for method output_type
   120  	0, // [0:0] is the sub-list for method input_type
   121  	0, // [0:0] is the sub-list for extension type_name
   122  	0, // [0:0] is the sub-list for extension extendee
   123  	0, // [0:0] is the sub-list for field type_name
   124  }
   125  
   126  func init() { file_test_codec_perf_perf_proto_init() }
   127  func file_test_codec_perf_perf_proto_init() {
   128  	if File_test_codec_perf_perf_proto != nil {
   129  		return
   130  	}
   131  	if !protoimpl.UnsafeEnabled {
   132  		file_test_codec_perf_perf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   133  			switch v := v.(*Buffer); i {
   134  			case 0:
   135  				return &v.state
   136  			case 1:
   137  				return &v.sizeCache
   138  			case 2:
   139  				return &v.unknownFields
   140  			default:
   141  				return nil
   142  			}
   143  		}
   144  	}
   145  	type x struct{}
   146  	out := protoimpl.TypeBuilder{
   147  		File: protoimpl.DescBuilder{
   148  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   149  			RawDescriptor: file_test_codec_perf_perf_proto_rawDesc,
   150  			NumEnums:      0,
   151  			NumMessages:   1,
   152  			NumExtensions: 0,
   153  			NumServices:   0,
   154  		},
   155  		GoTypes:           file_test_codec_perf_perf_proto_goTypes,
   156  		DependencyIndexes: file_test_codec_perf_perf_proto_depIdxs,
   157  		MessageInfos:      file_test_codec_perf_perf_proto_msgTypes,
   158  	}.Build()
   159  	File_test_codec_perf_perf_proto = out.File
   160  	file_test_codec_perf_perf_proto_rawDesc = nil
   161  	file_test_codec_perf_perf_proto_goTypes = nil
   162  	file_test_codec_perf_perf_proto_depIdxs = nil
   163  }
   164  

View as plain text