//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/banner/v1/keyapis_banner_banner_v1.proto
//
// Original file comments:
//
// Сервис реализует функционал управления баннерами.
// Используются как источник Критичнх уведомления, White label компаний и объявления рекламных акций
#pragma warning disable 0414, 1591
#region Designer generated code
using grpc = global::Grpc.Core;
namespace Keyapis.Banner.V1 {
///
/// Сервис управления баннерами
///
public static partial class BannerService
{
static readonly string __ServiceName = "keyapis.banner.v1.BannerService";
[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_keyapis_banner_v1_PostBannerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.PostBannerRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_PostBannerResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.PostBannerResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_GetBannerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.GetBannerRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_GetBannerResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.GetBannerResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_GetBannerLiteRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.GetBannerLiteRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_GetBannerLiteResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.GetBannerLiteResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_GetBannerListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.GetBannerListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_GetBannerListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.GetBannerListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_GetBannerLiteListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.GetBannerLiteListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_GetBannerLiteListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.GetBannerLiteListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_GetBannerCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.GetBannerCountRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_GetBannerCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.GetBannerCountResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_PostBannerUploadImageRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.PostBannerUploadImageRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_banner_v1_PostBannerUploadImageResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Banner.V1.PostBannerUploadImageResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_PostBanner = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"PostBanner",
__Marshaller_keyapis_banner_v1_PostBannerRequest,
__Marshaller_keyapis_banner_v1_PostBannerResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetBanner = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetBanner",
__Marshaller_keyapis_banner_v1_GetBannerRequest,
__Marshaller_keyapis_banner_v1_GetBannerResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetBannerLite = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetBannerLite",
__Marshaller_keyapis_banner_v1_GetBannerLiteRequest,
__Marshaller_keyapis_banner_v1_GetBannerLiteResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetBannerList = new grpc::Method(
grpc::MethodType.ServerStreaming,
__ServiceName,
"GetBannerList",
__Marshaller_keyapis_banner_v1_GetBannerListRequest,
__Marshaller_keyapis_banner_v1_GetBannerListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetBannerLiteList = new grpc::Method(
grpc::MethodType.ServerStreaming,
__ServiceName,
"GetBannerLiteList",
__Marshaller_keyapis_banner_v1_GetBannerLiteListRequest,
__Marshaller_keyapis_banner_v1_GetBannerLiteListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetBannerCount = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetBannerCount",
__Marshaller_keyapis_banner_v1_GetBannerCountRequest,
__Marshaller_keyapis_banner_v1_GetBannerCountResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_PostBannerUploadImage = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"PostBannerUploadImage",
__Marshaller_keyapis_banner_v1_PostBannerUploadImageRequest,
__Marshaller_keyapis_banner_v1_PostBannerUploadImageResponse);
/// Service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::Keyapis.Banner.V1.KeyapisBannerBannerV1Reflection.Descriptor.Services[0]; }
}
/// Base class for server-side implementations of BannerService
[grpc::BindServiceMethod(typeof(BannerService), "BindService")]
public abstract partial class BannerServiceBase
{
///
/// Метод сохранения баннера.
/// Поддерживает создание и обновление.
/// Метод доступен для: admin, manager, service
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task PostBanner(global::Keyapis.Banner.V1.PostBannerRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения баннера.
/// Метод доступен для: admin, manager, service
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetBanner(global::Keyapis.Banner.V1.GetBannerRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения упрощённого баннера.
/// Не требует авторизации
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetBannerLite(global::Keyapis.Banner.V1.GetBannerLiteRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения списка баннеров.
/// Метод доступен для: admin, manager, service
///
/// The request received from the client.
/// Used for sending responses back to the client.
/// The context of the server-side call handler being invoked.
/// A task indicating completion of the handler.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetBannerList(global::Keyapis.Banner.V1.GetBannerListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения списка упрощённых баннеров.
/// Возвращает всегда активные баннеры.
/// По умолчанию возвращает первые 20 баннеров осортированных по приоритету, затем по дате начала акции(от самых важных к не важным, затем от самых новых акций к самым старым).
/// Если запрос выполнен хотя бы без одного изпризнака приложения возвращает пустой список.
/// Если запрос выполнен без признаков пользователя метод возвращает пустой список.
/// Не требует авторизации
///
/// The request received from the client.
/// Used for sending responses back to the client.
/// The context of the server-side call handler being invoked.
/// A task indicating completion of the handler.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetBannerLiteList(global::Keyapis.Banner.V1.GetBannerLiteListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения количества баннеров.
/// Метод доступен для: admin, manager, service
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetBannerCount(global::Keyapis.Banner.V1.GetBannerCountRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод загрузки картинки баннера.
/// Метод доступен для: admin, manager, service
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task PostBannerUploadImage(global::Keyapis.Banner.V1.PostBannerUploadImageRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// Client for BannerService
public partial class BannerServiceClient : grpc::ClientBase
{
/// Creates a new client for BannerService
/// The channel to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public BannerServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// Creates a new client for BannerService that uses a custom CallInvoker.
/// The callInvoker to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public BannerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// Protected parameterless constructor to allow creation of test doubles.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected BannerServiceClient() : base()
{
}
/// Protected constructor to allow creation of configured clients.
/// The client configuration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected BannerServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
///
/// Метод сохранения баннера.
/// Поддерживает создание и обновление.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.Banner.V1.PostBannerResponse PostBanner(global::Keyapis.Banner.V1.PostBannerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostBanner(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения баннера.
/// Поддерживает создание и обновление.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.Banner.V1.PostBannerResponse PostBanner(global::Keyapis.Banner.V1.PostBannerRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_PostBanner, null, options, request);
}
///
/// Метод сохранения баннера.
/// Поддерживает создание и обновление.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PostBannerAsync(global::Keyapis.Banner.V1.PostBannerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostBannerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения баннера.
/// Поддерживает создание и обновление.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PostBannerAsync(global::Keyapis.Banner.V1.PostBannerRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_PostBanner, null, options, request);
}
///
/// Метод получения баннера.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.Banner.V1.GetBannerResponse GetBanner(global::Keyapis.Banner.V1.GetBannerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetBanner(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения баннера.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.Banner.V1.GetBannerResponse GetBanner(global::Keyapis.Banner.V1.GetBannerRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetBanner, null, options, request);
}
///
/// Метод получения баннера.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetBannerAsync(global::Keyapis.Banner.V1.GetBannerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetBannerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения баннера.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetBannerAsync(global::Keyapis.Banner.V1.GetBannerRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetBanner, null, options, request);
}
///
/// Метод получения упрощённого баннера.
/// Не требует авторизации
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.Banner.V1.GetBannerLiteResponse GetBannerLite(global::Keyapis.Banner.V1.GetBannerLiteRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetBannerLite(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения упрощённого баннера.
/// Не требует авторизации
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.Banner.V1.GetBannerLiteResponse GetBannerLite(global::Keyapis.Banner.V1.GetBannerLiteRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetBannerLite, null, options, request);
}
///
/// Метод получения упрощённого баннера.
/// Не требует авторизации
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetBannerLiteAsync(global::Keyapis.Banner.V1.GetBannerLiteRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetBannerLiteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения упрощённого баннера.
/// Не требует авторизации
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetBannerLiteAsync(global::Keyapis.Banner.V1.GetBannerLiteRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetBannerLite, null, options, request);
}
///
/// Метод получения списка баннеров.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall GetBannerList(global::Keyapis.Banner.V1.GetBannerListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetBannerList(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения списка баннеров.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall GetBannerList(global::Keyapis.Banner.V1.GetBannerListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncServerStreamingCall(__Method_GetBannerList, null, options, request);
}
///
/// Метод получения списка упрощённых баннеров.
/// Возвращает всегда активные баннеры.
/// По умолчанию возвращает первые 20 баннеров осортированных по приоритету, затем по дате начала акции(от самых важных к не важным, затем от самых новых акций к самым старым).
/// Если запрос выполнен хотя бы без одного изпризнака приложения возвращает пустой список.
/// Если запрос выполнен без признаков пользователя метод возвращает пустой список.
/// Не требует авторизации
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall GetBannerLiteList(global::Keyapis.Banner.V1.GetBannerLiteListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetBannerLiteList(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения списка упрощённых баннеров.
/// Возвращает всегда активные баннеры.
/// По умолчанию возвращает первые 20 баннеров осортированных по приоритету, затем по дате начала акции(от самых важных к не важным, затем от самых новых акций к самым старым).
/// Если запрос выполнен хотя бы без одного изпризнака приложения возвращает пустой список.
/// Если запрос выполнен без признаков пользователя метод возвращает пустой список.
/// Не требует авторизации
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall GetBannerLiteList(global::Keyapis.Banner.V1.GetBannerLiteListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncServerStreamingCall(__Method_GetBannerLiteList, null, options, request);
}
///
/// Метод получения количества баннеров.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.Banner.V1.GetBannerCountResponse GetBannerCount(global::Keyapis.Banner.V1.GetBannerCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetBannerCount(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества баннеров.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.Banner.V1.GetBannerCountResponse GetBannerCount(global::Keyapis.Banner.V1.GetBannerCountRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetBannerCount, null, options, request);
}
///
/// Метод получения количества баннеров.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetBannerCountAsync(global::Keyapis.Banner.V1.GetBannerCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetBannerCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества баннеров.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetBannerCountAsync(global::Keyapis.Banner.V1.GetBannerCountRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetBannerCount, null, options, request);
}
///
/// Метод загрузки картинки баннера.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.Banner.V1.PostBannerUploadImageResponse PostBannerUploadImage(global::Keyapis.Banner.V1.PostBannerUploadImageRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostBannerUploadImage(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод загрузки картинки баннера.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.Banner.V1.PostBannerUploadImageResponse PostBannerUploadImage(global::Keyapis.Banner.V1.PostBannerUploadImageRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_PostBannerUploadImage, null, options, request);
}
///
/// Метод загрузки картинки баннера.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PostBannerUploadImageAsync(global::Keyapis.Banner.V1.PostBannerUploadImageRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostBannerUploadImageAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод загрузки картинки баннера.
/// Метод доступен для: admin, manager, service
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PostBannerUploadImageAsync(global::Keyapis.Banner.V1.PostBannerUploadImageRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_PostBannerUploadImage, null, options, request);
}
/// Creates a new instance of client from given ClientBaseConfiguration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected override BannerServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new BannerServiceClient(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(BannerServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_PostBanner, serviceImpl.PostBanner)
.AddMethod(__Method_GetBanner, serviceImpl.GetBanner)
.AddMethod(__Method_GetBannerLite, serviceImpl.GetBannerLite)
.AddMethod(__Method_GetBannerList, serviceImpl.GetBannerList)
.AddMethod(__Method_GetBannerLiteList, serviceImpl.GetBannerLiteList)
.AddMethod(__Method_GetBannerCount, serviceImpl.GetBannerCount)
.AddMethod(__Method_PostBannerUploadImage, serviceImpl.PostBannerUploadImage).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, BannerServiceBase serviceImpl)
{
serviceBinder.AddMethod(__Method_PostBanner, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostBanner));
serviceBinder.AddMethod(__Method_GetBanner, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetBanner));
serviceBinder.AddMethod(__Method_GetBannerLite, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetBannerLite));
serviceBinder.AddMethod(__Method_GetBannerList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetBannerList));
serviceBinder.AddMethod(__Method_GetBannerLiteList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetBannerLiteList));
serviceBinder.AddMethod(__Method_GetBannerCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetBannerCount));
serviceBinder.AddMethod(__Method_PostBannerUploadImage, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostBannerUploadImage));
}
}
}
#endregion