EmptyServiceGrpc.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
  75. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
  76. /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
  77. /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
  78. public static void BindService(grpc::ServiceBinderBase serviceBinder, EmptyServiceBase serviceImpl)
  79. {
  80. }
  81. }
  82. }
  83. #endregion