go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/grpc/discovery/internal/testservices/helloworld.pb.go (about)

     1  // Copyright 2016 The LUCI Authors. All rights reserved.
     2  // Use of this source code is governed under the Apache License, Version 2.0
     3  // that can be found in the LICENSE file.
     4  
     5  // Code generated by protoc-gen-go. DO NOT EDIT.
     6  // versions:
     7  // 	protoc-gen-go v1.31.0
     8  // 	protoc        v3.21.7
     9  // source: go.chromium.org/luci/grpc/discovery/internal/testservices/helloworld.proto
    10  
    11  package testservices
    12  
    13  import prpc "go.chromium.org/luci/grpc/prpc"
    14  
    15  import (
    16  	context "context"
    17  	grpc "google.golang.org/grpc"
    18  	codes "google.golang.org/grpc/codes"
    19  	status "google.golang.org/grpc/status"
    20  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    21  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    22  	reflect "reflect"
    23  	sync "sync"
    24  )
    25  
    26  const (
    27  	// Verify that this generated code is sufficiently up-to-date.
    28  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    29  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    30  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    31  )
    32  
    33  // The request message containing the user's name.
    34  type HelloRequest struct {
    35  	state         protoimpl.MessageState
    36  	sizeCache     protoimpl.SizeCache
    37  	unknownFields protoimpl.UnknownFields
    38  
    39  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    40  }
    41  
    42  func (x *HelloRequest) Reset() {
    43  	*x = HelloRequest{}
    44  	if protoimpl.UnsafeEnabled {
    45  		mi := &file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes[0]
    46  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    47  		ms.StoreMessageInfo(mi)
    48  	}
    49  }
    50  
    51  func (x *HelloRequest) String() string {
    52  	return protoimpl.X.MessageStringOf(x)
    53  }
    54  
    55  func (*HelloRequest) ProtoMessage() {}
    56  
    57  func (x *HelloRequest) ProtoReflect() protoreflect.Message {
    58  	mi := &file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes[0]
    59  	if protoimpl.UnsafeEnabled && x != nil {
    60  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    61  		if ms.LoadMessageInfo() == nil {
    62  			ms.StoreMessageInfo(mi)
    63  		}
    64  		return ms
    65  	}
    66  	return mi.MessageOf(x)
    67  }
    68  
    69  // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
    70  func (*HelloRequest) Descriptor() ([]byte, []int) {
    71  	return file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDescGZIP(), []int{0}
    72  }
    73  
    74  func (x *HelloRequest) GetName() string {
    75  	if x != nil {
    76  		return x.Name
    77  	}
    78  	return ""
    79  }
    80  
    81  // The response message containing the greetings
    82  type HelloReply struct {
    83  	state         protoimpl.MessageState
    84  	sizeCache     protoimpl.SizeCache
    85  	unknownFields protoimpl.UnknownFields
    86  
    87  	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    88  }
    89  
    90  func (x *HelloReply) Reset() {
    91  	*x = HelloReply{}
    92  	if protoimpl.UnsafeEnabled {
    93  		mi := &file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes[1]
    94  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    95  		ms.StoreMessageInfo(mi)
    96  	}
    97  }
    98  
    99  func (x *HelloReply) String() string {
   100  	return protoimpl.X.MessageStringOf(x)
   101  }
   102  
   103  func (*HelloReply) ProtoMessage() {}
   104  
   105  func (x *HelloReply) ProtoReflect() protoreflect.Message {
   106  	mi := &file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes[1]
   107  	if protoimpl.UnsafeEnabled && x != nil {
   108  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   109  		if ms.LoadMessageInfo() == nil {
   110  			ms.StoreMessageInfo(mi)
   111  		}
   112  		return ms
   113  	}
   114  	return mi.MessageOf(x)
   115  }
   116  
   117  // Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
   118  func (*HelloReply) Descriptor() ([]byte, []int) {
   119  	return file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDescGZIP(), []int{1}
   120  }
   121  
   122  func (x *HelloReply) GetMessage() string {
   123  	if x != nil {
   124  		return x.Message
   125  	}
   126  	return ""
   127  }
   128  
   129  type MultiplyRequest struct {
   130  	state         protoimpl.MessageState
   131  	sizeCache     protoimpl.SizeCache
   132  	unknownFields protoimpl.UnknownFields
   133  
   134  	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
   135  	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
   136  }
   137  
   138  func (x *MultiplyRequest) Reset() {
   139  	*x = MultiplyRequest{}
   140  	if protoimpl.UnsafeEnabled {
   141  		mi := &file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes[2]
   142  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   143  		ms.StoreMessageInfo(mi)
   144  	}
   145  }
   146  
   147  func (x *MultiplyRequest) String() string {
   148  	return protoimpl.X.MessageStringOf(x)
   149  }
   150  
   151  func (*MultiplyRequest) ProtoMessage() {}
   152  
   153  func (x *MultiplyRequest) ProtoReflect() protoreflect.Message {
   154  	mi := &file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes[2]
   155  	if protoimpl.UnsafeEnabled && x != nil {
   156  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   157  		if ms.LoadMessageInfo() == nil {
   158  			ms.StoreMessageInfo(mi)
   159  		}
   160  		return ms
   161  	}
   162  	return mi.MessageOf(x)
   163  }
   164  
   165  // Deprecated: Use MultiplyRequest.ProtoReflect.Descriptor instead.
   166  func (*MultiplyRequest) Descriptor() ([]byte, []int) {
   167  	return file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDescGZIP(), []int{2}
   168  }
   169  
   170  func (x *MultiplyRequest) GetX() int32 {
   171  	if x != nil {
   172  		return x.X
   173  	}
   174  	return 0
   175  }
   176  
   177  func (x *MultiplyRequest) GetY() int32 {
   178  	if x != nil {
   179  		return x.Y
   180  	}
   181  	return 0
   182  }
   183  
   184  type MultiplyResponse struct {
   185  	state         protoimpl.MessageState
   186  	sizeCache     protoimpl.SizeCache
   187  	unknownFields protoimpl.UnknownFields
   188  
   189  	Z int32 `protobuf:"varint,1,opt,name=z,proto3" json:"z,omitempty"`
   190  }
   191  
   192  func (x *MultiplyResponse) Reset() {
   193  	*x = MultiplyResponse{}
   194  	if protoimpl.UnsafeEnabled {
   195  		mi := &file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes[3]
   196  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   197  		ms.StoreMessageInfo(mi)
   198  	}
   199  }
   200  
   201  func (x *MultiplyResponse) String() string {
   202  	return protoimpl.X.MessageStringOf(x)
   203  }
   204  
   205  func (*MultiplyResponse) ProtoMessage() {}
   206  
   207  func (x *MultiplyResponse) ProtoReflect() protoreflect.Message {
   208  	mi := &file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes[3]
   209  	if protoimpl.UnsafeEnabled && x != nil {
   210  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   211  		if ms.LoadMessageInfo() == nil {
   212  			ms.StoreMessageInfo(mi)
   213  		}
   214  		return ms
   215  	}
   216  	return mi.MessageOf(x)
   217  }
   218  
   219  // Deprecated: Use MultiplyResponse.ProtoReflect.Descriptor instead.
   220  func (*MultiplyResponse) Descriptor() ([]byte, []int) {
   221  	return file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDescGZIP(), []int{3}
   222  }
   223  
   224  func (x *MultiplyResponse) GetZ() int32 {
   225  	if x != nil {
   226  		return x.Z
   227  	}
   228  	return 0
   229  }
   230  
   231  var File_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto protoreflect.FileDescriptor
   232  
   233  var file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDesc = []byte{
   234  	0x0a, 0x4a, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   235  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x64, 0x69, 0x73, 0x63,
   236  	0x6f, 0x76, 0x65, 0x72, 0x79, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74,
   237  	0x65, 0x73, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x68, 0x65, 0x6c, 0x6c,
   238  	0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x74, 0x65,
   239  	0x73, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65,
   240  	0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
   241  	0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x26,
   242  	0x0a, 0x0a, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07,
   243  	0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
   244  	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x2d, 0x0a, 0x0f, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
   245  	0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01,
   246  	0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01,
   247  	0x28, 0x05, 0x52, 0x01, 0x79, 0x22, 0x20, 0x0a, 0x10, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c,
   248  	0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x7a, 0x18, 0x01,
   249  	0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x7a, 0x32, 0x4d, 0x0a, 0x07, 0x47, 0x72, 0x65, 0x65, 0x74,
   250  	0x65, 0x72, 0x12, 0x42, 0x0a, 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x1a,
   251  	0x2e, 0x74, 0x65, 0x73, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x48, 0x65,
   252  	0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73,
   253  	0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52,
   254  	0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x32, 0x53, 0x0a, 0x04, 0x43, 0x61, 0x6c, 0x63, 0x12, 0x4b,
   255  	0x0a, 0x08, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x79, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x73,
   256  	0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
   257  	0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74,
   258  	0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c,
   259  	0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3b, 0x5a, 0x39, 0x67,
   260  	0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c,
   261  	0x75, 0x63, 0x69, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65,
   262  	0x72, 0x79, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74,
   263  	0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   264  }
   265  
   266  var (
   267  	file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDescOnce sync.Once
   268  	file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDescData = file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDesc
   269  )
   270  
   271  func file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDescGZIP() []byte {
   272  	file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDescOnce.Do(func() {
   273  		file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDescData)
   274  	})
   275  	return file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDescData
   276  }
   277  
   278  var file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   279  var file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_goTypes = []interface{}{
   280  	(*HelloRequest)(nil),     // 0: testservices.HelloRequest
   281  	(*HelloReply)(nil),       // 1: testservices.HelloReply
   282  	(*MultiplyRequest)(nil),  // 2: testservices.MultiplyRequest
   283  	(*MultiplyResponse)(nil), // 3: testservices.MultiplyResponse
   284  }
   285  var file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_depIdxs = []int32{
   286  	0, // 0: testservices.Greeter.SayHello:input_type -> testservices.HelloRequest
   287  	2, // 1: testservices.Calc.Multiply:input_type -> testservices.MultiplyRequest
   288  	1, // 2: testservices.Greeter.SayHello:output_type -> testservices.HelloReply
   289  	3, // 3: testservices.Calc.Multiply:output_type -> testservices.MultiplyResponse
   290  	2, // [2:4] is the sub-list for method output_type
   291  	0, // [0:2] is the sub-list for method input_type
   292  	0, // [0:0] is the sub-list for extension type_name
   293  	0, // [0:0] is the sub-list for extension extendee
   294  	0, // [0:0] is the sub-list for field type_name
   295  }
   296  
   297  func init() { file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_init() }
   298  func file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_init() {
   299  	if File_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto != nil {
   300  		return
   301  	}
   302  	if !protoimpl.UnsafeEnabled {
   303  		file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   304  			switch v := v.(*HelloRequest); i {
   305  			case 0:
   306  				return &v.state
   307  			case 1:
   308  				return &v.sizeCache
   309  			case 2:
   310  				return &v.unknownFields
   311  			default:
   312  				return nil
   313  			}
   314  		}
   315  		file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   316  			switch v := v.(*HelloReply); i {
   317  			case 0:
   318  				return &v.state
   319  			case 1:
   320  				return &v.sizeCache
   321  			case 2:
   322  				return &v.unknownFields
   323  			default:
   324  				return nil
   325  			}
   326  		}
   327  		file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   328  			switch v := v.(*MultiplyRequest); i {
   329  			case 0:
   330  				return &v.state
   331  			case 1:
   332  				return &v.sizeCache
   333  			case 2:
   334  				return &v.unknownFields
   335  			default:
   336  				return nil
   337  			}
   338  		}
   339  		file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   340  			switch v := v.(*MultiplyResponse); i {
   341  			case 0:
   342  				return &v.state
   343  			case 1:
   344  				return &v.sizeCache
   345  			case 2:
   346  				return &v.unknownFields
   347  			default:
   348  				return nil
   349  			}
   350  		}
   351  	}
   352  	type x struct{}
   353  	out := protoimpl.TypeBuilder{
   354  		File: protoimpl.DescBuilder{
   355  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   356  			RawDescriptor: file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDesc,
   357  			NumEnums:      0,
   358  			NumMessages:   4,
   359  			NumExtensions: 0,
   360  			NumServices:   2,
   361  		},
   362  		GoTypes:           file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_goTypes,
   363  		DependencyIndexes: file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_depIdxs,
   364  		MessageInfos:      file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_msgTypes,
   365  	}.Build()
   366  	File_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto = out.File
   367  	file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_rawDesc = nil
   368  	file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_goTypes = nil
   369  	file_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto_depIdxs = nil
   370  }
   371  
   372  // Reference imports to suppress errors if they are not otherwise used.
   373  var _ context.Context
   374  var _ grpc.ClientConnInterface
   375  
   376  // This is a compile-time assertion to ensure that this generated file
   377  // is compatible with the grpc package it is being compiled against.
   378  const _ = grpc.SupportPackageIsVersion6
   379  
   380  // GreeterClient is the client API for Greeter service.
   381  //
   382  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   383  type GreeterClient interface {
   384  	// Sends a greeting
   385  	SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
   386  }
   387  type greeterPRPCClient struct {
   388  	client *prpc.Client
   389  }
   390  
   391  func NewGreeterPRPCClient(client *prpc.Client) GreeterClient {
   392  	return &greeterPRPCClient{client}
   393  }
   394  
   395  func (c *greeterPRPCClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) {
   396  	out := new(HelloReply)
   397  	err := c.client.Call(ctx, "testservices.Greeter", "SayHello", in, out, opts...)
   398  	if err != nil {
   399  		return nil, err
   400  	}
   401  	return out, nil
   402  }
   403  
   404  type greeterClient struct {
   405  	cc grpc.ClientConnInterface
   406  }
   407  
   408  func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient {
   409  	return &greeterClient{cc}
   410  }
   411  
   412  func (c *greeterClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) {
   413  	out := new(HelloReply)
   414  	err := c.cc.Invoke(ctx, "/testservices.Greeter/SayHello", in, out, opts...)
   415  	if err != nil {
   416  		return nil, err
   417  	}
   418  	return out, nil
   419  }
   420  
   421  // GreeterServer is the server API for Greeter service.
   422  type GreeterServer interface {
   423  	// Sends a greeting
   424  	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
   425  }
   426  
   427  // UnimplementedGreeterServer can be embedded to have forward compatible implementations.
   428  type UnimplementedGreeterServer struct {
   429  }
   430  
   431  func (*UnimplementedGreeterServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error) {
   432  	return nil, status.Errorf(codes.Unimplemented, "method SayHello not implemented")
   433  }
   434  
   435  func RegisterGreeterServer(s prpc.Registrar, srv GreeterServer) {
   436  	s.RegisterService(&_Greeter_serviceDesc, srv)
   437  }
   438  
   439  func _Greeter_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   440  	in := new(HelloRequest)
   441  	if err := dec(in); err != nil {
   442  		return nil, err
   443  	}
   444  	if interceptor == nil {
   445  		return srv.(GreeterServer).SayHello(ctx, in)
   446  	}
   447  	info := &grpc.UnaryServerInfo{
   448  		Server:     srv,
   449  		FullMethod: "/testservices.Greeter/SayHello",
   450  	}
   451  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   452  		return srv.(GreeterServer).SayHello(ctx, req.(*HelloRequest))
   453  	}
   454  	return interceptor(ctx, in, info, handler)
   455  }
   456  
   457  var _Greeter_serviceDesc = grpc.ServiceDesc{
   458  	ServiceName: "testservices.Greeter",
   459  	HandlerType: (*GreeterServer)(nil),
   460  	Methods: []grpc.MethodDesc{
   461  		{
   462  			MethodName: "SayHello",
   463  			Handler:    _Greeter_SayHello_Handler,
   464  		},
   465  	},
   466  	Streams:  []grpc.StreamDesc{},
   467  	Metadata: "go.chromium.org/luci/grpc/discovery/internal/testservices/helloworld.proto",
   468  }
   469  
   470  // CalcClient is the client API for Calc service.
   471  //
   472  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   473  type CalcClient interface {
   474  	Multiply(ctx context.Context, in *MultiplyRequest, opts ...grpc.CallOption) (*MultiplyResponse, error)
   475  }
   476  type calcPRPCClient struct {
   477  	client *prpc.Client
   478  }
   479  
   480  func NewCalcPRPCClient(client *prpc.Client) CalcClient {
   481  	return &calcPRPCClient{client}
   482  }
   483  
   484  func (c *calcPRPCClient) Multiply(ctx context.Context, in *MultiplyRequest, opts ...grpc.CallOption) (*MultiplyResponse, error) {
   485  	out := new(MultiplyResponse)
   486  	err := c.client.Call(ctx, "testservices.Calc", "Multiply", in, out, opts...)
   487  	if err != nil {
   488  		return nil, err
   489  	}
   490  	return out, nil
   491  }
   492  
   493  type calcClient struct {
   494  	cc grpc.ClientConnInterface
   495  }
   496  
   497  func NewCalcClient(cc grpc.ClientConnInterface) CalcClient {
   498  	return &calcClient{cc}
   499  }
   500  
   501  func (c *calcClient) Multiply(ctx context.Context, in *MultiplyRequest, opts ...grpc.CallOption) (*MultiplyResponse, error) {
   502  	out := new(MultiplyResponse)
   503  	err := c.cc.Invoke(ctx, "/testservices.Calc/Multiply", in, out, opts...)
   504  	if err != nil {
   505  		return nil, err
   506  	}
   507  	return out, nil
   508  }
   509  
   510  // CalcServer is the server API for Calc service.
   511  type CalcServer interface {
   512  	Multiply(context.Context, *MultiplyRequest) (*MultiplyResponse, error)
   513  }
   514  
   515  // UnimplementedCalcServer can be embedded to have forward compatible implementations.
   516  type UnimplementedCalcServer struct {
   517  }
   518  
   519  func (*UnimplementedCalcServer) Multiply(context.Context, *MultiplyRequest) (*MultiplyResponse, error) {
   520  	return nil, status.Errorf(codes.Unimplemented, "method Multiply not implemented")
   521  }
   522  
   523  func RegisterCalcServer(s prpc.Registrar, srv CalcServer) {
   524  	s.RegisterService(&_Calc_serviceDesc, srv)
   525  }
   526  
   527  func _Calc_Multiply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   528  	in := new(MultiplyRequest)
   529  	if err := dec(in); err != nil {
   530  		return nil, err
   531  	}
   532  	if interceptor == nil {
   533  		return srv.(CalcServer).Multiply(ctx, in)
   534  	}
   535  	info := &grpc.UnaryServerInfo{
   536  		Server:     srv,
   537  		FullMethod: "/testservices.Calc/Multiply",
   538  	}
   539  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   540  		return srv.(CalcServer).Multiply(ctx, req.(*MultiplyRequest))
   541  	}
   542  	return interceptor(ctx, in, info, handler)
   543  }
   544  
   545  var _Calc_serviceDesc = grpc.ServiceDesc{
   546  	ServiceName: "testservices.Calc",
   547  	HandlerType: (*CalcServer)(nil),
   548  	Methods: []grpc.MethodDesc{
   549  		{
   550  			MethodName: "Multiply",
   551  			Handler:    _Calc_Multiply_Handler,
   552  		},
   553  	},
   554  	Streams:  []grpc.StreamDesc{},
   555  	Metadata: "go.chromium.org/luci/grpc/discovery/internal/testservices/helloworld.proto",
   556  }