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

#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
#import "keyapis/vc/v1/KeyapisVcCameraV1.pbrpc.h"
#import "keyapis/vc/v1/KeyapisVcCameraV1.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 KEYAPISVCV1CameraService

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

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

#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 GetCameraRoomCount(GetCameraRoomCountRequest) returns (GetCameraRoomCountResponse)

/**
 * Метод получения количества связей камеры и квартиры.
 * Метод доступен для: admin, service, bti, owner, employee
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getCameraRoomCountWithRequest:(KEYAPISVCV1GetCameraRoomCountRequest *)request handler:(void(^)(KEYAPISVCV1GetCameraRoomCountResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToGetCameraRoomCountWithRequest: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 *)RPCToGetCameraRoomCountWithRequest:(KEYAPISVCV1GetCameraRoomCountRequest *)request handler:(void(^)(KEYAPISVCV1GetCameraRoomCountResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"GetCameraRoomCount"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISVCV1GetCameraRoomCountResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения количества связей камеры и квартиры.
 * Метод доступен для: admin, service, bti, owner, employee
 */
- (GRPCUnaryProtoCall *)getCameraRoomCountWithMessage:(KEYAPISVCV1GetCameraRoomCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetCameraRoomCount"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISVCV1GetCameraRoomCountResponse class]];
}

#pragma mark GetCameraRoomList(GetCameraRoomListRequest) returns (stream GetCameraRoomListResponse)

/**
 * Метод получения списка связей камеры и квартиры.
 * Метод доступен для: admin, service, bti, owner, employee
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getCameraRoomListWithRequest:(KEYAPISVCV1GetCameraRoomListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISVCV1GetCameraRoomListResponse *_Nullable response, NSError *_Nullable error))eventHandler{
  [[self RPCToGetCameraRoomListWithRequest:request eventHandler:eventHandler] 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 *)RPCToGetCameraRoomListWithRequest:(KEYAPISVCV1GetCameraRoomListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISVCV1GetCameraRoomListResponse *_Nullable response, NSError *_Nullable error))eventHandler{
  return [self RPCToMethod:@"GetCameraRoomList"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISVCV1GetCameraRoomListResponse class]
        responsesWriteable:[GRXWriteable writeableWithEventHandler:eventHandler]];
}
/**
 * Метод получения списка связей камеры и квартиры.
 * Метод доступен для: admin, service, bti, owner, employee
 */
- (GRPCUnaryProtoCall *)getCameraRoomListWithMessage:(KEYAPISVCV1GetCameraRoomListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetCameraRoomList"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISVCV1GetCameraRoomListResponse class]];
}

#pragma mark GetCamera(GetCameraRequest) returns (GetCameraResponse)

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

#pragma mark GetCameraList(GetCameraListRequest) returns (GetCameraListResponse)

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

#pragma mark GetCameraRtspUrlExternalId(GetCameraRtspUrlExternalIdRequest) returns (GetCameraRtspUrlExternalIdResponse)

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

#pragma mark PutCameraRoomAttach(PutCameraRoomAttachRequest) returns (PutCameraRoomAttachResponse)

/**
 * Метод привязки камеры и квартиры.
 * Метод доступен для: admin, service, bti, owner, employee
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)putCameraRoomAttachWithRequest:(KEYAPISVCV1PutCameraRoomAttachRequest *)request handler:(void(^)(KEYAPISVCV1PutCameraRoomAttachResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToPutCameraRoomAttachWithRequest: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 *)RPCToPutCameraRoomAttachWithRequest:(KEYAPISVCV1PutCameraRoomAttachRequest *)request handler:(void(^)(KEYAPISVCV1PutCameraRoomAttachResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"PutCameraRoomAttach"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISVCV1PutCameraRoomAttachResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод привязки камеры и квартиры.
 * Метод доступен для: admin, service, bti, owner, employee
 */
- (GRPCUnaryProtoCall *)putCameraRoomAttachWithMessage:(KEYAPISVCV1PutCameraRoomAttachRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"PutCameraRoomAttach"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISVCV1PutCameraRoomAttachResponse class]];
}

#pragma mark PutCameraRoomDetach(PutCameraRoomDetachRequest) returns (PutCameraRoomDetachResponse)

/**
 * Метод отвязки камеры и квартиры.
 * Метод доступен для: admin, service, bti, owner, employee
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)putCameraRoomDetachWithRequest:(KEYAPISVCV1PutCameraRoomDetachRequest *)request handler:(void(^)(KEYAPISVCV1PutCameraRoomDetachResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToPutCameraRoomDetachWithRequest: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 *)RPCToPutCameraRoomDetachWithRequest:(KEYAPISVCV1PutCameraRoomDetachRequest *)request handler:(void(^)(KEYAPISVCV1PutCameraRoomDetachResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"PutCameraRoomDetach"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISVCV1PutCameraRoomDetachResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод отвязки камеры и квартиры.
 * Метод доступен для: admin, service, bti, owner, employee
 */
- (GRPCUnaryProtoCall *)putCameraRoomDetachWithMessage:(KEYAPISVCV1PutCameraRoomDetachRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"PutCameraRoomDetach"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISVCV1PutCameraRoomDetachResponse class]];
}

#pragma mark PutCameraRoomAttachList(PutCameraRoomAttachListRequest) returns (PutCameraRoomAttachListResponse)

/**
 * Метод пакетной привязки камер и квартир.
 * Метод доступен для: admin, service, bti, owner, employee
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)putCameraRoomAttachListWithRequest:(KEYAPISVCV1PutCameraRoomAttachListRequest *)request handler:(void(^)(KEYAPISVCV1PutCameraRoomAttachListResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToPutCameraRoomAttachListWithRequest: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 *)RPCToPutCameraRoomAttachListWithRequest:(KEYAPISVCV1PutCameraRoomAttachListRequest *)request handler:(void(^)(KEYAPISVCV1PutCameraRoomAttachListResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"PutCameraRoomAttachList"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISVCV1PutCameraRoomAttachListResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод пакетной привязки камер и квартир.
 * Метод доступен для: admin, service, bti, owner, employee
 */
- (GRPCUnaryProtoCall *)putCameraRoomAttachListWithMessage:(KEYAPISVCV1PutCameraRoomAttachListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"PutCameraRoomAttachList"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISVCV1PutCameraRoomAttachListResponse class]];
}

#pragma mark PutCameraRoomDetachList(PutCameraRoomDetachListRequest) returns (PutCameraRoomDetachListResponse)

/**
 * Метод пакетной отвязки камер и квартир.
 * Метод доступен для: admin, service, bti, owner, employee
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)putCameraRoomDetachListWithRequest:(KEYAPISVCV1PutCameraRoomDetachListRequest *)request handler:(void(^)(KEYAPISVCV1PutCameraRoomDetachListResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToPutCameraRoomDetachListWithRequest: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 *)RPCToPutCameraRoomDetachListWithRequest:(KEYAPISVCV1PutCameraRoomDetachListRequest *)request handler:(void(^)(KEYAPISVCV1PutCameraRoomDetachListResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"PutCameraRoomDetachList"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISVCV1PutCameraRoomDetachListResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод пакетной отвязки камер и квартир.
 * Метод доступен для: admin, service, bti, owner, employee
 */
- (GRPCUnaryProtoCall *)putCameraRoomDetachListWithMessage:(KEYAPISVCV1PutCameraRoomDetachListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"PutCameraRoomDetachList"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISVCV1PutCameraRoomDetachListResponse class]];
}

#pragma mark DeleteCamera(DeleteCameraRequest) returns (DeleteCameraResponse)

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

#pragma mark PostCamera(PostCameraRequest) returns (PostCameraResponse)

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

@end
#endif
