// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/telemetry_metric/v1/keyapis_telemetry_metric_measurement_v1.proto // // Original file comments: // // Сервис реализует функционал управления измерениями #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace Keyapis.TelemetryMetric.V1 { /// /// Сервис измерений /// public static partial class MeasurementService { static readonly string __ServiceName = "keyapis.telemetry_metric.v1.MeasurementService"; [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_telemetry_metric_v1_PostMeasurementRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryMetric.V1.PostMeasurementRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_metric_v1_PostMeasurementResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryMetric.V1.PostMeasurementResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_metric_v1_PostMeasurementHalfDuplexRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryMetric.V1.PostMeasurementHalfDuplexRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_metric_v1_PostMeasurementHalfDuplexResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryMetric.V1.PostMeasurementHalfDuplexResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryMetric.V1.GetMeasurementListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryMetric.V1.GetMeasurementListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryMetric.V1.GetMeasurementCountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryMetric.V1.GetMeasurementCountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementConvertedListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementConvertedListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementConvertedCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedCountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementConvertedCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedCountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostMeasurement = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostMeasurement", __Marshaller_keyapis_telemetry_metric_v1_PostMeasurementRequest, __Marshaller_keyapis_telemetry_metric_v1_PostMeasurementResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostMeasurementHalfDuplex = new grpc::Method( grpc::MethodType.ClientStreaming, __ServiceName, "PostMeasurementHalfDuplex", __Marshaller_keyapis_telemetry_metric_v1_PostMeasurementHalfDuplexRequest, __Marshaller_keyapis_telemetry_metric_v1_PostMeasurementHalfDuplexResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetMeasurementList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetMeasurementList", __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementListRequest, __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetMeasurementCount = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetMeasurementCount", __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementCountRequest, __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementCountResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetMeasurementConvertedList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetMeasurementConvertedList", __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementConvertedListRequest, __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementConvertedListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetMeasurementConvertedCount = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetMeasurementConvertedCount", __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementConvertedCountRequest, __Marshaller_keyapis_telemetry_metric_v1_GetMeasurementConvertedCountResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Keyapis.TelemetryMetric.V1.KeyapisTelemetryMetricMeasurementV1Reflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of MeasurementService [grpc::BindServiceMethod(typeof(MeasurementService), "BindService")] public abstract partial class MeasurementServiceBase { /// /// Метод сохранения измерений. /// Метод доступен для: service, application(telemetry:edit) /// /// 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 PostMeasurement(global::Keyapis.TelemetryMetric.V1.PostMeasurementRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Полудуплексный метод сохранения потока измерений. /// Метод доступен для: service, application(telemetry:edit) /// /// Used for reading requests 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 PostMeasurementHalfDuplex(grpc::IAsyncStreamReader requestStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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 GetMeasurementList(global::Keyapis.TelemetryMetric.V1.GetMeasurementListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения количества измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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 GetMeasurementCount(global::Keyapis.TelemetryMetric.V1.GetMeasurementCountRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка преобразованных измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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 GetMeasurementConvertedList(global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения количества преобразованных измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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 GetMeasurementConvertedCount(global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedCountRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for MeasurementService public partial class MeasurementServiceClient : grpc::ClientBase { /// Creates a new client for MeasurementService /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public MeasurementServiceClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for MeasurementService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public MeasurementServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected MeasurementServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected MeasurementServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } /// /// Метод сохранения измерений. /// Метод доступен для: service, application(telemetry:edit) /// /// 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.TelemetryMetric.V1.PostMeasurementResponse PostMeasurement(global::Keyapis.TelemetryMetric.V1.PostMeasurementRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostMeasurement(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод сохранения измерений. /// Метод доступен для: service, application(telemetry:edit) /// /// 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.TelemetryMetric.V1.PostMeasurementResponse PostMeasurement(global::Keyapis.TelemetryMetric.V1.PostMeasurementRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostMeasurement, null, options, request); } /// /// Метод сохранения измерений. /// Метод доступен для: service, application(telemetry:edit) /// /// 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 PostMeasurementAsync(global::Keyapis.TelemetryMetric.V1.PostMeasurementRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostMeasurementAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод сохранения измерений. /// Метод доступен для: service, application(telemetry:edit) /// /// 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 PostMeasurementAsync(global::Keyapis.TelemetryMetric.V1.PostMeasurementRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostMeasurement, null, options, request); } /// /// Полудуплексный метод сохранения потока измерений. /// Метод доступен для: service, application(telemetry:edit) /// /// 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::AsyncClientStreamingCall PostMeasurementHalfDuplex(grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostMeasurementHalfDuplex(new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Полудуплексный метод сохранения потока измерений. /// Метод доступен для: service, application(telemetry:edit) /// /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncClientStreamingCall PostMeasurementHalfDuplex(grpc::CallOptions options) { return CallInvoker.AsyncClientStreamingCall(__Method_PostMeasurementHalfDuplex, null, options); } /// /// Метод получения списка измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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 GetMeasurementList(global::Keyapis.TelemetryMetric.V1.GetMeasurementListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetMeasurementList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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 GetMeasurementList(global::Keyapis.TelemetryMetric.V1.GetMeasurementListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetMeasurementList, null, options, request); } /// /// Метод получения количества измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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.TelemetryMetric.V1.GetMeasurementCountResponse GetMeasurementCount(global::Keyapis.TelemetryMetric.V1.GetMeasurementCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetMeasurementCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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.TelemetryMetric.V1.GetMeasurementCountResponse GetMeasurementCount(global::Keyapis.TelemetryMetric.V1.GetMeasurementCountRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetMeasurementCount, null, options, request); } /// /// Метод получения количества измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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 GetMeasurementCountAsync(global::Keyapis.TelemetryMetric.V1.GetMeasurementCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetMeasurementCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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 GetMeasurementCountAsync(global::Keyapis.TelemetryMetric.V1.GetMeasurementCountRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetMeasurementCount, null, options, request); } /// /// Метод получения списка преобразованных измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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 GetMeasurementConvertedList(global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetMeasurementConvertedList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка преобразованных измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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 GetMeasurementConvertedList(global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetMeasurementConvertedList, null, options, request); } /// /// Метод получения количества преобразованных измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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.TelemetryMetric.V1.GetMeasurementConvertedCountResponse GetMeasurementConvertedCount(global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetMeasurementConvertedCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества преобразованных измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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.TelemetryMetric.V1.GetMeasurementConvertedCountResponse GetMeasurementConvertedCount(global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedCountRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetMeasurementConvertedCount, null, options, request); } /// /// Метод получения количества преобразованных измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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 GetMeasurementConvertedCountAsync(global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetMeasurementConvertedCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества преобразованных измерений. /// Метод доступен для: service, application(telemetry:read или telemetry:edit) /// /// 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 GetMeasurementConvertedCountAsync(global::Keyapis.TelemetryMetric.V1.GetMeasurementConvertedCountRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetMeasurementConvertedCount, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override MeasurementServiceClient NewInstance(ClientBaseConfiguration configuration) { return new MeasurementServiceClient(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(MeasurementServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_PostMeasurement, serviceImpl.PostMeasurement) .AddMethod(__Method_PostMeasurementHalfDuplex, serviceImpl.PostMeasurementHalfDuplex) .AddMethod(__Method_GetMeasurementList, serviceImpl.GetMeasurementList) .AddMethod(__Method_GetMeasurementCount, serviceImpl.GetMeasurementCount) .AddMethod(__Method_GetMeasurementConvertedList, serviceImpl.GetMeasurementConvertedList) .AddMethod(__Method_GetMeasurementConvertedCount, serviceImpl.GetMeasurementConvertedCount).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, MeasurementServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_PostMeasurement, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostMeasurement)); serviceBinder.AddMethod(__Method_PostMeasurementHalfDuplex, serviceImpl == null ? null : new grpc::ClientStreamingServerMethod(serviceImpl.PostMeasurementHalfDuplex)); serviceBinder.AddMethod(__Method_GetMeasurementList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetMeasurementList)); serviceBinder.AddMethod(__Method_GetMeasurementCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMeasurementCount)); serviceBinder.AddMethod(__Method_GetMeasurementConvertedList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetMeasurementConvertedList)); serviceBinder.AddMethod(__Method_GetMeasurementConvertedCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMeasurementConvertedCount)); } } } #endregion