EmptyServiceGrpc.cs 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. using grpc = global::Grpc.Core;
  23. namespace Grpc.Testing {
  24. /// <summary>
  25. /// A service that has zero methods.
  26. /// See https://github.com/grpc/grpc/issues/15574
  27. /// </summary>
  28. public static partial class EmptyService
  29. {
  30. static readonly string __ServiceName = "grpc.testing.EmptyService";
  31. /// <summary>Service descriptor</summary>
  32. public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
  33. {
  34. get { return global::Grpc.Testing.EmptyServiceReflection.Descriptor.Services[0]; }
  35. }
  36. /// <summary>Base class for server-side implementations of EmptyService</summary>
  37. public abstract partial class EmptyServiceBase
  38. {
  39. }
  40. /// <summary>Client for EmptyService</summary>
  41. public partial class EmptyServiceClient : grpc::ClientBase<EmptyServiceClient>
  42. {
  43. /// <summary>Creates a new client for EmptyService</summary>
  44. /// <param name="channel">The channel to use to make remote calls.</param>
  45. public EmptyServiceClient(grpc::Channel channel) : base(channel)
  46. {
  47. }
  48. /// <summary>Creates a new client for EmptyService that uses a custom <c>CallInvoker</c>.</summary>
  49. /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
  50. public EmptyServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
  51. {
  52. }
  53. /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
  54. protected EmptyServiceClient() : base()
  55. {
  56. }
  57. /// <summary>Protected constructor to allow creation of configured clients.</summary>
  58. /// <param name="configuration">The client configuration.</param>
  59. protected EmptyServiceClient(ClientBaseConfiguration configuration) : base(configuration)
  60. {
  61. }
  62. /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
  63. protected override EmptyServiceClient NewInstance(ClientBaseConfiguration configuration)
  64. {
  65. return new EmptyServiceClient(configuration);
  66. }
  67. }
  68. /// <summary>Creates service definition that can be registered with a server</summary>
  69. /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
  70. public static grpc::ServerServiceDefinition BindService(EmptyServiceBase serviceImpl)
  71. {
  72. return grpc::ServerServiceDefinition.CreateBuilder().Build();
  73. }
  74. }
  75. }
  76. #endregion