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

#import <Foundation/Foundation.h>

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
#import "keyapis/device/v1/KeyapisDeviceSipPhoneV1.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 KEYAPISDEVICEV1GetSipPhoneCountRequest;
@class KEYAPISDEVICEV1GetSipPhoneCountResponse;
@class KEYAPISDEVICEV1GetSipPhoneListRequest;
@class KEYAPISDEVICEV1GetSipPhoneListResponse;
@class KEYAPISDEVICEV1GetSipPhoneRequest;
@class KEYAPISDEVICEV1GetSipPhoneResponse;
@class KEYAPISDEVICEV1PostSipPhoneGetCountRequest;
@class KEYAPISDEVICEV1PostSipPhoneGetCountResponse;
@class KEYAPISDEVICEV1PostSipPhoneGetListRequest;
@class KEYAPISDEVICEV1PostSipPhoneGetListResponse;

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
#if defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) && GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
  #import <Protobuf/GPBTimestamp.pbobjc.h>
#else
  #import "GPBTimestamp.pbobjc.h"
#endif
  #import "google/api/Annotations.pbobjc.h"
  #import "google/api/FieldBehavior.pbobjc.h"
  #import "google/protobuf/Descriptor.pbobjc.h"
  #import "keyapis/device/v1/KeyapisDeviceDeviceV1.pbobjc.h"
#endif

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


NS_ASSUME_NONNULL_BEGIN

@protocol KEYAPISDEVICEV1SipPhoneService2 <NSObject>

#pragma mark GetSipPhone(GetSipPhoneRequest) returns (GetSipPhoneResponse)

/**
 * Метод получения SIP-трубки по идентификатору.
 * Метод доступен для: admin, service, bti, ltp_first
 */
- (GRPCUnaryProtoCall *)getSipPhoneWithMessage:(KEYAPISDEVICEV1GetSipPhoneRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetSipPhoneList(GetSipPhoneListRequest) returns (stream GetSipPhoneListResponse)

/**
 * Метод получения списка SIP-трубок.
 * Метод доступен для: admin, service, bti, ltp_first
 */
- (GRPCUnaryProtoCall *)getSipPhoneListWithMessage:(KEYAPISDEVICEV1GetSipPhoneListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetSipPhoneCount(GetSipPhoneCountRequest) returns (GetSipPhoneCountResponse)

/**
 * Метод получения количества SIP-трубок.
 * Метод доступен для: admin, service, bti, ltp_first
 */
- (GRPCUnaryProtoCall *)getSipPhoneCountWithMessage:(KEYAPISDEVICEV1GetSipPhoneCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark PostSipPhoneGetList(PostSipPhoneGetListRequest) returns (PostSipPhoneGetListResponse)

/**
 * Метод получения списка SIP-трубок.
 * Метод доступен для: admin, service, bti, ltp_first
 */
- (GRPCUnaryProtoCall *)postSipPhoneGetListWithMessage:(KEYAPISDEVICEV1PostSipPhoneGetListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark PostSipPhoneGetCount(PostSipPhoneGetCountRequest) returns (PostSipPhoneGetCountResponse)

/**
 * Метод получения количества SIP-трубок.
 * Метод доступен для: admin, service, bti, ltp_first
 */
- (GRPCUnaryProtoCall *)postSipPhoneGetCountWithMessage:(KEYAPISDEVICEV1PostSipPhoneGetCountRequest *)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 KEYAPISDEVICEV1SipPhoneService <NSObject>

#pragma mark GetSipPhone(GetSipPhoneRequest) returns (GetSipPhoneResponse)

/**
 * Метод получения SIP-трубки по идентификатору.
 * Метод доступен для: admin, service, bti, ltp_first
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getSipPhoneWithRequest:(KEYAPISDEVICEV1GetSipPhoneRequest *)request handler:(void(^)(KEYAPISDEVICEV1GetSipPhoneResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод получения SIP-трубки по идентификатору.
 * Метод доступен для: admin, service, bti, ltp_first
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetSipPhoneWithRequest:(KEYAPISDEVICEV1GetSipPhoneRequest *)request handler:(void(^)(KEYAPISDEVICEV1GetSipPhoneResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark GetSipPhoneList(GetSipPhoneListRequest) returns (stream GetSipPhoneListResponse)

/**
 * Метод получения списка SIP-трубок.
 * Метод доступен для: admin, service, bti, ltp_first
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getSipPhoneListWithRequest:(KEYAPISDEVICEV1GetSipPhoneListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISDEVICEV1GetSipPhoneListResponse *_Nullable response, NSError *_Nullable error))eventHandler;

/**
 * Метод получения списка SIP-трубок.
 * Метод доступен для: admin, service, bti, ltp_first
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetSipPhoneListWithRequest:(KEYAPISDEVICEV1GetSipPhoneListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISDEVICEV1GetSipPhoneListResponse *_Nullable response, NSError *_Nullable error))eventHandler;


#pragma mark GetSipPhoneCount(GetSipPhoneCountRequest) returns (GetSipPhoneCountResponse)

/**
 * Метод получения количества SIP-трубок.
 * Метод доступен для: admin, service, bti, ltp_first
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getSipPhoneCountWithRequest:(KEYAPISDEVICEV1GetSipPhoneCountRequest *)request handler:(void(^)(KEYAPISDEVICEV1GetSipPhoneCountResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод получения количества SIP-трубок.
 * Метод доступен для: admin, service, bti, ltp_first
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetSipPhoneCountWithRequest:(KEYAPISDEVICEV1GetSipPhoneCountRequest *)request handler:(void(^)(KEYAPISDEVICEV1GetSipPhoneCountResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark PostSipPhoneGetList(PostSipPhoneGetListRequest) returns (PostSipPhoneGetListResponse)

/**
 * Метод получения списка SIP-трубок.
 * Метод доступен для: admin, service, bti, ltp_first
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postSipPhoneGetListWithRequest:(KEYAPISDEVICEV1PostSipPhoneGetListRequest *)request handler:(void(^)(KEYAPISDEVICEV1PostSipPhoneGetListResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод получения списка SIP-трубок.
 * Метод доступен для: admin, service, bti, ltp_first
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostSipPhoneGetListWithRequest:(KEYAPISDEVICEV1PostSipPhoneGetListRequest *)request handler:(void(^)(KEYAPISDEVICEV1PostSipPhoneGetListResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark PostSipPhoneGetCount(PostSipPhoneGetCountRequest) returns (PostSipPhoneGetCountResponse)

/**
 * Метод получения количества SIP-трубок.
 * Метод доступен для: admin, service, bti, ltp_first
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postSipPhoneGetCountWithRequest:(KEYAPISDEVICEV1PostSipPhoneGetCountRequest *)request handler:(void(^)(KEYAPISDEVICEV1PostSipPhoneGetCountResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод получения количества SIP-трубок.
 * Метод доступен для: admin, service, bti, ltp_first
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostSipPhoneGetCountWithRequest:(KEYAPISDEVICEV1PostSipPhoneGetCountRequest *)request handler:(void(^)(KEYAPISDEVICEV1PostSipPhoneGetCountResponse *_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 KEYAPISDEVICEV1SipPhoneService : GRPCProtoService<KEYAPISDEVICEV1SipPhoneService2, KEYAPISDEVICEV1SipPhoneService>
- (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

