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

#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
#import "deviceapis/device/v1/DeviceapisDeviceDtmfV1.pbrpc.h"
#import "deviceapis/device/v1/DeviceapisDeviceDtmfV1.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 DEVICEAPISDEVICEV1DtmfSettingsService

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

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

#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 EditDtmfSettings(EditDtmfSettingsRequest) returns (EditDtmfSettingsResponse)

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

#pragma mark GetDtmfSettings(GetDtmfSettingsRequest) returns (GetDtmfSettingsResponse)

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

@end
#endif
