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

#import <Foundation/Foundation.h>

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
#import "keyapis/telemetry_control/v1/KeyapisTelemetryControlDictionaryV1.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 KEYAPISTELEMETRYCONTROLV1DeleteDictionaryDeviceModelRequest;
@class KEYAPISTELEMETRYCONTROLV1DeleteDictionaryDeviceModelResponse;
@class KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelCountRequest;
@class KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelCountResponse;
@class KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelListRequest;
@class KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelListResponse;
@class KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfCountRequest;
@class KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfCountResponse;
@class KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfListRequest;
@class KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfListResponse;
@class KEYAPISTELEMETRYCONTROLV1GetDictionaryRfCountRequest;
@class KEYAPISTELEMETRYCONTROLV1GetDictionaryRfCountResponse;
@class KEYAPISTELEMETRYCONTROLV1GetDictionaryRfListRequest;
@class KEYAPISTELEMETRYCONTROLV1GetDictionaryRfListResponse;
@class KEYAPISTELEMETRYCONTROLV1PostDictionaryDeviceModelRequest;
@class KEYAPISTELEMETRYCONTROLV1PostDictionaryDeviceModelResponse;

#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"
#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
#endif

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


NS_ASSUME_NONNULL_BEGIN

@protocol KEYAPISTELEMETRYCONTROLV1DictionaryService2 <NSObject>

#pragma mark GetDictionaryDeviceModelList(GetDictionaryDeviceModelListRequest) returns (stream GetDictionaryDeviceModelListResponse)

/**
 * Метод получения списка моделей ПУ.
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)getDictionaryDeviceModelListWithMessage:(KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetDictionaryDeviceModelCount(GetDictionaryDeviceModelCountRequest) returns (GetDictionaryDeviceModelCountResponse)

/**
 * Метод получения количества моделей ПУ.
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)getDictionaryDeviceModelCountWithMessage:(KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark PostDictionaryDeviceModel(PostDictionaryDeviceModelRequest) returns (PostDictionaryDeviceModelResponse)

/**
 * Метод сохранения модели ПУ.
 * Поддерживает создание и обновление.
 * Метод доступен для: Token: admin, service, application. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)postDictionaryDeviceModelWithMessage:(KEYAPISTELEMETRYCONTROLV1PostDictionaryDeviceModelRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark DeleteDictionaryDeviceModel(DeleteDictionaryDeviceModelRequest) returns (DeleteDictionaryDeviceModelResponse)

/**
 * Метод удаления модели ПУ.
 * Метод доступен для: Token: admin, service, application. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)deleteDictionaryDeviceModelWithMessage:(KEYAPISTELEMETRYCONTROLV1DeleteDictionaryDeviceModelRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetDictionaryMrfList(GetDictionaryMrfListRequest) returns (stream GetDictionaryMrfListResponse)

/**
 * Метод получения списка элементов справочника Макрорегионы (МРФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)getDictionaryMrfListWithMessage:(KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetDictionaryMrfCount(GetDictionaryMrfCountRequest) returns (GetDictionaryMrfCountResponse)

/**
 * Метод получения количества элементов справочника Макрорегионы (МРФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)getDictionaryMrfCountWithMessage:(KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetDictionaryRfList(GetDictionaryRfListRequest) returns (stream GetDictionaryRfListResponse)

/**
 * Метод получения списка элементов справочника Регионы (РФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)getDictionaryRfListWithMessage:(KEYAPISTELEMETRYCONTROLV1GetDictionaryRfListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetDictionaryRfCount(GetDictionaryRfCountRequest) returns (GetDictionaryRfCountResponse)

/**
 * Метод получения количества элементов справочника Регионы (РФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)getDictionaryRfCountWithMessage:(KEYAPISTELEMETRYCONTROLV1GetDictionaryRfCountRequest *)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 KEYAPISTELEMETRYCONTROLV1DictionaryService <NSObject>

#pragma mark GetDictionaryDeviceModelList(GetDictionaryDeviceModelListRequest) returns (stream GetDictionaryDeviceModelListResponse)

/**
 * Метод получения списка моделей ПУ.
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getDictionaryDeviceModelListWithRequest:(KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelListResponse *_Nullable response, NSError *_Nullable error))eventHandler;

/**
 * Метод получения списка моделей ПУ.
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetDictionaryDeviceModelListWithRequest:(KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelListResponse *_Nullable response, NSError *_Nullable error))eventHandler;


#pragma mark GetDictionaryDeviceModelCount(GetDictionaryDeviceModelCountRequest) returns (GetDictionaryDeviceModelCountResponse)

/**
 * Метод получения количества моделей ПУ.
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getDictionaryDeviceModelCountWithRequest:(KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelCountRequest *)request handler:(void(^)(KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelCountResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод получения количества моделей ПУ.
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetDictionaryDeviceModelCountWithRequest:(KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelCountRequest *)request handler:(void(^)(KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelCountResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark PostDictionaryDeviceModel(PostDictionaryDeviceModelRequest) returns (PostDictionaryDeviceModelResponse)

/**
 * Метод сохранения модели ПУ.
 * Поддерживает создание и обновление.
 * Метод доступен для: Token: admin, service, application. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postDictionaryDeviceModelWithRequest:(KEYAPISTELEMETRYCONTROLV1PostDictionaryDeviceModelRequest *)request handler:(void(^)(KEYAPISTELEMETRYCONTROLV1PostDictionaryDeviceModelResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод сохранения модели ПУ.
 * Поддерживает создание и обновление.
 * Метод доступен для: Token: admin, service, application. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostDictionaryDeviceModelWithRequest:(KEYAPISTELEMETRYCONTROLV1PostDictionaryDeviceModelRequest *)request handler:(void(^)(KEYAPISTELEMETRYCONTROLV1PostDictionaryDeviceModelResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark DeleteDictionaryDeviceModel(DeleteDictionaryDeviceModelRequest) returns (DeleteDictionaryDeviceModelResponse)

/**
 * Метод удаления модели ПУ.
 * Метод доступен для: Token: admin, service, application. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)deleteDictionaryDeviceModelWithRequest:(KEYAPISTELEMETRYCONTROLV1DeleteDictionaryDeviceModelRequest *)request handler:(void(^)(KEYAPISTELEMETRYCONTROLV1DeleteDictionaryDeviceModelResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод удаления модели ПУ.
 * Метод доступен для: Token: admin, service, application. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToDeleteDictionaryDeviceModelWithRequest:(KEYAPISTELEMETRYCONTROLV1DeleteDictionaryDeviceModelRequest *)request handler:(void(^)(KEYAPISTELEMETRYCONTROLV1DeleteDictionaryDeviceModelResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark GetDictionaryMrfList(GetDictionaryMrfListRequest) returns (stream GetDictionaryMrfListResponse)

/**
 * Метод получения списка элементов справочника Макрорегионы (МРФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getDictionaryMrfListWithRequest:(KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfListResponse *_Nullable response, NSError *_Nullable error))eventHandler;

/**
 * Метод получения списка элементов справочника Макрорегионы (МРФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetDictionaryMrfListWithRequest:(KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfListResponse *_Nullable response, NSError *_Nullable error))eventHandler;


#pragma mark GetDictionaryMrfCount(GetDictionaryMrfCountRequest) returns (GetDictionaryMrfCountResponse)

/**
 * Метод получения количества элементов справочника Макрорегионы (МРФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getDictionaryMrfCountWithRequest:(KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfCountRequest *)request handler:(void(^)(KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfCountResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод получения количества элементов справочника Макрорегионы (МРФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetDictionaryMrfCountWithRequest:(KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfCountRequest *)request handler:(void(^)(KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfCountResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark GetDictionaryRfList(GetDictionaryRfListRequest) returns (stream GetDictionaryRfListResponse)

/**
 * Метод получения списка элементов справочника Регионы (РФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getDictionaryRfListWithRequest:(KEYAPISTELEMETRYCONTROLV1GetDictionaryRfListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISTELEMETRYCONTROLV1GetDictionaryRfListResponse *_Nullable response, NSError *_Nullable error))eventHandler;

/**
 * Метод получения списка элементов справочника Регионы (РФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetDictionaryRfListWithRequest:(KEYAPISTELEMETRYCONTROLV1GetDictionaryRfListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISTELEMETRYCONTROLV1GetDictionaryRfListResponse *_Nullable response, NSError *_Nullable error))eventHandler;


#pragma mark GetDictionaryRfCount(GetDictionaryRfCountRequest) returns (GetDictionaryRfCountResponse)

/**
 * Метод получения количества элементов справочника Регионы (РФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getDictionaryRfCountWithRequest:(KEYAPISTELEMETRYCONTROLV1GetDictionaryRfCountRequest *)request handler:(void(^)(KEYAPISTELEMETRYCONTROLV1GetDictionaryRfCountResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод получения количества элементов справочника Регионы (РФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetDictionaryRfCountWithRequest:(KEYAPISTELEMETRYCONTROLV1GetDictionaryRfCountRequest *)request handler:(void(^)(KEYAPISTELEMETRYCONTROLV1GetDictionaryRfCountResponse *_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 KEYAPISTELEMETRYCONTROLV1DictionaryService : GRPCProtoService<KEYAPISTELEMETRYCONTROLV1DictionaryService2, KEYAPISTELEMETRYCONTROLV1DictionaryService>
- (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

