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

#import <Foundation/Foundation.h>

#if !defined(GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO) || !GPB_GRPC_FORWARD_DECLARE_MESSAGE_PROTO
#import "keyapis/ad/v1/KeyapisAdSalepointV1.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 KEYAPISADV1GetSalepointCountRequest;
@class KEYAPISADV1GetSalepointCountResponse;
@class KEYAPISADV1GetSalepointListRequest;
@class KEYAPISADV1GetSalepointListResponse;
@class KEYAPISADV1GetSalepointRequest;
@class KEYAPISADV1GetSalepointResponse;
@class KEYAPISADV1PostSalepointRequest;
@class KEYAPISADV1PostSalepointResponse;

#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 "google/protobuf/Descriptor.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/GPBTimestamp.pbobjc.h>
#else
  #import "GPBTimestamp.pbobjc.h"
#endif
#endif

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


NS_ASSUME_NONNULL_BEGIN

@protocol KEYAPISADV1SalepointService2 <NSObject>

#pragma mark PostSalepoint(PostSalepointRequest) returns (PostSalepointResponse)

/**
 * Метод сохранения точки продаж.
 * Поддерживает создание и обновление.
 * Метод доступен для: manager, service, application(ad:edit)
 */
- (GRPCUnaryProtoCall *)postSalepointWithMessage:(KEYAPISADV1PostSalepointRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetSalepoint(GetSalepointRequest) returns (GetSalepointResponse)

/**
 * Метод получения точки продаж.
 * Не требует авторизации
 */
- (GRPCUnaryProtoCall *)getSalepointWithMessage:(KEYAPISADV1GetSalepointRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetSalepointList(GetSalepointListRequest) returns (stream GetSalepointListResponse)

/**
 * Метод получения списка точек продаж.
 * Не требует авторизации
 */
- (GRPCUnaryProtoCall *)getSalepointListWithMessage:(KEYAPISADV1GetSalepointListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions;

#pragma mark GetSalepointCount(GetSalepointCountRequest) returns (GetSalepointCountResponse)

/**
 * Метод получения количества точек продаж.
 * Не требует авторизации
 */
- (GRPCUnaryProtoCall *)getSalepointCountWithMessage:(KEYAPISADV1GetSalepointCountRequest *)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 KEYAPISADV1SalepointService <NSObject>

#pragma mark PostSalepoint(PostSalepointRequest) returns (PostSalepointResponse)

/**
 * Метод сохранения точки продаж.
 * Поддерживает создание и обновление.
 * Метод доступен для: manager, service, application(ad:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postSalepointWithRequest:(KEYAPISADV1PostSalepointRequest *)request handler:(void(^)(KEYAPISADV1PostSalepointResponse *_Nullable response, NSError *_Nullable error))handler;

/**
 * Метод сохранения точки продаж.
 * Поддерживает создание и обновление.
 * Метод доступен для: manager, service, application(ad:edit)
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostSalepointWithRequest:(KEYAPISADV1PostSalepointRequest *)request handler:(void(^)(KEYAPISADV1PostSalepointResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark GetSalepoint(GetSalepointRequest) returns (GetSalepointResponse)

/**
 * Метод получения точки продаж.
 * Не требует авторизации
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getSalepointWithRequest:(KEYAPISADV1GetSalepointRequest *)request handler:(void(^)(KEYAPISADV1GetSalepointResponse *_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 *)RPCToGetSalepointWithRequest:(KEYAPISADV1GetSalepointRequest *)request handler:(void(^)(KEYAPISADV1GetSalepointResponse *_Nullable response, NSError *_Nullable error))handler;


#pragma mark GetSalepointList(GetSalepointListRequest) returns (stream GetSalepointListResponse)

/**
 * Метод получения списка точек продаж.
 * Не требует авторизации
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getSalepointListWithRequest:(KEYAPISADV1GetSalepointListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISADV1GetSalepointListResponse *_Nullable response, NSError *_Nullable error))eventHandler;

/**
 * Метод получения списка точек продаж.
 * Не требует авторизации
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetSalepointListWithRequest:(KEYAPISADV1GetSalepointListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISADV1GetSalepointListResponse *_Nullable response, NSError *_Nullable error))eventHandler;


#pragma mark GetSalepointCount(GetSalepointCountRequest) returns (GetSalepointCountResponse)

/**
 * Метод получения количества точек продаж.
 * Не требует авторизации
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getSalepointCountWithRequest:(KEYAPISADV1GetSalepointCountRequest *)request handler:(void(^)(KEYAPISADV1GetSalepointCountResponse *_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 *)RPCToGetSalepointCountWithRequest:(KEYAPISADV1GetSalepointCountRequest *)request handler:(void(^)(KEYAPISADV1GetSalepointCountResponse *_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 KEYAPISADV1SalepointService : GRPCProtoService<KEYAPISADV1SalepointService2, KEYAPISADV1SalepointService>
- (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

