github.com/cdmixer/woolloomooloo@v0.1.0/grpc-go/interop/grpc_testing/payloads.pb.go (about)

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