...

Source file src/google.golang.org/grpc/interop/grpc_testing/payloads.pb.go

Documentation: google.golang.org/grpc/interop/grpc_testing

     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.33.0
    18  // 	protoc        v4.25.2
    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  )
    29  
    30  const (
    31  	// Verify that this generated code is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    33  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    35  )
    36  
    37  type ByteBufferParams struct {
    38  	state         protoimpl.MessageState
    39  	sizeCache     protoimpl.SizeCache
    40  	unknownFields protoimpl.UnknownFields
    41  
    42  	ReqSize  int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize,proto3" json:"req_size,omitempty"`
    43  	RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize,proto3" json:"resp_size,omitempty"`
    44  }
    45  
    46  func (x *ByteBufferParams) Reset() {
    47  	*x = ByteBufferParams{}
    48  	if protoimpl.UnsafeEnabled {
    49  		mi := &file_grpc_testing_payloads_proto_msgTypes[0]
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		ms.StoreMessageInfo(mi)
    52  	}
    53  }
    54  
    55  func (x *ByteBufferParams) String() string {
    56  	return protoimpl.X.MessageStringOf(x)
    57  }
    58  
    59  func (*ByteBufferParams) ProtoMessage() {}
    60  
    61  func (x *ByteBufferParams) ProtoReflect() protoreflect.Message {
    62  	mi := &file_grpc_testing_payloads_proto_msgTypes[0]
    63  	if protoimpl.UnsafeEnabled && x != nil {
    64  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    65  		if ms.LoadMessageInfo() == nil {
    66  			ms.StoreMessageInfo(mi)
    67  		}
    68  		return ms
    69  	}
    70  	return mi.MessageOf(x)
    71  }
    72  
    73  // Deprecated: Use ByteBufferParams.ProtoReflect.Descriptor instead.
    74  func (*ByteBufferParams) Descriptor() ([]byte, []int) {
    75  	return file_grpc_testing_payloads_proto_rawDescGZIP(), []int{0}
    76  }
    77  
    78  func (x *ByteBufferParams) GetReqSize() int32 {
    79  	if x != nil {
    80  		return x.ReqSize
    81  	}
    82  	return 0
    83  }
    84  
    85  func (x *ByteBufferParams) GetRespSize() int32 {
    86  	if x != nil {
    87  		return x.RespSize
    88  	}
    89  	return 0
    90  }
    91  
    92  type SimpleProtoParams struct {
    93  	state         protoimpl.MessageState
    94  	sizeCache     protoimpl.SizeCache
    95  	unknownFields protoimpl.UnknownFields
    96  
    97  	ReqSize  int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize,proto3" json:"req_size,omitempty"`
    98  	RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize,proto3" json:"resp_size,omitempty"`
    99  }
   100  
   101  func (x *SimpleProtoParams) Reset() {
   102  	*x = SimpleProtoParams{}
   103  	if protoimpl.UnsafeEnabled {
   104  		mi := &file_grpc_testing_payloads_proto_msgTypes[1]
   105  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   106  		ms.StoreMessageInfo(mi)
   107  	}
   108  }
   109  
   110  func (x *SimpleProtoParams) String() string {
   111  	return protoimpl.X.MessageStringOf(x)
   112  }
   113  
   114  func (*SimpleProtoParams) ProtoMessage() {}
   115  
   116  func (x *SimpleProtoParams) ProtoReflect() protoreflect.Message {
   117  	mi := &file_grpc_testing_payloads_proto_msgTypes[1]
   118  	if protoimpl.UnsafeEnabled && x != nil {
   119  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   120  		if ms.LoadMessageInfo() == nil {
   121  			ms.StoreMessageInfo(mi)
   122  		}
   123  		return ms
   124  	}
   125  	return mi.MessageOf(x)
   126  }
   127  
   128  // Deprecated: Use SimpleProtoParams.ProtoReflect.Descriptor instead.
   129  func (*SimpleProtoParams) Descriptor() ([]byte, []int) {
   130  	return file_grpc_testing_payloads_proto_rawDescGZIP(), []int{1}
   131  }
   132  
   133  func (x *SimpleProtoParams) GetReqSize() int32 {
   134  	if x != nil {
   135  		return x.ReqSize
   136  	}
   137  	return 0
   138  }
   139  
   140  func (x *SimpleProtoParams) GetRespSize() int32 {
   141  	if x != nil {
   142  		return x.RespSize
   143  	}
   144  	return 0
   145  }
   146  
   147  type ComplexProtoParams struct {
   148  	state         protoimpl.MessageState
   149  	sizeCache     protoimpl.SizeCache
   150  	unknownFields protoimpl.UnknownFields
   151  }
   152  
   153  func (x *ComplexProtoParams) Reset() {
   154  	*x = ComplexProtoParams{}
   155  	if protoimpl.UnsafeEnabled {
   156  		mi := &file_grpc_testing_payloads_proto_msgTypes[2]
   157  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   158  		ms.StoreMessageInfo(mi)
   159  	}
   160  }
   161  
   162  func (x *ComplexProtoParams) String() string {
   163  	return protoimpl.X.MessageStringOf(x)
   164  }
   165  
   166  func (*ComplexProtoParams) ProtoMessage() {}
   167  
   168  func (x *ComplexProtoParams) ProtoReflect() protoreflect.Message {
   169  	mi := &file_grpc_testing_payloads_proto_msgTypes[2]
   170  	if protoimpl.UnsafeEnabled && x != nil {
   171  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   172  		if ms.LoadMessageInfo() == nil {
   173  			ms.StoreMessageInfo(mi)
   174  		}
   175  		return ms
   176  	}
   177  	return mi.MessageOf(x)
   178  }
   179  
   180  // Deprecated: Use ComplexProtoParams.ProtoReflect.Descriptor instead.
   181  func (*ComplexProtoParams) Descriptor() ([]byte, []int) {
   182  	return file_grpc_testing_payloads_proto_rawDescGZIP(), []int{2}
   183  }
   184  
   185  type PayloadConfig struct {
   186  	state         protoimpl.MessageState
   187  	sizeCache     protoimpl.SizeCache
   188  	unknownFields protoimpl.UnknownFields
   189  
   190  	// Types that are assignable to Payload:
   191  	//
   192  	//	*PayloadConfig_BytebufParams
   193  	//	*PayloadConfig_SimpleParams
   194  	//	*PayloadConfig_ComplexParams
   195  	Payload isPayloadConfig_Payload `protobuf_oneof:"payload"`
   196  }
   197  
   198  func (x *PayloadConfig) Reset() {
   199  	*x = PayloadConfig{}
   200  	if protoimpl.UnsafeEnabled {
   201  		mi := &file_grpc_testing_payloads_proto_msgTypes[3]
   202  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   203  		ms.StoreMessageInfo(mi)
   204  	}
   205  }
   206  
   207  func (x *PayloadConfig) String() string {
   208  	return protoimpl.X.MessageStringOf(x)
   209  }
   210  
   211  func (*PayloadConfig) ProtoMessage() {}
   212  
   213  func (x *PayloadConfig) ProtoReflect() protoreflect.Message {
   214  	mi := &file_grpc_testing_payloads_proto_msgTypes[3]
   215  	if protoimpl.UnsafeEnabled && x != nil {
   216  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   217  		if ms.LoadMessageInfo() == nil {
   218  			ms.StoreMessageInfo(mi)
   219  		}
   220  		return ms
   221  	}
   222  	return mi.MessageOf(x)
   223  }
   224  
   225  // Deprecated: Use PayloadConfig.ProtoReflect.Descriptor instead.
   226  func (*PayloadConfig) Descriptor() ([]byte, []int) {
   227  	return file_grpc_testing_payloads_proto_rawDescGZIP(), []int{3}
   228  }
   229  
   230  func (m *PayloadConfig) GetPayload() isPayloadConfig_Payload {
   231  	if m != nil {
   232  		return m.Payload
   233  	}
   234  	return nil
   235  }
   236  
   237  func (x *PayloadConfig) GetBytebufParams() *ByteBufferParams {
   238  	if x, ok := x.GetPayload().(*PayloadConfig_BytebufParams); ok {
   239  		return x.BytebufParams
   240  	}
   241  	return nil
   242  }
   243  
   244  func (x *PayloadConfig) GetSimpleParams() *SimpleProtoParams {
   245  	if x, ok := x.GetPayload().(*PayloadConfig_SimpleParams); ok {
   246  		return x.SimpleParams
   247  	}
   248  	return nil
   249  }
   250  
   251  func (x *PayloadConfig) GetComplexParams() *ComplexProtoParams {
   252  	if x, ok := x.GetPayload().(*PayloadConfig_ComplexParams); ok {
   253  		return x.ComplexParams
   254  	}
   255  	return nil
   256  }
   257  
   258  type isPayloadConfig_Payload interface {
   259  	isPayloadConfig_Payload()
   260  }
   261  
   262  type PayloadConfig_BytebufParams struct {
   263  	BytebufParams *ByteBufferParams `protobuf:"bytes,1,opt,name=bytebuf_params,json=bytebufParams,proto3,oneof"`
   264  }
   265  
   266  type PayloadConfig_SimpleParams struct {
   267  	SimpleParams *SimpleProtoParams `protobuf:"bytes,2,opt,name=simple_params,json=simpleParams,proto3,oneof"`
   268  }
   269  
   270  type PayloadConfig_ComplexParams struct {
   271  	ComplexParams *ComplexProtoParams `protobuf:"bytes,3,opt,name=complex_params,json=complexParams,proto3,oneof"`
   272  }
   273  
   274  func (*PayloadConfig_BytebufParams) isPayloadConfig_Payload() {}
   275  
   276  func (*PayloadConfig_SimpleParams) isPayloadConfig_Payload() {}
   277  
   278  func (*PayloadConfig_ComplexParams) isPayloadConfig_Payload() {}
   279  
   280  var File_grpc_testing_payloads_proto protoreflect.FileDescriptor
   281  
   282  var file_grpc_testing_payloads_proto_rawDesc = []byte{
   283  	0x0a, 0x1b, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70,
   284  	0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67,
   285  	0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x4a, 0x0a, 0x10, 0x42,
   286  	0x79, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12,
   287  	0x19, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   288  	0x05, 0x52, 0x07, 0x72, 0x65, 0x71, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65,
   289  	0x73, 0x70, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72,
   290  	0x65, 0x73, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x4b, 0x0a, 0x11, 0x53, 0x69, 0x6d, 0x70, 0x6c,
   291  	0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x19, 0x0a, 0x08,
   292  	0x72, 0x65, 0x71, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
   293  	0x72, 0x65, 0x71, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x70, 0x5f,
   294  	0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70,
   295  	0x53, 0x69, 0x7a, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x50,
   296  	0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xf6, 0x01, 0x0a, 0x0d, 0x50,
   297  	0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x47, 0x0a, 0x0e,
   298  	0x62, 0x79, 0x74, 0x65, 0x62, 0x75, 0x66, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01,
   299  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74,
   300  	0x69, 0x6e, 0x67, 0x2e, 0x42, 0x79, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x50, 0x61,
   301  	0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x62, 0x75, 0x66, 0x50,
   302  	0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x46, 0x0a, 0x0d, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x5f,
   303  	0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67,
   304  	0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x69, 0x6d, 0x70,
   305  	0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52,
   306  	0x0c, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x49, 0x0a,
   307  	0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18,
   308  	0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
   309  	0x74, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x74,
   310  	0x6f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x00, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6c,
   311  	0x65, 0x78, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c,
   312  	0x6f, 0x61, 0x64, 0x42, 0x22, 0x0a, 0x0f, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74,
   313  	0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x0d, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x73,
   314  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   315  }
   316  
   317  var (
   318  	file_grpc_testing_payloads_proto_rawDescOnce sync.Once
   319  	file_grpc_testing_payloads_proto_rawDescData = file_grpc_testing_payloads_proto_rawDesc
   320  )
   321  
   322  func file_grpc_testing_payloads_proto_rawDescGZIP() []byte {
   323  	file_grpc_testing_payloads_proto_rawDescOnce.Do(func() {
   324  		file_grpc_testing_payloads_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_testing_payloads_proto_rawDescData)
   325  	})
   326  	return file_grpc_testing_payloads_proto_rawDescData
   327  }
   328  
   329  var file_grpc_testing_payloads_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   330  var file_grpc_testing_payloads_proto_goTypes = []interface{}{
   331  	(*ByteBufferParams)(nil),   // 0: grpc.testing.ByteBufferParams
   332  	(*SimpleProtoParams)(nil),  // 1: grpc.testing.SimpleProtoParams
   333  	(*ComplexProtoParams)(nil), // 2: grpc.testing.ComplexProtoParams
   334  	(*PayloadConfig)(nil),      // 3: grpc.testing.PayloadConfig
   335  }
   336  var file_grpc_testing_payloads_proto_depIdxs = []int32{
   337  	0, // 0: grpc.testing.PayloadConfig.bytebuf_params:type_name -> grpc.testing.ByteBufferParams
   338  	1, // 1: grpc.testing.PayloadConfig.simple_params:type_name -> grpc.testing.SimpleProtoParams
   339  	2, // 2: grpc.testing.PayloadConfig.complex_params:type_name -> grpc.testing.ComplexProtoParams
   340  	3, // [3:3] is the sub-list for method output_type
   341  	3, // [3:3] is the sub-list for method input_type
   342  	3, // [3:3] is the sub-list for extension type_name
   343  	3, // [3:3] is the sub-list for extension extendee
   344  	0, // [0:3] is the sub-list for field type_name
   345  }
   346  
   347  func init() { file_grpc_testing_payloads_proto_init() }
   348  func file_grpc_testing_payloads_proto_init() {
   349  	if File_grpc_testing_payloads_proto != nil {
   350  		return
   351  	}
   352  	if !protoimpl.UnsafeEnabled {
   353  		file_grpc_testing_payloads_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   354  			switch v := v.(*ByteBufferParams); i {
   355  			case 0:
   356  				return &v.state
   357  			case 1:
   358  				return &v.sizeCache
   359  			case 2:
   360  				return &v.unknownFields
   361  			default:
   362  				return nil
   363  			}
   364  		}
   365  		file_grpc_testing_payloads_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   366  			switch v := v.(*SimpleProtoParams); i {
   367  			case 0:
   368  				return &v.state
   369  			case 1:
   370  				return &v.sizeCache
   371  			case 2:
   372  				return &v.unknownFields
   373  			default:
   374  				return nil
   375  			}
   376  		}
   377  		file_grpc_testing_payloads_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   378  			switch v := v.(*ComplexProtoParams); i {
   379  			case 0:
   380  				return &v.state
   381  			case 1:
   382  				return &v.sizeCache
   383  			case 2:
   384  				return &v.unknownFields
   385  			default:
   386  				return nil
   387  			}
   388  		}
   389  		file_grpc_testing_payloads_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   390  			switch v := v.(*PayloadConfig); i {
   391  			case 0:
   392  				return &v.state
   393  			case 1:
   394  				return &v.sizeCache
   395  			case 2:
   396  				return &v.unknownFields
   397  			default:
   398  				return nil
   399  			}
   400  		}
   401  	}
   402  	file_grpc_testing_payloads_proto_msgTypes[3].OneofWrappers = []interface{}{
   403  		(*PayloadConfig_BytebufParams)(nil),
   404  		(*PayloadConfig_SimpleParams)(nil),
   405  		(*PayloadConfig_ComplexParams)(nil),
   406  	}
   407  	type x struct{}
   408  	out := protoimpl.TypeBuilder{
   409  		File: protoimpl.DescBuilder{
   410  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   411  			RawDescriptor: file_grpc_testing_payloads_proto_rawDesc,
   412  			NumEnums:      0,
   413  			NumMessages:   4,
   414  			NumExtensions: 0,
   415  			NumServices:   0,
   416  		},
   417  		GoTypes:           file_grpc_testing_payloads_proto_goTypes,
   418  		DependencyIndexes: file_grpc_testing_payloads_proto_depIdxs,
   419  		MessageInfos:      file_grpc_testing_payloads_proto_msgTypes,
   420  	}.Build()
   421  	File_grpc_testing_payloads_proto = out.File
   422  	file_grpc_testing_payloads_proto_rawDesc = nil
   423  	file_grpc_testing_payloads_proto_goTypes = nil
   424  	file_grpc_testing_payloads_proto_depIdxs = nil
   425  }
   426  

View as plain text