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

#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
#import "keyapis/telemetry_control/v1/KeyapisTelemetryControlDictionaryV1.pbrpc.h"
#import "keyapis/telemetry_control/v1/KeyapisTelemetryControlDictionaryV1.pbobjc.h"
#import <ProtoRPC/ProtoRPCLegacy.h>
#import <RxLibrary/GRXWriter+Immediate.h>

#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

@implementation KEYAPISTELEMETRYCONTROLV1DictionaryService

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-designated-initializers"

// Designated initializer
- (instancetype)initWithHost:(NSString *)host callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [super initWithHost:host
                 packageName:@"keyapis.telemetry_control.v1"
                 serviceName:@"DictionaryService"
                 callOptions:callOptions];
}

- (instancetype)initWithHost:(NSString *)host {
  return [super initWithHost:host
                 packageName:@"keyapis.telemetry_control.v1"
                 serviceName:@"DictionaryService"];
}

#pragma clang diagnostic pop

// Override superclass initializer to disallow different package and service names.
- (instancetype)initWithHost:(NSString *)host
                 packageName:(NSString *)packageName
                 serviceName:(NSString *)serviceName {
  return [self initWithHost:host];
}

- (instancetype)initWithHost:(NSString *)host
                 packageName:(NSString *)packageName
                 serviceName:(NSString *)serviceName
                 callOptions:(GRPCCallOptions *)callOptions {
  return [self initWithHost:host callOptions:callOptions];
}

#pragma mark - Class Methods

+ (instancetype)serviceWithHost:(NSString *)host {
  return [[self alloc] initWithHost:host];
}

+ (instancetype)serviceWithHost:(NSString *)host callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [[self alloc] initWithHost:host callOptions:callOptions];
}

#pragma mark - Method Implementations

#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{
  [[self RPCToGetDictionaryDeviceModelListWithRequest:request eventHandler:eventHandler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения списка моделей ПУ.
 * Метод доступен для: 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{
  return [self RPCToMethod:@"GetDictionaryDeviceModelList"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelListResponse class]
        responsesWriteable:[GRXWriteable writeableWithEventHandler:eventHandler]];
}
/**
 * Метод получения списка моделей ПУ.
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)getDictionaryDeviceModelListWithMessage:(KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetDictionaryDeviceModelList"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelListResponse class]];
}

#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{
  [[self RPCToGetDictionaryDeviceModelCountWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения количества моделей ПУ.
 * Метод доступен для: 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{
  return [self RPCToMethod:@"GetDictionaryDeviceModelCount"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelCountResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения количества моделей ПУ.
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)getDictionaryDeviceModelCountWithMessage:(KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetDictionaryDeviceModelCount"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYCONTROLV1GetDictionaryDeviceModelCountResponse class]];
}

#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{
  [[self RPCToPostDictionaryDeviceModelWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод сохранения модели ПУ.
 * Поддерживает создание и обновление.
 * Метод доступен для: 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{
  return [self RPCToMethod:@"PostDictionaryDeviceModel"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYCONTROLV1PostDictionaryDeviceModelResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод сохранения модели ПУ.
 * Поддерживает создание и обновление.
 * Метод доступен для: Token: admin, service, application. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)postDictionaryDeviceModelWithMessage:(KEYAPISTELEMETRYCONTROLV1PostDictionaryDeviceModelRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"PostDictionaryDeviceModel"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYCONTROLV1PostDictionaryDeviceModelResponse class]];
}

#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{
  [[self RPCToDeleteDictionaryDeviceModelWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод удаления модели ПУ.
 * Метод доступен для: 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{
  return [self RPCToMethod:@"DeleteDictionaryDeviceModel"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYCONTROLV1DeleteDictionaryDeviceModelResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод удаления модели ПУ.
 * Метод доступен для: Token: admin, service, application. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)deleteDictionaryDeviceModelWithMessage:(KEYAPISTELEMETRYCONTROLV1DeleteDictionaryDeviceModelRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"DeleteDictionaryDeviceModel"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYCONTROLV1DeleteDictionaryDeviceModelResponse class]];
}

#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{
  [[self RPCToGetDictionaryMrfListWithRequest:request eventHandler:eventHandler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения списка элементов справочника Макрорегионы (МРФ).
 * Метод доступен для: 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{
  return [self RPCToMethod:@"GetDictionaryMrfList"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfListResponse class]
        responsesWriteable:[GRXWriteable writeableWithEventHandler:eventHandler]];
}
/**
 * Метод получения списка элементов справочника Макрорегионы (МРФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)getDictionaryMrfListWithMessage:(KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetDictionaryMrfList"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfListResponse class]];
}

#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{
  [[self RPCToGetDictionaryMrfCountWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения количества элементов справочника Макрорегионы (МРФ).
 * Метод доступен для: 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{
  return [self RPCToMethod:@"GetDictionaryMrfCount"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfCountResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения количества элементов справочника Макрорегионы (МРФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)getDictionaryMrfCountWithMessage:(KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetDictionaryMrfCount"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYCONTROLV1GetDictionaryMrfCountResponse class]];
}

#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{
  [[self RPCToGetDictionaryRfListWithRequest:request eventHandler:eventHandler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения списка элементов справочника Регионы (РФ).
 * Метод доступен для: 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{
  return [self RPCToMethod:@"GetDictionaryRfList"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYCONTROLV1GetDictionaryRfListResponse class]
        responsesWriteable:[GRXWriteable writeableWithEventHandler:eventHandler]];
}
/**
 * Метод получения списка элементов справочника Регионы (РФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)getDictionaryRfListWithMessage:(KEYAPISTELEMETRYCONTROLV1GetDictionaryRfListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetDictionaryRfList"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYCONTROLV1GetDictionaryRfListResponse class]];
}

#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{
  [[self RPCToGetDictionaryRfCountWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения количества элементов справочника Регионы (РФ).
 * Метод доступен для: 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{
  return [self RPCToMethod:@"GetDictionaryRfCount"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISTELEMETRYCONTROLV1GetDictionaryRfCountResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения количества элементов справочника Регионы (РФ).
 * Метод доступен для: Token: admin, service, application, bti, owner, employee, seller. Без учета разрешений
 */
- (GRPCUnaryProtoCall *)getDictionaryRfCountWithMessage:(KEYAPISTELEMETRYCONTROLV1GetDictionaryRfCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetDictionaryRfCount"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISTELEMETRYCONTROLV1GetDictionaryRfCountResponse class]];
}

@end
#endif
