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

#import <Foundation/Foundation.h>

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
#import "deviceapis/device/v1/DeviceapisDeviceSipV1.pbobjc.h"
#endif

#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
#import <ProtoRPC/ProtoService.h>
#import <ProtoRPC/ProtoRPCLegacy.h>
#import <RxLibrary/GRXWriteable.h>
#import <RxLibrary/GRXWriter.h>
#endif

@class DEVICEAPISDEVICEV1EditSipAccountRequest;
@class DEVICEAPISDEVICEV1EditSipAccountResponse;
@class DEVICEAPISDEVICEV1EditSipTimeoutSettingsRequest;
@class DEVICEAPISDEVICEV1EditSipTimeoutSettingsResponse;
@class DEVICEAPISDEVICEV1GetSipAccountListRequest;
@class DEVICEAPISDEVICEV1GetSipAccountListResponse;
@class DEVICEAPISDEVICEV1GetSipAccountStatusListRequest;
@class DEVICEAPISDEVICEV1GetSipAccountStatusListResponse;
@class DEVICEAPISDEVICEV1GetSipTimeoutSettingsRequest;
@class DEVICEAPISDEVICEV1GetSipTimeoutSettingsResponse;

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
  #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"
#endif

@class GRPCUnaryProtoCall;
@class GRPCStreamingProtoCall;
@class GRPCCallOptions;
@protocol GRPCProtoResponseHandler;
@class GRPCProtoCall;


NS_ASSUME_NONNULL_BEGIN

@protocol DEVICEAPISDEVICEV1SipService2 <NSObject>

#pragma mark EditSipAccount(EditSipAccountRequest) returns (EditSipAccountResponse)

/**
 * Метод редактирования Sip-аккаунта
 */
- (GRPCUnaryProtoCall *)editSipAccountWithMessage:(DEVICEAPISDEVICEV1EditSipAccountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetSipAccountList(GetSipAccountListRequest) returns (GetSipAccountListResponse)

/**
 * Метод получения списка Sip-аккаунтов
 */
- (GRPCUnaryProtoCall *)getSipAccountListWithMessage:(DEVICEAPISDEVICEV1GetSipAccountListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark EditSipTimeoutSettings(EditSipTimeoutSettingsRequest) returns (EditSipTimeoutSettingsResponse)

/**
 * Метод редактирования настроек максимального времени общения и дозвона
 */
- (GRPCUnaryProtoCall *)editSipTimeoutSettingsWithMessage:(DEVICEAPISDEVICEV1EditSipTimeoutSettingsRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetSipTimeoutSettings(GetSipTimeoutSettingsRequest) returns (GetSipTimeoutSettingsResponse)

/**
 * Метод получения настроек максимального времени общения и дозвона
 */
- (GRPCUnaryProtoCall *)getSipTimeoutSettingsWithMessage:(DEVICEAPISDEVICEV1GetSipTimeoutSettingsRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetSipAccountStatusList(GetSipAccountStatusListRequest) returns (GetSipAccountStatusListResponse)

/**
 * Метод получения статусов регистрации Sip-аккаунтов
 */
- (GRPCUnaryProtoCall *)getSipAccountStatusListWithMessage:(DEVICEAPISDEVICEV1GetSipAccountStatusListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

@end

/**
 * The methods in this protocol belong to a set of old APIs that have been deprecated. They do not
 * recognize call options provided in the initializer. Using the v2 protocol is recommended.
 */
@protocol DEVICEAPISDEVICEV1SipService <NSObject>

#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;

/**
 * Метод редактирования 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;


#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;

/**
 * Метод получения списка 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;


#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;

/**
 * Метод редактирования настроек максимального времени общения и дозвона
 *
 * 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;


#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;

/**
 * Метод получения настроек максимального времени общения и дозвона
 *
 * 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;


#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;

/**
 * Метод получения статусов регистрации 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;


@end


#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
/**
 * Basic service implementation, over gRPC, that only does
 * marshalling and parsing.
 */
@interface DEVICEAPISDEVICEV1SipService : GRPCProtoService<DEVICEAPISDEVICEV1SipService2, DEVICEAPISDEVICEV1SipService>
- (instancetype)initWithHost:(NSString *)host callOptions:(GRPCCallOptions *_Nullable)callOptions NS_DESIGNATED_INITIALIZER;
+ (instancetype)serviceWithHost:(NSString *)host callOptions:(GRPCCallOptions *_Nullable)callOptions;
// The following methods belong to a set of old APIs that have been deprecated.
- (instancetype)initWithHost:(NSString *)host;
+ (instancetype)serviceWithHost:(NSString *)host;
@end
#endif

NS_ASSUME_NONNULL_END

