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

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

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

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

#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 EditSyslogSettings(EditSyslogSettingsRequest) returns (EditSyslogSettingsResponse)

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

#pragma mark GetSyslogSettings(GetSyslogSettingsRequest) returns (GetSyslogSettingsResponse)

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

@end
#endif
