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

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

#import "google/api/Annotations.pbobjc.h"
#import "google/protobuf/Descriptor.pbobjc.h"

@implementation KEYAPISTAGV1TagService

#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.tag.v1"
                 serviceName:@"TagService"
                 callOptions:callOptions];
}

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

#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 GetTagList(GetTagListRequest) returns (stream GetTagListResponse)

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

@end
#endif
