| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656 |
- // <auto-generated>
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: lily.proto
- // </auto-generated>
- #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<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::Palm.Lily.V1.S3File> __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<global::Palm.Lily.V1.ExcelModel> __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<global::Palm.Lily.V1.S3File, global::Palm.Lily.V1.ExcelModel> __Method_Parse = new grpc::Method<global::Palm.Lily.V1.S3File, global::Palm.Lily.V1.ExcelModel>(
- 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<global::Palm.Lily.V1.ExcelModel, global::Palm.Lily.V1.S3File> __Method_Generate = new grpc::Method<global::Palm.Lily.V1.ExcelModel, global::Palm.Lily.V1.S3File>(
- grpc::MethodType.Unary,
- __ServiceName,
- "Generate",
- __Marshaller_palm_lily_v1_ExcelModel,
- __Marshaller_palm_lily_v1_S3File);
- /// <summary>Service descriptor</summary>
- public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
- {
- get { return global::Palm.Lily.V1.LilyReflection.Descriptor.Services[0]; }
- }
- /// <summary>Base class for server-side implementations of Excel</summary>
- [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<global::Palm.Lily.V1.ExcelModel> 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<global::Palm.Lily.V1.S3File> Generate(global::Palm.Lily.V1.ExcelModel request, grpc::ServerCallContext context)
- {
- throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
- }
- }
- /// <summary>Client for Excel</summary>
- public partial class ExcelClient : grpc::ClientBase<ExcelClient>
- {
- /// <summary>Creates a new client for Excel</summary>
- /// <param name="channel">The channel to use to make remote calls.</param>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- public ExcelClient(grpc::ChannelBase channel) : base(channel)
- {
- }
- /// <summary>Creates a new client for Excel that uses a custom <c>CallInvoker</c>.</summary>
- /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- public ExcelClient(grpc::CallInvoker callInvoker) : base(callInvoker)
- {
- }
- /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- protected ExcelClient() : base()
- {
- }
- /// <summary>Protected constructor to allow creation of configured clients.</summary>
- /// <param name="configuration">The client configuration.</param>
- [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<global::Palm.Lily.V1.ExcelModel> 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<global::Palm.Lily.V1.ExcelModel> 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<global::Palm.Lily.V1.S3File> 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<global::Palm.Lily.V1.S3File> GenerateAsync(global::Palm.Lily.V1.ExcelModel request, grpc::CallOptions options)
- {
- return CallInvoker.AsyncUnaryCall(__Method_Generate, null, options, request);
- }
- /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- protected override ExcelClient NewInstance(ClientBaseConfiguration configuration)
- {
- return new ExcelClient(configuration);
- }
- }
- /// <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(ExcelBase serviceImpl)
- {
- return grpc::ServerServiceDefinition.CreateBuilder()
- .AddMethod(__Method_Parse, serviceImpl.Parse)
- .AddMethod(__Method_Generate, serviceImpl.Generate).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, ExcelBase serviceImpl)
- {
- serviceBinder.AddMethod(__Method_Parse, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Palm.Lily.V1.S3File, global::Palm.Lily.V1.ExcelModel>(serviceImpl.Parse));
- serviceBinder.AddMethod(__Method_Generate, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Palm.Lily.V1.ExcelModel, global::Palm.Lily.V1.S3File>(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<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::Palm.Lily.V1.S3GetFileRequest> __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<global::Palm.Lily.V1.S3GetFileResponse> __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<global::Palm.Lily.V1.S3GetFileRequest, global::Palm.Lily.V1.S3GetFileResponse> __Method_GetFile = new grpc::Method<global::Palm.Lily.V1.S3GetFileRequest, global::Palm.Lily.V1.S3GetFileResponse>(
- grpc::MethodType.Unary,
- __ServiceName,
- "GetFile",
- __Marshaller_palm_lily_v1_S3GetFileRequest,
- __Marshaller_palm_lily_v1_S3GetFileResponse);
- /// <summary>Service descriptor</summary>
- public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
- {
- get { return global::Palm.Lily.V1.LilyReflection.Descriptor.Services[1]; }
- }
- /// <summary>Base class for server-side implementations of S3</summary>
- [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<global::Palm.Lily.V1.S3GetFileResponse> GetFile(global::Palm.Lily.V1.S3GetFileRequest request, grpc::ServerCallContext context)
- {
- throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
- }
- }
- /// <summary>Client for S3</summary>
- public partial class S3Client : grpc::ClientBase<S3Client>
- {
- /// <summary>Creates a new client for S3</summary>
- /// <param name="channel">The channel to use to make remote calls.</param>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- public S3Client(grpc::ChannelBase channel) : base(channel)
- {
- }
- /// <summary>Creates a new client for S3 that uses a custom <c>CallInvoker</c>.</summary>
- /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- public S3Client(grpc::CallInvoker callInvoker) : base(callInvoker)
- {
- }
- /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- protected S3Client() : base()
- {
- }
- /// <summary>Protected constructor to allow creation of configured clients.</summary>
- /// <param name="configuration">The client configuration.</param>
- [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<global::Palm.Lily.V1.S3GetFileResponse> 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<global::Palm.Lily.V1.S3GetFileResponse> GetFileAsync(global::Palm.Lily.V1.S3GetFileRequest request, grpc::CallOptions options)
- {
- return CallInvoker.AsyncUnaryCall(__Method_GetFile, null, options, request);
- }
- /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- protected override S3Client NewInstance(ClientBaseConfiguration configuration)
- {
- return new S3Client(configuration);
- }
- }
- /// <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(S3Base serviceImpl)
- {
- return grpc::ServerServiceDefinition.CreateBuilder()
- .AddMethod(__Method_GetFile, serviceImpl.GetFile).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, S3Base serviceImpl)
- {
- serviceBinder.AddMethod(__Method_GetFile, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Palm.Lily.V1.S3GetFileRequest, global::Palm.Lily.V1.S3GetFileResponse>(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<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::Palm.Lily.V1.TexToRequest> __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<global::Palm.Lily.V1.S3File> __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<global::Palm.Lily.V1.TexToRequest, global::Palm.Lily.V1.S3File> __Method_ToPdf = new grpc::Method<global::Palm.Lily.V1.TexToRequest, global::Palm.Lily.V1.S3File>(
- 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<global::Palm.Lily.V1.TexToRequest, global::Palm.Lily.V1.S3File> __Method_ToWord = new grpc::Method<global::Palm.Lily.V1.TexToRequest, global::Palm.Lily.V1.S3File>(
- grpc::MethodType.Unary,
- __ServiceName,
- "ToWord",
- __Marshaller_palm_lily_v1_TexToRequest,
- __Marshaller_palm_lily_v1_S3File);
- /// <summary>Service descriptor</summary>
- public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
- {
- get { return global::Palm.Lily.V1.LilyReflection.Descriptor.Services[2]; }
- }
- /// <summary>Base class for server-side implementations of Tex</summary>
- [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<global::Palm.Lily.V1.S3File> 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<global::Palm.Lily.V1.S3File> ToWord(global::Palm.Lily.V1.TexToRequest request, grpc::ServerCallContext context)
- {
- throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
- }
- }
- /// <summary>Client for Tex</summary>
- public partial class TexClient : grpc::ClientBase<TexClient>
- {
- /// <summary>Creates a new client for Tex</summary>
- /// <param name="channel">The channel to use to make remote calls.</param>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- public TexClient(grpc::ChannelBase channel) : base(channel)
- {
- }
- /// <summary>Creates a new client for Tex that uses a custom <c>CallInvoker</c>.</summary>
- /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- public TexClient(grpc::CallInvoker callInvoker) : base(callInvoker)
- {
- }
- /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- protected TexClient() : base()
- {
- }
- /// <summary>Protected constructor to allow creation of configured clients.</summary>
- /// <param name="configuration">The client configuration.</param>
- [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<global::Palm.Lily.V1.S3File> 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<global::Palm.Lily.V1.S3File> 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<global::Palm.Lily.V1.S3File> 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<global::Palm.Lily.V1.S3File> ToWordAsync(global::Palm.Lily.V1.TexToRequest request, grpc::CallOptions options)
- {
- return CallInvoker.AsyncUnaryCall(__Method_ToWord, null, options, request);
- }
- /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- protected override TexClient NewInstance(ClientBaseConfiguration configuration)
- {
- return new TexClient(configuration);
- }
- }
- /// <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(TexBase serviceImpl)
- {
- return grpc::ServerServiceDefinition.CreateBuilder()
- .AddMethod(__Method_ToPdf, serviceImpl.ToPdf)
- .AddMethod(__Method_ToWord, serviceImpl.ToWord).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, TexBase serviceImpl)
- {
- serviceBinder.AddMethod(__Method_ToPdf, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Palm.Lily.V1.TexToRequest, global::Palm.Lily.V1.S3File>(serviceImpl.ToPdf));
- serviceBinder.AddMethod(__Method_ToWord, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Palm.Lily.V1.TexToRequest, global::Palm.Lily.V1.S3File>(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<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::Palm.Lily.V1.EpubBuildRequest> __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<global::Palm.Lily.V1.S3File> __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<global::Palm.Lily.V1.EpubBuildRequest, global::Palm.Lily.V1.S3File> __Method_Build = new grpc::Method<global::Palm.Lily.V1.EpubBuildRequest, global::Palm.Lily.V1.S3File>(
- grpc::MethodType.Unary,
- __ServiceName,
- "Build",
- __Marshaller_palm_lily_v1_EpubBuildRequest,
- __Marshaller_palm_lily_v1_S3File);
- /// <summary>Service descriptor</summary>
- public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
- {
- get { return global::Palm.Lily.V1.LilyReflection.Descriptor.Services[3]; }
- }
- /// <summary>Base class for server-side implementations of Epub</summary>
- [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<global::Palm.Lily.V1.S3File> Build(global::Palm.Lily.V1.EpubBuildRequest request, grpc::ServerCallContext context)
- {
- throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
- }
- }
- /// <summary>Client for Epub</summary>
- public partial class EpubClient : grpc::ClientBase<EpubClient>
- {
- /// <summary>Creates a new client for Epub</summary>
- /// <param name="channel">The channel to use to make remote calls.</param>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- public EpubClient(grpc::ChannelBase channel) : base(channel)
- {
- }
- /// <summary>Creates a new client for Epub that uses a custom <c>CallInvoker</c>.</summary>
- /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- public EpubClient(grpc::CallInvoker callInvoker) : base(callInvoker)
- {
- }
- /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- protected EpubClient() : base()
- {
- }
- /// <summary>Protected constructor to allow creation of configured clients.</summary>
- /// <param name="configuration">The client configuration.</param>
- [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<global::Palm.Lily.V1.S3File> 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<global::Palm.Lily.V1.S3File> BuildAsync(global::Palm.Lily.V1.EpubBuildRequest request, grpc::CallOptions options)
- {
- return CallInvoker.AsyncUnaryCall(__Method_Build, null, options, request);
- }
- /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- protected override EpubClient NewInstance(ClientBaseConfiguration configuration)
- {
- return new EpubClient(configuration);
- }
- }
- /// <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(EpubBase serviceImpl)
- {
- return grpc::ServerServiceDefinition.CreateBuilder()
- .AddMethod(__Method_Build, serviceImpl.Build).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, EpubBase serviceImpl)
- {
- serviceBinder.AddMethod(__Method_Build, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Palm.Lily.V1.EpubBuildRequest, global::Palm.Lily.V1.S3File>(serviceImpl.Build));
- }
- }
- }
- #endregion
|