• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: src/proto/grpc/testing/benchmark_service.proto
4 // </auto-generated>
5 // Original file comments:
6 // Copyright 2015 gRPC authors.
7 //
8 // Licensed under the Apache License, Version 2.0 (the "License");
9 // you may not use this file except in compliance with the License.
10 // You may obtain a copy of the License at
11 //
12 //     http://www.apache.org/licenses/LICENSE-2.0
13 //
14 // Unless required by applicable law or agreed to in writing, software
15 // distributed under the License is distributed on an "AS IS" BASIS,
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 // See the License for the specific language governing permissions and
18 // limitations under the License.
19 //
20 // An integration test service that covers all the method signature permutations
21 // of unary/streaming requests/responses.
22 #pragma warning disable 0414, 1591
23 #region Designer generated code
24 
25 using grpc = global::Grpc.Core;
26 
27 namespace Grpc.Testing {
28   public static partial class BenchmarkService
29   {
30     static readonly string __ServiceName = "grpc.testing.BenchmarkService";
31 
__Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context)32     static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context)
33     {
34       #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
35       if (message is global::Google.Protobuf.IBufferMessage)
36       {
37         context.SetPayloadLength(message.CalculateSize());
38         global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter());
39         context.Complete();
40         return;
41       }
42       #endif
43       context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message));
44     }
45 
46     static class __Helper_MessageCache<T>
47     {
48       public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T));
49     }
50 
51     static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser<T> parser) where T : global::Google.Protobuf.IMessage<T>
52     {
53       #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
54       if (__Helper_MessageCache<T>.IsBufferMessage)
55       {
56         return parser.ParseFrom(context.PayloadAsReadOnlySequence());
57       }
58       #endif
59       return parser.ParseFrom(context.PayloadAsNewBuffer());
60     }
61 
62     static readonly grpc::Marshaller<global::Grpc.Testing.SimpleRequest> __Marshaller_grpc_testing_SimpleRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.SimpleRequest.Parser));
63     static readonly grpc::Marshaller<global::Grpc.Testing.SimpleResponse> __Marshaller_grpc_testing_SimpleResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Grpc.Testing.SimpleResponse.Parser));
64 
65     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>(
66         grpc::MethodType.Unary,
67         __ServiceName,
68         "UnaryCall",
69         __Marshaller_grpc_testing_SimpleRequest,
70         __Marshaller_grpc_testing_SimpleResponse);
71 
72     static readonly grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> __Method_StreamingCall = new grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(
73         grpc::MethodType.DuplexStreaming,
74         __ServiceName,
75         "StreamingCall",
76         __Marshaller_grpc_testing_SimpleRequest,
77         __Marshaller_grpc_testing_SimpleResponse);
78 
79     static readonly grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> __Method_StreamingFromClient = new grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(
80         grpc::MethodType.ClientStreaming,
81         __ServiceName,
82         "StreamingFromClient",
83         __Marshaller_grpc_testing_SimpleRequest,
84         __Marshaller_grpc_testing_SimpleResponse);
85 
86     static readonly grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> __Method_StreamingFromServer = new grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(
87         grpc::MethodType.ServerStreaming,
88         __ServiceName,
89         "StreamingFromServer",
90         __Marshaller_grpc_testing_SimpleRequest,
91         __Marshaller_grpc_testing_SimpleResponse);
92 
93     static readonly grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> __Method_StreamingBothWays = new grpc::Method<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(
94         grpc::MethodType.DuplexStreaming,
95         __ServiceName,
96         "StreamingBothWays",
97         __Marshaller_grpc_testing_SimpleRequest,
98         __Marshaller_grpc_testing_SimpleResponse);
99 
100     /// <summary>Service descriptor</summary>
101     public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
102     {
103       get { return global::Grpc.Testing.BenchmarkServiceReflection.Descriptor.Services[0]; }
104     }
105 
106     /// <summary>Base class for server-side implementations of BenchmarkService</summary>
107     [grpc::BindServiceMethod(typeof(BenchmarkService), "BindService")]
108     public abstract partial class BenchmarkServiceBase
109     {
110       /// <summary>
111       /// One request followed by one response.
112       /// The server returns the client payload as-is.
113       /// </summary>
114       /// <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>
UnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::ServerCallContext context)117       public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.SimpleResponse> UnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::ServerCallContext context)
118       {
119         throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
120       }
121 
122       /// <summary>
123       /// Repeated sequence of one request followed by one response.
124       /// Should be called streaming ping-pong
125       /// The server returns the client payload as-is on each response
126       /// </summary>
127       /// <param name="requestStream">Used for reading requests from the client.</param>
128       /// <param name="responseStream">Used for sending responses back to the client.</param>
129       /// <param name="context">The context of the server-side call handler being invoked.</param>
130       /// <returns>A task indicating completion of the handler.</returns>
StreamingCall(grpc::IAsyncStreamReader<global::Grpc.Testing.SimpleRequest> requestStream, grpc::IServerStreamWriter<global::Grpc.Testing.SimpleResponse> responseStream, grpc::ServerCallContext context)131       public virtual global::System.Threading.Tasks.Task StreamingCall(grpc::IAsyncStreamReader<global::Grpc.Testing.SimpleRequest> requestStream, grpc::IServerStreamWriter<global::Grpc.Testing.SimpleResponse> responseStream, grpc::ServerCallContext context)
132       {
133         throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
134       }
135 
136       /// <summary>
137       /// Single-sided unbounded streaming from client to server
138       /// The server returns the client payload as-is once the client does WritesDone
139       /// </summary>
140       /// <param name="requestStream">Used for reading requests from the client.</param>
141       /// <param name="context">The context of the server-side call handler being invoked.</param>
142       /// <returns>The response to send back to the client (wrapped by a task).</returns>
StreamingFromClient(grpc::IAsyncStreamReader<global::Grpc.Testing.SimpleRequest> requestStream, grpc::ServerCallContext context)143       public virtual global::System.Threading.Tasks.Task<global::Grpc.Testing.SimpleResponse> StreamingFromClient(grpc::IAsyncStreamReader<global::Grpc.Testing.SimpleRequest> requestStream, grpc::ServerCallContext context)
144       {
145         throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
146       }
147 
148       /// <summary>
149       /// Single-sided unbounded streaming from server to client
150       /// The server repeatedly returns the client payload as-is
151       /// </summary>
152       /// <param name="request">The request received from the client.</param>
153       /// <param name="responseStream">Used for sending responses back to the client.</param>
154       /// <param name="context">The context of the server-side call handler being invoked.</param>
155       /// <returns>A task indicating completion of the handler.</returns>
StreamingFromServer(global::Grpc.Testing.SimpleRequest request, grpc::IServerStreamWriter<global::Grpc.Testing.SimpleResponse> responseStream, grpc::ServerCallContext context)156       public virtual global::System.Threading.Tasks.Task StreamingFromServer(global::Grpc.Testing.SimpleRequest request, grpc::IServerStreamWriter<global::Grpc.Testing.SimpleResponse> responseStream, grpc::ServerCallContext context)
157       {
158         throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
159       }
160 
161       /// <summary>
162       /// Two-sided unbounded streaming between server to client
163       /// Both sides send the content of their own choice to the other
164       /// </summary>
165       /// <param name="requestStream">Used for reading requests from the client.</param>
166       /// <param name="responseStream">Used for sending responses back to the client.</param>
167       /// <param name="context">The context of the server-side call handler being invoked.</param>
168       /// <returns>A task indicating completion of the handler.</returns>
StreamingBothWays(grpc::IAsyncStreamReader<global::Grpc.Testing.SimpleRequest> requestStream, grpc::IServerStreamWriter<global::Grpc.Testing.SimpleResponse> responseStream, grpc::ServerCallContext context)169       public virtual global::System.Threading.Tasks.Task StreamingBothWays(grpc::IAsyncStreamReader<global::Grpc.Testing.SimpleRequest> requestStream, grpc::IServerStreamWriter<global::Grpc.Testing.SimpleResponse> responseStream, grpc::ServerCallContext context)
170       {
171         throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
172       }
173 
174     }
175 
176     /// <summary>Client for BenchmarkService</summary>
177     public partial class BenchmarkServiceClient : grpc::ClientBase<BenchmarkServiceClient>
178     {
179       /// <summary>Creates a new client for BenchmarkService</summary>
180       /// <param name="channel">The channel to use to make remote calls.</param>
BenchmarkServiceClient(grpc::ChannelBase channel)181       public BenchmarkServiceClient(grpc::ChannelBase channel) : base(channel)
182       {
183       }
184       /// <summary>Creates a new client for BenchmarkService that uses a custom <c>CallInvoker</c>.</summary>
185       /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
BenchmarkServiceClient(grpc::CallInvoker callInvoker)186       public BenchmarkServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
187       {
188       }
189       /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
BenchmarkServiceClient()190       protected BenchmarkServiceClient() : base()
191       {
192       }
193       /// <summary>Protected constructor to allow creation of configured clients.</summary>
194       /// <param name="configuration">The client configuration.</param>
BenchmarkServiceClient(ClientBaseConfiguration configuration)195       protected BenchmarkServiceClient(ClientBaseConfiguration configuration) : base(configuration)
196       {
197       }
198 
199       /// <summary>
200       /// One request followed by one response.
201       /// The server returns the client payload as-is.
202       /// </summary>
203       /// <param name="request">The request to send to the server.</param>
204       /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
205       /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
206       /// <param name="cancellationToken">An optional token for canceling the call.</param>
207       /// <returns>The response received from the server.</returns>
UnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))208       public virtual global::Grpc.Testing.SimpleResponse UnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
209       {
210         return UnaryCall(request, new grpc::CallOptions(headers, deadline, cancellationToken));
211       }
212       /// <summary>
213       /// One request followed by one response.
214       /// The server returns the client payload as-is.
215       /// </summary>
216       /// <param name="request">The request to send to the server.</param>
217       /// <param name="options">The options for the call.</param>
218       /// <returns>The response received from the server.</returns>
UnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)219       public virtual global::Grpc.Testing.SimpleResponse UnaryCall(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)
220       {
221         return CallInvoker.BlockingUnaryCall(__Method_UnaryCall, null, options, request);
222       }
223       /// <summary>
224       /// One request followed by one response.
225       /// The server returns the client payload as-is.
226       /// </summary>
227       /// <param name="request">The request to send to the server.</param>
228       /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
229       /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
230       /// <param name="cancellationToken">An optional token for canceling the call.</param>
231       /// <returns>The call object.</returns>
UnaryCallAsync(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))232       public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.SimpleResponse> UnaryCallAsync(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
233       {
234         return UnaryCallAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
235       }
236       /// <summary>
237       /// One request followed by one response.
238       /// The server returns the client payload as-is.
239       /// </summary>
240       /// <param name="request">The request to send to the server.</param>
241       /// <param name="options">The options for the call.</param>
242       /// <returns>The call object.</returns>
UnaryCallAsync(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)243       public virtual grpc::AsyncUnaryCall<global::Grpc.Testing.SimpleResponse> UnaryCallAsync(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)
244       {
245         return CallInvoker.AsyncUnaryCall(__Method_UnaryCall, null, options, request);
246       }
247       /// <summary>
248       /// Repeated sequence of one request followed by one response.
249       /// Should be called streaming ping-pong
250       /// The server returns the client payload as-is on each response
251       /// </summary>
252       /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
253       /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
254       /// <param name="cancellationToken">An optional token for canceling the call.</param>
255       /// <returns>The call object.</returns>
StreamingCall(grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))256       public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> StreamingCall(grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
257       {
258         return StreamingCall(new grpc::CallOptions(headers, deadline, cancellationToken));
259       }
260       /// <summary>
261       /// Repeated sequence of one request followed by one response.
262       /// Should be called streaming ping-pong
263       /// The server returns the client payload as-is on each response
264       /// </summary>
265       /// <param name="options">The options for the call.</param>
266       /// <returns>The call object.</returns>
StreamingCall(grpc::CallOptions options)267       public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> StreamingCall(grpc::CallOptions options)
268       {
269         return CallInvoker.AsyncDuplexStreamingCall(__Method_StreamingCall, null, options);
270       }
271       /// <summary>
272       /// Single-sided unbounded streaming from client to server
273       /// The server returns the client payload as-is once the client does WritesDone
274       /// </summary>
275       /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
276       /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
277       /// <param name="cancellationToken">An optional token for canceling the call.</param>
278       /// <returns>The call object.</returns>
StreamingFromClient(grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))279       public virtual grpc::AsyncClientStreamingCall<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> StreamingFromClient(grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
280       {
281         return StreamingFromClient(new grpc::CallOptions(headers, deadline, cancellationToken));
282       }
283       /// <summary>
284       /// Single-sided unbounded streaming from client to server
285       /// The server returns the client payload as-is once the client does WritesDone
286       /// </summary>
287       /// <param name="options">The options for the call.</param>
288       /// <returns>The call object.</returns>
StreamingFromClient(grpc::CallOptions options)289       public virtual grpc::AsyncClientStreamingCall<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> StreamingFromClient(grpc::CallOptions options)
290       {
291         return CallInvoker.AsyncClientStreamingCall(__Method_StreamingFromClient, null, options);
292       }
293       /// <summary>
294       /// Single-sided unbounded streaming from server to client
295       /// The server repeatedly returns the client payload as-is
296       /// </summary>
297       /// <param name="request">The request to send to the server.</param>
298       /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
299       /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
300       /// <param name="cancellationToken">An optional token for canceling the call.</param>
301       /// <returns>The call object.</returns>
StreamingFromServer(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))302       public virtual grpc::AsyncServerStreamingCall<global::Grpc.Testing.SimpleResponse> StreamingFromServer(global::Grpc.Testing.SimpleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
303       {
304         return StreamingFromServer(request, new grpc::CallOptions(headers, deadline, cancellationToken));
305       }
306       /// <summary>
307       /// Single-sided unbounded streaming from server to client
308       /// The server repeatedly returns the client payload as-is
309       /// </summary>
310       /// <param name="request">The request to send to the server.</param>
311       /// <param name="options">The options for the call.</param>
312       /// <returns>The call object.</returns>
StreamingFromServer(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)313       public virtual grpc::AsyncServerStreamingCall<global::Grpc.Testing.SimpleResponse> StreamingFromServer(global::Grpc.Testing.SimpleRequest request, grpc::CallOptions options)
314       {
315         return CallInvoker.AsyncServerStreamingCall(__Method_StreamingFromServer, null, options, request);
316       }
317       /// <summary>
318       /// Two-sided unbounded streaming between server to client
319       /// Both sides send the content of their own choice to the other
320       /// </summary>
321       /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
322       /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
323       /// <param name="cancellationToken">An optional token for canceling the call.</param>
324       /// <returns>The call object.</returns>
StreamingBothWays(grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))325       public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> StreamingBothWays(grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
326       {
327         return StreamingBothWays(new grpc::CallOptions(headers, deadline, cancellationToken));
328       }
329       /// <summary>
330       /// Two-sided unbounded streaming between server to client
331       /// Both sides send the content of their own choice to the other
332       /// </summary>
333       /// <param name="options">The options for the call.</param>
334       /// <returns>The call object.</returns>
StreamingBothWays(grpc::CallOptions options)335       public virtual grpc::AsyncDuplexStreamingCall<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse> StreamingBothWays(grpc::CallOptions options)
336       {
337         return CallInvoker.AsyncDuplexStreamingCall(__Method_StreamingBothWays, null, options);
338       }
339       /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
NewInstance(ClientBaseConfiguration configuration)340       protected override BenchmarkServiceClient NewInstance(ClientBaseConfiguration configuration)
341       {
342         return new BenchmarkServiceClient(configuration);
343       }
344     }
345 
346     /// <summary>Creates service definition that can be registered with a server</summary>
347     /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
BindService(BenchmarkServiceBase serviceImpl)348     public static grpc::ServerServiceDefinition BindService(BenchmarkServiceBase serviceImpl)
349     {
350       return grpc::ServerServiceDefinition.CreateBuilder()
351           .AddMethod(__Method_UnaryCall, serviceImpl.UnaryCall)
352           .AddMethod(__Method_StreamingCall, serviceImpl.StreamingCall)
353           .AddMethod(__Method_StreamingFromClient, serviceImpl.StreamingFromClient)
354           .AddMethod(__Method_StreamingFromServer, serviceImpl.StreamingFromServer)
355           .AddMethod(__Method_StreamingBothWays, serviceImpl.StreamingBothWays).Build();
356     }
357 
358     /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
359     /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
360     /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
361     /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
BindService(grpc::ServiceBinderBase serviceBinder, BenchmarkServiceBase serviceImpl)362     public static void BindService(grpc::ServiceBinderBase serviceBinder, BenchmarkServiceBase serviceImpl)
363     {
364       serviceBinder.AddMethod(__Method_UnaryCall, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(serviceImpl.UnaryCall));
365       serviceBinder.AddMethod(__Method_StreamingCall, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(serviceImpl.StreamingCall));
366       serviceBinder.AddMethod(__Method_StreamingFromClient, serviceImpl == null ? null : new grpc::ClientStreamingServerMethod<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(serviceImpl.StreamingFromClient));
367       serviceBinder.AddMethod(__Method_StreamingFromServer, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(serviceImpl.StreamingFromServer));
368       serviceBinder.AddMethod(__Method_StreamingBothWays, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(serviceImpl.StreamingBothWays));
369     }
370 
371   }
372 }
373 #endregion
374