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

#import <Foundation/Foundation.h>

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
#import "keyapis/bell/v1/KeyapisBellNotificationV1.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 KEYAPISBELLV1GetNotificationCountRequest;
@class KEYAPISBELLV1GetNotificationCountResponse;
@class KEYAPISBELLV1GetNotificationListRequest;
@class KEYAPISBELLV1GetNotificationListResponse;
@class KEYAPISBELLV1GetNotificationRequest;
@class KEYAPISBELLV1GetNotificationResponse;
@class KEYAPISBELLV1PostNotificationRequest;
@class KEYAPISBELLV1PostNotificationResponse;
@class KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest;
@class KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse;
@class KEYAPISBELLV1PostNotificationViewRequest;
@class KEYAPISBELLV1PostNotificationViewResponse;

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
#if defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) && GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
  #import <Protobuf/GPBTimestamp.pbobjc.h>
#else
  #import "GPBTimestamp.pbobjc.h"
#endif
  #import "google/api/Annotations.pbobjc.h"
  #import "google/api/FieldBehavior.pbobjc.h"
  #import "google/protobuf/Descriptor.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
  #import "keyapis/bell/v1/KeyapisBellCommonV1.pbobjc.h"
#endif

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


NS_ASSUME_NONNULL_BEGIN

@protocol KEYAPISBELLV1NotificationService2 <NSObject>

#pragma mark PostNotification(PostNotificationRequest) returns (PostNotificationResponse)

/**
 * Метод сохранения уведомления.
 * Поддерживает только создание.
 * Метод доступен для: service
 */
- (GRPCUnaryProtoCall *)postNotificationWithMessage:(KEYAPISBELLV1PostNotificationRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetNotification(GetNotificationRequest) returns (GetNotificationResponse)

/**
 * Метод получения уведомления.
 * Метод доступен для: admin, manager, master, slave, service
 */
- (GRPCUnaryProtoCall *)getNotificationWithMessage:(KEYAPISBELLV1GetNotificationRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetNotificationList(GetNotificationListRequest) returns (stream GetNotificationListResponse)

/**
 * Метод получения списка уведомлений.
 * Метод доступен для: admin, manager, master, slave, service
 */
- (GRPCUnaryProtoCall *)getNotificationListWithMessage:(KEYAPISBELLV1GetNotificationListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetNotificationCount(GetNotificationCountRequest) returns (GetNotificationCountResponse)

/**
 * Метод получения количества уведомлений.
 * Метод доступен для: admin, manager, master, slave, service
 */
- (GRPCUnaryProtoCall *)getNotificationCountWithMessage:(KEYAPISBELLV1GetNotificationCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark PostNotificationView(PostNotificationViewRequest) returns (PostNotificationViewResponse)

/**
 * Метод изменения статуса уведомления на "Просмотрено".
 * Метод доступен для: master, slave, service
 */
- (GRPCUnaryProtoCall *)postNotificationViewWithMessage:(KEYAPISBELLV1PostNotificationViewRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark PostNotificationViewOrponRoomNumber(PostNotificationViewOrponRoomNumberRequest) returns (PostNotificationViewOrponRoomNumberResponse)

/**
 * Метод изменения статуса уведомлений на "Просмотрено" по ОРПОНу и номеру квартиры.
 * Метод доступен для: master, slave, service
 */
- (GRPCUnaryProtoCall *)postNotificationViewOrponRoomNumberWithMessage:(KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest *)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 KEYAPISBELLV1NotificationService <NSObject>

#pragma mark PostNotification(PostNotificationRequest) returns (PostNotificationResponse)

/**
 * Метод сохранения уведомления.
 * Поддерживает только создание.
 * Метод доступен для: service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postNotificationWithRequest:(KEYAPISBELLV1PostNotificationRequest *)request handler:(void(^)(KEYAPISBELLV1PostNotificationResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод сохранения уведомления.
 * Поддерживает только создание.
 * Метод доступен для: service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostNotificationWithRequest:(KEYAPISBELLV1PostNotificationRequest *)request handler:(void(^)(KEYAPISBELLV1PostNotificationResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark GetNotification(GetNotificationRequest) returns (GetNotificationResponse)

/**
 * Метод получения уведомления.
 * Метод доступен для: admin, manager, master, slave, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getNotificationWithRequest:(KEYAPISBELLV1GetNotificationRequest *)request handler:(void(^)(KEYAPISBELLV1GetNotificationResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод получения уведомления.
 * Метод доступен для: admin, manager, master, slave, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetNotificationWithRequest:(KEYAPISBELLV1GetNotificationRequest *)request handler:(void(^)(KEYAPISBELLV1GetNotificationResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark GetNotificationList(GetNotificationListRequest) returns (stream GetNotificationListResponse)

/**
 * Метод получения списка уведомлений.
 * Метод доступен для: admin, manager, master, slave, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getNotificationListWithRequest:(KEYAPISBELLV1GetNotificationListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISBELLV1GetNotificationListResponse *_Nullable response, NSError *_Nullable error))eventHandler;

/**
 * Метод получения списка уведомлений.
 * Метод доступен для: admin, manager, master, slave, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetNotificationListWithRequest:(KEYAPISBELLV1GetNotificationListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISBELLV1GetNotificationListResponse *_Nullable response, NSError *_Nullable error))eventHandler;


#pragma mark GetNotificationCount(GetNotificationCountRequest) returns (GetNotificationCountResponse)

/**
 * Метод получения количества уведомлений.
 * Метод доступен для: admin, manager, master, slave, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getNotificationCountWithRequest:(KEYAPISBELLV1GetNotificationCountRequest *)request handler:(void(^)(KEYAPISBELLV1GetNotificationCountResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод получения количества уведомлений.
 * Метод доступен для: admin, manager, master, slave, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetNotificationCountWithRequest:(KEYAPISBELLV1GetNotificationCountRequest *)request handler:(void(^)(KEYAPISBELLV1GetNotificationCountResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark PostNotificationView(PostNotificationViewRequest) returns (PostNotificationViewResponse)

/**
 * Метод изменения статуса уведомления на "Просмотрено".
 * Метод доступен для: master, slave, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postNotificationViewWithRequest:(KEYAPISBELLV1PostNotificationViewRequest *)request handler:(void(^)(KEYAPISBELLV1PostNotificationViewResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод изменения статуса уведомления на "Просмотрено".
 * Метод доступен для: master, slave, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostNotificationViewWithRequest:(KEYAPISBELLV1PostNotificationViewRequest *)request handler:(void(^)(KEYAPISBELLV1PostNotificationViewResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark PostNotificationViewOrponRoomNumber(PostNotificationViewOrponRoomNumberRequest) returns (PostNotificationViewOrponRoomNumberResponse)

/**
 * Метод изменения статуса уведомлений на "Просмотрено" по ОРПОНу и номеру квартиры.
 * Метод доступен для: master, slave, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postNotificationViewOrponRoomNumberWithRequest:(KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest *)request handler:(void(^)(KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод изменения статуса уведомлений на "Просмотрено" по ОРПОНу и номеру квартиры.
 * Метод доступен для: master, slave, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostNotificationViewOrponRoomNumberWithRequest:(KEYAPISBELLV1PostNotificationViewOrponRoomNumberRequest *)request handler:(void(^)(KEYAPISBELLV1PostNotificationViewOrponRoomNumberResponse *_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 KEYAPISBELLV1NotificationService : GRPCProtoService<KEYAPISBELLV1NotificationService2, KEYAPISBELLV1NotificationService>
- (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

