google.golang.org/grpc@v1.74.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.6 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 const file_test_codec_perf_perf_proto_rawDesc = "" + 90 "\n" + 91 "\x1atest/codec_perf/perf.proto\x12\n" + 92 "codec.perf\"\x1c\n" + 93 "\x06Buffer\x12\x12\n" + 94 "\x04body\x18\x01 \x01(\fR\x04bodyB(Z&google.golang.org/grpc/test/codec_perfb\x06proto3" 95 96 var ( 97 file_test_codec_perf_perf_proto_rawDescOnce sync.Once 98 file_test_codec_perf_perf_proto_rawDescData []byte 99 ) 100 101 func file_test_codec_perf_perf_proto_rawDescGZIP() []byte { 102 file_test_codec_perf_perf_proto_rawDescOnce.Do(func() { 103 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))) 104 }) 105 return file_test_codec_perf_perf_proto_rawDescData 106 } 107 108 var file_test_codec_perf_perf_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 109 var file_test_codec_perf_perf_proto_goTypes = []any{ 110 (*Buffer)(nil), // 0: codec.perf.Buffer 111 } 112 var file_test_codec_perf_perf_proto_depIdxs = []int32{ 113 0, // [0:0] is the sub-list for method output_type 114 0, // [0:0] is the sub-list for method input_type 115 0, // [0:0] is the sub-list for extension type_name 116 0, // [0:0] is the sub-list for extension extendee 117 0, // [0:0] is the sub-list for field type_name 118 } 119 120 func init() { file_test_codec_perf_perf_proto_init() } 121 func file_test_codec_perf_perf_proto_init() { 122 if File_test_codec_perf_perf_proto != nil { 123 return 124 } 125 type x struct{} 126 out := protoimpl.TypeBuilder{ 127 File: protoimpl.DescBuilder{ 128 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 129 RawDescriptor: unsafe.Slice(unsafe.StringData(file_test_codec_perf_perf_proto_rawDesc), len(file_test_codec_perf_perf_proto_rawDesc)), 130 NumEnums: 0, 131 NumMessages: 1, 132 NumExtensions: 0, 133 NumServices: 0, 134 }, 135 GoTypes: file_test_codec_perf_perf_proto_goTypes, 136 DependencyIndexes: file_test_codec_perf_perf_proto_depIdxs, 137 MessageInfos: file_test_codec_perf_perf_proto_msgTypes, 138 }.Build() 139 File_test_codec_perf_perf_proto = out.File 140 file_test_codec_perf_perf_proto_goTypes = nil 141 file_test_codec_perf_perf_proto_depIdxs = nil 142 }