2 // Generated by the protocol buffer compiler. DO NOT EDIT!
3 // source: src/proto/grpc/testing/empty_service.proto
5 // Original file comments:
6 // Copyright 2018 gRPC authors.
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
12 // http://www.apache.org/licenses/LICENSE-2.0
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.
20 #pragma warning disable 0414, 1591
21 #region Designer generated code
23 using grpc = global::Grpc.Core;
25 namespace Grpc.Testing {
27 /// A service that has zero methods.
28 /// See https://github.com/grpc/grpc/issues/15574
30 public static partial class EmptyService
32 static readonly string __ServiceName = "grpc.testing.EmptyService";
35 /// <summary>Service descriptor</summary>
36 public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
38 get { return global::Grpc.Testing.EmptyServiceReflection.Descriptor.Services[0]; }
41 /// <summary>Base class for server-side implementations of EmptyService</summary>
42 [grpc::BindServiceMethod(typeof(EmptyService), "BindService")]
43 public abstract partial class EmptyServiceBase
47 /// <summary>Client for EmptyService</summary>
48 public partial class EmptyServiceClient : grpc::ClientBase<EmptyServiceClient>
50 /// <summary>Creates a new client for EmptyService</summary>
51 /// <param name="channel">The channel to use to make remote calls.</param>
52 public EmptyServiceClient(grpc::Channel channel) : base(channel)
55 /// <summary>Creates a new client for EmptyService that uses a custom <c>CallInvoker</c>.</summary>
56 /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
57 public EmptyServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
60 /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
61 protected EmptyServiceClient() : base()
64 /// <summary>Protected constructor to allow creation of configured clients.</summary>
65 /// <param name="configuration">The client configuration.</param>
66 protected EmptyServiceClient(ClientBaseConfiguration configuration) : base(configuration)
70 /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
71 protected override EmptyServiceClient NewInstance(ClientBaseConfiguration configuration)
73 return new EmptyServiceClient(configuration);
77 /// <summary>Creates service definition that can be registered with a server</summary>
78 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
79 public static grpc::ServerServiceDefinition BindService(EmptyServiceBase serviceImpl)
81 return grpc::ServerServiceDefinition.CreateBuilder().Build();
84 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
85 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
86 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
87 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
88 public static void BindService(grpc::ServiceBinderBase serviceBinder, EmptyServiceBase serviceImpl)