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

#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
#import "keyapis/access_control/v1/KeyapisAccessControlAccessPointGroupV1.pbrpc.h"
#import "keyapis/access_control/v1/KeyapisAccessControlAccessPointGroupV1.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 KEYAPISACCESSCONTROLV1AccessPointGroupService

#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:@"AccessPointGroupService"
                 callOptions:callOptions];
}

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

#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 GetAccessPointGroupList(GetAccessPointGroupListRequest) returns (stream GetAccessPointGroupListResponse)

/**
 * Метод получения списка связей точек доступа и групп.
 * Метод доступен для: admin, service, bti
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getAccessPointGroupListWithRequest:(KEYAPISACCESSCONTROLV1GetAccessPointGroupListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISACCESSCONTROLV1GetAccessPointGroupListResponse *_Nullable response, NSError *_Nullable error))eventHandler{
  [[self RPCToGetAccessPointGroupListWithRequest:request eventHandler:eventHandler] 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 *)RPCToGetAccessPointGroupListWithRequest:(KEYAPISACCESSCONTROLV1GetAccessPointGroupListRequest *)request eventHandler:(void(^)(BOOL done, KEYAPISACCESSCONTROLV1GetAccessPointGroupListResponse *_Nullable response, NSError *_Nullable error))eventHandler{
  return [self RPCToMethod:@"GetAccessPointGroupList"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISACCESSCONTROLV1GetAccessPointGroupListResponse class]
        responsesWriteable:[GRXWriteable writeableWithEventHandler:eventHandler]];
}
/**
 * Метод получения списка связей точек доступа и групп.
 * Метод доступен для: admin, service, bti
 */
- (GRPCUnaryProtoCall *)getAccessPointGroupListWithMessage:(KEYAPISACCESSCONTROLV1GetAccessPointGroupListRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetAccessPointGroupList"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISACCESSCONTROLV1GetAccessPointGroupListResponse class]];
}

#pragma mark GetAccessPointGroupCount(GetAccessPointGroupCountRequest) returns (GetAccessPointGroupCountResponse)

/**
 * Метод получения количества связей точек доступа и групп.
 * Метод доступен для: admin, service, bti
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)getAccessPointGroupCountWithRequest:(KEYAPISACCESSCONTROLV1GetAccessPointGroupCountRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1GetAccessPointGroupCountResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToGetAccessPointGroupCountWithRequest: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 *)RPCToGetAccessPointGroupCountWithRequest:(KEYAPISACCESSCONTROLV1GetAccessPointGroupCountRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1GetAccessPointGroupCountResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"GetAccessPointGroupCount"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISACCESSCONTROLV1GetAccessPointGroupCountResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод получения количества связей точек доступа и групп.
 * Метод доступен для: admin, service, bti
 */
- (GRPCUnaryProtoCall *)getAccessPointGroupCountWithMessage:(KEYAPISACCESSCONTROLV1GetAccessPointGroupCountRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"GetAccessPointGroupCount"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISACCESSCONTROLV1GetAccessPointGroupCountResponse class]];
}

#pragma mark PutAccessPointGroupAttach(PutAccessPointGroupAttachRequest) returns (PutAccessPointGroupAttachResponse)

/**
 * Метод создания связи точки доступа и группы.
 * Метод доступен для: admin, service, bti
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)putAccessPointGroupAttachWithRequest:(KEYAPISACCESSCONTROLV1PutAccessPointGroupAttachRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1PutAccessPointGroupAttachResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToPutAccessPointGroupAttachWithRequest: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 *)RPCToPutAccessPointGroupAttachWithRequest:(KEYAPISACCESSCONTROLV1PutAccessPointGroupAttachRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1PutAccessPointGroupAttachResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"PutAccessPointGroupAttach"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISACCESSCONTROLV1PutAccessPointGroupAttachResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод создания связи точки доступа и группы.
 * Метод доступен для: admin, service, bti
 */
- (GRPCUnaryProtoCall *)putAccessPointGroupAttachWithMessage:(KEYAPISACCESSCONTROLV1PutAccessPointGroupAttachRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"PutAccessPointGroupAttach"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISACCESSCONTROLV1PutAccessPointGroupAttachResponse class]];
}

#pragma mark PutAccessPointGroupDetach(PutAccessPointGroupDetachRequest) returns (PutAccessPointGroupDetachResponse)

/**
 * Метод удаления связи точки доступа и группы.
 * Метод доступен для: admin, service, bti
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)putAccessPointGroupDetachWithRequest:(KEYAPISACCESSCONTROLV1PutAccessPointGroupDetachRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1PutAccessPointGroupDetachResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToPutAccessPointGroupDetachWithRequest: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 *)RPCToPutAccessPointGroupDetachWithRequest:(KEYAPISACCESSCONTROLV1PutAccessPointGroupDetachRequest *)request handler:(void(^)(KEYAPISACCESSCONTROLV1PutAccessPointGroupDetachResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"PutAccessPointGroupDetach"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[KEYAPISACCESSCONTROLV1PutAccessPointGroupDetachResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод удаления связи точки доступа и группы.
 * Метод доступен для: admin, service, bti
 */
- (GRPCUnaryProtoCall *)putAccessPointGroupDetachWithMessage:(KEYAPISACCESSCONTROLV1PutAccessPointGroupDetachRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"PutAccessPointGroupDetach"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[KEYAPISACCESSCONTROLV1PutAccessPointGroupDetachResponse class]];
}

@end
#endif
