// Code generated by gRPC proto compiler.  DO NOT EDIT!
// source: deviceapis/device/v1/deviceapis_device_rfid_v1.proto

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

#import "deviceapis/device/v1/DeviceapisDeviceCommonV1.pbobjc.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

@implementation DEVICEAPISDEVICEV1RfidService

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

- (instancetype)initWithHost:(NSString *)host {
  return [super initWithHost:host
                 packageName:@"deviceapis.device.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 DeleteRfid(DeleteRfidRequest) returns (DeleteRfidResponse)

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

#pragma mark DeleteRfidList(DeleteRfidListRequest) returns (DeleteRfidListResponse)

/**
 * Метод удаления списка сущностей Rfid по фильтру
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)deleteRfidListWithRequest:(DEVICEAPISDEVICEV1DeleteRfidListRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1DeleteRfidListResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToDeleteRfidListWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод удаления списка сущностей Rfid по фильтру
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToDeleteRfidListWithRequest:(DEVICEAPISDEVICEV1DeleteRfidListRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1DeleteRfidListResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"DeleteRfidList"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[DEVICEAPISDEVICEV1DeleteRfidListResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод удаления списка сущностей Rfid по фильтру
 */
- (GRPCUnaryProtoCall *)deleteRfidListWithMessage:(DEVICEAPISDEVICEV1DeleteRfidListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"DeleteRfidList"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[DEVICEAPISDEVICEV1DeleteRfidListResponse class]];
}

#pragma mark GetRfid(GetRfidRequest) returns (GetRfidResponse)

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

#pragma mark GetRfidCount(GetRfidCountRequest) returns (GetRfidCountResponse)

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

#pragma mark GetRfidList(GetRfidListRequest) returns (GetRfidListResponse)

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

#pragma mark SaveRfid(SaveRfidRequest) returns (SaveRfidResponse)

/**
 * Метод редактирования сущности Rfid
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)saveRfidWithRequest:(DEVICEAPISDEVICEV1SaveRfidRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1SaveRfidResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToSaveRfidWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод редактирования сущности Rfid
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToSaveRfidWithRequest:(DEVICEAPISDEVICEV1SaveRfidRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1SaveRfidResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"SaveRfid"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[DEVICEAPISDEVICEV1SaveRfidResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод редактирования сущности Rfid
 */
- (GRPCUnaryProtoCall *)saveRfidWithMessage:(DEVICEAPISDEVICEV1SaveRfidRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"SaveRfid"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[DEVICEAPISDEVICEV1SaveRfidResponse class]];
}

#pragma mark SaveRfidList(SaveRfidListRequest) returns (SaveRfidListResponse)

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

@end
#endif
