github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/grpc/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.25.0 21 // protoc v3.14.0 22 // source: test/codec_perf/perf.proto 23 24 package codec_perf 25 26 import ( 27 proto "github.com/golang/protobuf/proto" 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30 reflect "reflect" 31 sync "sync" 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 // This is a compile-time assertion that a sufficiently up-to-date version 42 // of the legacy proto package is being used. 43 const _ = proto.ProtoPackageIsVersion4 44 45 // Buffer is a message that contains a body of bytes that is used to exercise 46 // encoding and decoding overheads. 47 type Buffer struct { 48 state protoimpl.MessageState 49 sizeCache protoimpl.SizeCache 50 unknownFields protoimpl.UnknownFields 51 52 Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` 53 } 54 55 func (x *Buffer) Reset() { 56 *x = Buffer{} 57 if protoimpl.UnsafeEnabled { 58 mi := &file_test_codec_perf_perf_proto_msgTypes[0] 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 ms.StoreMessageInfo(mi) 61 } 62 } 63 64 func (x *Buffer) String() string { 65 return protoimpl.X.MessageStringOf(x) 66 } 67 68 func (*Buffer) ProtoMessage() {} 69 70 func (x *Buffer) ProtoReflect() protoreflect.Message { 71 mi := &file_test_codec_perf_perf_proto_msgTypes[0] 72 if protoimpl.UnsafeEnabled && x != nil { 73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 74 if ms.LoadMessageInfo() == nil { 75 ms.StoreMessageInfo(mi) 76 } 77 return ms 78 } 79 return mi.MessageOf(x) 80 } 81 82 // Deprecated: Use Buffer.ProtoReflect.Descriptor instead. 83 func (*Buffer) Descriptor() ([]byte, []int) { 84 return file_test_codec_perf_perf_proto_rawDescGZIP(), []int{0} 85 } 86 87 func (x *Buffer) GetBody() []byte { 88 if x != nil { 89 return x.Body 90 } 91 return nil 92 } 93 94 var File_test_codec_perf_perf_proto protoreflect.FileDescriptor 95 96 var file_test_codec_perf_perf_proto_rawDesc = []byte{ 97 0x0a, 0x1a, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x5f, 0x70, 0x65, 0x72, 98 0x66, 0x2f, 0x70, 0x65, 0x72, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x63, 0x6f, 99 0x64, 0x65, 0x63, 0x2e, 0x70, 0x65, 0x72, 0x66, 0x22, 0x1c, 0x0a, 0x06, 0x42, 0x75, 0x66, 0x66, 100 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 101 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x28, 0x5a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 102 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 103 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x5f, 0x70, 0x65, 0x72, 0x66, 104 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 105 } 106 107 var ( 108 file_test_codec_perf_perf_proto_rawDescOnce sync.Once 109 file_test_codec_perf_perf_proto_rawDescData = file_test_codec_perf_perf_proto_rawDesc 110 ) 111 112 func file_test_codec_perf_perf_proto_rawDescGZIP() []byte { 113 file_test_codec_perf_perf_proto_rawDescOnce.Do(func() { 114 file_test_codec_perf_perf_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_codec_perf_perf_proto_rawDescData) 115 }) 116 return file_test_codec_perf_perf_proto_rawDescData 117 } 118 119 var file_test_codec_perf_perf_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 120 var file_test_codec_perf_perf_proto_goTypes = []interface{}{ 121 (*Buffer)(nil), // 0: codec.perf.Buffer 122 } 123 var file_test_codec_perf_perf_proto_depIdxs = []int32{ 124 0, // [0:0] is the sub-list for method output_type 125 0, // [0:0] is the sub-list for method input_type 126 0, // [0:0] is the sub-list for extension type_name 127 0, // [0:0] is the sub-list for extension extendee 128 0, // [0:0] is the sub-list for field type_name 129 } 130 131 func init() { file_test_codec_perf_perf_proto_init() } 132 func file_test_codec_perf_perf_proto_init() { 133 if File_test_codec_perf_perf_proto != nil { 134 return 135 } 136 if !protoimpl.UnsafeEnabled { 137 file_test_codec_perf_perf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 138 switch v := v.(*Buffer); i { 139 case 0: 140 return &v.state 141 case 1: 142 return &v.sizeCache 143 case 2: 144 return &v.unknownFields 145 default: 146 return nil 147 } 148 } 149 } 150 type x struct{} 151 out := protoimpl.TypeBuilder{ 152 File: protoimpl.DescBuilder{ 153 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 154 RawDescriptor: file_test_codec_perf_perf_proto_rawDesc, 155 NumEnums: 0, 156 NumMessages: 1, 157 NumExtensions: 0, 158 NumServices: 0, 159 }, 160 GoTypes: file_test_codec_perf_perf_proto_goTypes, 161 DependencyIndexes: file_test_codec_perf_perf_proto_depIdxs, 162 MessageInfos: file_test_codec_perf_perf_proto_msgTypes, 163 }.Build() 164 File_test_codec_perf_perf_proto = out.File 165 file_test_codec_perf_perf_proto_rawDesc = nil 166 file_test_codec_perf_perf_proto_goTypes = nil 167 file_test_codec_perf_perf_proto_depIdxs = nil 168 }