// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Protos/greet.proto // </auto-generated> #pragma warning disable 0414, 1591, 8981, 0612 #region Designer generated code using grpc = global::Grpc.Core; namespace IntegrationTestsWebsite { /// <summary> /// The greeting service definition. /// </summary> public static partial class Greeter { static readonly string __ServiceName = "greet.Greeter"; [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) { #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION if (message is global::Google.Protobuf.IBufferMessage) { context.SetPayloadLength(message.CalculateSize()); global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); context.Complete(); return; } #endif context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static class __Helper_MessageCache<T> { public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser<T> parser) where T : global::Google.Protobuf.IMessage<T> { #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION if (__Helper_MessageCache<T>.IsBufferMessage) { return parser.ParseFrom(context.PayloadAsReadOnlySequence()); } #endif return parser.ParseFrom(context.PayloadAsNewBuffer()); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller<global::IntegrationTestsWebsite.HelloRequest> __Marshaller_greet_HelloRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::IntegrationTestsWebsite.HelloRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller<global::IntegrationTestsWebsite.HelloReply> __Marshaller_greet_HelloReply = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::IntegrationTestsWebsite.HelloReply.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller<global::IntegrationTestsWebsite.EnumHelloRequest> __Marshaller_greet_EnumHelloRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::IntegrationTestsWebsite.EnumHelloRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller<global::IntegrationTestsWebsite.ComplextHelloRequest> __Marshaller_greet_ComplextHelloRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::IntegrationTestsWebsite.ComplextHelloRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHello = new grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHello", __Marshaller_greet_HelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloPost = new grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloPost", __Marshaller_greet_HelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloComplex = new grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloComplex", __Marshaller_greet_HelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.EnumHelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloPostEnum = new grpc::Method<global::IntegrationTestsWebsite.EnumHelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloPostEnum", __Marshaller_greet_EnumHelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloComplexCatchAll1 = new grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloComplexCatchAll1", __Marshaller_greet_HelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloComplexCatchAll2 = new grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloComplexCatchAll2", __Marshaller_greet_HelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.ComplextHelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloComplexCatchAll3 = new grpc::Method<global::IntegrationTestsWebsite.ComplextHelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloComplexCatchAll3", __Marshaller_greet_ComplextHelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloComplexCatchAll4 = new grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloComplexCatchAll4", __Marshaller_greet_HelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloCustomVerbOne = new grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloCustomVerbOne", __Marshaller_greet_HelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloCustomVerbTwo = new grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloCustomVerbTwo", __Marshaller_greet_HelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloCatchAllCustomVerbOne = new grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloCatchAllCustomVerbOne", __Marshaller_greet_HelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloCatchAllCustomVerbTwo = new grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloCatchAllCustomVerbTwo", __Marshaller_greet_HelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloPostCustomVerbOne = new grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloPostCustomVerbOne", __Marshaller_greet_HelloRequest, __Marshaller_greet_HelloReply); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply> __Method_SayHelloPostCustomVerbTwo = new grpc::Method<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>( grpc::MethodType.Unary, __ServiceName, "SayHelloPostCustomVerbTwo", __Marshaller_greet_HelloRequest, __Marshaller_greet_HelloReply); /// <summary>Service descriptor</summary> public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::IntegrationTestsWebsite.GreetReflection.Descriptor.Services[0]; } } /// <summary>Base class for server-side implementations of Greeter</summary> [grpc::BindServiceMethod(typeof(Greeter), "BindService")] public abstract partial class GreeterBase { /// <summary> /// Sends a greeting /// </summary> /// <param name="request">The request received from the client.</param> /// <param name="context">The context of the server-side call handler being invoked.</param> /// <returns>The response to send back to the client (wrapped by a task).</returns> [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHello(global::IntegrationTestsWebsite.HelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloPost(global::IntegrationTestsWebsite.HelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloComplex(global::IntegrationTestsWebsite.HelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloPostEnum(global::IntegrationTestsWebsite.EnumHelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloComplexCatchAll1(global::IntegrationTestsWebsite.HelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloComplexCatchAll2(global::IntegrationTestsWebsite.HelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloComplexCatchAll3(global::IntegrationTestsWebsite.ComplextHelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloComplexCatchAll4(global::IntegrationTestsWebsite.HelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloCustomVerbOne(global::IntegrationTestsWebsite.HelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloCustomVerbTwo(global::IntegrationTestsWebsite.HelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloCatchAllCustomVerbOne(global::IntegrationTestsWebsite.HelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloCatchAllCustomVerbTwo(global::IntegrationTestsWebsite.HelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloPostCustomVerbOne(global::IntegrationTestsWebsite.HelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task<global::IntegrationTestsWebsite.HelloReply> SayHelloPostCustomVerbTwo(global::IntegrationTestsWebsite.HelloRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public static grpc::ServerServiceDefinition BindService(GreeterBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_SayHello, serviceImpl.SayHello) .AddMethod(__Method_SayHelloPost, serviceImpl.SayHelloPost) .AddMethod(__Method_SayHelloComplex, serviceImpl.SayHelloComplex) .AddMethod(__Method_SayHelloPostEnum, serviceImpl.SayHelloPostEnum) .AddMethod(__Method_SayHelloComplexCatchAll1, serviceImpl.SayHelloComplexCatchAll1) .AddMethod(__Method_SayHelloComplexCatchAll2, serviceImpl.SayHelloComplexCatchAll2) .AddMethod(__Method_SayHelloComplexCatchAll3, serviceImpl.SayHelloComplexCatchAll3) .AddMethod(__Method_SayHelloComplexCatchAll4, serviceImpl.SayHelloComplexCatchAll4) .AddMethod(__Method_SayHelloCustomVerbOne, serviceImpl.SayHelloCustomVerbOne) .AddMethod(__Method_SayHelloCustomVerbTwo, serviceImpl.SayHelloCustomVerbTwo) .AddMethod(__Method_SayHelloCatchAllCustomVerbOne, serviceImpl.SayHelloCatchAllCustomVerbOne) .AddMethod(__Method_SayHelloCatchAllCustomVerbTwo, serviceImpl.SayHelloCatchAllCustomVerbTwo) .AddMethod(__Method_SayHelloPostCustomVerbOne, serviceImpl.SayHelloPostCustomVerbOne) .AddMethod(__Method_SayHelloPostCustomVerbTwo, serviceImpl.SayHelloPostCustomVerbTwo).Build(); } /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl) { serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHello)); serviceBinder.AddMethod(__Method_SayHelloPost, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloPost)); serviceBinder.AddMethod(__Method_SayHelloComplex, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloComplex)); serviceBinder.AddMethod(__Method_SayHelloPostEnum, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.EnumHelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloPostEnum)); serviceBinder.AddMethod(__Method_SayHelloComplexCatchAll1, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloComplexCatchAll1)); serviceBinder.AddMethod(__Method_SayHelloComplexCatchAll2, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloComplexCatchAll2)); serviceBinder.AddMethod(__Method_SayHelloComplexCatchAll3, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.ComplextHelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloComplexCatchAll3)); serviceBinder.AddMethod(__Method_SayHelloComplexCatchAll4, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloComplexCatchAll4)); serviceBinder.AddMethod(__Method_SayHelloCustomVerbOne, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloCustomVerbOne)); serviceBinder.AddMethod(__Method_SayHelloCustomVerbTwo, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloCustomVerbTwo)); serviceBinder.AddMethod(__Method_SayHelloCatchAllCustomVerbOne, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloCatchAllCustomVerbOne)); serviceBinder.AddMethod(__Method_SayHelloCatchAllCustomVerbTwo, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloCatchAllCustomVerbTwo)); serviceBinder.AddMethod(__Method_SayHelloPostCustomVerbOne, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloPostCustomVerbOne)); serviceBinder.AddMethod(__Method_SayHelloPostCustomVerbTwo, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::IntegrationTestsWebsite.HelloRequest, global::IntegrationTestsWebsite.HelloReply>(serviceImpl.SayHelloPostCustomVerbTwo)); } } } #endregion |