google.golang.org/grpc@v1.72.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.5
    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  var file_grpc_testing_payloads_proto_rawDesc = string([]byte{
   279  	0x0a, 0x1b, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70,
   280  	0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67,
   281  	0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x4a, 0x0a, 0x10, 0x42,
   282  	0x79, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12,
   283  	0x19, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   284  	0x05, 0x52, 0x07, 0x72, 0x65, 0x71, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65,
   285  	0x73, 0x70, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72,
   286  	0x65, 0x73, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x4b, 0x0a, 0x11, 0x53, 0x69, 0x6d, 0x70, 0x6c,
   287  	0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x19, 0x0a, 0x08,
   288  	0x72, 0x65, 0x71, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
   289  	0x72, 0x65, 0x71, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x70, 0x5f,
   290  	0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70,
   291  	0x53, 0x69, 0x7a, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x50,
   292  	0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xf6, 0x01, 0x0a, 0x0d, 0x50,
   293  	0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x47, 0x0a, 0x0e,
   294  	0x62, 0x79, 0x74, 0x65, 0x62, 0x75, 0x66, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01,
   295  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74,
   296  	0x69, 0x6e, 0x67, 0x2e, 0x42, 0x79, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x50, 0x61,
   297  	0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x62, 0x75, 0x66, 0x50,
   298  	0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x46, 0x0a, 0x0d, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x5f,
   299  	0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67,
   300  	0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x69, 0x6d, 0x70,
   301  	0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52,
   302  	0x0c, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x49, 0x0a,
   303  	0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18,
   304  	0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
   305  	0x74, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x74,
   306  	0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6c,
   307  	0x65, 0x78, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c,
   308  	0x6f, 0x61, 0x64, 0x42, 0x22, 0x0a, 0x0f, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74,
   309  	0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x0d, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x73,
   310  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   311  })
   312  
   313  var (
   314  	file_grpc_testing_payloads_proto_rawDescOnce sync.Once
   315  	file_grpc_testing_payloads_proto_rawDescData []byte
   316  )
   317  
   318  func file_grpc_testing_payloads_proto_rawDescGZIP() []byte {
   319  	file_grpc_testing_payloads_proto_rawDescOnce.Do(func() {
   320  		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)))
   321  	})
   322  	return file_grpc_testing_payloads_proto_rawDescData
   323  }
   324  
   325  var file_grpc_testing_payloads_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   326  var file_grpc_testing_payloads_proto_goTypes = []any{
   327  	(*ByteBufferParams)(nil),   // 0: grpc.testing.ByteBufferParams
   328  	(*SimpleProtoParams)(nil),  // 1: grpc.testing.SimpleProtoParams
   329  	(*ComplexProtoParams)(nil), // 2: grpc.testing.ComplexProtoParams
   330  	(*PayloadConfig)(nil),      // 3: grpc.testing.PayloadConfig
   331  }
   332  var file_grpc_testing_payloads_proto_depIdxs = []int32{
   333  	0, // 0: grpc.testing.PayloadConfig.bytebuf_params:type_name -> grpc.testing.ByteBufferParams
   334  	1, // 1: grpc.testing.PayloadConfig.simple_params:type_name -> grpc.testing.SimpleProtoParams
   335  	2, // 2: grpc.testing.PayloadConfig.complex_params:type_name -> grpc.testing.ComplexProtoParams
   336  	3, // [3:3] is the sub-list for method output_type
   337  	3, // [3:3] is the sub-list for method input_type
   338  	3, // [3:3] is the sub-list for extension type_name
   339  	3, // [3:3] is the sub-list for extension extendee
   340  	0, // [0:3] is the sub-list for field type_name
   341  }
   342  
   343  func init() { file_grpc_testing_payloads_proto_init() }
   344  func file_grpc_testing_payloads_proto_init() {
   345  	if File_grpc_testing_payloads_proto != nil {
   346  		return
   347  	}
   348  	file_grpc_testing_payloads_proto_msgTypes[3].OneofWrappers = []any{
   349  		(*PayloadConfig_BytebufParams)(nil),
   350  		(*PayloadConfig_SimpleParams)(nil),
   351  		(*PayloadConfig_ComplexParams)(nil),
   352  	}
   353  	type x struct{}
   354  	out := protoimpl.TypeBuilder{
   355  		File: protoimpl.DescBuilder{
   356  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   357  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_grpc_testing_payloads_proto_rawDesc), len(file_grpc_testing_payloads_proto_rawDesc)),
   358  			NumEnums:      0,
   359  			NumMessages:   4,
   360  			NumExtensions: 0,
   361  			NumServices:   0,
   362  		},
   363  		GoTypes:           file_grpc_testing_payloads_proto_goTypes,
   364  		DependencyIndexes: file_grpc_testing_payloads_proto_depIdxs,
   365  		MessageInfos:      file_grpc_testing_payloads_proto_msgTypes,
   366  	}.Build()
   367  	File_grpc_testing_payloads_proto = out.File
   368  	file_grpc_testing_payloads_proto_goTypes = nil
   369  	file_grpc_testing_payloads_proto_depIdxs = nil
   370  }