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

#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
#import "keyapis/access_control/v1/KeyapisAccessControlAccessPointV1.pbrpc.h"
#import "keyapis/access_control/v1/KeyapisAccessControlAccessPointV1.pbobjc.h"
#import <ProtoRPC/ProtoRPCLegacy.h>
#import <RxLibrary/GRXWriter+Immediate.h>

#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"
#if defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) && GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
#import <Protobuf/GPBWrappers.pbobjc.h>
#else
#import "GPBWrappers.pbobjc.h"
#endif
#import "keyapis/access_control/v1/KeyapisAccessControlAccessControlV1.pbobjc.h"

@implementation KEYAPISACCESSCONTROLV1AccessPointService

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-designated-initializers"

// Designated initializer
- (instancetype)initWithHost:(NSString *)host callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [super initWithHost:host
                 packageName:@"keyapis.access_control.v1"
                 serviceName:@"AccessPointService"
                 callOptions:callOptions];
}

- (instancetype)initWithHost:(NSString *)host {
  return [super initWithHost:host
                 packageName:@"keyapis.access_control.v1"
                 serviceName:@"AccessPointService"];
}

#pragma clang diagnostic pop

// Override superclass initializer to disallow different package and service names.
- (instancetype)initWithHost:(NSString *)host
                 packageName:(NSString *)packageName
                 serviceName:(NSString *)serviceName {
  return [self initWithHost:host];
}

- (instancetype)initWithHost:(NSString *)host
                 packageName:(NSString *)packageName
                 serviceName:(NSString *)serviceName
                 callOptions:(GRPCCallOptions *)callOptions {
  return [self initWithHost:host callOptions:callOptions];
}

#pragma mark - Class Methods

+ (instancetype)serviceWithHost:(NSString *)host {
  return [[self alloc] initWithHost:host];
}

+ (instancetype)serviceWithHost:(NSString *)host callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [[self alloc] initWithHost:host callOptions:callOptions];
}

#pragma mark - Method Implementations

#pragma mark PostAccessPoint(PostAccessPointRequest) returns (PostAccessPointResponse)

/**
 * Метод сохранения точки доступа.
 * Поддерживает создание и обновление.
 * Метод доступен для: admin, service, bti
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postAccessPointWithRequest:(KEYAPISACCESSCONTROLV1PostAccessPointRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1PostAccessPointResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToPostAccessPointWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод сохранения точки доступа.
 * Поддерживает создание и обновление.
 * Метод доступен для: admin, service, bti
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostAccessPointWithRequest:(KEYAPISACCESSCONTROLV1PostAccessPointRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1PostAccessPointResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"PostAccessPoint"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISACCESSCONTROLV1PostAccessPointResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод сохранения точки доступа.
 * Поддерживает создание и обновление.
 * Метод доступен для: admin, service, bti
 */
- (GRPCUnaryProtoCall *)postAccessPointWithMessage:(KEYAPISACCESSCONTROLV1PostAccessPointRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"PostAccessPoint"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISACCESSCONTROLV1PostAccessPointResponse class]];
}

#pragma mark GetAccessPoint(GetAccessPointRequest) returns (GetAccessPointResponse)

/**
 * Метод получения точки доступа по идентификатору.
 * Метод доступен для: admin, service, bti.
 * Метод доступен для: ApiKey
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getAccessPointWithRequest:(KEYAPISACCESSCONTROLV1GetAccessPointRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1GetAccessPointResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToGetAccessPointWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения точки доступа по идентификатору.
 * Метод доступен для: admin, service, bti.
 * Метод доступен для: ApiKey
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetAccessPointWithRequest:(KEYAPISACCESSCONTROLV1GetAccessPointRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1GetAccessPointResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"GetAccessPoint"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISACCESSCONTROLV1GetAccessPointResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения точки доступа по идентификатору.
 * Метод доступен для: admin, service, bti.
 * Метод доступен для: ApiKey
 */
- (GRPCUnaryProtoCall *)getAccessPointWithMessage:(KEYAPISACCESSCONTROLV1GetAccessPointRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetAccessPoint"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISACCESSCONTROLV1GetAccessPointResponse class]];
}

#pragma mark GetAccessPointList(GetAccessPointListRequest) returns (stream GetAccessPointListResponse)

/**
 * Метод получения списка точек доступа.
 * Метод доступен для: admin, service, bti.
 * Метод доступен для: ApiKey
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getAccessPointListWithRequest:(KEYAPISACCESSCONTROLV1GetAccessPointListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISACCESSCONTROLV1GetAccessPointListResponse *_Nullable response, NSError *_Nullable error))eventHandler{
  [[self RPCToGetAccessPointListWithRequest:request eventHandler:eventHandler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения списка точек доступа.
 * Метод доступен для: admin, service, bti.
 * Метод доступен для: ApiKey
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetAccessPointListWithRequest:(KEYAPISACCESSCONTROLV1GetAccessPointListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISACCESSCONTROLV1GetAccessPointListResponse *_Nullable response, NSError *_Nullable error))eventHandler{
  return [self RPCToMethod:@"GetAccessPointList"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISACCESSCONTROLV1GetAccessPointListResponse class]
        responsesWriteable:[GRXWriteable writeableWithEventHandler:eventHandler]];
}
/**
 * Метод получения списка точек доступа.
 * Метод доступен для: admin, service, bti.
 * Метод доступен для: ApiKey
 */
- (GRPCUnaryProtoCall *)getAccessPointListWithMessage:(KEYAPISACCESSCONTROLV1GetAccessPointListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetAccessPointList"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISACCESSCONTROLV1GetAccessPointListResponse class]];
}

#pragma mark GetAccessPointCount(GetAccessPointCountRequest) returns (GetAccessPointCountResponse)

/**
 * Метод получения количества точек доступа.
 * Метод доступен для: admin, service, bti.
 * Метод доступен для: ApiKey
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getAccessPointCountWithRequest:(KEYAPISACCESSCONTROLV1GetAccessPointCountRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1GetAccessPointCountResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToGetAccessPointCountWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод получения количества точек доступа.
 * Метод доступен для: admin, service, bti.
 * Метод доступен для: ApiKey
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToGetAccessPointCountWithRequest:(KEYAPISACCESSCONTROLV1GetAccessPointCountRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1GetAccessPointCountResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"GetAccessPointCount"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISACCESSCONTROLV1GetAccessPointCountResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения количества точек доступа.
 * Метод доступен для: admin, service, bti.
 * Метод доступен для: ApiKey
 */
- (GRPCUnaryProtoCall *)getAccessPointCountWithMessage:(KEYAPISACCESSCONTROLV1GetAccessPointCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetAccessPointCount"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISACCESSCONTROLV1GetAccessPointCountResponse class]];
}

#pragma mark DeleteAccessPoint(DeleteAccessPointRequest) returns (DeleteAccessPointResponse)

/**
 * Метод удаления точки доступа.
 * Метод доступен для: admin, service, bti
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)deleteAccessPointWithRequest:(KEYAPISACCESSCONTROLV1DeleteAccessPointRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1DeleteAccessPointResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToDeleteAccessPointWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод удаления точки доступа.
 * Метод доступен для: admin, service, bti
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToDeleteAccessPointWithRequest:(KEYAPISACCESSCONTROLV1DeleteAccessPointRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1DeleteAccessPointResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"DeleteAccessPoint"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISACCESSCONTROLV1DeleteAccessPointResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод удаления точки доступа.
 * Метод доступен для: admin, service, bti
 */
- (GRPCUnaryProtoCall *)deleteAccessPointWithMessage:(KEYAPISACCESSCONTROLV1DeleteAccessPointRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"DeleteAccessPoint"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISACCESSCONTROLV1DeleteAccessPointResponse class]];
}

#pragma mark PostAccessPointOpen(PostAccessPointOpenRequest) returns (PostAccessPointOpenResponse)

/**
 * Метод открытия точки доступа.
 * Метод доступен для: admin, service, bti.
 * Метод доступен для: ApiKey
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)postAccessPointOpenWithRequest:(KEYAPISACCESSCONTROLV1PostAccessPointOpenRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1PostAccessPointOpenResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToPostAccessPointOpenWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод открытия точки доступа.
 * Метод доступен для: admin, service, bti.
 * Метод доступен для: ApiKey
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToPostAccessPointOpenWithRequest:(KEYAPISACCESSCONTROLV1PostAccessPointOpenRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1PostAccessPointOpenResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"PostAccessPointOpen"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISACCESSCONTROLV1PostAccessPointOpenResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод открытия точки доступа.
 * Метод доступен для: admin, service, bti.
 * Метод доступен для: ApiKey
 */
- (GRPCUnaryProtoCall *)postAccessPointOpenWithMessage:(KEYAPISACCESSCONTROLV1PostAccessPointOpenRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"PostAccessPointOpen"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISACCESSCONTROLV1PostAccessPointOpenResponse class]];
}

@end
#endif
