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

#import <Foundation/Foundation.h>

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
#import "keyapis/notification/v1/KeyapisNotificationPushTokenV1.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 KEYAPISNOTIFICATIONV1DeletePushTokenRequest;
@class KEYAPISNOTIFICATIONV1DeletePushTokenResponse;
@class KEYAPISNOTIFICATIONV1DeletePushTokenUserAppIdRequest;
@class KEYAPISNOTIFICATIONV1DeletePushTokenUserAppIdResponse;
@class KEYAPISNOTIFICATIONV1DeletePushTokenUserIdRequest;
@class KEYAPISNOTIFICATIONV1DeletePushTokenUserIdResponse;
@class KEYAPISNOTIFICATIONV1GetPushTokenCountRequest;
@class KEYAPISNOTIFICATIONV1GetPushTokenCountResponse;
@class KEYAPISNOTIFICATIONV1GetPushTokenListRequest;
@class KEYAPISNOTIFICATIONV1GetPushTokenListResponse;
@class KEYAPISNOTIFICATIONV1PostPushTokenRequest;
@class KEYAPISNOTIFICATIONV1PostPushTokenResponse;

#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 "google/protobuf/Descriptor.pbobjc.h"
#if defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) && GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
  #import <Protobuf/GPBTimestamp.pbobjc.h>
#else
  #import "GPBTimestamp.pbobjc.h"
#endif
#if defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) && GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
  #import <Protobuf/GPBWrappers.pbobjc.h>
#else
  #import "GPBWrappers.pbobjc.h"
#endif
  #import "google/api/Visibility.pbobjc.h"
#endif

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


NS_ASSUME_NONNULL_BEGIN

@protocol KEYAPISNOTIFICATIONV1PushTokenService2 <NSObject>

#pragma mark PostPushToken(PostPushTokenRequest) returns (PostPushTokenResponse)

/**
 * Метод сохранения пуш-токенов.
 * Поддерживает создание и обновление.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:edit).
 * Для ролей master, employee, owner можно сохранять только собственные пуш-токены.
 * Для ролей admin, service доступны все пуш-токены
 */
- (GRPCUnaryProtoCall *)postPushTokenWithMessage:(KEYAPISNOTIFICATIONV1PostPushTokenRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetPushTokenList(GetPushTokenListRequest) returns (stream GetPushTokenListResponse)

/**
 * Метод получения пуш-токенов.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit).
 * Для ролей master, employee, owner можно просматривать только собственные пуш-токены.
 * Для ролей admin, service доступны все пуш-токены
 */
- (GRPCUnaryProtoCall *)getPushTokenListWithMessage:(KEYAPISNOTIFICATIONV1GetPushTokenListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetPushTokenCount(GetPushTokenCountRequest) returns (GetPushTokenCountResponse)

/**
 * Метод получения количества пуш-токенов.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit).
 * Для ролей master, employee, owner можно просматривать только собственные пуш-токены.
 * Для ролей admin, service доступны все пуш-токены
 */
- (GRPCUnaryProtoCall *)getPushTokenCountWithMessage:(KEYAPISNOTIFICATIONV1GetPushTokenCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark DeletePushToken(DeletePushTokenRequest) returns (DeletePushTokenResponse)

/**
 * Метод удаления пуш-токена.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:edit).
 * Для ролей master, employee, owner можно удалять только собственные пуш-токены.
 * Для ролей admin, service можно удалять все пуш-токены
 */
- (GRPCUnaryProtoCall *)deletePushTokenWithMessage:(KEYAPISNOTIFICATIONV1DeletePushTokenRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark DeletePushTokenUserAppId(DeletePushTokenUserAppIdRequest) returns (DeletePushTokenUserAppIdResponse)

/**
 * Метод удаления пуш-токена по идентификатору устройства пользователя.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:edit).
 * Для ролей master, employee, owner можно удалять только собственные пуш-токены.
 * Для ролей admin, service можно удалять все пуш-токены
 */
- (GRPCUnaryProtoCall *)deletePushTokenUserAppIdWithMessage:(KEYAPISNOTIFICATIONV1DeletePushTokenUserAppIdRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark DeletePushTokenUserId(DeletePushTokenUserIdRequest) returns (DeletePushTokenUserIdResponse)

/**
 * Метод удаления пуш-токенов по идентификатору пользователя.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:edit).
 * Для ролей master, employee, owner можно удалять только собственные пуш-токены.
 * Для ролей admin, service можно удалять все пуш-токены
 */
- (GRPCUnaryProtoCall *)deletePushTokenUserIdWithMessage:(KEYAPISNOTIFICATIONV1DeletePushTokenUserIdRequest *)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 KEYAPISNOTIFICATIONV1PushTokenService <NSObject>

#pragma mark PostPushToken(PostPushTokenRequest) returns (PostPushTokenResponse)

/**
 * Метод сохранения пуш-токенов.
 * Поддерживает создание и обновление.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:edit).
 * Для ролей master, employee, owner можно сохранять только собственные пуш-токены.
 * Для ролей admin, service доступны все пуш-токены
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postPushTokenWithRequest:(KEYAPISNOTIFICATIONV1PostPushTokenRequest *)request handler:(void(^)(KEYAPISNOTIFICATIONV1PostPushTokenResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод сохранения пуш-токенов.
 * Поддерживает создание и обновление.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:edit).
 * Для ролей master, employee, owner можно сохранять только собственные пуш-токены.
 * Для ролей admin, service доступны все пуш-токены
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostPushTokenWithRequest:(KEYAPISNOTIFICATIONV1PostPushTokenRequest *)request handler:(void(^)(KEYAPISNOTIFICATIONV1PostPushTokenResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark GetPushTokenList(GetPushTokenListRequest) returns (stream GetPushTokenListResponse)

/**
 * Метод получения пуш-токенов.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit).
 * Для ролей master, employee, owner можно просматривать только собственные пуш-токены.
 * Для ролей admin, service доступны все пуш-токены
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getPushTokenListWithRequest:(KEYAPISNOTIFICATIONV1GetPushTokenListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISNOTIFICATIONV1GetPushTokenListResponse *_Nullable response, NSError *_Nullable error))eventHandler;

/**
 * Метод получения пуш-токенов.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit).
 * Для ролей master, employee, owner можно просматривать только собственные пуш-токены.
 * Для ролей admin, service доступны все пуш-токены
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetPushTokenListWithRequest:(KEYAPISNOTIFICATIONV1GetPushTokenListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISNOTIFICATIONV1GetPushTokenListResponse *_Nullable response, NSError *_Nullable error))eventHandler;


#pragma mark GetPushTokenCount(GetPushTokenCountRequest) returns (GetPushTokenCountResponse)

/**
 * Метод получения количества пуш-токенов.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit).
 * Для ролей master, employee, owner можно просматривать только собственные пуш-токены.
 * Для ролей admin, service доступны все пуш-токены
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getPushTokenCountWithRequest:(KEYAPISNOTIFICATIONV1GetPushTokenCountRequest *)request handler:(void(^)(KEYAPISNOTIFICATIONV1GetPushTokenCountResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод получения количества пуш-токенов.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit).
 * Для ролей master, employee, owner можно просматривать только собственные пуш-токены.
 * Для ролей admin, service доступны все пуш-токены
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetPushTokenCountWithRequest:(KEYAPISNOTIFICATIONV1GetPushTokenCountRequest *)request handler:(void(^)(KEYAPISNOTIFICATIONV1GetPushTokenCountResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark DeletePushToken(DeletePushTokenRequest) returns (DeletePushTokenResponse)

/**
 * Метод удаления пуш-токена.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:edit).
 * Для ролей master, employee, owner можно удалять только собственные пуш-токены.
 * Для ролей admin, service можно удалять все пуш-токены
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)deletePushTokenWithRequest:(KEYAPISNOTIFICATIONV1DeletePushTokenRequest *)request handler:(void(^)(KEYAPISNOTIFICATIONV1DeletePushTokenResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод удаления пуш-токена.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:edit).
 * Для ролей master, employee, owner можно удалять только собственные пуш-токены.
 * Для ролей admin, service можно удалять все пуш-токены
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToDeletePushTokenWithRequest:(KEYAPISNOTIFICATIONV1DeletePushTokenRequest *)request handler:(void(^)(KEYAPISNOTIFICATIONV1DeletePushTokenResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark DeletePushTokenUserAppId(DeletePushTokenUserAppIdRequest) returns (DeletePushTokenUserAppIdResponse)

/**
 * Метод удаления пуш-токена по идентификатору устройства пользователя.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:edit).
 * Для ролей master, employee, owner можно удалять только собственные пуш-токены.
 * Для ролей admin, service можно удалять все пуш-токены
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)deletePushTokenUserAppIdWithRequest:(KEYAPISNOTIFICATIONV1DeletePushTokenUserAppIdRequest *)request handler:(void(^)(KEYAPISNOTIFICATIONV1DeletePushTokenUserAppIdResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод удаления пуш-токена по идентификатору устройства пользователя.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:edit).
 * Для ролей master, employee, owner можно удалять только собственные пуш-токены.
 * Для ролей admin, service можно удалять все пуш-токены
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToDeletePushTokenUserAppIdWithRequest:(KEYAPISNOTIFICATIONV1DeletePushTokenUserAppIdRequest *)request handler:(void(^)(KEYAPISNOTIFICATIONV1DeletePushTokenUserAppIdResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark DeletePushTokenUserId(DeletePushTokenUserIdRequest) returns (DeletePushTokenUserIdResponse)

/**
 * Метод удаления пуш-токенов по идентификатору пользователя.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:edit).
 * Для ролей master, employee, owner можно удалять только собственные пуш-токены.
 * Для ролей admin, service можно удалять все пуш-токены
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)deletePushTokenUserIdWithRequest:(KEYAPISNOTIFICATIONV1DeletePushTokenUserIdRequest *)request handler:(void(^)(KEYAPISNOTIFICATIONV1DeletePushTokenUserIdResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод удаления пуш-токенов по идентификатору пользователя.
 * Метод доступен для: admin, master, employee, owner, service, application(notification:edit).
 * Для ролей master, employee, owner можно удалять только собственные пуш-токены.
 * Для ролей admin, service можно удалять все пуш-токены
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToDeletePushTokenUserIdWithRequest:(KEYAPISNOTIFICATIONV1DeletePushTokenUserIdRequest *)request handler:(void(^)(KEYAPISNOTIFICATIONV1DeletePushTokenUserIdResponse *_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 KEYAPISNOTIFICATIONV1PushTokenService : GRPCProtoService<KEYAPISNOTIFICATIONV1PushTokenService2, KEYAPISNOTIFICATIONV1PushTokenService>
- (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

