blob: b419dd17026ab763a5968da7b61941efdfe9c153 [file] [log] [blame]
Jan Tattermusch7eb3a762015-05-07 14:26:13 -07001// Generated by the protocol buffer compiler. DO NOT EDIT!
Jan Tattermusch72ce4422016-01-20 13:54:38 -08002// source: src/proto/grpc/testing/test.proto
Jan Tattermuschbfee01d2016-04-28 10:52:41 -07003// Original file comments:
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02004// Copyright 2015-2016 gRPC authors.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -07005//
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02006// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
Jan Tattermuschbfee01d2016-04-28 10:52:41 -07009//
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020010// http://www.apache.org/licenses/LICENSE-2.0
Jan Tattermuschbfee01d2016-04-28 10:52:41 -070011//
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020012// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -070017//
18// An integration test service that covers all the method signature permutations
19// of unary/streaming requests/responses.
20//
Jan Tattermuschca254732017-08-09 08:47:34 +020021#pragma warning disable 1591
Jan Tattermusch7eb3a762015-05-07 14:26:13 -070022#region Designer generated code
23
24using System;
25using System.Threading;
26using System.Threading.Tasks;
Jan Tattermuschff4fc132017-03-14 09:27:50 +010027using grpc = global::Grpc.Core;
Jan Tattermusch7eb3a762015-05-07 14:26:13 -070028
Jan Tattermusch5c42d8d2015-08-03 08:14:30 -070029namespace Grpc.Testing {
Jan Tattermuschbfee01d2016-04-28 10:52:41 -070030 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +010031 /// A simple service to test the various types of RPCs and experiment with
32 /// performance with various types of payload.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -070033 /// </summary>
Alexander Polcync0f4c2c2016-11-07 10:24:35 -080034 public static partial class TestService
Jan Tattermusch7eb3a762015-05-07 14:26:13 -070035 {
36 static readonly string __ServiceName = "grpc.testing.TestService";
37
Jan Tattermuschff4fc132017-03-14 09:27:50 +010038 static readonly grpc::Marshaller<global::Grpc.Testing.Empty> __Marshaller_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Empty.Parser.ParseFrom);
39 static readonly grpc::Marshaller<global::Grpc.Testing.SimpleRequest> __Marshaller_SimpleRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.SimpleRequest.Parser.ParseFrom);
40 static readonly grpc::Marshaller<global::Grpc.Testing.SimpleResponse> __Marshaller_SimpleResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.SimpleResponse.Parser.ParseFrom);
41 static readonly grpc::Marshaller<global::Grpc.Testing.StreamingOutputCallRequest> __Marshaller_StreamingOutputCallRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.StreamingOutputCallRequest.Parser.ParseFrom);
42 static readonly grpc::Marshaller<global::Grpc.Testing.StreamingOutputCallResponse> __Marshaller_StreamingOutputCallResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.StreamingOutputCallResponse.Parser.ParseFrom);
43 static readonly grpc::Marshaller<global::Grpc.Testing.StreamingInputCallRequest> __Marshaller_StreamingInputCallRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.StreamingInputCallRequest.Parser.ParseFrom);
44 static readonly grpc::Marshaller<global::Grpc.Testing.StreamingInputCallResponse> __Marshaller_StreamingInputCallResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.StreamingInputCallResponse.Parser.ParseFrom);
Jan Tattermusch7eb3a762015-05-07 14:26:13 -070045
Jan Tattermuschff4fc132017-03-14 09:27:50 +010046 static readonly grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty> __Method_EmptyCall = new grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty>(
47 grpc::MethodType.Unary,
Jan Tattermuschcc97fed2015-08-05 00:44:29 -070048 __ServiceName,
Jan Tattermusch7eb3a762015-05-07 14:26:13 -070049 "EmptyCall",
50 __Marshaller_Empty,
51 __Marshaller_Empty);
52
Jan Tattermuschff4fc132017-03-14 09:27:50 +010053 static readonly grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> __Method_UnaryCall = new grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(
54 grpc::MethodType.Unary,
Jan Tattermuschcc97fed2015-08-05 00:44:29 -070055 __ServiceName,
Jan Tattermusch7eb3a762015-05-07 14:26:13 -070056 "UnaryCall",
57 __Marshaller_SimpleRequest,
58 __Marshaller_SimpleResponse);
59
Jan Tattermuschff4fc132017-03-14 09:27:50 +010060 static readonly grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> __Method_CacheableUnaryCall = new grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(
61 grpc::MethodType.Unary,
Noah Eisenb2a26472016-10-21 16:43:57 -070062 __ServiceName,
63 "CacheableUnaryCall",
64 __Marshaller_SimpleRequest,
65 __Marshaller_SimpleResponse);
66
Jan Tattermuschff4fc132017-03-14 09:27:50 +010067 static readonly grpc::Method<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse> __Method_StreamingOutputCall = new grpc::Method<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse>(
68 grpc::MethodType.ServerStreaming,
Jan Tattermuschcc97fed2015-08-05 00:44:29 -070069 __ServiceName,
Jan Tattermusch7eb3a762015-05-07 14:26:13 -070070 "StreamingOutputCall",
71 __Marshaller_StreamingOutputCallRequest,
72 __Marshaller_StreamingOutputCallResponse);
73
Jan Tattermuschff4fc132017-03-14 09:27:50 +010074 static readonly grpc::Method<global::Grpc.Testing.StreamingInputCallRequest, global::Grpc.Testing.StreamingInputCallResponse> __Method_StreamingInputCall = new grpc::Method<global::Grpc.Testing.StreamingInputCallRequest, global::Grpc.Testing.StreamingInputCallResponse>(
75 grpc::MethodType.ClientStreaming,
Jan Tattermuschcc97fed2015-08-05 00:44:29 -070076 __ServiceName,
Jan Tattermusch7eb3a762015-05-07 14:26:13 -070077 "StreamingInputCall",
78 __Marshaller_StreamingInputCallRequest,
79 __Marshaller_StreamingInputCallResponse);
80
Jan Tattermuschff4fc132017-03-14 09:27:50 +010081 static readonly grpc::Method<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse> __Method_FullDuplexCall = new grpc::Method<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse>(
82 grpc::MethodType.DuplexStreaming,
Jan Tattermuschcc97fed2015-08-05 00:44:29 -070083 __ServiceName,
Jan Tattermusch7eb3a762015-05-07 14:26:13 -070084 "FullDuplexCall",
85 __Marshaller_StreamingOutputCallRequest,
86 __Marshaller_StreamingOutputCallResponse);
87
Jan Tattermuschff4fc132017-03-14 09:27:50 +010088 static readonly grpc::Method<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse> __Method_HalfDuplexCall = new grpc::Method<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse>(
89 grpc::MethodType.DuplexStreaming,
Jan Tattermuschcc97fed2015-08-05 00:44:29 -070090 __ServiceName,
Jan Tattermusch7eb3a762015-05-07 14:26:13 -070091 "HalfDuplexCall",
92 __Marshaller_StreamingOutputCallRequest,
93 __Marshaller_StreamingOutputCallResponse);
94
Jan Tattermuschff4fc132017-03-14 09:27:50 +010095 static readonly grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty> __Method_UnimplementedCall = new grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty>(
96 grpc::MethodType.Unary,
Noah Eisenb2a26472016-10-21 16:43:57 -070097 __ServiceName,
98 "UnimplementedCall",
99 __Marshaller_Empty,
100 __Marshaller_Empty);
101
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700102 /// <summary>Service descriptor</summary>
Jan Tattermusche6af5d12015-08-03 10:57:43 -0700103 public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
104 {
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800105 get { return global::Grpc.Testing.TestReflection.Descriptor.Services[0]; }
Jan Tattermusche6af5d12015-08-03 10:57:43 -0700106 }
107
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700108 /// <summary>Base class for server-side implementations of TestService</summary>
Alexander Polcync0f4c2c2016-11-07 10:24:35 -0800109 public abstract partial class TestServiceBase
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700110 {
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700111 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100112 /// One empty request followed by one empty response.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700113 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100114 /// <param name="request">The request received from the client.</param>
115 /// <param name="context">The context of the server-side call handler being invoked.</param>
116 /// <returns>The response to send back to the client (wrapped by a task).</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100117 public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.Empty> EmptyCall(global::Grpc.Testing.Empty request, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700118 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100119 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700120 }
121
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700122 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100123 /// One request followed by one response.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700124 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100125 /// <param name="request">The request received from the client.</param>
126 /// <param name="context">The context of the server-side call handler being invoked.</param>
127 /// <returns>The response to send back to the client (wrapped by a task).</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100128 public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.SimpleResponse> UnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700129 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100130 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700131 }
132
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700133 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100134 /// One request followed by one response. Response has cache control
135 /// headers set such that a caching HTTP proxy (such as GFE) can
136 /// satisfy subsequent requests.
Noah Eisenb2a26472016-10-21 16:43:57 -0700137 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100138 /// <param name="request">The request received from the client.</param>
139 /// <param name="context">The context of the server-side call handler being invoked.</param>
140 /// <returns>The response to send back to the client (wrapped by a task).</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100141 public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.SimpleResponse> CacheableUnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::ServerCallContext context)
Noah Eisenb2a26472016-10-21 16:43:57 -0700142 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100143 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Noah Eisenb2a26472016-10-21 16:43:57 -0700144 }
145
146 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100147 /// One request followed by a sequence of responses (streamed download).
148 /// The server returns the payload with client desired type and sizes.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700149 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100150 /// <param name="request">The request received from the client.</param>
151 /// <param name="responseStream">Used for sending responses back to the client.</param>
152 /// <param name="context">The context of the server-side call handler being invoked.</param>
153 /// <returns>A task indicating completion of the handler.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100154 public virtual global::System.Threading.Tasks.Task StreamingOutputCall(global::Grpc.Testing.StreamingOutputCallRequest request, grpc::IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700155 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100156 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700157 }
158
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700159 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100160 /// A sequence of requests followed by one response (streamed upload).
161 /// The server returns the aggregated size of client payload as the result.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700162 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100163 /// <param name="requestStream">Used for reading requests from the client.</param>
164 /// <param name="context">The context of the server-side call handler being invoked.</param>
165 /// <returns>The response to send back to the client (wrapped by a task).</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100166 public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.StreamingInputCallResponse> StreamingInputCall(grpc::IAsyncStreamReader<global::Grpc.Testing.StreamingInputCallRequest> requestStream, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700167 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100168 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700169 }
170
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700171 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100172 /// A sequence of requests with each request served by the server immediately.
173 /// As one request could lead to multiple responses, this interface
174 /// demonstrates the idea of full duplexing.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700175 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100176 /// <param name="requestStream">Used for reading requests from the client.</param>
177 /// <param name="responseStream">Used for sending responses back to the client.</param>
178 /// <param name="context">The context of the server-side call handler being invoked.</param>
179 /// <returns>A task indicating completion of the handler.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100180 public virtual global::System.Threading.Tasks.Task FullDuplexCall(grpc::IAsyncStreamReader<global::Grpc.Testing.StreamingOutputCallRequest> requestStream, grpc::IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700181 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100182 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700183 }
184
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700185 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100186 /// A sequence of requests followed by a sequence of responses.
187 /// The server buffers all the client requests and then serves them in order. A
188 /// stream of responses are returned to the client when the server starts with
189 /// first request.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700190 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100191 /// <param name="requestStream">Used for reading requests from the client.</param>
192 /// <param name="responseStream">Used for sending responses back to the client.</param>
193 /// <param name="context">The context of the server-side call handler being invoked.</param>
194 /// <returns>A task indicating completion of the handler.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100195 public virtual global::System.Threading.Tasks.Task HalfDuplexCall(grpc::IAsyncStreamReader<global::Grpc.Testing.StreamingOutputCallRequest> requestStream, grpc::IServerStreamWriter<global::Grpc.Testing.StreamingOutputCallResponse> responseStream, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700196 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100197 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700198 }
199
Noah Eisenb2a26472016-10-21 16:43:57 -0700200 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100201 /// The test server will not implement this method. It will be used
202 /// to test the behavior when clients call unimplemented methods.
Noah Eisenb2a26472016-10-21 16:43:57 -0700203 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100204 /// <param name="request">The request received from the client.</param>
205 /// <param name="context">The context of the server-side call handler being invoked.</param>
206 /// <returns>The response to send back to the client (wrapped by a task).</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100207 public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.Empty> UnimplementedCall(global::Grpc.Testing.Empty request, grpc::ServerCallContext context)
Noah Eisenb2a26472016-10-21 16:43:57 -0700208 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100209 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Noah Eisenb2a26472016-10-21 16:43:57 -0700210 }
211
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700212 }
213
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700214 /// <summary>Client for TestService</summary>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100215 public partial class TestServiceClient : grpc::ClientBase<TestServiceClient>
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700216 {
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700217 /// <summary>Creates a new client for TestService</summary>
218 /// <param name="channel">The channel to use to make remote calls.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100219 public TestServiceClient(grpc::Channel channel) : base(channel)
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700220 {
221 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700222 /// <summary>Creates a new client for TestService that uses a custom <c>CallInvoker</c>.</summary>
223 /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100224 public TestServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700225 {
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700226 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700227 /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700228 protected TestServiceClient() : base()
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700229 {
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700230 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700231 /// <summary>Protected constructor to allow creation of configured clients.</summary>
232 /// <param name="configuration">The client configuration.</param>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700233 protected TestServiceClient(ClientBaseConfiguration configuration) : base(configuration)
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700234 {
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700235 }
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700236
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700237 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100238 /// One empty request followed by one empty response.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700239 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100240 /// <param name="request">The request to send to the server.</param>
241 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
242 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
243 /// <param name="cancellationToken">An optional token for canceling the call.</param>
244 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100245 public virtual global::Grpc.Testing.Empty EmptyCall(global::Grpc.Testing.Empty request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700246 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100247 return EmptyCall(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700248 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700249 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100250 /// One empty request followed by one empty response.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700251 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100252 /// <param name="request">The request to send to the server.</param>
253 /// <param name="options">The options for the call.</param>
254 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100255 public virtual global::Grpc.Testing.Empty EmptyCall(global::Grpc.Testing.Empty request, grpc::CallOptions options)
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700256 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700257 return CallInvoker.BlockingUnaryCall(__Method_EmptyCall, null, options, request);
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700258 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700259 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100260 /// One empty request followed by one empty response.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700261 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100262 /// <param name="request">The request to send to the server.</param>
263 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
264 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
265 /// <param name="cancellationToken">An optional token for canceling the call.</param>
266 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100267 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.Empty> EmptyCallAsync(global::Grpc.Testing.Empty request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700268 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100269 return EmptyCallAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700270 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700271 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100272 /// One empty request followed by one empty response.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700273 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100274 /// <param name="request">The request to send to the server.</param>
275 /// <param name="options">The options for the call.</param>
276 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100277 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.Empty> EmptyCallAsync(global::Grpc.Testing.Empty request, grpc::CallOptions options)
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700278 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700279 return CallInvoker.AsyncUnaryCall(__Method_EmptyCall, null, options, request);
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700280 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700281 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100282 /// One request followed by one response.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700283 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100284 /// <param name="request">The request to send to the server.</param>
285 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
286 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
287 /// <param name="cancellationToken">An optional token for canceling the call.</param>
288 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100289 public virtual global::Grpc.Testing.SimpleResponse UnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700290 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100291 return UnaryCall(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700292 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700293 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100294 /// One request followed by one response.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700295 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100296 /// <param name="request">The request to send to the server.</param>
297 /// <param name="options">The options for the call.</param>
298 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100299 public virtual global::Grpc.Testing.SimpleResponse UnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700300 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700301 return CallInvoker.BlockingUnaryCall(__Method_UnaryCall, null, options, request);
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700302 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700303 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100304 /// One request followed by one response.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700305 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100306 /// <param name="request">The request to send to the server.</param>
307 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
308 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
309 /// <param name="cancellationToken">An optional token for canceling the call.</param>
310 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100311 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.SimpleResponse> UnaryCallAsync(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700312 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100313 return UnaryCallAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700314 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700315 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100316 /// One request followed by one response.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700317 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100318 /// <param name="request">The request to send to the server.</param>
319 /// <param name="options">The options for the call.</param>
320 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100321 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.SimpleResponse> UnaryCallAsync(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700322 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700323 return CallInvoker.AsyncUnaryCall(__Method_UnaryCall, null, options, request);
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700324 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700325 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100326 /// One request followed by one response. Response has cache control
327 /// headers set such that a caching HTTP proxy (such as GFE) can
328 /// satisfy subsequent requests.
Noah Eisenb2a26472016-10-21 16:43:57 -0700329 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100330 /// <param name="request">The request to send to the server.</param>
331 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
332 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
333 /// <param name="cancellationToken">An optional token for canceling the call.</param>
334 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100335 public virtual global::Grpc.Testing.SimpleResponse CacheableUnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Noah Eisenb2a26472016-10-21 16:43:57 -0700336 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100337 return CacheableUnaryCall(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Noah Eisenb2a26472016-10-21 16:43:57 -0700338 }
339 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100340 /// One request followed by one response. Response has cache control
341 /// headers set such that a caching HTTP proxy (such as GFE) can
342 /// satisfy subsequent requests.
Noah Eisenb2a26472016-10-21 16:43:57 -0700343 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100344 /// <param name="request">The request to send to the server.</param>
345 /// <param name="options">The options for the call.</param>
346 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100347 public virtual global::Grpc.Testing.SimpleResponse CacheableUnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)
Noah Eisenb2a26472016-10-21 16:43:57 -0700348 {
349 return CallInvoker.BlockingUnaryCall(__Method_CacheableUnaryCall, null, options, request);
350 }
351 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100352 /// One request followed by one response. Response has cache control
353 /// headers set such that a caching HTTP proxy (such as GFE) can
354 /// satisfy subsequent requests.
Noah Eisenb2a26472016-10-21 16:43:57 -0700355 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100356 /// <param name="request">The request to send to the server.</param>
357 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
358 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
359 /// <param name="cancellationToken">An optional token for canceling the call.</param>
360 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100361 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.SimpleResponse> CacheableUnaryCallAsync(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Noah Eisenb2a26472016-10-21 16:43:57 -0700362 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100363 return CacheableUnaryCallAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Noah Eisenb2a26472016-10-21 16:43:57 -0700364 }
365 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100366 /// One request followed by one response. Response has cache control
367 /// headers set such that a caching HTTP proxy (such as GFE) can
368 /// satisfy subsequent requests.
Noah Eisenb2a26472016-10-21 16:43:57 -0700369 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100370 /// <param name="request">The request to send to the server.</param>
371 /// <param name="options">The options for the call.</param>
372 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100373 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.SimpleResponse> CacheableUnaryCallAsync(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)
Noah Eisenb2a26472016-10-21 16:43:57 -0700374 {
375 return CallInvoker.AsyncUnaryCall(__Method_CacheableUnaryCall, null, options, request);
376 }
377 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100378 /// One request followed by a sequence of responses (streamed download).
379 /// The server returns the payload with client desired type and sizes.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700380 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100381 /// <param name="request">The request to send to the server.</param>
382 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
383 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
384 /// <param name="cancellationToken">An optional token for canceling the call.</param>
385 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100386 public virtual grpc::AsyncServerStreamingCall<global::Grpc.Testing.StreamingOutputCallResponse> StreamingOutputCall(global::Grpc.Testing.StreamingOutputCallRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700387 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100388 return StreamingOutputCall(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700389 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700390 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100391 /// One request followed by a sequence of responses (streamed download).
392 /// The server returns the payload with client desired type and sizes.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700393 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100394 /// <param name="request">The request to send to the server.</param>
395 /// <param name="options">The options for the call.</param>
396 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100397 public virtual grpc::AsyncServerStreamingCall<global::Grpc.Testing.StreamingOutputCallResponse> StreamingOutputCall(global::Grpc.Testing.StreamingOutputCallRequest request, grpc::CallOptions options)
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700398 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700399 return CallInvoker.AsyncServerStreamingCall(__Method_StreamingOutputCall, null, options, request);
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700400 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700401 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100402 /// A sequence of requests followed by one response (streamed upload).
403 /// The server returns the aggregated size of client payload as the result.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700404 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100405 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
406 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
407 /// <param name="cancellationToken">An optional token for canceling the call.</param>
408 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100409 public virtual grpc::AsyncClientStreamingCall<global::Grpc.Testing.StreamingInputCallRequest, global::Grpc.Testing.StreamingInputCallResponse> StreamingInputCall(grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700410 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100411 return StreamingInputCall(new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700412 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700413 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100414 /// A sequence of requests followed by one response (streamed upload).
415 /// The server returns the aggregated size of client payload as the result.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700416 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100417 /// <param name="options">The options for the call.</param>
418 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100419 public virtual grpc::AsyncClientStreamingCall<global::Grpc.Testing.StreamingInputCallRequest, global::Grpc.Testing.StreamingInputCallResponse> StreamingInputCall(grpc::CallOptions options)
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700420 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700421 return CallInvoker.AsyncClientStreamingCall(__Method_StreamingInputCall, null, options);
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700422 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700423 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100424 /// A sequence of requests with each request served by the server immediately.
425 /// As one request could lead to multiple responses, this interface
426 /// demonstrates the idea of full duplexing.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700427 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100428 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
429 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
430 /// <param name="cancellationToken">An optional token for canceling the call.</param>
431 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100432 public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse> FullDuplexCall(grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschcc97fed2015-08-05 00:44:29 -0700433 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100434 return FullDuplexCall(new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700435 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700436 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100437 /// A sequence of requests with each request served by the server immediately.
438 /// As one request could lead to multiple responses, this interface
439 /// demonstrates the idea of full duplexing.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700440 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100441 /// <param name="options">The options for the call.</param>
442 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100443 public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse> FullDuplexCall(grpc::CallOptions options)
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700444 {
445 return CallInvoker.AsyncDuplexStreamingCall(__Method_FullDuplexCall, null, options);
446 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700447 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100448 /// A sequence of requests followed by a sequence of responses.
449 /// The server buffers all the client requests and then serves them in order. A
450 /// stream of responses are returned to the client when the server starts with
451 /// first request.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700452 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100453 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
454 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
455 /// <param name="cancellationToken">An optional token for canceling the call.</param>
456 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100457 public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse> HalfDuplexCall(grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700458 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100459 return HalfDuplexCall(new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700460 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700461 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100462 /// A sequence of requests followed by a sequence of responses.
463 /// The server buffers all the client requests and then serves them in order. A
464 /// stream of responses are returned to the client when the server starts with
465 /// first request.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700466 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100467 /// <param name="options">The options for the call.</param>
468 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100469 public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse> HalfDuplexCall(grpc::CallOptions options)
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700470 {
471 return CallInvoker.AsyncDuplexStreamingCall(__Method_HalfDuplexCall, null, options);
472 }
Noah Eisenb2a26472016-10-21 16:43:57 -0700473 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100474 /// The test server will not implement this method. It will be used
475 /// to test the behavior when clients call unimplemented methods.
Noah Eisenb2a26472016-10-21 16:43:57 -0700476 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100477 /// <param name="request">The request to send to the server.</param>
478 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
479 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
480 /// <param name="cancellationToken">An optional token for canceling the call.</param>
481 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100482 public virtual global::Grpc.Testing.Empty UnimplementedCall(global::Grpc.Testing.Empty request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Noah Eisenb2a26472016-10-21 16:43:57 -0700483 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100484 return UnimplementedCall(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Noah Eisenb2a26472016-10-21 16:43:57 -0700485 }
486 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100487 /// The test server will not implement this method. It will be used
488 /// to test the behavior when clients call unimplemented methods.
Noah Eisenb2a26472016-10-21 16:43:57 -0700489 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100490 /// <param name="request">The request to send to the server.</param>
491 /// <param name="options">The options for the call.</param>
492 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100493 public virtual global::Grpc.Testing.Empty UnimplementedCall(global::Grpc.Testing.Empty request, grpc::CallOptions options)
Noah Eisenb2a26472016-10-21 16:43:57 -0700494 {
495 return CallInvoker.BlockingUnaryCall(__Method_UnimplementedCall, null, options, request);
496 }
497 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100498 /// The test server will not implement this method. It will be used
499 /// to test the behavior when clients call unimplemented methods.
Noah Eisenb2a26472016-10-21 16:43:57 -0700500 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100501 /// <param name="request">The request to send to the server.</param>
502 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
503 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
504 /// <param name="cancellationToken">An optional token for canceling the call.</param>
505 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100506 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.Empty> UnimplementedCallAsync(global::Grpc.Testing.Empty request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Noah Eisenb2a26472016-10-21 16:43:57 -0700507 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100508 return UnimplementedCallAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Noah Eisenb2a26472016-10-21 16:43:57 -0700509 }
510 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100511 /// The test server will not implement this method. It will be used
512 /// to test the behavior when clients call unimplemented methods.
Noah Eisenb2a26472016-10-21 16:43:57 -0700513 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100514 /// <param name="request">The request to send to the server.</param>
515 /// <param name="options">The options for the call.</param>
516 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100517 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.Empty> UnimplementedCallAsync(global::Grpc.Testing.Empty request, grpc::CallOptions options)
Noah Eisenb2a26472016-10-21 16:43:57 -0700518 {
519 return CallInvoker.AsyncUnaryCall(__Method_UnimplementedCall, null, options, request);
520 }
Jan Tattermusch10098d12016-10-06 13:15:12 +0200521 /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700522 protected override TestServiceClient NewInstance(ClientBaseConfiguration configuration)
523 {
524 return new TestServiceClient(configuration);
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700525 }
526 }
527
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700528 /// <summary>Creates service definition that can be registered with a server</summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100529 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100530 public static grpc::ServerServiceDefinition BindService(TestServiceBase serviceImpl)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700531 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100532 return grpc::ServerServiceDefinition.CreateBuilder()
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700533 .AddMethod(__Method_EmptyCall, serviceImpl.EmptyCall)
534 .AddMethod(__Method_UnaryCall, serviceImpl.UnaryCall)
Noah Eisenb2a26472016-10-21 16:43:57 -0700535 .AddMethod(__Method_CacheableUnaryCall, serviceImpl.CacheableUnaryCall)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700536 .AddMethod(__Method_StreamingOutputCall, serviceImpl.StreamingOutputCall)
537 .AddMethod(__Method_StreamingInputCall, serviceImpl.StreamingInputCall)
538 .AddMethod(__Method_FullDuplexCall, serviceImpl.FullDuplexCall)
Noah Eisenb2a26472016-10-21 16:43:57 -0700539 .AddMethod(__Method_HalfDuplexCall, serviceImpl.HalfDuplexCall)
540 .AddMethod(__Method_UnimplementedCall, serviceImpl.UnimplementedCall).Build();
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700541 }
542
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700543 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700544 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100545 /// A simple service NOT implemented at servers so clients can test for
546 /// that case.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700547 /// </summary>
Alexander Polcync0f4c2c2016-11-07 10:24:35 -0800548 public static partial class UnimplementedService
Jan Tattermusch70f86522015-10-07 18:23:51 -0700549 {
550 static readonly string __ServiceName = "grpc.testing.UnimplementedService";
551
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100552 static readonly grpc::Marshaller<global::Grpc.Testing.Empty> __Marshaller_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Empty.Parser.ParseFrom);
Jan Tattermusch70f86522015-10-07 18:23:51 -0700553
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100554 static readonly grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty> __Method_UnimplementedCall = new grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty>(
555 grpc::MethodType.Unary,
Jan Tattermusch70f86522015-10-07 18:23:51 -0700556 __ServiceName,
557 "UnimplementedCall",
558 __Marshaller_Empty,
559 __Marshaller_Empty);
560
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700561 /// <summary>Service descriptor</summary>
Jan Tattermusch70f86522015-10-07 18:23:51 -0700562 public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
563 {
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800564 get { return global::Grpc.Testing.TestReflection.Descriptor.Services[1]; }
Jan Tattermusch70f86522015-10-07 18:23:51 -0700565 }
566
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700567 /// <summary>Base class for server-side implementations of UnimplementedService</summary>
Alexander Polcync0f4c2c2016-11-07 10:24:35 -0800568 public abstract partial class UnimplementedServiceBase
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700569 {
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700570 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100571 /// A call that no server should implement
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700572 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100573 /// <param name="request">The request received from the client.</param>
574 /// <param name="context">The context of the server-side call handler being invoked.</param>
575 /// <returns>The response to send back to the client (wrapped by a task).</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100576 public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.Empty> UnimplementedCall(global::Grpc.Testing.Empty request, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700577 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100578 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700579 }
580
581 }
582
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700583 /// <summary>Client for UnimplementedService</summary>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100584 public partial class UnimplementedServiceClient : grpc::ClientBase<UnimplementedServiceClient>
Jan Tattermusch70f86522015-10-07 18:23:51 -0700585 {
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700586 /// <summary>Creates a new client for UnimplementedService</summary>
587 /// <param name="channel">The channel to use to make remote calls.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100588 public UnimplementedServiceClient(grpc::Channel channel) : base(channel)
Jan Tattermusch70f86522015-10-07 18:23:51 -0700589 {
590 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700591 /// <summary>Creates a new client for UnimplementedService that uses a custom <c>CallInvoker</c>.</summary>
592 /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100593 public UnimplementedServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
Jan Tattermusch70f86522015-10-07 18:23:51 -0700594 {
Jan Tattermusch70f86522015-10-07 18:23:51 -0700595 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700596 /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700597 protected UnimplementedServiceClient() : base()
Jan Tattermusch70f86522015-10-07 18:23:51 -0700598 {
Jan Tattermusch70f86522015-10-07 18:23:51 -0700599 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700600 /// <summary>Protected constructor to allow creation of configured clients.</summary>
601 /// <param name="configuration">The client configuration.</param>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700602 protected UnimplementedServiceClient(ClientBaseConfiguration configuration) : base(configuration)
Jan Tattermusch70f86522015-10-07 18:23:51 -0700603 {
Jan Tattermusch70f86522015-10-07 18:23:51 -0700604 }
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700605
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700606 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100607 /// A call that no server should implement
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700608 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100609 /// <param name="request">The request to send to the server.</param>
610 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
611 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
612 /// <param name="cancellationToken">An optional token for canceling the call.</param>
613 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100614 public virtual global::Grpc.Testing.Empty UnimplementedCall(global::Grpc.Testing.Empty request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermusch70f86522015-10-07 18:23:51 -0700615 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100616 return UnimplementedCall(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700617 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700618 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100619 /// A call that no server should implement
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700620 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100621 /// <param name="request">The request to send to the server.</param>
622 /// <param name="options">The options for the call.</param>
623 /// <returns>The response received from the server.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100624 public virtual global::Grpc.Testing.Empty UnimplementedCall(global::Grpc.Testing.Empty request, grpc::CallOptions options)
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700625 {
626 return CallInvoker.BlockingUnaryCall(__Method_UnimplementedCall, null, options, request);
627 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700628 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100629 /// A call that no server should implement
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700630 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100631 /// <param name="request">The request to send to the server.</param>
632 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
633 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
634 /// <param name="cancellationToken">An optional token for canceling the call.</param>
635 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100636 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.Empty> UnimplementedCallAsync(global::Grpc.Testing.Empty request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700637 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100638 return UnimplementedCallAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700639 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700640 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100641 /// A call that no server should implement
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700642 /// </summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100643 /// <param name="request">The request to send to the server.</param>
644 /// <param name="options">The options for the call.</param>
645 /// <returns>The call object.</returns>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100646 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.Empty> UnimplementedCallAsync(global::Grpc.Testing.Empty request, grpc::CallOptions options)
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700647 {
648 return CallInvoker.AsyncUnaryCall(__Method_UnimplementedCall, null, options, request);
649 }
Jan Tattermusch10098d12016-10-06 13:15:12 +0200650 /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700651 protected override UnimplementedServiceClient NewInstance(ClientBaseConfiguration configuration)
652 {
653 return new UnimplementedServiceClient(configuration);
Jan Tattermusch70f86522015-10-07 18:23:51 -0700654 }
655 }
656
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700657 /// <summary>Creates service definition that can be registered with a server</summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100658 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100659 public static grpc::ServerServiceDefinition BindService(UnimplementedServiceBase serviceImpl)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700660 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100661 return grpc::ServerServiceDefinition.CreateBuilder()
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700662 .AddMethod(__Method_UnimplementedCall, serviceImpl.UnimplementedCall).Build();
663 }
664
Jan Tattermusch70f86522015-10-07 18:23:51 -0700665 }
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700666 /// <summary>
Jan Tattermusch726f40f2016-12-12 12:09:35 +0100667 /// A service used to control reconnect server.
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700668 /// </summary>
Alexander Polcync0f4c2c2016-11-07 10:24:35 -0800669 public static partial class ReconnectService
Jan Tattermusch70f86522015-10-07 18:23:51 -0700670 {
671 static readonly string __ServiceName = "grpc.testing.ReconnectService";
672
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100673 static readonly grpc::Marshaller<global::Grpc.Testing.ReconnectParams> __Marshaller_ReconnectParams = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ReconnectParams.Parser.ParseFrom);
674 static readonly grpc::Marshaller<global::Grpc.Testing.Empty> __Marshaller_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.Empty.Parser.ParseFrom);
675 static readonly grpc::Marshaller<global::Grpc.Testing.ReconnectInfo> __Marshaller_ReconnectInfo = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Grpc.Testing.ReconnectInfo.Parser.ParseFrom);
Jan Tattermusch70f86522015-10-07 18:23:51 -0700676
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100677 static readonly grpc::Method<global::Grpc.Testing.ReconnectParams, global::Grpc.Testing.Empty> __Method_Start = new grpc::Method<global::Grpc.Testing.ReconnectParams, global::Grpc.Testing.Empty>(
678 grpc::MethodType.Unary,
Jan Tattermusch70f86522015-10-07 18:23:51 -0700679 __ServiceName,
680 "Start",
vjpai87bac952016-04-20 09:35:35 -0700681 __Marshaller_ReconnectParams,
Jan Tattermusch70f86522015-10-07 18:23:51 -0700682 __Marshaller_Empty);
683
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100684 static readonly grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.ReconnectInfo> __Method_Stop = new grpc::Method<global::Grpc.Testing.Empty, global::Grpc.Testing.ReconnectInfo>(
685 grpc::MethodType.Unary,
Jan Tattermusch70f86522015-10-07 18:23:51 -0700686 __ServiceName,
687 "Stop",
688 __Marshaller_Empty,
689 __Marshaller_ReconnectInfo);
690
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700691 /// <summary>Service descriptor</summary>
Jan Tattermusch70f86522015-10-07 18:23:51 -0700692 public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
693 {
Jan Tattermusch72ce4422016-01-20 13:54:38 -0800694 get { return global::Grpc.Testing.TestReflection.Descriptor.Services[2]; }
Jan Tattermusch70f86522015-10-07 18:23:51 -0700695 }
696
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700697 /// <summary>Base class for server-side implementations of ReconnectService</summary>
Alexander Polcync0f4c2c2016-11-07 10:24:35 -0800698 public abstract partial class ReconnectServiceBase
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700699 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100700 public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.Empty> Start(global::Grpc.Testing.ReconnectParams request, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700701 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100702 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700703 }
704
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100705 public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.ReconnectInfo> Stop(global::Grpc.Testing.Empty request, grpc::ServerCallContext context)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700706 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100707 throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700708 }
709
710 }
711
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700712 /// <summary>Client for ReconnectService</summary>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100713 public partial class ReconnectServiceClient : grpc::ClientBase<ReconnectServiceClient>
Jan Tattermusch70f86522015-10-07 18:23:51 -0700714 {
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700715 /// <summary>Creates a new client for ReconnectService</summary>
716 /// <param name="channel">The channel to use to make remote calls.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100717 public ReconnectServiceClient(grpc::Channel channel) : base(channel)
Jan Tattermusch70f86522015-10-07 18:23:51 -0700718 {
719 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700720 /// <summary>Creates a new client for ReconnectService that uses a custom <c>CallInvoker</c>.</summary>
721 /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100722 public ReconnectServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
Jan Tattermusch70f86522015-10-07 18:23:51 -0700723 {
Jan Tattermusch70f86522015-10-07 18:23:51 -0700724 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700725 /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700726 protected ReconnectServiceClient() : base()
Jan Tattermusch70f86522015-10-07 18:23:51 -0700727 {
Jan Tattermusch70f86522015-10-07 18:23:51 -0700728 }
Jan Tattermusched6ea4c2016-06-22 12:38:44 -0700729 /// <summary>Protected constructor to allow creation of configured clients.</summary>
730 /// <param name="configuration">The client configuration.</param>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700731 protected ReconnectServiceClient(ClientBaseConfiguration configuration) : base(configuration)
Jan Tattermusch70f86522015-10-07 18:23:51 -0700732 {
Jan Tattermusch70f86522015-10-07 18:23:51 -0700733 }
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700734
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100735 public virtual global::Grpc.Testing.Empty Start(global::Grpc.Testing.ReconnectParams request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermusch70f86522015-10-07 18:23:51 -0700736 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100737 return Start(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermusch70f86522015-10-07 18:23:51 -0700738 }
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100739 public virtual global::Grpc.Testing.Empty Start(global::Grpc.Testing.ReconnectParams request, grpc::CallOptions options)
Jan Tattermusch70f86522015-10-07 18:23:51 -0700740 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700741 return CallInvoker.BlockingUnaryCall(__Method_Start, null, options, request);
Jan Tattermusch70f86522015-10-07 18:23:51 -0700742 }
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100743 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.Empty> StartAsync(global::Grpc.Testing.ReconnectParams request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermusch70f86522015-10-07 18:23:51 -0700744 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100745 return StartAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermusch70f86522015-10-07 18:23:51 -0700746 }
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100747 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.Empty> StartAsync(global::Grpc.Testing.ReconnectParams request, grpc::CallOptions options)
Jan Tattermusch70f86522015-10-07 18:23:51 -0700748 {
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700749 return CallInvoker.AsyncUnaryCall(__Method_Start, null, options, request);
Jan Tattermusch70f86522015-10-07 18:23:51 -0700750 }
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100751 public virtual global::Grpc.Testing.ReconnectInfo Stop(global::Grpc.Testing.Empty request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermusch70f86522015-10-07 18:23:51 -0700752 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100753 return Stop(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700754 }
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100755 public virtual global::Grpc.Testing.ReconnectInfo Stop(global::Grpc.Testing.Empty request, grpc::CallOptions options)
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700756 {
757 return CallInvoker.BlockingUnaryCall(__Method_Stop, null, options, request);
758 }
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100759 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.ReconnectInfo> StopAsync(global::Grpc.Testing.Empty request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700760 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100761 return StopAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700762 }
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100763 public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.ReconnectInfo> StopAsync(global::Grpc.Testing.Empty request, grpc::CallOptions options)
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700764 {
765 return CallInvoker.AsyncUnaryCall(__Method_Stop, null, options, request);
766 }
Jan Tattermusch10098d12016-10-06 13:15:12 +0200767 /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
Jan Tattermuschddc4e342016-03-21 19:03:14 -0700768 protected override ReconnectServiceClient NewInstance(ClientBaseConfiguration configuration)
769 {
770 return new ReconnectServiceClient(configuration);
Jan Tattermusch70f86522015-10-07 18:23:51 -0700771 }
772 }
773
Jan Tattermuschbfee01d2016-04-28 10:52:41 -0700774 /// <summary>Creates service definition that can be registered with a server</summary>
Jan Tattermusch00f66362016-12-12 13:02:29 +0100775 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100776 public static grpc::ServerServiceDefinition BindService(ReconnectServiceBase serviceImpl)
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700777 {
Jan Tattermuschff4fc132017-03-14 09:27:50 +0100778 return grpc::ServerServiceDefinition.CreateBuilder()
Jan Tattermuscheeef5ed2016-03-14 16:08:39 -0700779 .AddMethod(__Method_Start, serviceImpl.Start)
780 .AddMethod(__Method_Stop, serviceImpl.Stop).Build();
781 }
782
Jan Tattermusch70f86522015-10-07 18:23:51 -0700783 }
Jan Tattermusch7eb3a762015-05-07 14:26:13 -0700784}
Jan Tattermuschcd7e3132015-05-07 15:10:23 -0700785#endregion