1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: src/proto/grpc/testing/empty_service.proto 4 // </auto-generated> 5 // Original file comments: 6 // Copyright 2018 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 #pragma warning disable 0414, 1591 21 #region Designer generated code 22 23 using grpc = global::Grpc.Core; 24 25 namespace Grpc.Testing { 26 /// <summary> 27 /// A service that has zero methods. 28 /// See https://github.com/grpc/grpc/issues/15574 29 /// </summary> 30 public static partial class EmptyService 31 { 32 static readonly string __ServiceName = "grpc.testing.EmptyService"; 33 34 35 /// <summary>Service descriptor</summary> 36 public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor 37 { 38 get { return global::Grpc.Testing.EmptyServiceReflection.Descriptor.Services[0]; } 39 } 40 41 /// <summary>Base class for server-side implementations of EmptyService</summary> 42 public abstract partial class EmptyServiceBase 43 { 44 } 45 46 /// <summary>Client for EmptyService</summary> 47 public partial class EmptyServiceClient : grpc::ClientBase<EmptyServiceClient> 48 { 49 /// <summary>Creates a new client for EmptyService</summary> 50 /// <param name="channel">The channel to use to make remote calls.</param> EmptyServiceClient(grpc::Channel channel)51 public EmptyServiceClient(grpc::Channel channel) : base(channel) 52 { 53 } 54 /// <summary>Creates a new client for EmptyService that uses a custom <c>CallInvoker</c>.</summary> 55 /// <param name="callInvoker">The callInvoker to use to make remote calls.</param> EmptyServiceClient(grpc::CallInvoker callInvoker)56 public EmptyServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) 57 { 58 } 59 /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary> EmptyServiceClient()60 protected EmptyServiceClient() : base() 61 { 62 } 63 /// <summary>Protected constructor to allow creation of configured clients.</summary> 64 /// <param name="configuration">The client configuration.</param> EmptyServiceClient(ClientBaseConfiguration configuration)65 protected EmptyServiceClient(ClientBaseConfiguration configuration) : base(configuration) 66 { 67 } 68 69 /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary> NewInstance(ClientBaseConfiguration configuration)70 protected override EmptyServiceClient NewInstance(ClientBaseConfiguration configuration) 71 { 72 return new EmptyServiceClient(configuration); 73 } 74 } 75 76 /// <summary>Creates service definition that can be registered with a server</summary> 77 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> BindService(EmptyServiceBase serviceImpl)78 public static grpc::ServerServiceDefinition BindService(EmptyServiceBase serviceImpl) 79 { 80 return grpc::ServerServiceDefinition.CreateBuilder().Build(); 81 } 82 83 } 84 } 85 #endregion 86