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

#import <Foundation/Foundation.h>

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
#import "keyapis/subscription/v1/KeyapisSubscriptionServiceV1.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 KEYAPISSUBSCRIPTIONV1GetServiceKindListRequest;
@class KEYAPISSUBSCRIPTIONV1GetServiceKindListResponse;
@class KEYAPISSUBSCRIPTIONV1GetServiceListRequest;
@class KEYAPISSUBSCRIPTIONV1GetServiceListResponse;
@class KEYAPISSUBSCRIPTIONV1GetServicePrivilegeCountRequest;
@class KEYAPISSUBSCRIPTIONV1GetServicePrivilegeCountResponse;
@class KEYAPISSUBSCRIPTIONV1GetServicePrivilegeListRequest;
@class KEYAPISSUBSCRIPTIONV1GetServicePrivilegeListResponse;

#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/GPBWrappers.pbobjc.h>
#else
  #import "GPBWrappers.pbobjc.h"
#endif
#endif

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


NS_ASSUME_NONNULL_BEGIN

@protocol KEYAPISSUBSCRIPTIONV1ServiceService2 <NSObject>

#pragma mark GetServiceList(GetServiceListRequest) returns (stream GetServiceListResponse)

/**
 * Метод получения услуг квартиры.
 * Вернёт все услуги на квартире и недоступные по адресу как неактивные.
 * Метод доступен для: admin, master, service, application(subscription:read или subscription:edit)
 */
- (GRPCUnaryProtoCall *)getServiceListWithMessage:(KEYAPISSUBSCRIPTIONV1GetServiceListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetServicePrivilegeList(GetServicePrivilegeListRequest) returns (stream GetServicePrivilegeListResponse)

/**
 * Метод получения списка услуг.
 * Вернёт все услуги на квартире и недоступные по адресу как неактивные.
 * Метод доступен для: admin, service
 */
- (GRPCUnaryProtoCall *)getServicePrivilegeListWithMessage:(KEYAPISSUBSCRIPTIONV1GetServicePrivilegeListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetServicePrivilegeCount(GetServicePrivilegeCountRequest) returns (GetServicePrivilegeCountResponse)

/**
 * Метод получения количества услуг.
 * Вернёт все услуги на квартире и недоступные по адресу как неактивные.
 * Метод доступен для: admin, service
 */
- (GRPCUnaryProtoCall *)getServicePrivilegeCountWithMessage:(KEYAPISSUBSCRIPTIONV1GetServicePrivilegeCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetServiceKindList(GetServiceKindListRequest) returns (stream GetServiceKindListResponse)

/**
 * Метод получения справочника видов услуг.
 * Метод доступен для: admin, service
 */
- (GRPCUnaryProtoCall *)getServiceKindListWithMessage:(KEYAPISSUBSCRIPTIONV1GetServiceKindListRequest *)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 KEYAPISSUBSCRIPTIONV1ServiceService <NSObject>

#pragma mark GetServiceList(GetServiceListRequest) returns (stream GetServiceListResponse)

/**
 * Метод получения услуг квартиры.
 * Вернёт все услуги на квартире и недоступные по адресу как неактивные.
 * Метод доступен для: admin, master, service, application(subscription:read или subscription:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getServiceListWithRequest:(KEYAPISSUBSCRIPTIONV1GetServiceListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISSUBSCRIPTIONV1GetServiceListResponse *_Nullable response, NSError *_Nullable error))eventHandler;

/**
 * Метод получения услуг квартиры.
 * Вернёт все услуги на квартире и недоступные по адресу как неактивные.
 * Метод доступен для: admin, master, service, application(subscription:read или subscription:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetServiceListWithRequest:(KEYAPISSUBSCRIPTIONV1GetServiceListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISSUBSCRIPTIONV1GetServiceListResponse *_Nullable response, NSError *_Nullable error))eventHandler;


#pragma mark GetServicePrivilegeList(GetServicePrivilegeListRequest) returns (stream GetServicePrivilegeListResponse)

/**
 * Метод получения списка услуг.
 * Вернёт все услуги на квартире и недоступные по адресу как неактивные.
 * Метод доступен для: admin, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getServicePrivilegeListWithRequest:(KEYAPISSUBSCRIPTIONV1GetServicePrivilegeListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISSUBSCRIPTIONV1GetServicePrivilegeListResponse *_Nullable response, NSError *_Nullable error))eventHandler;

/**
 * Метод получения списка услуг.
 * Вернёт все услуги на квартире и недоступные по адресу как неактивные.
 * Метод доступен для: admin, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetServicePrivilegeListWithRequest:(KEYAPISSUBSCRIPTIONV1GetServicePrivilegeListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISSUBSCRIPTIONV1GetServicePrivilegeListResponse *_Nullable response, NSError *_Nullable error))eventHandler;


#pragma mark GetServicePrivilegeCount(GetServicePrivilegeCountRequest) returns (GetServicePrivilegeCountResponse)

/**
 * Метод получения количества услуг.
 * Вернёт все услуги на квартире и недоступные по адресу как неактивные.
 * Метод доступен для: admin, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getServicePrivilegeCountWithRequest:(KEYAPISSUBSCRIPTIONV1GetServicePrivilegeCountRequest *)request handler:(void(^)(KEYAPISSUBSCRIPTIONV1GetServicePrivilegeCountResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод получения количества услуг.
 * Вернёт все услуги на квартире и недоступные по адресу как неактивные.
 * Метод доступен для: admin, service
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetServicePrivilegeCountWithRequest:(KEYAPISSUBSCRIPTIONV1GetServicePrivilegeCountRequest *)request handler:(void(^)(KEYAPISSUBSCRIPTIONV1GetServicePrivilegeCountResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark GetServiceKindList(GetServiceKindListRequest) returns (stream GetServiceKindListResponse)

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

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


@end


#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
/**
 * Basic service implementation, over gRPC, that only does
 * marshalling and parsing.
 */
@interface KEYAPISSUBSCRIPTIONV1ServiceService : GRPCProtoService<KEYAPISSUBSCRIPTIONV1ServiceService2, KEYAPISSUBSCRIPTIONV1ServiceService>
- (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

