google.golang.org/grpc@v1.62.1/interop/grpc_testing/test_grpc.pb.go (about)

     1  // Copyright 2015-2016 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  // An integration test service that covers all the method signature permutations
    16  // of unary/streaming requests/responses.
    17  
    18  // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
    19  // versions:
    20  // - protoc-gen-go-grpc v1.3.0
    21  // - protoc             v4.25.2
    22  // source: grpc/testing/test.proto
    23  
    24  package grpc_testing
    25  
    26  import (
    27  	context "context"
    28  	grpc "google.golang.org/grpc"
    29  	codes "google.golang.org/grpc/codes"
    30  	status "google.golang.org/grpc/status"
    31  )
    32  
    33  // This is a compile-time assertion to ensure that this generated file
    34  // is compatible with the grpc package it is being compiled against.
    35  // Requires gRPC-Go v1.32.0 or later.
    36  const _ = grpc.SupportPackageIsVersion7
    37  
    38  const (
    39  	TestService_EmptyCall_FullMethodName           = "/grpc.testing.TestService/EmptyCall"
    40  	TestService_UnaryCall_FullMethodName           = "/grpc.testing.TestService/UnaryCall"
    41  	TestService_CacheableUnaryCall_FullMethodName  = "/grpc.testing.TestService/CacheableUnaryCall"
    42  	TestService_StreamingOutputCall_FullMethodName = "/grpc.testing.TestService/StreamingOutputCall"
    43  	TestService_StreamingInputCall_FullMethodName  = "/grpc.testing.TestService/StreamingInputCall"
    44  	TestService_FullDuplexCall_FullMethodName      = "/grpc.testing.TestService/FullDuplexCall"
    45  	TestService_HalfDuplexCall_FullMethodName      = "/grpc.testing.TestService/HalfDuplexCall"
    46  	TestService_UnimplementedCall_FullMethodName   = "/grpc.testing.TestService/UnimplementedCall"
    47  )
    48  
    49  // TestServiceClient is the client API for TestService service.
    50  //
    51  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
    52  type TestServiceClient interface {
    53  	// One empty request followed by one empty response.
    54  	EmptyCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
    55  	// One request followed by one response.
    56  	UnaryCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error)
    57  	// One request followed by one response. Response has cache control
    58  	// headers set such that a caching HTTP proxy (such as GFE) can
    59  	// satisfy subsequent requests.
    60  	CacheableUnaryCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error)
    61  	// One request followed by a sequence of responses (streamed download).
    62  	// The server returns the payload with client desired type and sizes.
    63  	StreamingOutputCall(ctx context.Context, in *StreamingOutputCallRequest, opts ...grpc.CallOption) (TestService_StreamingOutputCallClient, error)
    64  	// A sequence of requests followed by one response (streamed upload).
    65  	// The server returns the aggregated size of client payload as the result.
    66  	StreamingInputCall(ctx context.Context, opts ...grpc.CallOption) (TestService_StreamingInputCallClient, error)
    67  	// A sequence of requests with each request served by the server immediately.
    68  	// As one request could lead to multiple responses, this interface
    69  	// demonstrates the idea of full duplexing.
    70  	FullDuplexCall(ctx context.Context, opts ...grpc.CallOption) (TestService_FullDuplexCallClient, error)
    71  	// A sequence of requests followed by a sequence of responses.
    72  	// The server buffers all the client requests and then serves them in order. A
    73  	// stream of responses are returned to the client when the server starts with
    74  	// first request.
    75  	HalfDuplexCall(ctx context.Context, opts ...grpc.CallOption) (TestService_HalfDuplexCallClient, error)
    76  	// The test server will not implement this method. It will be used
    77  	// to test the behavior when clients call unimplemented methods.
    78  	UnimplementedCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
    79  }
    80  
    81  type testServiceClient struct {
    82  	cc grpc.ClientConnInterface
    83  }
    84  
    85  func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient {
    86  	return &testServiceClient{cc}
    87  }
    88  
    89  func (c *testServiceClient) EmptyCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) {
    90  	out := new(Empty)
    91  	err := c.cc.Invoke(ctx, TestService_EmptyCall_FullMethodName, in, out, opts...)
    92  	if err != nil {
    93  		return nil, err
    94  	}
    95  	return out, nil
    96  }
    97  
    98  func (c *testServiceClient) UnaryCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error) {
    99  	out := new(SimpleResponse)
   100  	err := c.cc.Invoke(ctx, TestService_UnaryCall_FullMethodName, in, out, opts...)
   101  	if err != nil {
   102  		return nil, err
   103  	}
   104  	return out, nil
   105  }
   106  
   107  func (c *testServiceClient) CacheableUnaryCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error) {
   108  	out := new(SimpleResponse)
   109  	err := c.cc.Invoke(ctx, TestService_CacheableUnaryCall_FullMethodName, in, out, opts...)
   110  	if err != nil {
   111  		return nil, err
   112  	}
   113  	return out, nil
   114  }
   115  
   116  func (c *testServiceClient) StreamingOutputCall(ctx context.Context, in *StreamingOutputCallRequest, opts ...grpc.CallOption) (TestService_StreamingOutputCallClient, error) {
   117  	stream, err := c.cc.NewStream(ctx, &TestService_ServiceDesc.Streams[0], TestService_StreamingOutputCall_FullMethodName, opts...)
   118  	if err != nil {
   119  		return nil, err
   120  	}
   121  	x := &testServiceStreamingOutputCallClient{stream}
   122  	if err := x.ClientStream.SendMsg(in); err != nil {
   123  		return nil, err
   124  	}
   125  	if err := x.ClientStream.CloseSend(); err != nil {
   126  		return nil, err
   127  	}
   128  	return x, nil
   129  }
   130  
   131  type TestService_StreamingOutputCallClient interface {
   132  	Recv() (*StreamingOutputCallResponse, error)
   133  	grpc.ClientStream
   134  }
   135  
   136  type testServiceStreamingOutputCallClient struct {
   137  	grpc.ClientStream
   138  }
   139  
   140  func (x *testServiceStreamingOutputCallClient) Recv() (*StreamingOutputCallResponse, error) {
   141  	m := new(StreamingOutputCallResponse)
   142  	if err := x.ClientStream.RecvMsg(m); err != nil {
   143  		return nil, err
   144  	}
   145  	return m, nil
   146  }
   147  
   148  func (c *testServiceClient) StreamingInputCall(ctx context.Context, opts ...grpc.CallOption) (TestService_StreamingInputCallClient, error) {
   149  	stream, err := c.cc.NewStream(ctx, &TestService_ServiceDesc.Streams[1], TestService_StreamingInputCall_FullMethodName, opts...)
   150  	if err != nil {
   151  		return nil, err
   152  	}
   153  	x := &testServiceStreamingInputCallClient{stream}
   154  	return x, nil
   155  }
   156  
   157  type TestService_StreamingInputCallClient interface {
   158  	Send(*StreamingInputCallRequest) error
   159  	CloseAndRecv() (*StreamingInputCallResponse, error)
   160  	grpc.ClientStream
   161  }
   162  
   163  type testServiceStreamingInputCallClient struct {
   164  	grpc.ClientStream
   165  }
   166  
   167  func (x *testServiceStreamingInputCallClient) Send(m *StreamingInputCallRequest) error {
   168  	return x.ClientStream.SendMsg(m)
   169  }
   170  
   171  func (x *testServiceStreamingInputCallClient) CloseAndRecv() (*StreamingInputCallResponse, error) {
   172  	if err := x.ClientStream.CloseSend(); err != nil {
   173  		return nil, err
   174  	}
   175  	m := new(StreamingInputCallResponse)
   176  	if err := x.ClientStream.RecvMsg(m); err != nil {
   177  		return nil, err
   178  	}
   179  	return m, nil
   180  }
   181  
   182  func (c *testServiceClient) FullDuplexCall(ctx context.Context, opts ...grpc.CallOption) (TestService_FullDuplexCallClient, error) {
   183  	stream, err := c.cc.NewStream(ctx, &TestService_ServiceDesc.Streams[2], TestService_FullDuplexCall_FullMethodName, opts...)
   184  	if err != nil {
   185  		return nil, err
   186  	}
   187  	x := &testServiceFullDuplexCallClient{stream}
   188  	return x, nil
   189  }
   190  
   191  type TestService_FullDuplexCallClient interface {
   192  	Send(*StreamingOutputCallRequest) error
   193  	Recv() (*StreamingOutputCallResponse, error)
   194  	grpc.ClientStream
   195  }
   196  
   197  type testServiceFullDuplexCallClient struct {
   198  	grpc.ClientStream
   199  }
   200  
   201  func (x *testServiceFullDuplexCallClient) Send(m *StreamingOutputCallRequest) error {
   202  	return x.ClientStream.SendMsg(m)
   203  }
   204  
   205  func (x *testServiceFullDuplexCallClient) Recv() (*StreamingOutputCallResponse, error) {
   206  	m := new(StreamingOutputCallResponse)
   207  	if err := x.ClientStream.RecvMsg(m); err != nil {
   208  		return nil, err
   209  	}
   210  	return m, nil
   211  }
   212  
   213  func (c *testServiceClient) HalfDuplexCall(ctx context.Context, opts ...grpc.CallOption) (TestService_HalfDuplexCallClient, error) {
   214  	stream, err := c.cc.NewStream(ctx, &TestService_ServiceDesc.Streams[3], TestService_HalfDuplexCall_FullMethodName, opts...)
   215  	if err != nil {
   216  		return nil, err
   217  	}
   218  	x := &testServiceHalfDuplexCallClient{stream}
   219  	return x, nil
   220  }
   221  
   222  type TestService_HalfDuplexCallClient interface {
   223  	Send(*StreamingOutputCallRequest) error
   224  	Recv() (*StreamingOutputCallResponse, error)
   225  	grpc.ClientStream
   226  }
   227  
   228  type testServiceHalfDuplexCallClient struct {
   229  	grpc.ClientStream
   230  }
   231  
   232  func (x *testServiceHalfDuplexCallClient) Send(m *StreamingOutputCallRequest) error {
   233  	return x.ClientStream.SendMsg(m)
   234  }
   235  
   236  func (x *testServiceHalfDuplexCallClient) Recv() (*StreamingOutputCallResponse, error) {
   237  	m := new(StreamingOutputCallResponse)
   238  	if err := x.ClientStream.RecvMsg(m); err != nil {
   239  		return nil, err
   240  	}
   241  	return m, nil
   242  }
   243  
   244  func (c *testServiceClient) UnimplementedCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) {
   245  	out := new(Empty)
   246  	err := c.cc.Invoke(ctx, TestService_UnimplementedCall_FullMethodName, in, out, opts...)
   247  	if err != nil {
   248  		return nil, err
   249  	}
   250  	return out, nil
   251  }
   252  
   253  // TestServiceServer is the server API for TestService service.
   254  // All implementations must embed UnimplementedTestServiceServer
   255  // for forward compatibility
   256  type TestServiceServer interface {
   257  	// One empty request followed by one empty response.
   258  	EmptyCall(context.Context, *Empty) (*Empty, error)
   259  	// One request followed by one response.
   260  	UnaryCall(context.Context, *SimpleRequest) (*SimpleResponse, error)
   261  	// One request followed by one response. Response has cache control
   262  	// headers set such that a caching HTTP proxy (such as GFE) can
   263  	// satisfy subsequent requests.
   264  	CacheableUnaryCall(context.Context, *SimpleRequest) (*SimpleResponse, error)
   265  	// One request followed by a sequence of responses (streamed download).
   266  	// The server returns the payload with client desired type and sizes.
   267  	StreamingOutputCall(*StreamingOutputCallRequest, TestService_StreamingOutputCallServer) error
   268  	// A sequence of requests followed by one response (streamed upload).
   269  	// The server returns the aggregated size of client payload as the result.
   270  	StreamingInputCall(TestService_StreamingInputCallServer) error
   271  	// A sequence of requests with each request served by the server immediately.
   272  	// As one request could lead to multiple responses, this interface
   273  	// demonstrates the idea of full duplexing.
   274  	FullDuplexCall(TestService_FullDuplexCallServer) error
   275  	// A sequence of requests followed by a sequence of responses.
   276  	// The server buffers all the client requests and then serves them in order. A
   277  	// stream of responses are returned to the client when the server starts with
   278  	// first request.
   279  	HalfDuplexCall(TestService_HalfDuplexCallServer) error
   280  	// The test server will not implement this method. It will be used
   281  	// to test the behavior when clients call unimplemented methods.
   282  	UnimplementedCall(context.Context, *Empty) (*Empty, error)
   283  	mustEmbedUnimplementedTestServiceServer()
   284  }
   285  
   286  // UnimplementedTestServiceServer must be embedded to have forward compatible implementations.
   287  type UnimplementedTestServiceServer struct {
   288  }
   289  
   290  func (UnimplementedTestServiceServer) EmptyCall(context.Context, *Empty) (*Empty, error) {
   291  	return nil, status.Errorf(codes.Unimplemented, "method EmptyCall not implemented")
   292  }
   293  func (UnimplementedTestServiceServer) UnaryCall(context.Context, *SimpleRequest) (*SimpleResponse, error) {
   294  	return nil, status.Errorf(codes.Unimplemented, "method UnaryCall not implemented")
   295  }
   296  func (UnimplementedTestServiceServer) CacheableUnaryCall(context.Context, *SimpleRequest) (*SimpleResponse, error) {
   297  	return nil, status.Errorf(codes.Unimplemented, "method CacheableUnaryCall not implemented")
   298  }
   299  func (UnimplementedTestServiceServer) StreamingOutputCall(*StreamingOutputCallRequest, TestService_StreamingOutputCallServer) error {
   300  	return status.Errorf(codes.Unimplemented, "method StreamingOutputCall not implemented")
   301  }
   302  func (UnimplementedTestServiceServer) StreamingInputCall(TestService_StreamingInputCallServer) error {
   303  	return status.Errorf(codes.Unimplemented, "method StreamingInputCall not implemented")
   304  }
   305  func (UnimplementedTestServiceServer) FullDuplexCall(TestService_FullDuplexCallServer) error {
   306  	return status.Errorf(codes.Unimplemented, "method FullDuplexCall not implemented")
   307  }
   308  func (UnimplementedTestServiceServer) HalfDuplexCall(TestService_HalfDuplexCallServer) error {
   309  	return status.Errorf(codes.Unimplemented, "method HalfDuplexCall not implemented")
   310  }
   311  func (UnimplementedTestServiceServer) UnimplementedCall(context.Context, *Empty) (*Empty, error) {
   312  	return nil, status.Errorf(codes.Unimplemented, "method UnimplementedCall not implemented")
   313  }
   314  func (UnimplementedTestServiceServer) mustEmbedUnimplementedTestServiceServer() {}
   315  
   316  // UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service.
   317  // Use of this interface is not recommended, as added methods to TestServiceServer will
   318  // result in compilation errors.
   319  type UnsafeTestServiceServer interface {
   320  	mustEmbedUnimplementedTestServiceServer()
   321  }
   322  
   323  func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer) {
   324  	s.RegisterService(&TestService_ServiceDesc, srv)
   325  }
   326  
   327  func _TestService_EmptyCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   328  	in := new(Empty)
   329  	if err := dec(in); err != nil {
   330  		return nil, err
   331  	}
   332  	if interceptor == nil {
   333  		return srv.(TestServiceServer).EmptyCall(ctx, in)
   334  	}
   335  	info := &grpc.UnaryServerInfo{
   336  		Server:     srv,
   337  		FullMethod: TestService_EmptyCall_FullMethodName,
   338  	}
   339  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   340  		return srv.(TestServiceServer).EmptyCall(ctx, req.(*Empty))
   341  	}
   342  	return interceptor(ctx, in, info, handler)
   343  }
   344  
   345  func _TestService_UnaryCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   346  	in := new(SimpleRequest)
   347  	if err := dec(in); err != nil {
   348  		return nil, err
   349  	}
   350  	if interceptor == nil {
   351  		return srv.(TestServiceServer).UnaryCall(ctx, in)
   352  	}
   353  	info := &grpc.UnaryServerInfo{
   354  		Server:     srv,
   355  		FullMethod: TestService_UnaryCall_FullMethodName,
   356  	}
   357  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   358  		return srv.(TestServiceServer).UnaryCall(ctx, req.(*SimpleRequest))
   359  	}
   360  	return interceptor(ctx, in, info, handler)
   361  }
   362  
   363  func _TestService_CacheableUnaryCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   364  	in := new(SimpleRequest)
   365  	if err := dec(in); err != nil {
   366  		return nil, err
   367  	}
   368  	if interceptor == nil {
   369  		return srv.(TestServiceServer).CacheableUnaryCall(ctx, in)
   370  	}
   371  	info := &grpc.UnaryServerInfo{
   372  		Server:     srv,
   373  		FullMethod: TestService_CacheableUnaryCall_FullMethodName,
   374  	}
   375  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   376  		return srv.(TestServiceServer).CacheableUnaryCall(ctx, req.(*SimpleRequest))
   377  	}
   378  	return interceptor(ctx, in, info, handler)
   379  }
   380  
   381  func _TestService_StreamingOutputCall_Handler(srv interface{}, stream grpc.ServerStream) error {
   382  	m := new(StreamingOutputCallRequest)
   383  	if err := stream.RecvMsg(m); err != nil {
   384  		return err
   385  	}
   386  	return srv.(TestServiceServer).StreamingOutputCall(m, &testServiceStreamingOutputCallServer{stream})
   387  }
   388  
   389  type TestService_StreamingOutputCallServer interface {
   390  	Send(*StreamingOutputCallResponse) error
   391  	grpc.ServerStream
   392  }
   393  
   394  type testServiceStreamingOutputCallServer struct {
   395  	grpc.ServerStream
   396  }
   397  
   398  func (x *testServiceStreamingOutputCallServer) Send(m *StreamingOutputCallResponse) error {
   399  	return x.ServerStream.SendMsg(m)
   400  }
   401  
   402  func _TestService_StreamingInputCall_Handler(srv interface{}, stream grpc.ServerStream) error {
   403  	return srv.(TestServiceServer).StreamingInputCall(&testServiceStreamingInputCallServer{stream})
   404  }
   405  
   406  type TestService_StreamingInputCallServer interface {
   407  	SendAndClose(*StreamingInputCallResponse) error
   408  	Recv() (*StreamingInputCallRequest, error)
   409  	grpc.ServerStream
   410  }
   411  
   412  type testServiceStreamingInputCallServer struct {
   413  	grpc.ServerStream
   414  }
   415  
   416  func (x *testServiceStreamingInputCallServer) SendAndClose(m *StreamingInputCallResponse) error {
   417  	return x.ServerStream.SendMsg(m)
   418  }
   419  
   420  func (x *testServiceStreamingInputCallServer) Recv() (*StreamingInputCallRequest, error) {
   421  	m := new(StreamingInputCallRequest)
   422  	if err := x.ServerStream.RecvMsg(m); err != nil {
   423  		return nil, err
   424  	}
   425  	return m, nil
   426  }
   427  
   428  func _TestService_FullDuplexCall_Handler(srv interface{}, stream grpc.ServerStream) error {
   429  	return srv.(TestServiceServer).FullDuplexCall(&testServiceFullDuplexCallServer{stream})
   430  }
   431  
   432  type TestService_FullDuplexCallServer interface {
   433  	Send(*StreamingOutputCallResponse) error
   434  	Recv() (*StreamingOutputCallRequest, error)
   435  	grpc.ServerStream
   436  }
   437  
   438  type testServiceFullDuplexCallServer struct {
   439  	grpc.ServerStream
   440  }
   441  
   442  func (x *testServiceFullDuplexCallServer) Send(m *StreamingOutputCallResponse) error {
   443  	return x.ServerStream.SendMsg(m)
   444  }
   445  
   446  func (x *testServiceFullDuplexCallServer) Recv() (*StreamingOutputCallRequest, error) {
   447  	m := new(StreamingOutputCallRequest)
   448  	if err := x.ServerStream.RecvMsg(m); err != nil {
   449  		return nil, err
   450  	}
   451  	return m, nil
   452  }
   453  
   454  func _TestService_HalfDuplexCall_Handler(srv interface{}, stream grpc.ServerStream) error {
   455  	return srv.(TestServiceServer).HalfDuplexCall(&testServiceHalfDuplexCallServer{stream})
   456  }
   457  
   458  type TestService_HalfDuplexCallServer interface {
   459  	Send(*StreamingOutputCallResponse) error
   460  	Recv() (*StreamingOutputCallRequest, error)
   461  	grpc.ServerStream
   462  }
   463  
   464  type testServiceHalfDuplexCallServer struct {
   465  	grpc.ServerStream
   466  }
   467  
   468  func (x *testServiceHalfDuplexCallServer) Send(m *StreamingOutputCallResponse) error {
   469  	return x.ServerStream.SendMsg(m)
   470  }
   471  
   472  func (x *testServiceHalfDuplexCallServer) Recv() (*StreamingOutputCallRequest, error) {
   473  	m := new(StreamingOutputCallRequest)
   474  	if err := x.ServerStream.RecvMsg(m); err != nil {
   475  		return nil, err
   476  	}
   477  	return m, nil
   478  }
   479  
   480  func _TestService_UnimplementedCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   481  	in := new(Empty)
   482  	if err := dec(in); err != nil {
   483  		return nil, err
   484  	}
   485  	if interceptor == nil {
   486  		return srv.(TestServiceServer).UnimplementedCall(ctx, in)
   487  	}
   488  	info := &grpc.UnaryServerInfo{
   489  		Server:     srv,
   490  		FullMethod: TestService_UnimplementedCall_FullMethodName,
   491  	}
   492  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   493  		return srv.(TestServiceServer).UnimplementedCall(ctx, req.(*Empty))
   494  	}
   495  	return interceptor(ctx, in, info, handler)
   496  }
   497  
   498  // TestService_ServiceDesc is the grpc.ServiceDesc for TestService service.
   499  // It's only intended for direct use with grpc.RegisterService,
   500  // and not to be introspected or modified (even as a copy)
   501  var TestService_ServiceDesc = grpc.ServiceDesc{
   502  	ServiceName: "grpc.testing.TestService",
   503  	HandlerType: (*TestServiceServer)(nil),
   504  	Methods: []grpc.MethodDesc{
   505  		{
   506  			MethodName: "EmptyCall",
   507  			Handler:    _TestService_EmptyCall_Handler,
   508  		},
   509  		{
   510  			MethodName: "UnaryCall",
   511  			Handler:    _TestService_UnaryCall_Handler,
   512  		},
   513  		{
   514  			MethodName: "CacheableUnaryCall",
   515  			Handler:    _TestService_CacheableUnaryCall_Handler,
   516  		},
   517  		{
   518  			MethodName: "UnimplementedCall",
   519  			Handler:    _TestService_UnimplementedCall_Handler,
   520  		},
   521  	},
   522  	Streams: []grpc.StreamDesc{
   523  		{
   524  			StreamName:    "StreamingOutputCall",
   525  			Handler:       _TestService_StreamingOutputCall_Handler,
   526  			ServerStreams: true,
   527  		},
   528  		{
   529  			StreamName:    "StreamingInputCall",
   530  			Handler:       _TestService_StreamingInputCall_Handler,
   531  			ClientStreams: true,
   532  		},
   533  		{
   534  			StreamName:    "FullDuplexCall",
   535  			Handler:       _TestService_FullDuplexCall_Handler,
   536  			ServerStreams: true,
   537  			ClientStreams: true,
   538  		},
   539  		{
   540  			StreamName:    "HalfDuplexCall",
   541  			Handler:       _TestService_HalfDuplexCall_Handler,
   542  			ServerStreams: true,
   543  			ClientStreams: true,
   544  		},
   545  	},
   546  	Metadata: "grpc/testing/test.proto",
   547  }
   548  
   549  const (
   550  	UnimplementedService_UnimplementedCall_FullMethodName = "/grpc.testing.UnimplementedService/UnimplementedCall"
   551  )
   552  
   553  // UnimplementedServiceClient is the client API for UnimplementedService service.
   554  //
   555  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
   556  type UnimplementedServiceClient interface {
   557  	// A call that no server should implement
   558  	UnimplementedCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
   559  }
   560  
   561  type unimplementedServiceClient struct {
   562  	cc grpc.ClientConnInterface
   563  }
   564  
   565  func NewUnimplementedServiceClient(cc grpc.ClientConnInterface) UnimplementedServiceClient {
   566  	return &unimplementedServiceClient{cc}
   567  }
   568  
   569  func (c *unimplementedServiceClient) UnimplementedCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) {
   570  	out := new(Empty)
   571  	err := c.cc.Invoke(ctx, UnimplementedService_UnimplementedCall_FullMethodName, in, out, opts...)
   572  	if err != nil {
   573  		return nil, err
   574  	}
   575  	return out, nil
   576  }
   577  
   578  // UnimplementedServiceServer is the server API for UnimplementedService service.
   579  // All implementations must embed UnimplementedUnimplementedServiceServer
   580  // for forward compatibility
   581  type UnimplementedServiceServer interface {
   582  	// A call that no server should implement
   583  	UnimplementedCall(context.Context, *Empty) (*Empty, error)
   584  	mustEmbedUnimplementedUnimplementedServiceServer()
   585  }
   586  
   587  // UnimplementedUnimplementedServiceServer must be embedded to have forward compatible implementations.
   588  type UnimplementedUnimplementedServiceServer struct {
   589  }
   590  
   591  func (UnimplementedUnimplementedServiceServer) UnimplementedCall(context.Context, *Empty) (*Empty, error) {
   592  	return nil, status.Errorf(codes.Unimplemented, "method UnimplementedCall not implemented")
   593  }
   594  func (UnimplementedUnimplementedServiceServer) mustEmbedUnimplementedUnimplementedServiceServer() {}
   595  
   596  // UnsafeUnimplementedServiceServer may be embedded to opt out of forward compatibility for this service.
   597  // Use of this interface is not recommended, as added methods to UnimplementedServiceServer will
   598  // result in compilation errors.
   599  type UnsafeUnimplementedServiceServer interface {
   600  	mustEmbedUnimplementedUnimplementedServiceServer()
   601  }
   602  
   603  func RegisterUnimplementedServiceServer(s grpc.ServiceRegistrar, srv UnimplementedServiceServer) {
   604  	s.RegisterService(&UnimplementedService_ServiceDesc, srv)
   605  }
   606  
   607  func _UnimplementedService_UnimplementedCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   608  	in := new(Empty)
   609  	if err := dec(in); err != nil {
   610  		return nil, err
   611  	}
   612  	if interceptor == nil {
   613  		return srv.(UnimplementedServiceServer).UnimplementedCall(ctx, in)
   614  	}
   615  	info := &grpc.UnaryServerInfo{
   616  		Server:     srv,
   617  		FullMethod: UnimplementedService_UnimplementedCall_FullMethodName,
   618  	}
   619  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   620  		return srv.(UnimplementedServiceServer).UnimplementedCall(ctx, req.(*Empty))
   621  	}
   622  	return interceptor(ctx, in, info, handler)
   623  }
   624  
   625  // UnimplementedService_ServiceDesc is the grpc.ServiceDesc for UnimplementedService service.
   626  // It's only intended for direct use with grpc.RegisterService,
   627  // and not to be introspected or modified (even as a copy)
   628  var UnimplementedService_ServiceDesc = grpc.ServiceDesc{
   629  	ServiceName: "grpc.testing.UnimplementedService",
   630  	HandlerType: (*UnimplementedServiceServer)(nil),
   631  	Methods: []grpc.MethodDesc{
   632  		{
   633  			MethodName: "UnimplementedCall",
   634  			Handler:    _UnimplementedService_UnimplementedCall_Handler,
   635  		},
   636  	},
   637  	Streams:  []grpc.StreamDesc{},
   638  	Metadata: "grpc/testing/test.proto",
   639  }
   640  
   641  const (
   642  	ReconnectService_Start_FullMethodName = "/grpc.testing.ReconnectService/Start"
   643  	ReconnectService_Stop_FullMethodName  = "/grpc.testing.ReconnectService/Stop"
   644  )
   645  
   646  // ReconnectServiceClient is the client API for ReconnectService service.
   647  //
   648  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
   649  type ReconnectServiceClient interface {
   650  	Start(ctx context.Context, in *ReconnectParams, opts ...grpc.CallOption) (*Empty, error)
   651  	Stop(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ReconnectInfo, error)
   652  }
   653  
   654  type reconnectServiceClient struct {
   655  	cc grpc.ClientConnInterface
   656  }
   657  
   658  func NewReconnectServiceClient(cc grpc.ClientConnInterface) ReconnectServiceClient {
   659  	return &reconnectServiceClient{cc}
   660  }
   661  
   662  func (c *reconnectServiceClient) Start(ctx context.Context, in *ReconnectParams, opts ...grpc.CallOption) (*Empty, error) {
   663  	out := new(Empty)
   664  	err := c.cc.Invoke(ctx, ReconnectService_Start_FullMethodName, in, out, opts...)
   665  	if err != nil {
   666  		return nil, err
   667  	}
   668  	return out, nil
   669  }
   670  
   671  func (c *reconnectServiceClient) Stop(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ReconnectInfo, error) {
   672  	out := new(ReconnectInfo)
   673  	err := c.cc.Invoke(ctx, ReconnectService_Stop_FullMethodName, in, out, opts...)
   674  	if err != nil {
   675  		return nil, err
   676  	}
   677  	return out, nil
   678  }
   679  
   680  // ReconnectServiceServer is the server API for ReconnectService service.
   681  // All implementations must embed UnimplementedReconnectServiceServer
   682  // for forward compatibility
   683  type ReconnectServiceServer interface {
   684  	Start(context.Context, *ReconnectParams) (*Empty, error)
   685  	Stop(context.Context, *Empty) (*ReconnectInfo, error)
   686  	mustEmbedUnimplementedReconnectServiceServer()
   687  }
   688  
   689  // UnimplementedReconnectServiceServer must be embedded to have forward compatible implementations.
   690  type UnimplementedReconnectServiceServer struct {
   691  }
   692  
   693  func (UnimplementedReconnectServiceServer) Start(context.Context, *ReconnectParams) (*Empty, error) {
   694  	return nil, status.Errorf(codes.Unimplemented, "method Start not implemented")
   695  }
   696  func (UnimplementedReconnectServiceServer) Stop(context.Context, *Empty) (*ReconnectInfo, error) {
   697  	return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented")
   698  }
   699  func (UnimplementedReconnectServiceServer) mustEmbedUnimplementedReconnectServiceServer() {}
   700  
   701  // UnsafeReconnectServiceServer may be embedded to opt out of forward compatibility for this service.
   702  // Use of this interface is not recommended, as added methods to ReconnectServiceServer will
   703  // result in compilation errors.
   704  type UnsafeReconnectServiceServer interface {
   705  	mustEmbedUnimplementedReconnectServiceServer()
   706  }
   707  
   708  func RegisterReconnectServiceServer(s grpc.ServiceRegistrar, srv ReconnectServiceServer) {
   709  	s.RegisterService(&ReconnectService_ServiceDesc, srv)
   710  }
   711  
   712  func _ReconnectService_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   713  	in := new(ReconnectParams)
   714  	if err := dec(in); err != nil {
   715  		return nil, err
   716  	}
   717  	if interceptor == nil {
   718  		return srv.(ReconnectServiceServer).Start(ctx, in)
   719  	}
   720  	info := &grpc.UnaryServerInfo{
   721  		Server:     srv,
   722  		FullMethod: ReconnectService_Start_FullMethodName,
   723  	}
   724  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   725  		return srv.(ReconnectServiceServer).Start(ctx, req.(*ReconnectParams))
   726  	}
   727  	return interceptor(ctx, in, info, handler)
   728  }
   729  
   730  func _ReconnectService_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   731  	in := new(Empty)
   732  	if err := dec(in); err != nil {
   733  		return nil, err
   734  	}
   735  	if interceptor == nil {
   736  		return srv.(ReconnectServiceServer).Stop(ctx, in)
   737  	}
   738  	info := &grpc.UnaryServerInfo{
   739  		Server:     srv,
   740  		FullMethod: ReconnectService_Stop_FullMethodName,
   741  	}
   742  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   743  		return srv.(ReconnectServiceServer).Stop(ctx, req.(*Empty))
   744  	}
   745  	return interceptor(ctx, in, info, handler)
   746  }
   747  
   748  // ReconnectService_ServiceDesc is the grpc.ServiceDesc for ReconnectService service.
   749  // It's only intended for direct use with grpc.RegisterService,
   750  // and not to be introspected or modified (even as a copy)
   751  var ReconnectService_ServiceDesc = grpc.ServiceDesc{
   752  	ServiceName: "grpc.testing.ReconnectService",
   753  	HandlerType: (*ReconnectServiceServer)(nil),
   754  	Methods: []grpc.MethodDesc{
   755  		{
   756  			MethodName: "Start",
   757  			Handler:    _ReconnectService_Start_Handler,
   758  		},
   759  		{
   760  			MethodName: "Stop",
   761  			Handler:    _ReconnectService_Stop_Handler,
   762  		},
   763  	},
   764  	Streams:  []grpc.StreamDesc{},
   765  	Metadata: "grpc/testing/test.proto",
   766  }
   767  
   768  const (
   769  	LoadBalancerStatsService_GetClientStats_FullMethodName            = "/grpc.testing.LoadBalancerStatsService/GetClientStats"
   770  	LoadBalancerStatsService_GetClientAccumulatedStats_FullMethodName = "/grpc.testing.LoadBalancerStatsService/GetClientAccumulatedStats"
   771  )
   772  
   773  // LoadBalancerStatsServiceClient is the client API for LoadBalancerStatsService service.
   774  //
   775  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
   776  type LoadBalancerStatsServiceClient interface {
   777  	// Gets the backend distribution for RPCs sent by a test client.
   778  	GetClientStats(ctx context.Context, in *LoadBalancerStatsRequest, opts ...grpc.CallOption) (*LoadBalancerStatsResponse, error)
   779  	// Gets the accumulated stats for RPCs sent by a test client.
   780  	GetClientAccumulatedStats(ctx context.Context, in *LoadBalancerAccumulatedStatsRequest, opts ...grpc.CallOption) (*LoadBalancerAccumulatedStatsResponse, error)
   781  }
   782  
   783  type loadBalancerStatsServiceClient struct {
   784  	cc grpc.ClientConnInterface
   785  }
   786  
   787  func NewLoadBalancerStatsServiceClient(cc grpc.ClientConnInterface) LoadBalancerStatsServiceClient {
   788  	return &loadBalancerStatsServiceClient{cc}
   789  }
   790  
   791  func (c *loadBalancerStatsServiceClient) GetClientStats(ctx context.Context, in *LoadBalancerStatsRequest, opts ...grpc.CallOption) (*LoadBalancerStatsResponse, error) {
   792  	out := new(LoadBalancerStatsResponse)
   793  	err := c.cc.Invoke(ctx, LoadBalancerStatsService_GetClientStats_FullMethodName, in, out, opts...)
   794  	if err != nil {
   795  		return nil, err
   796  	}
   797  	return out, nil
   798  }
   799  
   800  func (c *loadBalancerStatsServiceClient) GetClientAccumulatedStats(ctx context.Context, in *LoadBalancerAccumulatedStatsRequest, opts ...grpc.CallOption) (*LoadBalancerAccumulatedStatsResponse, error) {
   801  	out := new(LoadBalancerAccumulatedStatsResponse)
   802  	err := c.cc.Invoke(ctx, LoadBalancerStatsService_GetClientAccumulatedStats_FullMethodName, in, out, opts...)
   803  	if err != nil {
   804  		return nil, err
   805  	}
   806  	return out, nil
   807  }
   808  
   809  // LoadBalancerStatsServiceServer is the server API for LoadBalancerStatsService service.
   810  // All implementations must embed UnimplementedLoadBalancerStatsServiceServer
   811  // for forward compatibility
   812  type LoadBalancerStatsServiceServer interface {
   813  	// Gets the backend distribution for RPCs sent by a test client.
   814  	GetClientStats(context.Context, *LoadBalancerStatsRequest) (*LoadBalancerStatsResponse, error)
   815  	// Gets the accumulated stats for RPCs sent by a test client.
   816  	GetClientAccumulatedStats(context.Context, *LoadBalancerAccumulatedStatsRequest) (*LoadBalancerAccumulatedStatsResponse, error)
   817  	mustEmbedUnimplementedLoadBalancerStatsServiceServer()
   818  }
   819  
   820  // UnimplementedLoadBalancerStatsServiceServer must be embedded to have forward compatible implementations.
   821  type UnimplementedLoadBalancerStatsServiceServer struct {
   822  }
   823  
   824  func (UnimplementedLoadBalancerStatsServiceServer) GetClientStats(context.Context, *LoadBalancerStatsRequest) (*LoadBalancerStatsResponse, error) {
   825  	return nil, status.Errorf(codes.Unimplemented, "method GetClientStats not implemented")
   826  }
   827  func (UnimplementedLoadBalancerStatsServiceServer) GetClientAccumulatedStats(context.Context, *LoadBalancerAccumulatedStatsRequest) (*LoadBalancerAccumulatedStatsResponse, error) {
   828  	return nil, status.Errorf(codes.Unimplemented, "method GetClientAccumulatedStats not implemented")
   829  }
   830  func (UnimplementedLoadBalancerStatsServiceServer) mustEmbedUnimplementedLoadBalancerStatsServiceServer() {
   831  }
   832  
   833  // UnsafeLoadBalancerStatsServiceServer may be embedded to opt out of forward compatibility for this service.
   834  // Use of this interface is not recommended, as added methods to LoadBalancerStatsServiceServer will
   835  // result in compilation errors.
   836  type UnsafeLoadBalancerStatsServiceServer interface {
   837  	mustEmbedUnimplementedLoadBalancerStatsServiceServer()
   838  }
   839  
   840  func RegisterLoadBalancerStatsServiceServer(s grpc.ServiceRegistrar, srv LoadBalancerStatsServiceServer) {
   841  	s.RegisterService(&LoadBalancerStatsService_ServiceDesc, srv)
   842  }
   843  
   844  func _LoadBalancerStatsService_GetClientStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   845  	in := new(LoadBalancerStatsRequest)
   846  	if err := dec(in); err != nil {
   847  		return nil, err
   848  	}
   849  	if interceptor == nil {
   850  		return srv.(LoadBalancerStatsServiceServer).GetClientStats(ctx, in)
   851  	}
   852  	info := &grpc.UnaryServerInfo{
   853  		Server:     srv,
   854  		FullMethod: LoadBalancerStatsService_GetClientStats_FullMethodName,
   855  	}
   856  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   857  		return srv.(LoadBalancerStatsServiceServer).GetClientStats(ctx, req.(*LoadBalancerStatsRequest))
   858  	}
   859  	return interceptor(ctx, in, info, handler)
   860  }
   861  
   862  func _LoadBalancerStatsService_GetClientAccumulatedStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   863  	in := new(LoadBalancerAccumulatedStatsRequest)
   864  	if err := dec(in); err != nil {
   865  		return nil, err
   866  	}
   867  	if interceptor == nil {
   868  		return srv.(LoadBalancerStatsServiceServer).GetClientAccumulatedStats(ctx, in)
   869  	}
   870  	info := &grpc.UnaryServerInfo{
   871  		Server:     srv,
   872  		FullMethod: LoadBalancerStatsService_GetClientAccumulatedStats_FullMethodName,
   873  	}
   874  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   875  		return srv.(LoadBalancerStatsServiceServer).GetClientAccumulatedStats(ctx, req.(*LoadBalancerAccumulatedStatsRequest))
   876  	}
   877  	return interceptor(ctx, in, info, handler)
   878  }
   879  
   880  // LoadBalancerStatsService_ServiceDesc is the grpc.ServiceDesc for LoadBalancerStatsService service.
   881  // It's only intended for direct use with grpc.RegisterService,
   882  // and not to be introspected or modified (even as a copy)
   883  var LoadBalancerStatsService_ServiceDesc = grpc.ServiceDesc{
   884  	ServiceName: "grpc.testing.LoadBalancerStatsService",
   885  	HandlerType: (*LoadBalancerStatsServiceServer)(nil),
   886  	Methods: []grpc.MethodDesc{
   887  		{
   888  			MethodName: "GetClientStats",
   889  			Handler:    _LoadBalancerStatsService_GetClientStats_Handler,
   890  		},
   891  		{
   892  			MethodName: "GetClientAccumulatedStats",
   893  			Handler:    _LoadBalancerStatsService_GetClientAccumulatedStats_Handler,
   894  		},
   895  	},
   896  	Streams:  []grpc.StreamDesc{},
   897  	Metadata: "grpc/testing/test.proto",
   898  }
   899  
   900  const (
   901  	HookService_Hook_FullMethodName              = "/grpc.testing.HookService/Hook"
   902  	HookService_SetReturnStatus_FullMethodName   = "/grpc.testing.HookService/SetReturnStatus"
   903  	HookService_ClearReturnStatus_FullMethodName = "/grpc.testing.HookService/ClearReturnStatus"
   904  )
   905  
   906  // HookServiceClient is the client API for HookService service.
   907  //
   908  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
   909  type HookServiceClient interface {
   910  	// Sends a request that will "hang" until the return status is set by a call
   911  	// to a SetReturnStatus
   912  	Hook(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
   913  	// Sets a return status for pending and upcoming calls to Hook
   914  	SetReturnStatus(ctx context.Context, in *SetReturnStatusRequest, opts ...grpc.CallOption) (*Empty, error)
   915  	// Clears the return status. Incoming calls to Hook will "hang"
   916  	ClearReturnStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
   917  }
   918  
   919  type hookServiceClient struct {
   920  	cc grpc.ClientConnInterface
   921  }
   922  
   923  func NewHookServiceClient(cc grpc.ClientConnInterface) HookServiceClient {
   924  	return &hookServiceClient{cc}
   925  }
   926  
   927  func (c *hookServiceClient) Hook(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) {
   928  	out := new(Empty)
   929  	err := c.cc.Invoke(ctx, HookService_Hook_FullMethodName, in, out, opts...)
   930  	if err != nil {
   931  		return nil, err
   932  	}
   933  	return out, nil
   934  }
   935  
   936  func (c *hookServiceClient) SetReturnStatus(ctx context.Context, in *SetReturnStatusRequest, opts ...grpc.CallOption) (*Empty, error) {
   937  	out := new(Empty)
   938  	err := c.cc.Invoke(ctx, HookService_SetReturnStatus_FullMethodName, in, out, opts...)
   939  	if err != nil {
   940  		return nil, err
   941  	}
   942  	return out, nil
   943  }
   944  
   945  func (c *hookServiceClient) ClearReturnStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) {
   946  	out := new(Empty)
   947  	err := c.cc.Invoke(ctx, HookService_ClearReturnStatus_FullMethodName, in, out, opts...)
   948  	if err != nil {
   949  		return nil, err
   950  	}
   951  	return out, nil
   952  }
   953  
   954  // HookServiceServer is the server API for HookService service.
   955  // All implementations must embed UnimplementedHookServiceServer
   956  // for forward compatibility
   957  type HookServiceServer interface {
   958  	// Sends a request that will "hang" until the return status is set by a call
   959  	// to a SetReturnStatus
   960  	Hook(context.Context, *Empty) (*Empty, error)
   961  	// Sets a return status for pending and upcoming calls to Hook
   962  	SetReturnStatus(context.Context, *SetReturnStatusRequest) (*Empty, error)
   963  	// Clears the return status. Incoming calls to Hook will "hang"
   964  	ClearReturnStatus(context.Context, *Empty) (*Empty, error)
   965  	mustEmbedUnimplementedHookServiceServer()
   966  }
   967  
   968  // UnimplementedHookServiceServer must be embedded to have forward compatible implementations.
   969  type UnimplementedHookServiceServer struct {
   970  }
   971  
   972  func (UnimplementedHookServiceServer) Hook(context.Context, *Empty) (*Empty, error) {
   973  	return nil, status.Errorf(codes.Unimplemented, "method Hook not implemented")
   974  }
   975  func (UnimplementedHookServiceServer) SetReturnStatus(context.Context, *SetReturnStatusRequest) (*Empty, error) {
   976  	return nil, status.Errorf(codes.Unimplemented, "method SetReturnStatus not implemented")
   977  }
   978  func (UnimplementedHookServiceServer) ClearReturnStatus(context.Context, *Empty) (*Empty, error) {
   979  	return nil, status.Errorf(codes.Unimplemented, "method ClearReturnStatus not implemented")
   980  }
   981  func (UnimplementedHookServiceServer) mustEmbedUnimplementedHookServiceServer() {}
   982  
   983  // UnsafeHookServiceServer may be embedded to opt out of forward compatibility for this service.
   984  // Use of this interface is not recommended, as added methods to HookServiceServer will
   985  // result in compilation errors.
   986  type UnsafeHookServiceServer interface {
   987  	mustEmbedUnimplementedHookServiceServer()
   988  }
   989  
   990  func RegisterHookServiceServer(s grpc.ServiceRegistrar, srv HookServiceServer) {
   991  	s.RegisterService(&HookService_ServiceDesc, srv)
   992  }
   993  
   994  func _HookService_Hook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   995  	in := new(Empty)
   996  	if err := dec(in); err != nil {
   997  		return nil, err
   998  	}
   999  	if interceptor == nil {
  1000  		return srv.(HookServiceServer).Hook(ctx, in)
  1001  	}
  1002  	info := &grpc.UnaryServerInfo{
  1003  		Server:     srv,
  1004  		FullMethod: HookService_Hook_FullMethodName,
  1005  	}
  1006  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1007  		return srv.(HookServiceServer).Hook(ctx, req.(*Empty))
  1008  	}
  1009  	return interceptor(ctx, in, info, handler)
  1010  }
  1011  
  1012  func _HookService_SetReturnStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1013  	in := new(SetReturnStatusRequest)
  1014  	if err := dec(in); err != nil {
  1015  		return nil, err
  1016  	}
  1017  	if interceptor == nil {
  1018  		return srv.(HookServiceServer).SetReturnStatus(ctx, in)
  1019  	}
  1020  	info := &grpc.UnaryServerInfo{
  1021  		Server:     srv,
  1022  		FullMethod: HookService_SetReturnStatus_FullMethodName,
  1023  	}
  1024  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1025  		return srv.(HookServiceServer).SetReturnStatus(ctx, req.(*SetReturnStatusRequest))
  1026  	}
  1027  	return interceptor(ctx, in, info, handler)
  1028  }
  1029  
  1030  func _HookService_ClearReturnStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1031  	in := new(Empty)
  1032  	if err := dec(in); err != nil {
  1033  		return nil, err
  1034  	}
  1035  	if interceptor == nil {
  1036  		return srv.(HookServiceServer).ClearReturnStatus(ctx, in)
  1037  	}
  1038  	info := &grpc.UnaryServerInfo{
  1039  		Server:     srv,
  1040  		FullMethod: HookService_ClearReturnStatus_FullMethodName,
  1041  	}
  1042  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1043  		return srv.(HookServiceServer).ClearReturnStatus(ctx, req.(*Empty))
  1044  	}
  1045  	return interceptor(ctx, in, info, handler)
  1046  }
  1047  
  1048  // HookService_ServiceDesc is the grpc.ServiceDesc for HookService service.
  1049  // It's only intended for direct use with grpc.RegisterService,
  1050  // and not to be introspected or modified (even as a copy)
  1051  var HookService_ServiceDesc = grpc.ServiceDesc{
  1052  	ServiceName: "grpc.testing.HookService",
  1053  	HandlerType: (*HookServiceServer)(nil),
  1054  	Methods: []grpc.MethodDesc{
  1055  		{
  1056  			MethodName: "Hook",
  1057  			Handler:    _HookService_Hook_Handler,
  1058  		},
  1059  		{
  1060  			MethodName: "SetReturnStatus",
  1061  			Handler:    _HookService_SetReturnStatus_Handler,
  1062  		},
  1063  		{
  1064  			MethodName: "ClearReturnStatus",
  1065  			Handler:    _HookService_ClearReturnStatus_Handler,
  1066  		},
  1067  	},
  1068  	Streams:  []grpc.StreamDesc{},
  1069  	Metadata: "grpc/testing/test.proto",
  1070  }
  1071  
  1072  const (
  1073  	XdsUpdateHealthService_SetServing_FullMethodName      = "/grpc.testing.XdsUpdateHealthService/SetServing"
  1074  	XdsUpdateHealthService_SetNotServing_FullMethodName   = "/grpc.testing.XdsUpdateHealthService/SetNotServing"
  1075  	XdsUpdateHealthService_SendHookRequest_FullMethodName = "/grpc.testing.XdsUpdateHealthService/SendHookRequest"
  1076  )
  1077  
  1078  // XdsUpdateHealthServiceClient is the client API for XdsUpdateHealthService service.
  1079  //
  1080  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  1081  type XdsUpdateHealthServiceClient interface {
  1082  	SetServing(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
  1083  	SetNotServing(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
  1084  	SendHookRequest(ctx context.Context, in *HookRequest, opts ...grpc.CallOption) (*HookResponse, error)
  1085  }
  1086  
  1087  type xdsUpdateHealthServiceClient struct {
  1088  	cc grpc.ClientConnInterface
  1089  }
  1090  
  1091  func NewXdsUpdateHealthServiceClient(cc grpc.ClientConnInterface) XdsUpdateHealthServiceClient {
  1092  	return &xdsUpdateHealthServiceClient{cc}
  1093  }
  1094  
  1095  func (c *xdsUpdateHealthServiceClient) SetServing(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) {
  1096  	out := new(Empty)
  1097  	err := c.cc.Invoke(ctx, XdsUpdateHealthService_SetServing_FullMethodName, in, out, opts...)
  1098  	if err != nil {
  1099  		return nil, err
  1100  	}
  1101  	return out, nil
  1102  }
  1103  
  1104  func (c *xdsUpdateHealthServiceClient) SetNotServing(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) {
  1105  	out := new(Empty)
  1106  	err := c.cc.Invoke(ctx, XdsUpdateHealthService_SetNotServing_FullMethodName, in, out, opts...)
  1107  	if err != nil {
  1108  		return nil, err
  1109  	}
  1110  	return out, nil
  1111  }
  1112  
  1113  func (c *xdsUpdateHealthServiceClient) SendHookRequest(ctx context.Context, in *HookRequest, opts ...grpc.CallOption) (*HookResponse, error) {
  1114  	out := new(HookResponse)
  1115  	err := c.cc.Invoke(ctx, XdsUpdateHealthService_SendHookRequest_FullMethodName, in, out, opts...)
  1116  	if err != nil {
  1117  		return nil, err
  1118  	}
  1119  	return out, nil
  1120  }
  1121  
  1122  // XdsUpdateHealthServiceServer is the server API for XdsUpdateHealthService service.
  1123  // All implementations must embed UnimplementedXdsUpdateHealthServiceServer
  1124  // for forward compatibility
  1125  type XdsUpdateHealthServiceServer interface {
  1126  	SetServing(context.Context, *Empty) (*Empty, error)
  1127  	SetNotServing(context.Context, *Empty) (*Empty, error)
  1128  	SendHookRequest(context.Context, *HookRequest) (*HookResponse, error)
  1129  	mustEmbedUnimplementedXdsUpdateHealthServiceServer()
  1130  }
  1131  
  1132  // UnimplementedXdsUpdateHealthServiceServer must be embedded to have forward compatible implementations.
  1133  type UnimplementedXdsUpdateHealthServiceServer struct {
  1134  }
  1135  
  1136  func (UnimplementedXdsUpdateHealthServiceServer) SetServing(context.Context, *Empty) (*Empty, error) {
  1137  	return nil, status.Errorf(codes.Unimplemented, "method SetServing not implemented")
  1138  }
  1139  func (UnimplementedXdsUpdateHealthServiceServer) SetNotServing(context.Context, *Empty) (*Empty, error) {
  1140  	return nil, status.Errorf(codes.Unimplemented, "method SetNotServing not implemented")
  1141  }
  1142  func (UnimplementedXdsUpdateHealthServiceServer) SendHookRequest(context.Context, *HookRequest) (*HookResponse, error) {
  1143  	return nil, status.Errorf(codes.Unimplemented, "method SendHookRequest not implemented")
  1144  }
  1145  func (UnimplementedXdsUpdateHealthServiceServer) mustEmbedUnimplementedXdsUpdateHealthServiceServer() {
  1146  }
  1147  
  1148  // UnsafeXdsUpdateHealthServiceServer may be embedded to opt out of forward compatibility for this service.
  1149  // Use of this interface is not recommended, as added methods to XdsUpdateHealthServiceServer will
  1150  // result in compilation errors.
  1151  type UnsafeXdsUpdateHealthServiceServer interface {
  1152  	mustEmbedUnimplementedXdsUpdateHealthServiceServer()
  1153  }
  1154  
  1155  func RegisterXdsUpdateHealthServiceServer(s grpc.ServiceRegistrar, srv XdsUpdateHealthServiceServer) {
  1156  	s.RegisterService(&XdsUpdateHealthService_ServiceDesc, srv)
  1157  }
  1158  
  1159  func _XdsUpdateHealthService_SetServing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1160  	in := new(Empty)
  1161  	if err := dec(in); err != nil {
  1162  		return nil, err
  1163  	}
  1164  	if interceptor == nil {
  1165  		return srv.(XdsUpdateHealthServiceServer).SetServing(ctx, in)
  1166  	}
  1167  	info := &grpc.UnaryServerInfo{
  1168  		Server:     srv,
  1169  		FullMethod: XdsUpdateHealthService_SetServing_FullMethodName,
  1170  	}
  1171  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1172  		return srv.(XdsUpdateHealthServiceServer).SetServing(ctx, req.(*Empty))
  1173  	}
  1174  	return interceptor(ctx, in, info, handler)
  1175  }
  1176  
  1177  func _XdsUpdateHealthService_SetNotServing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1178  	in := new(Empty)
  1179  	if err := dec(in); err != nil {
  1180  		return nil, err
  1181  	}
  1182  	if interceptor == nil {
  1183  		return srv.(XdsUpdateHealthServiceServer).SetNotServing(ctx, in)
  1184  	}
  1185  	info := &grpc.UnaryServerInfo{
  1186  		Server:     srv,
  1187  		FullMethod: XdsUpdateHealthService_SetNotServing_FullMethodName,
  1188  	}
  1189  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1190  		return srv.(XdsUpdateHealthServiceServer).SetNotServing(ctx, req.(*Empty))
  1191  	}
  1192  	return interceptor(ctx, in, info, handler)
  1193  }
  1194  
  1195  func _XdsUpdateHealthService_SendHookRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1196  	in := new(HookRequest)
  1197  	if err := dec(in); err != nil {
  1198  		return nil, err
  1199  	}
  1200  	if interceptor == nil {
  1201  		return srv.(XdsUpdateHealthServiceServer).SendHookRequest(ctx, in)
  1202  	}
  1203  	info := &grpc.UnaryServerInfo{
  1204  		Server:     srv,
  1205  		FullMethod: XdsUpdateHealthService_SendHookRequest_FullMethodName,
  1206  	}
  1207  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1208  		return srv.(XdsUpdateHealthServiceServer).SendHookRequest(ctx, req.(*HookRequest))
  1209  	}
  1210  	return interceptor(ctx, in, info, handler)
  1211  }
  1212  
  1213  // XdsUpdateHealthService_ServiceDesc is the grpc.ServiceDesc for XdsUpdateHealthService service.
  1214  // It's only intended for direct use with grpc.RegisterService,
  1215  // and not to be introspected or modified (even as a copy)
  1216  var XdsUpdateHealthService_ServiceDesc = grpc.ServiceDesc{
  1217  	ServiceName: "grpc.testing.XdsUpdateHealthService",
  1218  	HandlerType: (*XdsUpdateHealthServiceServer)(nil),
  1219  	Methods: []grpc.MethodDesc{
  1220  		{
  1221  			MethodName: "SetServing",
  1222  			Handler:    _XdsUpdateHealthService_SetServing_Handler,
  1223  		},
  1224  		{
  1225  			MethodName: "SetNotServing",
  1226  			Handler:    _XdsUpdateHealthService_SetNotServing_Handler,
  1227  		},
  1228  		{
  1229  			MethodName: "SendHookRequest",
  1230  			Handler:    _XdsUpdateHealthService_SendHookRequest_Handler,
  1231  		},
  1232  	},
  1233  	Streams:  []grpc.StreamDesc{},
  1234  	Metadata: "grpc/testing/test.proto",
  1235  }
  1236  
  1237  const (
  1238  	XdsUpdateClientConfigureService_Configure_FullMethodName = "/grpc.testing.XdsUpdateClientConfigureService/Configure"
  1239  )
  1240  
  1241  // XdsUpdateClientConfigureServiceClient is the client API for XdsUpdateClientConfigureService service.
  1242  //
  1243  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  1244  type XdsUpdateClientConfigureServiceClient interface {
  1245  	// Update the tes client's configuration.
  1246  	Configure(ctx context.Context, in *ClientConfigureRequest, opts ...grpc.CallOption) (*ClientConfigureResponse, error)
  1247  }
  1248  
  1249  type xdsUpdateClientConfigureServiceClient struct {
  1250  	cc grpc.ClientConnInterface
  1251  }
  1252  
  1253  func NewXdsUpdateClientConfigureServiceClient(cc grpc.ClientConnInterface) XdsUpdateClientConfigureServiceClient {
  1254  	return &xdsUpdateClientConfigureServiceClient{cc}
  1255  }
  1256  
  1257  func (c *xdsUpdateClientConfigureServiceClient) Configure(ctx context.Context, in *ClientConfigureRequest, opts ...grpc.CallOption) (*ClientConfigureResponse, error) {
  1258  	out := new(ClientConfigureResponse)
  1259  	err := c.cc.Invoke(ctx, XdsUpdateClientConfigureService_Configure_FullMethodName, in, out, opts...)
  1260  	if err != nil {
  1261  		return nil, err
  1262  	}
  1263  	return out, nil
  1264  }
  1265  
  1266  // XdsUpdateClientConfigureServiceServer is the server API for XdsUpdateClientConfigureService service.
  1267  // All implementations must embed UnimplementedXdsUpdateClientConfigureServiceServer
  1268  // for forward compatibility
  1269  type XdsUpdateClientConfigureServiceServer interface {
  1270  	// Update the tes client's configuration.
  1271  	Configure(context.Context, *ClientConfigureRequest) (*ClientConfigureResponse, error)
  1272  	mustEmbedUnimplementedXdsUpdateClientConfigureServiceServer()
  1273  }
  1274  
  1275  // UnimplementedXdsUpdateClientConfigureServiceServer must be embedded to have forward compatible implementations.
  1276  type UnimplementedXdsUpdateClientConfigureServiceServer struct {
  1277  }
  1278  
  1279  func (UnimplementedXdsUpdateClientConfigureServiceServer) Configure(context.Context, *ClientConfigureRequest) (*ClientConfigureResponse, error) {
  1280  	return nil, status.Errorf(codes.Unimplemented, "method Configure not implemented")
  1281  }
  1282  func (UnimplementedXdsUpdateClientConfigureServiceServer) mustEmbedUnimplementedXdsUpdateClientConfigureServiceServer() {
  1283  }
  1284  
  1285  // UnsafeXdsUpdateClientConfigureServiceServer may be embedded to opt out of forward compatibility for this service.
  1286  // Use of this interface is not recommended, as added methods to XdsUpdateClientConfigureServiceServer will
  1287  // result in compilation errors.
  1288  type UnsafeXdsUpdateClientConfigureServiceServer interface {
  1289  	mustEmbedUnimplementedXdsUpdateClientConfigureServiceServer()
  1290  }
  1291  
  1292  func RegisterXdsUpdateClientConfigureServiceServer(s grpc.ServiceRegistrar, srv XdsUpdateClientConfigureServiceServer) {
  1293  	s.RegisterService(&XdsUpdateClientConfigureService_ServiceDesc, srv)
  1294  }
  1295  
  1296  func _XdsUpdateClientConfigureService_Configure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1297  	in := new(ClientConfigureRequest)
  1298  	if err := dec(in); err != nil {
  1299  		return nil, err
  1300  	}
  1301  	if interceptor == nil {
  1302  		return srv.(XdsUpdateClientConfigureServiceServer).Configure(ctx, in)
  1303  	}
  1304  	info := &grpc.UnaryServerInfo{
  1305  		Server:     srv,
  1306  		FullMethod: XdsUpdateClientConfigureService_Configure_FullMethodName,
  1307  	}
  1308  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1309  		return srv.(XdsUpdateClientConfigureServiceServer).Configure(ctx, req.(*ClientConfigureRequest))
  1310  	}
  1311  	return interceptor(ctx, in, info, handler)
  1312  }
  1313  
  1314  // XdsUpdateClientConfigureService_ServiceDesc is the grpc.ServiceDesc for XdsUpdateClientConfigureService service.
  1315  // It's only intended for direct use with grpc.RegisterService,
  1316  // and not to be introspected or modified (even as a copy)
  1317  var XdsUpdateClientConfigureService_ServiceDesc = grpc.ServiceDesc{
  1318  	ServiceName: "grpc.testing.XdsUpdateClientConfigureService",
  1319  	HandlerType: (*XdsUpdateClientConfigureServiceServer)(nil),
  1320  	Methods: []grpc.MethodDesc{
  1321  		{
  1322  			MethodName: "Configure",
  1323  			Handler:    _XdsUpdateClientConfigureService_Configure_Handler,
  1324  		},
  1325  	},
  1326  	Streams:  []grpc.StreamDesc{},
  1327  	Metadata: "grpc/testing/test.proto",
  1328  }