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

#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
#import "deviceapis/device/v1/DeviceapisDeviceRoomV1.pbrpc.h"
#import "deviceapis/device/v1/DeviceapisDeviceRoomV1.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"
#import "protoc-gen-openapiv2/options/Annotations.pbobjc.h"

@implementation DEVICEAPISDEVICEV1RoomService

#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:@"RoomService"
                 callOptions:callOptions];
}

- (instancetype)initWithHost:(NSString *)host {
  return [super initWithHost:host
                 packageName:@"deviceapis.device.v1"
                 serviceName:@"RoomService"];
}

#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 DeleteRoom(DeleteRoomRequest) returns (DeleteRoomResponse)

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

#pragma mark DeleteRoomList(DeleteRoomListRequest) returns (DeleteRoomListResponse)

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

#pragma mark GetRoom(GetRoomRequest) returns (GetRoomResponse)

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

#pragma mark GetRoomCount(GetRoomCountRequest) returns (GetRoomCountResponse)

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

#pragma mark GetRoomList(GetRoomListRequest) returns (GetRoomListResponse)

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

#pragma mark SaveRoom(SaveRoomRequest) returns (SaveRoomResponse)

/**
 * Метод сохранения настроек квартиры.
 * Поддерживает создание и обновление
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)saveRoomWithRequest:(DEVICEAPISDEVICEV1SaveRoomRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1SaveRoomResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToSaveRoomWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод сохранения настроек квартиры.
 * Поддерживает создание и обновление
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToSaveRoomWithRequest:(DEVICEAPISDEVICEV1SaveRoomRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1SaveRoomResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"SaveRoom"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[DEVICEAPISDEVICEV1SaveRoomResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод сохранения настроек квартиры.
 * Поддерживает создание и обновление
 */
- (GRPCUnaryProtoCall *)saveRoomWithMessage:(DEVICEAPISDEVICEV1SaveRoomRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"SaveRoom"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[DEVICEAPISDEVICEV1SaveRoomResponse class]];
}

#pragma mark SaveRoomList(SaveRoomListRequest) returns (SaveRoomListResponse)

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

@end
#endif
