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

#import <Foundation/Foundation.h>

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
#import "keyapis/access_control/v1/KeyapisAccessControlBroadcastAlertV1.pbobjc.h"
#endif

#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
#import <ProtoRPC/ProtoService.h>
#import <ProtoRPC/ProtoRPCLegacy.h>
#import <RxLibrary/GRXWriteable.h>
#import <RxLibrary/GRXWriter.h>
#endif

@class KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest;
@class KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse;
@class KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest;
@class KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse;

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
  #import "google/api/Annotations.pbobjc.h"
  #import "google/api/FieldBehavior.pbobjc.h"
  #import "keyapis/access_control/v1/KeyapisAccessControlAccessControlV1.pbobjc.h"
#endif

@class GRPCUnaryProtoCall;
@class GRPCStreamingProtoCall;
@class GRPCCallOptions;
@protocol GRPCProtoResponseHandler;
@class GRPCProtoCall;


NS_ASSUME_NONNULL_BEGIN

@protocol KEYAPISACCESSCONTROLV1BroadcastAlertService2 <NSObject>

#pragma mark PostBroadcastAlertStart(PostBroadcastAlertStartRequest) returns (PostBroadcastAlertStartResponse)

/**
 * Метод запуска массового оповещения через домофоны.
 * Метод доступен для: ApiKey
 */
- (GRPCUnaryProtoCall *)postBroadcastAlertStartWithMessage:(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark PostBroadcastAlertStop(PostBroadcastAlertStopRequest) returns (PostBroadcastAlertStopResponse)

/**
 * Метод прекращения массового оповещения через домофоны.
 * Метод доступен для: ApiKey
 */
- (GRPCUnaryProtoCall *)postBroadcastAlertStopWithMessage:(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

@end

/**
 * The methods in this protocol belong to a set of old APIs that have been deprecated. They do not
 * recognize call options provided in the initializer. Using the v2 protocol is recommended.
 */
@protocol KEYAPISACCESSCONTROLV1BroadcastAlertService <NSObject>

#pragma mark PostBroadcastAlertStart(PostBroadcastAlertStartRequest) returns (PostBroadcastAlertStartResponse)

/**
 * Метод запуска массового оповещения через домофоны.
 * Метод доступен для: ApiKey
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postBroadcastAlertStartWithRequest:(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод запуска массового оповещения через домофоны.
 * Метод доступен для: ApiKey
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostBroadcastAlertStartWithRequest:(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1PostBroadcastAlertStartResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark PostBroadcastAlertStop(PostBroadcastAlertStopRequest) returns (PostBroadcastAlertStopResponse)

/**
 * Метод прекращения массового оповещения через домофоны.
 * Метод доступен для: ApiKey
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postBroadcastAlertStopWithRequest:(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод прекращения массового оповещения через домофоны.
 * Метод доступен для: ApiKey
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostBroadcastAlertStopWithRequest:(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1PostBroadcastAlertStopResponse *_Nullable response, NSError *_Nullable error))handler;


@end


#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
/**
 * Basic service implementation, over gRPC, that only does
 * marshalling and parsing.
 */
@interface KEYAPISACCESSCONTROLV1BroadcastAlertService : GRPCProtoService<KEYAPISACCESSCONTROLV1BroadcastAlertService2, KEYAPISACCESSCONTROLV1BroadcastAlertService>
- (instancetype)initWithHost:(NSString *)host callOptions:(GRPCCallOptions *_Nullable)callOptions NS_DESIGNATED_INITIALIZER;
+ (instancetype)serviceWithHost:(NSString *)host callOptions:(GRPCCallOptions *_Nullable)callOptions;
// The following methods belong to a set of old APIs that have been deprecated.
- (instancetype)initWithHost:(NSString *)host;
+ (instancetype)serviceWithHost:(NSString *)host;
@end
#endif

NS_ASSUME_NONNULL_END

