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

#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
#import "deviceapis/device/v1/DeviceapisDeviceSipV1.pbrpc.h"
#import "deviceapis/device/v1/DeviceapisDeviceSipV1.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/GPBWrappers.pbobjc.h>
#else
#import "GPBWrappers.pbobjc.h"
#endif
#if defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) && GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
#import <Protobuf/GPBFieldMask.pbobjc.h>
#else
#import "GPBFieldMask.pbobjc.h"
#endif
#import "deviceapis/device/v1/DeviceapisDeviceCommonV1.pbobjc.h"
#import "protoc-gen-openapiv2/options/Annotations.pbobjc.h"

@implementation DEVICEAPISDEVICEV1SipService

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

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

#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 EditSipAccount(EditSipAccountRequest) returns (EditSipAccountResponse)

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

#pragma mark GetSipAccountList(GetSipAccountListRequest) returns (GetSipAccountListResponse)

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

#pragma mark EditSipTimeoutSettings(EditSipTimeoutSettingsRequest) returns (EditSipTimeoutSettingsResponse)

/**
 * Метод редактирования настроек максимального времени общения и дозвона
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)editSipTimeoutSettingsWithRequest:(DEVICEAPISDEVICEV1EditSipTimeoutSettingsRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1EditSipTimeoutSettingsResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToEditSipTimeoutSettingsWithRequest: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 *)RPCToEditSipTimeoutSettingsWithRequest:(DEVICEAPISDEVICEV1EditSipTimeoutSettingsRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1EditSipTimeoutSettingsResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"EditSipTimeoutSettings"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[DEVICEAPISDEVICEV1EditSipTimeoutSettingsResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод редактирования настроек максимального времени общения и дозвона
 */
- (GRPCUnaryProtoCall *)editSipTimeoutSettingsWithMessage:(DEVICEAPISDEVICEV1EditSipTimeoutSettingsRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"EditSipTimeoutSettings"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[DEVICEAPISDEVICEV1EditSipTimeoutSettingsResponse class]];
}

#pragma mark GetSipTimeoutSettings(GetSipTimeoutSettingsRequest) returns (GetSipTimeoutSettingsResponse)

/**
 * Метод получения настроек максимального времени общения и дозвона
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getSipTimeoutSettingsWithRequest:(DEVICEAPISDEVICEV1GetSipTimeoutSettingsRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1GetSipTimeoutSettingsResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToGetSipTimeoutSettingsWithRequest: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 *)RPCToGetSipTimeoutSettingsWithRequest:(DEVICEAPISDEVICEV1GetSipTimeoutSettingsRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1GetSipTimeoutSettingsResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"GetSipTimeoutSettings"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[DEVICEAPISDEVICEV1GetSipTimeoutSettingsResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения настроек максимального времени общения и дозвона
 */
- (GRPCUnaryProtoCall *)getSipTimeoutSettingsWithMessage:(DEVICEAPISDEVICEV1GetSipTimeoutSettingsRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetSipTimeoutSettings"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[DEVICEAPISDEVICEV1GetSipTimeoutSettingsResponse class]];
}

#pragma mark GetSipAccountStatusList(GetSipAccountStatusListRequest) returns (GetSipAccountStatusListResponse)

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

@end
#endif
