// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: lily.proto // #pragma warning disable 0414, 1591, 8981, 0612 #region Designer generated code using grpc = global::Grpc.Core; namespace Palm.Lily.V1 { public static partial class Excel { static readonly string __ServiceName = "palm.lily.v1.Excel"; [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 { 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(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage { #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION if (__Helper_MessageCache.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 __Marshaller_palm_lily_v1_S3File = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Palm.Lily.V1.S3File.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_palm_lily_v1_ExcelModel = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Palm.Lily.V1.ExcelModel.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_Parse = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "Parse", __Marshaller_palm_lily_v1_S3File, __Marshaller_palm_lily_v1_ExcelModel); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_Generate = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "Generate", __Marshaller_palm_lily_v1_ExcelModel, __Marshaller_palm_lily_v1_S3File); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Palm.Lily.V1.LilyReflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of Excel [grpc::BindServiceMethod(typeof(Excel), "BindService")] public abstract partial class ExcelBase { [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task Parse(global::Palm.Lily.V1.S3File 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 Generate(global::Palm.Lily.V1.ExcelModel request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for Excel public partial class ExcelClient : grpc::ClientBase { /// Creates a new client for Excel /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public ExcelClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for Excel that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public ExcelClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected ExcelClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected ExcelClient(ClientBaseConfiguration configuration) : base(configuration) { } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Palm.Lily.V1.ExcelModel Parse(global::Palm.Lily.V1.S3File request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return Parse(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Palm.Lily.V1.ExcelModel Parse(global::Palm.Lily.V1.S3File request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_Parse, null, options, request); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall ParseAsync(global::Palm.Lily.V1.S3File request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ParseAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall ParseAsync(global::Palm.Lily.V1.S3File request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_Parse, null, options, request); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Palm.Lily.V1.S3File Generate(global::Palm.Lily.V1.ExcelModel request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return Generate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Palm.Lily.V1.S3File Generate(global::Palm.Lily.V1.ExcelModel request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_Generate, null, options, request); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GenerateAsync(global::Palm.Lily.V1.ExcelModel request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GenerateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GenerateAsync(global::Palm.Lily.V1.ExcelModel request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_Generate, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override ExcelClient NewInstance(ClientBaseConfiguration configuration) { return new ExcelClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public static grpc::ServerServiceDefinition BindService(ExcelBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_Parse, serviceImpl.Parse) .AddMethod(__Method_Generate, serviceImpl.Generate).Build(); } /// 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. /// Service methods will be bound by calling AddMethod on this object. /// An object implementing the server-side handling logic. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public static void BindService(grpc::ServiceBinderBase serviceBinder, ExcelBase serviceImpl) { serviceBinder.AddMethod(__Method_Parse, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Parse)); serviceBinder.AddMethod(__Method_Generate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Generate)); } } public static partial class S3 { static readonly string __ServiceName = "palm.lily.v1.S3"; [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 { 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(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage { #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION if (__Helper_MessageCache.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 __Marshaller_palm_lily_v1_S3GetFileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Palm.Lily.V1.S3GetFileRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_palm_lily_v1_S3GetFileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Palm.Lily.V1.S3GetFileResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetFile = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetFile", __Marshaller_palm_lily_v1_S3GetFileRequest, __Marshaller_palm_lily_v1_S3GetFileResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Palm.Lily.V1.LilyReflection.Descriptor.Services[1]; } } /// Base class for server-side implementations of S3 [grpc::BindServiceMethod(typeof(S3), "BindService")] public abstract partial class S3Base { [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task GetFile(global::Palm.Lily.V1.S3GetFileRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for S3 public partial class S3Client : grpc::ClientBase { /// Creates a new client for S3 /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public S3Client(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for S3 that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public S3Client(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected S3Client() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected S3Client(ClientBaseConfiguration configuration) : base(configuration) { } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Palm.Lily.V1.S3GetFileResponse GetFile(global::Palm.Lily.V1.S3GetFileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetFile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Palm.Lily.V1.S3GetFileResponse GetFile(global::Palm.Lily.V1.S3GetFileRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetFile, null, options, request); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetFileAsync(global::Palm.Lily.V1.S3GetFileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetFileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetFileAsync(global::Palm.Lily.V1.S3GetFileRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetFile, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override S3Client NewInstance(ClientBaseConfiguration configuration) { return new S3Client(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public static grpc::ServerServiceDefinition BindService(S3Base serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetFile, serviceImpl.GetFile).Build(); } /// 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. /// Service methods will be bound by calling AddMethod on this object. /// An object implementing the server-side handling logic. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public static void BindService(grpc::ServiceBinderBase serviceBinder, S3Base serviceImpl) { serviceBinder.AddMethod(__Method_GetFile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetFile)); } } public static partial class Tex { static readonly string __ServiceName = "palm.lily.v1.Tex"; [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 { 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(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage { #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION if (__Helper_MessageCache.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 __Marshaller_palm_lily_v1_TexToRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Palm.Lily.V1.TexToRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_palm_lily_v1_S3File = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Palm.Lily.V1.S3File.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_ToPdf = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "ToPdf", __Marshaller_palm_lily_v1_TexToRequest, __Marshaller_palm_lily_v1_S3File); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_ToWord = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "ToWord", __Marshaller_palm_lily_v1_TexToRequest, __Marshaller_palm_lily_v1_S3File); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Palm.Lily.V1.LilyReflection.Descriptor.Services[2]; } } /// Base class for server-side implementations of Tex [grpc::BindServiceMethod(typeof(Tex), "BindService")] public abstract partial class TexBase { [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task ToPdf(global::Palm.Lily.V1.TexToRequest 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 ToWord(global::Palm.Lily.V1.TexToRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for Tex public partial class TexClient : grpc::ClientBase { /// Creates a new client for Tex /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public TexClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for Tex that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public TexClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected TexClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected TexClient(ClientBaseConfiguration configuration) : base(configuration) { } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Palm.Lily.V1.S3File ToPdf(global::Palm.Lily.V1.TexToRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ToPdf(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Palm.Lily.V1.S3File ToPdf(global::Palm.Lily.V1.TexToRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_ToPdf, null, options, request); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall ToPdfAsync(global::Palm.Lily.V1.TexToRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ToPdfAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall ToPdfAsync(global::Palm.Lily.V1.TexToRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_ToPdf, null, options, request); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Palm.Lily.V1.S3File ToWord(global::Palm.Lily.V1.TexToRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ToWord(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Palm.Lily.V1.S3File ToWord(global::Palm.Lily.V1.TexToRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_ToWord, null, options, request); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall ToWordAsync(global::Palm.Lily.V1.TexToRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return ToWordAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall ToWordAsync(global::Palm.Lily.V1.TexToRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_ToWord, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override TexClient NewInstance(ClientBaseConfiguration configuration) { return new TexClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public static grpc::ServerServiceDefinition BindService(TexBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_ToPdf, serviceImpl.ToPdf) .AddMethod(__Method_ToWord, serviceImpl.ToWord).Build(); } /// 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. /// Service methods will be bound by calling AddMethod on this object. /// An object implementing the server-side handling logic. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public static void BindService(grpc::ServiceBinderBase serviceBinder, TexBase serviceImpl) { serviceBinder.AddMethod(__Method_ToPdf, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ToPdf)); serviceBinder.AddMethod(__Method_ToWord, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ToWord)); } } public static partial class Epub { static readonly string __ServiceName = "palm.lily.v1.Epub"; [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 { 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(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage { #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION if (__Helper_MessageCache.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 __Marshaller_palm_lily_v1_EpubBuildRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Palm.Lily.V1.EpubBuildRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_palm_lily_v1_S3File = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Palm.Lily.V1.S3File.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_Build = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "Build", __Marshaller_palm_lily_v1_EpubBuildRequest, __Marshaller_palm_lily_v1_S3File); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Palm.Lily.V1.LilyReflection.Descriptor.Services[3]; } } /// Base class for server-side implementations of Epub [grpc::BindServiceMethod(typeof(Epub), "BindService")] public abstract partial class EpubBase { [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task Build(global::Palm.Lily.V1.EpubBuildRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for Epub public partial class EpubClient : grpc::ClientBase { /// Creates a new client for Epub /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public EpubClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for Epub that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public EpubClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected EpubClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected EpubClient(ClientBaseConfiguration configuration) : base(configuration) { } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Palm.Lily.V1.S3File Build(global::Palm.Lily.V1.EpubBuildRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return Build(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Palm.Lily.V1.S3File Build(global::Palm.Lily.V1.EpubBuildRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_Build, null, options, request); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall BuildAsync(global::Palm.Lily.V1.EpubBuildRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return BuildAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall BuildAsync(global::Palm.Lily.V1.EpubBuildRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_Build, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override EpubClient NewInstance(ClientBaseConfiguration configuration) { return new EpubClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public static grpc::ServerServiceDefinition BindService(EpubBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_Build, serviceImpl.Build).Build(); } /// 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. /// Service methods will be bound by calling AddMethod on this object. /// An object implementing the server-side handling logic. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public static void BindService(grpc::ServiceBinderBase serviceBinder, EpubBase serviceImpl) { serviceBinder.AddMethod(__Method_Build, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Build)); } } } #endregion