github.com/google/martian/v3@v3.3.3/h2/testservice/test_service.pb.go (about)

     1  // Copyright 2021 Google Inc. All rights reserved.
     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.26.0
    18  // 	protoc        v3.6.1
    19  // source: test_service.proto
    20  
    21  package testservice
    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 EchoRequest struct {
    38  	state         protoimpl.MessageState
    39  	sizeCache     protoimpl.SizeCache
    40  	unknownFields protoimpl.UnknownFields
    41  
    42  	Payload string `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
    43  }
    44  
    45  func (x *EchoRequest) Reset() {
    46  	*x = EchoRequest{}
    47  	if protoimpl.UnsafeEnabled {
    48  		mi := &file_test_service_proto_msgTypes[0]
    49  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    50  		ms.StoreMessageInfo(mi)
    51  	}
    52  }
    53  
    54  func (x *EchoRequest) String() string {
    55  	return protoimpl.X.MessageStringOf(x)
    56  }
    57  
    58  func (*EchoRequest) ProtoMessage() {}
    59  
    60  func (x *EchoRequest) ProtoReflect() protoreflect.Message {
    61  	mi := &file_test_service_proto_msgTypes[0]
    62  	if protoimpl.UnsafeEnabled && x != nil {
    63  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    64  		if ms.LoadMessageInfo() == nil {
    65  			ms.StoreMessageInfo(mi)
    66  		}
    67  		return ms
    68  	}
    69  	return mi.MessageOf(x)
    70  }
    71  
    72  // Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
    73  func (*EchoRequest) Descriptor() ([]byte, []int) {
    74  	return file_test_service_proto_rawDescGZIP(), []int{0}
    75  }
    76  
    77  func (x *EchoRequest) GetPayload() string {
    78  	if x != nil {
    79  		return x.Payload
    80  	}
    81  	return ""
    82  }
    83  
    84  type EchoResponse struct {
    85  	state         protoimpl.MessageState
    86  	sizeCache     protoimpl.SizeCache
    87  	unknownFields protoimpl.UnknownFields
    88  
    89  	Payload string `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
    90  }
    91  
    92  func (x *EchoResponse) Reset() {
    93  	*x = EchoResponse{}
    94  	if protoimpl.UnsafeEnabled {
    95  		mi := &file_test_service_proto_msgTypes[1]
    96  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    97  		ms.StoreMessageInfo(mi)
    98  	}
    99  }
   100  
   101  func (x *EchoResponse) String() string {
   102  	return protoimpl.X.MessageStringOf(x)
   103  }
   104  
   105  func (*EchoResponse) ProtoMessage() {}
   106  
   107  func (x *EchoResponse) ProtoReflect() protoreflect.Message {
   108  	mi := &file_test_service_proto_msgTypes[1]
   109  	if protoimpl.UnsafeEnabled && x != nil {
   110  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   111  		if ms.LoadMessageInfo() == nil {
   112  			ms.StoreMessageInfo(mi)
   113  		}
   114  		return ms
   115  	}
   116  	return mi.MessageOf(x)
   117  }
   118  
   119  // Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
   120  func (*EchoResponse) Descriptor() ([]byte, []int) {
   121  	return file_test_service_proto_rawDescGZIP(), []int{1}
   122  }
   123  
   124  func (x *EchoResponse) GetPayload() string {
   125  	if x != nil {
   126  		return x.Payload
   127  	}
   128  	return ""
   129  }
   130  
   131  type SumRequest struct {
   132  	state         protoimpl.MessageState
   133  	sizeCache     protoimpl.SizeCache
   134  	unknownFields protoimpl.UnknownFields
   135  
   136  	Values []int32 `protobuf:"varint,1,rep,packed,name=values,proto3" json:"values,omitempty"`
   137  }
   138  
   139  func (x *SumRequest) Reset() {
   140  	*x = SumRequest{}
   141  	if protoimpl.UnsafeEnabled {
   142  		mi := &file_test_service_proto_msgTypes[2]
   143  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   144  		ms.StoreMessageInfo(mi)
   145  	}
   146  }
   147  
   148  func (x *SumRequest) String() string {
   149  	return protoimpl.X.MessageStringOf(x)
   150  }
   151  
   152  func (*SumRequest) ProtoMessage() {}
   153  
   154  func (x *SumRequest) ProtoReflect() protoreflect.Message {
   155  	mi := &file_test_service_proto_msgTypes[2]
   156  	if protoimpl.UnsafeEnabled && x != nil {
   157  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   158  		if ms.LoadMessageInfo() == nil {
   159  			ms.StoreMessageInfo(mi)
   160  		}
   161  		return ms
   162  	}
   163  	return mi.MessageOf(x)
   164  }
   165  
   166  // Deprecated: Use SumRequest.ProtoReflect.Descriptor instead.
   167  func (*SumRequest) Descriptor() ([]byte, []int) {
   168  	return file_test_service_proto_rawDescGZIP(), []int{2}
   169  }
   170  
   171  func (x *SumRequest) GetValues() []int32 {
   172  	if x != nil {
   173  		return x.Values
   174  	}
   175  	return nil
   176  }
   177  
   178  type SumResponse struct {
   179  	state         protoimpl.MessageState
   180  	sizeCache     protoimpl.SizeCache
   181  	unknownFields protoimpl.UnknownFields
   182  
   183  	Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
   184  }
   185  
   186  func (x *SumResponse) Reset() {
   187  	*x = SumResponse{}
   188  	if protoimpl.UnsafeEnabled {
   189  		mi := &file_test_service_proto_msgTypes[3]
   190  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   191  		ms.StoreMessageInfo(mi)
   192  	}
   193  }
   194  
   195  func (x *SumResponse) String() string {
   196  	return protoimpl.X.MessageStringOf(x)
   197  }
   198  
   199  func (*SumResponse) ProtoMessage() {}
   200  
   201  func (x *SumResponse) ProtoReflect() protoreflect.Message {
   202  	mi := &file_test_service_proto_msgTypes[3]
   203  	if protoimpl.UnsafeEnabled && x != nil {
   204  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   205  		if ms.LoadMessageInfo() == nil {
   206  			ms.StoreMessageInfo(mi)
   207  		}
   208  		return ms
   209  	}
   210  	return mi.MessageOf(x)
   211  }
   212  
   213  // Deprecated: Use SumResponse.ProtoReflect.Descriptor instead.
   214  func (*SumResponse) Descriptor() ([]byte, []int) {
   215  	return file_test_service_proto_rawDescGZIP(), []int{3}
   216  }
   217  
   218  func (x *SumResponse) GetValue() int32 {
   219  	if x != nil {
   220  		return x.Value
   221  	}
   222  	return 0
   223  }
   224  
   225  var File_test_service_proto protoreflect.FileDescriptor
   226  
   227  var file_test_service_proto_rawDesc = []byte{
   228  	0x0a, 0x12, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70,
   229  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
   230  	0x63, 0x65, 0x22, 0x27, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   231  	0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01,
   232  	0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x28, 0x0a, 0x0c, 0x45,
   233  	0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70,
   234  	0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61,
   235  	0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x24, 0x0a, 0x0a, 0x53, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75,
   236  	0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20,
   237  	0x03, 0x28, 0x05, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x23, 0x0a, 0x0b, 0x53,
   238  	0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
   239  	0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
   240  	0x32, 0xd7, 0x01, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
   241  	0x12, 0x3f, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x5f,
   242  	0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75,
   243  	0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
   244  	0x63, 0x65, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
   245  	0x00, 0x12, 0x3c, 0x0a, 0x03, 0x53, 0x75, 0x6d, 0x12, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x5f,
   246  	0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65,
   247  	0x73, 0x74, 0x1a, 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
   248  	0x65, 0x2e, 0x53, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
   249  	0x49, 0x0a, 0x0a, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x19, 0x2e,
   250  	0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x63, 0x68,
   251  	0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x5f,
   252  	0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70,
   253  	0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69,
   254  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   255  	0x6d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6e, 0x2f, 0x68, 0x32, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x73,
   256  	0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   257  }
   258  
   259  var (
   260  	file_test_service_proto_rawDescOnce sync.Once
   261  	file_test_service_proto_rawDescData = file_test_service_proto_rawDesc
   262  )
   263  
   264  func file_test_service_proto_rawDescGZIP() []byte {
   265  	file_test_service_proto_rawDescOnce.Do(func() {
   266  		file_test_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_service_proto_rawDescData)
   267  	})
   268  	return file_test_service_proto_rawDescData
   269  }
   270  
   271  var file_test_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   272  var file_test_service_proto_goTypes = []interface{}{
   273  	(*EchoRequest)(nil),  // 0: test_service.EchoRequest
   274  	(*EchoResponse)(nil), // 1: test_service.EchoResponse
   275  	(*SumRequest)(nil),   // 2: test_service.SumRequest
   276  	(*SumResponse)(nil),  // 3: test_service.SumResponse
   277  }
   278  var file_test_service_proto_depIdxs = []int32{
   279  	0, // 0: test_service.TestService.Echo:input_type -> test_service.EchoRequest
   280  	2, // 1: test_service.TestService.Sum:input_type -> test_service.SumRequest
   281  	0, // 2: test_service.TestService.DoubleEcho:input_type -> test_service.EchoRequest
   282  	1, // 3: test_service.TestService.Echo:output_type -> test_service.EchoResponse
   283  	3, // 4: test_service.TestService.Sum:output_type -> test_service.SumResponse
   284  	1, // 5: test_service.TestService.DoubleEcho:output_type -> test_service.EchoResponse
   285  	3, // [3:6] is the sub-list for method output_type
   286  	0, // [0:3] is the sub-list for method input_type
   287  	0, // [0:0] is the sub-list for extension type_name
   288  	0, // [0:0] is the sub-list for extension extendee
   289  	0, // [0:0] is the sub-list for field type_name
   290  }
   291  
   292  func init() { file_test_service_proto_init() }
   293  func file_test_service_proto_init() {
   294  	if File_test_service_proto != nil {
   295  		return
   296  	}
   297  	if !protoimpl.UnsafeEnabled {
   298  		file_test_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   299  			switch v := v.(*EchoRequest); i {
   300  			case 0:
   301  				return &v.state
   302  			case 1:
   303  				return &v.sizeCache
   304  			case 2:
   305  				return &v.unknownFields
   306  			default:
   307  				return nil
   308  			}
   309  		}
   310  		file_test_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   311  			switch v := v.(*EchoResponse); i {
   312  			case 0:
   313  				return &v.state
   314  			case 1:
   315  				return &v.sizeCache
   316  			case 2:
   317  				return &v.unknownFields
   318  			default:
   319  				return nil
   320  			}
   321  		}
   322  		file_test_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   323  			switch v := v.(*SumRequest); i {
   324  			case 0:
   325  				return &v.state
   326  			case 1:
   327  				return &v.sizeCache
   328  			case 2:
   329  				return &v.unknownFields
   330  			default:
   331  				return nil
   332  			}
   333  		}
   334  		file_test_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   335  			switch v := v.(*SumResponse); i {
   336  			case 0:
   337  				return &v.state
   338  			case 1:
   339  				return &v.sizeCache
   340  			case 2:
   341  				return &v.unknownFields
   342  			default:
   343  				return nil
   344  			}
   345  		}
   346  	}
   347  	type x struct{}
   348  	out := protoimpl.TypeBuilder{
   349  		File: protoimpl.DescBuilder{
   350  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   351  			RawDescriptor: file_test_service_proto_rawDesc,
   352  			NumEnums:      0,
   353  			NumMessages:   4,
   354  			NumExtensions: 0,
   355  			NumServices:   1,
   356  		},
   357  		GoTypes:           file_test_service_proto_goTypes,
   358  		DependencyIndexes: file_test_service_proto_depIdxs,
   359  		MessageInfos:      file_test_service_proto_msgTypes,
   360  	}.Build()
   361  	File_test_service_proto = out.File
   362  	file_test_service_proto_rawDesc = nil
   363  	file_test_service_proto_goTypes = nil
   364  	file_test_service_proto_depIdxs = nil
   365  }