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

#import <Foundation/Foundation.h>

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
#import "keyapis/iot_connect/v1/KeyapisIotConnectManageV1.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 KEYAPISIOTCONNECTV1PostManageStateRequest;
@class KEYAPISIOTCONNECTV1PostManageStateResponse;
@class KEYAPISIOTCONNECTV1PostManageUnlinkUserRequest;
@class KEYAPISIOTCONNECTV1PostManageUnlinkUserResponse;

#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 "keyapis/iot_connect/v1/KeyapisIotConnectCallbackV1.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
#endif

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


NS_ASSUME_NONNULL_BEGIN

@protocol KEYAPISIOTCONNECTV1IotConnectManageService2 <NSObject>

#pragma mark PostManageState(PostManageStateRequest) returns (PostManageStateResponse)

/**
 * Ключ отправляет внешнему партнёру факт изменения состояния устройства.
 * В данном случае имеется в виду переход состояния домофона из состояния "нет вызова в квартиру" -> "есть вызов в квартиру".
 * Метод доступен для: admin
 */
- (GRPCUnaryProtoCall *)postManageStateWithMessage:(KEYAPISIOTCONNECTV1PostManageStateRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark PostManageUnlinkUser(PostManageUnlinkUserRequest) returns (PostManageUnlinkUserResponse)

/**
 * Внешний партнёр IoT отправляет в Ключ сообщение, что пользователь разъединил свой ID и аккаунт Ключа. Аккаунты на стороне партнёра разъединяются независимо от ответа вендора.
 * Ссылка на раздел документации: https://developers.sber.ru/docs/ru/smarthome/c2c/webhook-post-unlink.
 * Метод доступен для: admin
 */
- (GRPCUnaryProtoCall *)postManageUnlinkUserWithMessage:(KEYAPISIOTCONNECTV1PostManageUnlinkUserRequest *)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 KEYAPISIOTCONNECTV1IotConnectManageService <NSObject>

#pragma mark PostManageState(PostManageStateRequest) returns (PostManageStateResponse)

/**
 * Ключ отправляет внешнему партнёру факт изменения состояния устройства.
 * В данном случае имеется в виду переход состояния домофона из состояния "нет вызова в квартиру" -> "есть вызов в квартиру".
 * Метод доступен для: admin
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postManageStateWithRequest:(KEYAPISIOTCONNECTV1PostManageStateRequest *)request handler:(void(^)(KEYAPISIOTCONNECTV1PostManageStateResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Ключ отправляет внешнему партнёру факт изменения состояния устройства.
 * В данном случае имеется в виду переход состояния домофона из состояния "нет вызова в квартиру" -> "есть вызов в квартиру".
 * Метод доступен для: admin
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostManageStateWithRequest:(KEYAPISIOTCONNECTV1PostManageStateRequest *)request handler:(void(^)(KEYAPISIOTCONNECTV1PostManageStateResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark PostManageUnlinkUser(PostManageUnlinkUserRequest) returns (PostManageUnlinkUserResponse)

/**
 * Внешний партнёр IoT отправляет в Ключ сообщение, что пользователь разъединил свой ID и аккаунт Ключа. Аккаунты на стороне партнёра разъединяются независимо от ответа вендора.
 * Ссылка на раздел документации: https://developers.sber.ru/docs/ru/smarthome/c2c/webhook-post-unlink.
 * Метод доступен для: admin
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postManageUnlinkUserWithRequest:(KEYAPISIOTCONNECTV1PostManageUnlinkUserRequest *)request handler:(void(^)(KEYAPISIOTCONNECTV1PostManageUnlinkUserResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Внешний партнёр IoT отправляет в Ключ сообщение, что пользователь разъединил свой ID и аккаунт Ключа. Аккаунты на стороне партнёра разъединяются независимо от ответа вендора.
 * Ссылка на раздел документации: https://developers.sber.ru/docs/ru/smarthome/c2c/webhook-post-unlink.
 * Метод доступен для: admin
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostManageUnlinkUserWithRequest:(KEYAPISIOTCONNECTV1PostManageUnlinkUserRequest *)request handler:(void(^)(KEYAPISIOTCONNECTV1PostManageUnlinkUserResponse *_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 KEYAPISIOTCONNECTV1IotConnectManageService : GRPCProtoService<KEYAPISIOTCONNECTV1IotConnectManageService2, KEYAPISIOTCONNECTV1IotConnectManageService>
- (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

