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

#import <Foundation/Foundation.h>

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
#import "deviceapis/device/v1/DeviceapisDeviceUpdateV1.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 DEVICEAPISDEVICEV1PostUpdateApplyRequest;
@class DEVICEAPISDEVICEV1PostUpdateApplyResponse;
@class DEVICEAPISDEVICEV1PostUpdateDownloadRequest;
@class DEVICEAPISDEVICEV1PostUpdateDownloadResponse;

#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"
  #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 DEVICEAPISDEVICEV1UpdateService2 <NSObject>

#pragma mark PostUpdateDownload(PostUpdateDownloadRequest) returns (PostUpdateDownloadResponse)

/**
 * Скачать прошивку для обновления
 */
- (GRPCUnaryProtoCall *)postUpdateDownloadWithMessage:(DEVICEAPISDEVICEV1PostUpdateDownloadRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark PostUpdateApply(PostUpdateApplyRequest) returns (PostUpdateApplyResponse)

/**
 * Запустить обновление домофона
 */
- (GRPCUnaryProtoCall *)postUpdateApplyWithMessage:(DEVICEAPISDEVICEV1PostUpdateApplyRequest *)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 DEVICEAPISDEVICEV1UpdateService <NSObject>

#pragma mark PostUpdateDownload(PostUpdateDownloadRequest) returns (PostUpdateDownloadResponse)

/**
 * Скачать прошивку для обновления
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postUpdateDownloadWithRequest:(DEVICEAPISDEVICEV1PostUpdateDownloadRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1PostUpdateDownloadResponse *_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 *)RPCToPostUpdateDownloadWithRequest:(DEVICEAPISDEVICEV1PostUpdateDownloadRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1PostUpdateDownloadResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark PostUpdateApply(PostUpdateApplyRequest) returns (PostUpdateApplyResponse)

/**
 * Запустить обновление домофона
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postUpdateApplyWithRequest:(DEVICEAPISDEVICEV1PostUpdateApplyRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1PostUpdateApplyResponse *_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 *)RPCToPostUpdateApplyWithRequest:(DEVICEAPISDEVICEV1PostUpdateApplyRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1PostUpdateApplyResponse *_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 DEVICEAPISDEVICEV1UpdateService : GRPCProtoService<DEVICEAPISDEVICEV1UpdateService2, DEVICEAPISDEVICEV1UpdateService>
- (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

