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

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

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

@implementation KEYAPISVCV1DictionaryService

#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.vc.v1"
                 serviceName:@"DictionaryService"
                 callOptions:callOptions];
}

- (instancetype)initWithHost:(NSString *)host {
  return [super initWithHost:host
                 packageName:@"keyapis.vc.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 GetDictionaryCategories(GetDictionaryCategoriesRequest) returns (GetDictionaryCategoriesResponse)

/**
 * Метод получения справочника категорий.
 * Метод доступен для: admin, service, bti, owner, employee
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getDictionaryCategoriesWithRequest:(KEYAPISVCV1GetDictionaryCategoriesRequest *)request handler:(void(^)(KEYAPISVCV1GetDictionaryCategoriesResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToGetDictionaryCategoriesWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения справочника категорий.
 * Метод доступен для: admin, service, bti, owner, employee
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetDictionaryCategoriesWithRequest:(KEYAPISVCV1GetDictionaryCategoriesRequest *)request handler:(void(^)(KEYAPISVCV1GetDictionaryCategoriesResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"GetDictionaryCategories"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISVCV1GetDictionaryCategoriesResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения справочника категорий.
 * Метод доступен для: admin, service, bti, owner, employee
 */
- (GRPCUnaryProtoCall *)getDictionaryCategoriesWithMessage:(KEYAPISVCV1GetDictionaryCategoriesRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetDictionaryCategories"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISVCV1GetDictionaryCategoriesResponse class]];
}

#pragma mark GetDictionaryTariffs(GetDictionaryTariffsRequest) returns (GetDictionaryTariffsResponse)

/**
 * Метод получения справочника тарифов.
 * Метод доступен для: admin, service, bti, owner, employee
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getDictionaryTariffsWithRequest:(KEYAPISVCV1GetDictionaryTariffsRequest *)request handler:(void(^)(KEYAPISVCV1GetDictionaryTariffsResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToGetDictionaryTariffsWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения справочника тарифов.
 * Метод доступен для: admin, service, bti, owner, employee
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetDictionaryTariffsWithRequest:(KEYAPISVCV1GetDictionaryTariffsRequest *)request handler:(void(^)(KEYAPISVCV1GetDictionaryTariffsResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"GetDictionaryTariffs"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISVCV1GetDictionaryTariffsResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения справочника тарифов.
 * Метод доступен для: admin, service, bti, owner, employee
 */
- (GRPCUnaryProtoCall *)getDictionaryTariffsWithMessage:(KEYAPISVCV1GetDictionaryTariffsRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetDictionaryTariffs"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISVCV1GetDictionaryTariffsResponse class]];
}

#pragma mark GetDictionaryRoles(GetDictionaryRolesRequest) returns (GetDictionaryRolesResponse)

/**
 * Метод получения справочника ролей.
 * Метод доступен для: admin, service, bti, owner, employee
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getDictionaryRolesWithRequest:(KEYAPISVCV1GetDictionaryRolesRequest *)request handler:(void(^)(KEYAPISVCV1GetDictionaryRolesResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToGetDictionaryRolesWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения справочника ролей.
 * Метод доступен для: admin, service, bti, owner, employee
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetDictionaryRolesWithRequest:(KEYAPISVCV1GetDictionaryRolesRequest *)request handler:(void(^)(KEYAPISVCV1GetDictionaryRolesResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"GetDictionaryRoles"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISVCV1GetDictionaryRolesResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения справочника ролей.
 * Метод доступен для: admin, service, bti, owner, employee
 */
- (GRPCUnaryProtoCall *)getDictionaryRolesWithMessage:(KEYAPISVCV1GetDictionaryRolesRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetDictionaryRoles"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISVCV1GetDictionaryRolesResponse class]];
}

@end
#endif
