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

#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
#import "keyapis/access_control/v1/KeyapisAccessControlRfidV1.pbrpc.h"
#import "keyapis/access_control/v1/KeyapisAccessControlRfidV1.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/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 "keyapis/access_control/v1/KeyapisAccessControlAccessControlV1.pbobjc.h"

@implementation KEYAPISACCESSCONTROLV1RfidService

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

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

#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 GetRfid(GetRfidRequest) returns (GetRfidResponse)

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

#pragma mark GetRfidList(GetRfidListRequest) returns (stream GetRfidListResponse)

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

#pragma mark GetRfidCount(GetRfidCountRequest) returns (GetRfidCountResponse)

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

#pragma mark PostRfid(PostRfidRequest) returns (PostRfidResponse)

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

#pragma mark DeleteRfid(DeleteRfidRequest) returns (DeleteRfidResponse)

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

@end
#endif
