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

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

#import "deviceapis/device/v1/DeviceapisDeviceCommonV1.pbobjc.h"
#import "google/api/Annotations.pbobjc.h"
#import "google/api/FieldBehavior.pbobjc.h"
#if defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) && GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
#import <Protobuf/GPBFieldMask.pbobjc.h>
#else
#import "GPBFieldMask.pbobjc.h"
#endif
#import "protoc-gen-openapiv2/options/Annotations.pbobjc.h"

@implementation DEVICEAPISDEVICEV1ConciergeSettingsService

#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:@"deviceapis.device.v1"
                 serviceName:@"ConciergeSettingsService"
                 callOptions:callOptions];
}

- (instancetype)initWithHost:(NSString *)host {
  return [super initWithHost:host
                 packageName:@"deviceapis.device.v1"
                 serviceName:@"ConciergeSettingsService"];
}

#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 EditConciergeSettings(EditConciergeSettingsRequest) returns (EditConciergeSettingsResponse)

/**
 * Метод редактирования настроек Concierge
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)editConciergeSettingsWithRequest:(DEVICEAPISDEVICEV1EditConciergeSettingsRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1EditConciergeSettingsResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToEditConciergeSettingsWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод редактирования настроек Concierge
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToEditConciergeSettingsWithRequest:(DEVICEAPISDEVICEV1EditConciergeSettingsRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1EditConciergeSettingsResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"EditConciergeSettings"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[DEVICEAPISDEVICEV1EditConciergeSettingsResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод редактирования настроек Concierge
 */
- (GRPCUnaryProtoCall *)editConciergeSettingsWithMessage:(DEVICEAPISDEVICEV1EditConciergeSettingsRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"EditConciergeSettings"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[DEVICEAPISDEVICEV1EditConciergeSettingsResponse class]];
}

#pragma mark GetConciergeSettings(GetConciergeSettingsRequest) returns (GetConciergeSettingsResponse)

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

@end
#endif
