Imported Upstream version 1.21.0
[platform/upstream/grpc.git] / src / csharp / Grpc.IntegrationTesting / EmptyServiceGrpc.cs
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     [grpc::BindServiceMethod(typeof(EmptyService), "BindService")]
43     public abstract partial class EmptyServiceBase
44     {
45     }
46
47     /// <summary>Client for EmptyService</summary>
48     public partial class EmptyServiceClient : grpc::ClientBase<EmptyServiceClient>
49     {
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)
53       {
54       }
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)
58       {
59       }
60       /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
61       protected EmptyServiceClient() : base()
62       {
63       }
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)
67       {
68       }
69
70       /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
71       protected override EmptyServiceClient NewInstance(ClientBaseConfiguration configuration)
72       {
73         return new EmptyServiceClient(configuration);
74       }
75     }
76
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)
80     {
81       return grpc::ServerServiceDefinition.CreateBuilder().Build();
82     }
83
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)
89     {
90     }
91
92   }
93 }
94 #endregion