// Code generated by gRPC proto compiler.  DO NOT EDIT!
// source: keyapis/telemetry_alerting/v1/keyapis_telemetry_alerting_trigger_v1.proto

#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
#import "keyapis/telemetry_alerting/v1/KeyapisTelemetryAlertingTriggerV1.pbrpc.h"
#import "keyapis/telemetry_alerting/v1/KeyapisTelemetryAlertingTriggerV1.pbobjc.h"
#import <ProtoRPC/ProtoRPCLegacy.h>
#import <RxLibrary/GRXWriter+Immediate.h>

#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#if defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) && GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
#import <Protobuf/GPBWrappers.pbobjc.h>
#else
#import "GPBWrappers.pbobjc.h"
#endif
#if defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) && GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
#import <Protobuf/GPBTimestamp.pbobjc.h>
#else
#import "GPBTimestamp.pbobjc.h"
#endif

@implementation KEYAPISTELEMETRYALERTINGYV1TriggerService

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-designated-initializers"

// Designated initializer
- (instancetype)initWithHost:(NSString *)host callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [super initWithHost:host
                 packageName:@"keyapis.telemetry_alerting.v1"
                 serviceName:@"TriggerService"
                 callOptions:callOptions];
}

- (instancetype)initWithHost:(NSString *)host {
  return [super initWithHost:host
                 packageName:@"keyapis.telemetry_alerting.v1"
                 serviceName:@"TriggerService"];
}

#pragma clang diagnostic pop

// Override superclass initializer to disallow different package and service names.
- (instancetype)initWithHost:(NSString *)host
                 packageName:(NSString *)packageName
                 serviceName:(NSString *)serviceName {
  return [self initWithHost:host];
}

- (instancetype)initWithHost:(NSString *)host
                 packageName:(NSString *)packageName
                 serviceName:(NSString *)serviceName
                 callOptions:(GRPCCallOptions *)callOptions {
  return [self initWithHost:host callOptions:callOptions];
}

#pragma mark - Class Methods

+ (instancetype)serviceWithHost:(NSString *)host {
  return [[self alloc] initWithHost:host];
}

+ (instancetype)serviceWithHost:(NSString *)host callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [[self alloc] initWithHost:host callOptions:callOptions];
}

#pragma mark - Method Implementations

#pragma mark PostTrigger(PostTriggerRequest) returns (PostTriggerResponse)

/**
 * Метод сохранения триггера.
 * Поддерживает создание и обновление.
 * Метод доступен для: service, application(telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postTriggerWithRequest:(KEYAPISTELEMETRYALERTINGYV1PostTriggerRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1PostTriggerResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToPostTriggerWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод сохранения триггера.
 * Поддерживает создание и обновление.
 * Метод доступен для: service, application(telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostTriggerWithRequest:(KEYAPISTELEMETRYALERTINGYV1PostTriggerRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1PostTriggerResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"PostTrigger"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYALERTINGYV1PostTriggerResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод сохранения триггера.
 * Поддерживает создание и обновление.
 * Метод доступен для: service, application(telemetry:edit)
 */
- (GRPCUnaryProtoCall *)postTriggerWithMessage:(KEYAPISTELEMETRYALERTINGYV1PostTriggerRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"PostTrigger"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYALERTINGYV1PostTriggerResponse class]];
}

#pragma mark GetTrigger(GetTriggerRequest) returns (GetTriggerResponse)

/**
 * Чтение одного триггера.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getTriggerWithRequest:(KEYAPISTELEMETRYALERTINGYV1GetTriggerRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1GetTriggerResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToGetTriggerWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Чтение одного триггера.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetTriggerWithRequest:(KEYAPISTELEMETRYALERTINGYV1GetTriggerRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1GetTriggerResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"GetTrigger"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYALERTINGYV1GetTriggerResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Чтение одного триггера.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 */
- (GRPCUnaryProtoCall *)getTriggerWithMessage:(KEYAPISTELEMETRYALERTINGYV1GetTriggerRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetTrigger"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYALERTINGYV1GetTriggerResponse class]];
}

#pragma mark GetTriggerList(GetTriggerListRequest) returns (stream GetTriggerListResponse)

/**
 * Метод получения списка триггеров.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getTriggerListWithRequest:(KEYAPISTELEMETRYALERTINGYV1GetTriggerListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISTELEMETRYALERTINGYV1GetTriggerListResponse *_Nullable response, NSError *_Nullable error))eventHandler{
  [[self RPCToGetTriggerListWithRequest:request eventHandler:eventHandler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения списка триггеров.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetTriggerListWithRequest:(KEYAPISTELEMETRYALERTINGYV1GetTriggerListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISTELEMETRYALERTINGYV1GetTriggerListResponse *_Nullable response, NSError *_Nullable error))eventHandler{
  return [self RPCToMethod:@"GetTriggerList"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYALERTINGYV1GetTriggerListResponse class]
        responsesWriteable:[GRXWriteable writeableWithEventHandler:eventHandler]];
}
/**
 * Метод получения списка триггеров.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 */
- (GRPCUnaryProtoCall *)getTriggerListWithMessage:(KEYAPISTELEMETRYALERTINGYV1GetTriggerListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetTriggerList"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYALERTINGYV1GetTriggerListResponse class]];
}

#pragma mark GetTriggerCount(GetTriggerCountRequest) returns (GetTriggerCountResponse)

/**
 * Метод получения количества триггеров.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getTriggerCountWithRequest:(KEYAPISTELEMETRYALERTINGYV1GetTriggerCountRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1GetTriggerCountResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToGetTriggerCountWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения количества триггеров.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetTriggerCountWithRequest:(KEYAPISTELEMETRYALERTINGYV1GetTriggerCountRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1GetTriggerCountResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"GetTriggerCount"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYALERTINGYV1GetTriggerCountResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения количества триггеров.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 */
- (GRPCUnaryProtoCall *)getTriggerCountWithMessage:(KEYAPISTELEMETRYALERTINGYV1GetTriggerCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetTriggerCount"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYALERTINGYV1GetTriggerCountResponse class]];
}

#pragma mark DeleteTrigger(DeleteTriggerRequest) returns (DeleteTriggerResponse)

/**
 * Удаление триггера.
 * Метод удаляет только отключенный триггер (is_disabled=true).
 * Удаление неотключенного вызовет ошибку.
 * При удалении триггера удаляются и все его алерты.
 * Метод доступен для: service, application(telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)deleteTriggerWithRequest:(KEYAPISTELEMETRYALERTINGYV1DeleteTriggerRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1DeleteTriggerResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToDeleteTriggerWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Удаление триггера.
 * Метод удаляет только отключенный триггер (is_disabled=true).
 * Удаление неотключенного вызовет ошибку.
 * При удалении триггера удаляются и все его алерты.
 * Метод доступен для: service, application(telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToDeleteTriggerWithRequest:(KEYAPISTELEMETRYALERTINGYV1DeleteTriggerRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1DeleteTriggerResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"DeleteTrigger"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYALERTINGYV1DeleteTriggerResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Удаление триггера.
 * Метод удаляет только отключенный триггер (is_disabled=true).
 * Удаление неотключенного вызовет ошибку.
 * При удалении триггера удаляются и все его алерты.
 * Метод доступен для: service, application(telemetry:edit)
 */
- (GRPCUnaryProtoCall *)deleteTriggerWithMessage:(KEYAPISTELEMETRYALERTINGYV1DeleteTriggerRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"DeleteTrigger"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYALERTINGYV1DeleteTriggerResponse class]];
}

#pragma mark GetTriggerAlertList(GetTriggerAlertListRequest) returns (stream GetTriggerAlertListResponse)

/**
 * Метод получения списка алертов.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getTriggerAlertListWithRequest:(KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertListResponse *_Nullable response, NSError *_Nullable error))eventHandler{
  [[self RPCToGetTriggerAlertListWithRequest:request eventHandler:eventHandler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения списка алертов.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetTriggerAlertListWithRequest:(KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertListResponse *_Nullable response, NSError *_Nullable error))eventHandler{
  return [self RPCToMethod:@"GetTriggerAlertList"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertListResponse class]
        responsesWriteable:[GRXWriteable writeableWithEventHandler:eventHandler]];
}
/**
 * Метод получения списка алертов.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 */
- (GRPCUnaryProtoCall *)getTriggerAlertListWithMessage:(KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetTriggerAlertList"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertListResponse class]];
}

#pragma mark GetTriggerAlertCount(GetTriggerAlertCountRequest) returns (GetTriggerAlertCountResponse)

/**
 * Метод получения количества алертов.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getTriggerAlertCountWithRequest:(KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertCountRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertCountResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToGetTriggerAlertCountWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения количества алертов.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetTriggerAlertCountWithRequest:(KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertCountRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertCountResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"GetTriggerAlertCount"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertCountResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения количества алертов.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 */
- (GRPCUnaryProtoCall *)getTriggerAlertCountWithMessage:(KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetTriggerAlertCount"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertCountResponse class]];
}

#pragma mark DeleteTriggerAlert(DeleteTriggerAlertRequest) returns (DeleteTriggerAlertResponse)

/**
 * Удаление алерта.
 * Метод удаляет только погашенный алерт (is_disabled=true).
 * Удаление непогашенного вызовет ошибку.
 * Метод доступен для: service, application(telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)deleteTriggerAlertWithRequest:(KEYAPISTELEMETRYALERTINGYV1DeleteTriggerAlertRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1DeleteTriggerAlertResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToDeleteTriggerAlertWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Удаление алерта.
 * Метод удаляет только погашенный алерт (is_disabled=true).
 * Удаление непогашенного вызовет ошибку.
 * Метод доступен для: service, application(telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToDeleteTriggerAlertWithRequest:(KEYAPISTELEMETRYALERTINGYV1DeleteTriggerAlertRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1DeleteTriggerAlertResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"DeleteTriggerAlert"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYALERTINGYV1DeleteTriggerAlertResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Удаление алерта.
 * Метод удаляет только погашенный алерт (is_disabled=true).
 * Удаление непогашенного вызовет ошибку.
 * Метод доступен для: service, application(telemetry:edit)
 */
- (GRPCUnaryProtoCall *)deleteTriggerAlertWithMessage:(KEYAPISTELEMETRYALERTINGYV1DeleteTriggerAlertRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"DeleteTriggerAlert"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYALERTINGYV1DeleteTriggerAlertResponse class]];
}

#pragma mark PostTriggerAlertDisable(PostTriggerAlertDisableRequest) returns (PostTriggerAlertDisableResponse)

/**
 * Принудительное выключение алерта.
 * Дата closed_at проставляется текущим временем.
 * Флаг is_disabled проставляется true.
 * Флаг is_manually_closed проставляется true.
 * Можно принудительно выключать только алерты созданные по триггерам с атрибутом manually_unclosable=false.
 * Метод доступен для: service, application(telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postTriggerAlertDisableWithRequest:(KEYAPISTELEMETRYALERTINGYV1PostTriggerAlertDisableRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1PostTriggerAlertDisableResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToPostTriggerAlertDisableWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Принудительное выключение алерта.
 * Дата closed_at проставляется текущим временем.
 * Флаг is_disabled проставляется true.
 * Флаг is_manually_closed проставляется true.
 * Можно принудительно выключать только алерты созданные по триггерам с атрибутом manually_unclosable=false.
 * Метод доступен для: service, application(telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostTriggerAlertDisableWithRequest:(KEYAPISTELEMETRYALERTINGYV1PostTriggerAlertDisableRequest *)request handler:(void(^)(KEYAPISTELEMETRYALERTINGYV1PostTriggerAlertDisableResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"PostTriggerAlertDisable"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYALERTINGYV1PostTriggerAlertDisableResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Принудительное выключение алерта.
 * Дата closed_at проставляется текущим временем.
 * Флаг is_disabled проставляется true.
 * Флаг is_manually_closed проставляется true.
 * Можно принудительно выключать только алерты созданные по триггерам с атрибутом manually_unclosable=false.
 * Метод доступен для: service, application(telemetry:edit)
 */
- (GRPCUnaryProtoCall *)postTriggerAlertDisableWithMessage:(KEYAPISTELEMETRYALERTINGYV1PostTriggerAlertDisableRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"PostTriggerAlertDisable"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYALERTINGYV1PostTriggerAlertDisableResponse class]];
}

#pragma mark GetTriggerAlertDeviceList(GetTriggerAlertDeviceListRequest) returns (stream GetTriggerAlertDeviceListResponse)

/**
 * Список устройств, вызвавших появление алерта.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getTriggerAlertDeviceListWithRequest:(KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertDeviceListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertDeviceListResponse *_Nullable response, NSError *_Nullable error))eventHandler{
  [[self RPCToGetTriggerAlertDeviceListWithRequest:request eventHandler:eventHandler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Список устройств, вызвавших появление алерта.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetTriggerAlertDeviceListWithRequest:(KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertDeviceListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertDeviceListResponse *_Nullable response, NSError *_Nullable error))eventHandler{
  return [self RPCToMethod:@"GetTriggerAlertDeviceList"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertDeviceListResponse class]
        responsesWriteable:[GRXWriteable writeableWithEventHandler:eventHandler]];
}
/**
 * Список устройств, вызвавших появление алерта.
 * Метод доступен для: service, application(telemetry:read или telemetry:edit)
 */
- (GRPCUnaryProtoCall *)getTriggerAlertDeviceListWithMessage:(KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertDeviceListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetTriggerAlertDeviceList"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYALERTINGYV1GetTriggerAlertDeviceListResponse class]];
}

@end
#endif
