google.golang.org/grpc@v1.74.2/interop/grpc_testing/payloads.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/payloads.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 type ByteBufferParams struct { 39 state protoimpl.MessageState `protogen:"open.v1"` 40 ReqSize int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize,proto3" json:"req_size,omitempty"` 41 RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize,proto3" json:"resp_size,omitempty"` 42 unknownFields protoimpl.UnknownFields 43 sizeCache protoimpl.SizeCache 44 } 45 46 func (x *ByteBufferParams) Reset() { 47 *x = ByteBufferParams{} 48 mi := &file_grpc_testing_payloads_proto_msgTypes[0] 49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 50 ms.StoreMessageInfo(mi) 51 } 52 53 func (x *ByteBufferParams) String() string { 54 return protoimpl.X.MessageStringOf(x) 55 } 56 57 func (*ByteBufferParams) ProtoMessage() {} 58 59 func (x *ByteBufferParams) ProtoReflect() protoreflect.Message { 60 mi := &file_grpc_testing_payloads_proto_msgTypes[0] 61 if x != nil { 62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 63 if ms.LoadMessageInfo() == nil { 64 ms.StoreMessageInfo(mi) 65 } 66 return ms 67 } 68 return mi.MessageOf(x) 69 } 70 71 // Deprecated: Use ByteBufferParams.ProtoReflect.Descriptor instead. 72 func (*ByteBufferParams) Descriptor() ([]byte, []int) { 73 return file_grpc_testing_payloads_proto_rawDescGZIP(), []int{0} 74 } 75 76 func (x *ByteBufferParams) GetReqSize() int32 { 77 if x != nil { 78 return x.ReqSize 79 } 80 return 0 81 } 82 83 func (x *ByteBufferParams) GetRespSize() int32 { 84 if x != nil { 85 return x.RespSize 86 } 87 return 0 88 } 89 90 type SimpleProtoParams struct { 91 state protoimpl.MessageState `protogen:"open.v1"` 92 ReqSize int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize,proto3" json:"req_size,omitempty"` 93 RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize,proto3" json:"resp_size,omitempty"` 94 unknownFields protoimpl.UnknownFields 95 sizeCache protoimpl.SizeCache 96 } 97 98 func (x *SimpleProtoParams) Reset() { 99 *x = SimpleProtoParams{} 100 mi := &file_grpc_testing_payloads_proto_msgTypes[1] 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 102 ms.StoreMessageInfo(mi) 103 } 104 105 func (x *SimpleProtoParams) String() string { 106 return protoimpl.X.MessageStringOf(x) 107 } 108 109 func (*SimpleProtoParams) ProtoMessage() {} 110 111 func (x *SimpleProtoParams) ProtoReflect() protoreflect.Message { 112 mi := &file_grpc_testing_payloads_proto_msgTypes[1] 113 if x != nil { 114 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 115 if ms.LoadMessageInfo() == nil { 116 ms.StoreMessageInfo(mi) 117 } 118 return ms 119 } 120 return mi.MessageOf(x) 121 } 122 123 // Deprecated: Use SimpleProtoParams.ProtoReflect.Descriptor instead. 124 func (*SimpleProtoParams) Descriptor() ([]byte, []int) { 125 return file_grpc_testing_payloads_proto_rawDescGZIP(), []int{1} 126 } 127 128 func (x *SimpleProtoParams) GetReqSize() int32 { 129 if x != nil { 130 return x.ReqSize 131 } 132 return 0 133 } 134 135 func (x *SimpleProtoParams) GetRespSize() int32 { 136 if x != nil { 137 return x.RespSize 138 } 139 return 0 140 } 141 142 type ComplexProtoParams struct { 143 state protoimpl.MessageState `protogen:"open.v1"` 144 unknownFields protoimpl.UnknownFields 145 sizeCache protoimpl.SizeCache 146 } 147 148 func (x *ComplexProtoParams) Reset() { 149 *x = ComplexProtoParams{} 150 mi := &file_grpc_testing_payloads_proto_msgTypes[2] 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 ms.StoreMessageInfo(mi) 153 } 154 155 func (x *ComplexProtoParams) String() string { 156 return protoimpl.X.MessageStringOf(x) 157 } 158 159 func (*ComplexProtoParams) ProtoMessage() {} 160 161 func (x *ComplexProtoParams) ProtoReflect() protoreflect.Message { 162 mi := &file_grpc_testing_payloads_proto_msgTypes[2] 163 if x != nil { 164 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 165 if ms.LoadMessageInfo() == nil { 166 ms.StoreMessageInfo(mi) 167 } 168 return ms 169 } 170 return mi.MessageOf(x) 171 } 172 173 // Deprecated: Use ComplexProtoParams.ProtoReflect.Descriptor instead. 174 func (*ComplexProtoParams) Descriptor() ([]byte, []int) { 175 return file_grpc_testing_payloads_proto_rawDescGZIP(), []int{2} 176 } 177 178 type PayloadConfig struct { 179 state protoimpl.MessageState `protogen:"open.v1"` 180 // Types that are valid to be assigned to Payload: 181 // 182 // *PayloadConfig_BytebufParams 183 // *PayloadConfig_SimpleParams 184 // *PayloadConfig_ComplexParams 185 Payload isPayloadConfig_Payload `protobuf_oneof:"payload"` 186 unknownFields protoimpl.UnknownFields 187 sizeCache protoimpl.SizeCache 188 } 189 190 func (x *PayloadConfig) Reset() { 191 *x = PayloadConfig{} 192 mi := &file_grpc_testing_payloads_proto_msgTypes[3] 193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 194 ms.StoreMessageInfo(mi) 195 } 196 197 func (x *PayloadConfig) String() string { 198 return protoimpl.X.MessageStringOf(x) 199 } 200 201 func (*PayloadConfig) ProtoMessage() {} 202 203 func (x *PayloadConfig) ProtoReflect() protoreflect.Message { 204 mi := &file_grpc_testing_payloads_proto_msgTypes[3] 205 if x != nil { 206 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 207 if ms.LoadMessageInfo() == nil { 208 ms.StoreMessageInfo(mi) 209 } 210 return ms 211 } 212 return mi.MessageOf(x) 213 } 214 215 // Deprecated: Use PayloadConfig.ProtoReflect.Descriptor instead. 216 func (*PayloadConfig) Descriptor() ([]byte, []int) { 217 return file_grpc_testing_payloads_proto_rawDescGZIP(), []int{3} 218 } 219 220 func (x *PayloadConfig) GetPayload() isPayloadConfig_Payload { 221 if x != nil { 222 return x.Payload 223 } 224 return nil 225 } 226 227 func (x *PayloadConfig) GetBytebufParams() *ByteBufferParams { 228 if x != nil { 229 if x, ok := x.Payload.(*PayloadConfig_BytebufParams); ok { 230 return x.BytebufParams 231 } 232 } 233 return nil 234 } 235 236 func (x *PayloadConfig) GetSimpleParams() *SimpleProtoParams { 237 if x != nil { 238 if x, ok := x.Payload.(*PayloadConfig_SimpleParams); ok { 239 return x.SimpleParams 240 } 241 } 242 return nil 243 } 244 245 func (x *PayloadConfig) GetComplexParams() *ComplexProtoParams { 246 if x != nil { 247 if x, ok := x.Payload.(*PayloadConfig_ComplexParams); ok { 248 return x.ComplexParams 249 } 250 } 251 return nil 252 } 253 254 type isPayloadConfig_Payload interface { 255 isPayloadConfig_Payload() 256 } 257 258 type PayloadConfig_BytebufParams struct { 259 BytebufParams *ByteBufferParams `protobuf:"bytes,1,opt,name=bytebuf_params,json=bytebufParams,proto3,oneof"` 260 } 261 262 type PayloadConfig_SimpleParams struct { 263 SimpleParams *SimpleProtoParams `protobuf:"bytes,2,opt,name=simple_params,json=simpleParams,proto3,oneof"` 264 } 265 266 type PayloadConfig_ComplexParams struct { 267 ComplexParams *ComplexProtoParams `protobuf:"bytes,3,opt,name=complex_params,json=complexParams,proto3,oneof"` 268 } 269 270 func (*PayloadConfig_BytebufParams) isPayloadConfig_Payload() {} 271 272 func (*PayloadConfig_SimpleParams) isPayloadConfig_Payload() {} 273 274 func (*PayloadConfig_ComplexParams) isPayloadConfig_Payload() {} 275 276 var File_grpc_testing_payloads_proto protoreflect.FileDescriptor 277 278 const file_grpc_testing_payloads_proto_rawDesc = "" + 279 "\n" + 280 "\x1bgrpc/testing/payloads.proto\x12\fgrpc.testing\"J\n" + 281 "\x10ByteBufferParams\x12\x19\n" + 282 "\breq_size\x18\x01 \x01(\x05R\areqSize\x12\x1b\n" + 283 "\tresp_size\x18\x02 \x01(\x05R\brespSize\"K\n" + 284 "\x11SimpleProtoParams\x12\x19\n" + 285 "\breq_size\x18\x01 \x01(\x05R\areqSize\x12\x1b\n" + 286 "\tresp_size\x18\x02 \x01(\x05R\brespSize\"\x14\n" + 287 "\x12ComplexProtoParams\"\xf6\x01\n" + 288 "\rPayloadConfig\x12G\n" + 289 "\x0ebytebuf_params\x18\x01 \x01(\v2\x1e.grpc.testing.ByteBufferParamsH\x00R\rbytebufParams\x12F\n" + 290 "\rsimple_params\x18\x02 \x01(\v2\x1f.grpc.testing.SimpleProtoParamsH\x00R\fsimpleParams\x12I\n" + 291 "\x0ecomplex_params\x18\x03 \x01(\v2 .grpc.testing.ComplexProtoParamsH\x00R\rcomplexParamsB\t\n" + 292 "\apayloadB\"\n" + 293 "\x0fio.grpc.testingB\rPayloadsProtoP\x01b\x06proto3" 294 295 var ( 296 file_grpc_testing_payloads_proto_rawDescOnce sync.Once 297 file_grpc_testing_payloads_proto_rawDescData []byte 298 ) 299 300 func file_grpc_testing_payloads_proto_rawDescGZIP() []byte { 301 file_grpc_testing_payloads_proto_rawDescOnce.Do(func() { 302 file_grpc_testing_payloads_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_grpc_testing_payloads_proto_rawDesc), len(file_grpc_testing_payloads_proto_rawDesc))) 303 }) 304 return file_grpc_testing_payloads_proto_rawDescData 305 } 306 307 var file_grpc_testing_payloads_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 308 var file_grpc_testing_payloads_proto_goTypes = []any{ 309 (*ByteBufferParams)(nil), // 0: grpc.testing.ByteBufferParams 310 (*SimpleProtoParams)(nil), // 1: grpc.testing.SimpleProtoParams 311 (*ComplexProtoParams)(nil), // 2: grpc.testing.ComplexProtoParams 312 (*PayloadConfig)(nil), // 3: grpc.testing.PayloadConfig 313 } 314 var file_grpc_testing_payloads_proto_depIdxs = []int32{ 315 0, // 0: grpc.testing.PayloadConfig.bytebuf_params:type_name -> grpc.testing.ByteBufferParams 316 1, // 1: grpc.testing.PayloadConfig.simple_params:type_name -> grpc.testing.SimpleProtoParams 317 2, // 2: grpc.testing.PayloadConfig.complex_params:type_name -> grpc.testing.ComplexProtoParams 318 3, // [3:3] is the sub-list for method output_type 319 3, // [3:3] is the sub-list for method input_type 320 3, // [3:3] is the sub-list for extension type_name 321 3, // [3:3] is the sub-list for extension extendee 322 0, // [0:3] is the sub-list for field type_name 323 } 324 325 func init() { file_grpc_testing_payloads_proto_init() } 326 func file_grpc_testing_payloads_proto_init() { 327 if File_grpc_testing_payloads_proto != nil { 328 return 329 } 330 file_grpc_testing_payloads_proto_msgTypes[3].OneofWrappers = []any{ 331 (*PayloadConfig_BytebufParams)(nil), 332 (*PayloadConfig_SimpleParams)(nil), 333 (*PayloadConfig_ComplexParams)(nil), 334 } 335 type x struct{} 336 out := protoimpl.TypeBuilder{ 337 File: protoimpl.DescBuilder{ 338 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 339 RawDescriptor: unsafe.Slice(unsafe.StringData(file_grpc_testing_payloads_proto_rawDesc), len(file_grpc_testing_payloads_proto_rawDesc)), 340 NumEnums: 0, 341 NumMessages: 4, 342 NumExtensions: 0, 343 NumServices: 0, 344 }, 345 GoTypes: file_grpc_testing_payloads_proto_goTypes, 346 DependencyIndexes: file_grpc_testing_payloads_proto_depIdxs, 347 MessageInfos: file_grpc_testing_payloads_proto_msgTypes, 348 }.Build() 349 File_grpc_testing_payloads_proto = out.File 350 file_grpc_testing_payloads_proto_goTypes = nil 351 file_grpc_testing_payloads_proto_depIdxs = nil 352 }