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

#if !defined(GPB_GRPC_PROTOCOL_ONLY) || !GPB_GRPC_PROTOCOL_ONLY
#import "deviceapis/device/v1/DeviceapisDeviceEncryptionProfileV1.pbrpc.h"
#import "deviceapis/device/v1/DeviceapisDeviceEncryptionProfileV1.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/GPBWrappers.pbobjc.h>
#else
#import "GPBWrappers.pbobjc.h"
#endif

@implementation DEVICEAPISDEVICEV1EncryptionProfileService

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

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

#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 DeleteEncryptionProfile(DeleteEncryptionProfileRequest) returns (DeleteEncryptionProfileResponse)

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

#pragma mark DeleteEncryptionProfileList(DeleteEncryptionProfileListRequest) returns (DeleteEncryptionProfileListResponse)

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

#pragma mark GetEncryptionProfile(GetEncryptionProfileRequest) returns (GetEncryptionProfileResponse)

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

#pragma mark GetEncryptionProfileList(GetEncryptionProfileListRequest) returns (GetEncryptionProfileListResponse)

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

#pragma mark SaveEncryptionProfile(SaveEncryptionProfileRequest) returns (SaveEncryptionProfileResponse)

/**
 * Метод создания сущности EncryptionProfile
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (void)saveEncryptionProfileWithRequest:(DEVICEAPISDEVICEV1SaveEncryptionProfileRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse *_Nullable response, NSError *_Nullable error))handler{
  [[self RPCToSaveEncryptionProfileWithRequest:request handler:handler] start];
}
// Returns a not-yet-started RPC object.
/**
 * Метод создания сущности EncryptionProfile
 *
 * This method belongs to a set of APIs that have been deprecated. Using the v2 API is recommended.
 */
- (GRPCProtoCall *)RPCToSaveEncryptionProfileWithRequest:(DEVICEAPISDEVICEV1SaveEncryptionProfileRequest *)request handler:(void(^)(DEVICEAPISDEVICEV1SaveEncryptionProfileResponse *_Nullable response, NSError *_Nullable error))handler{
  return [self RPCToMethod:@"SaveEncryptionProfile"
            requestsWriter:[GRXWriter writerWithValue:request]
             responseClass:[DEVICEAPISDEVICEV1SaveEncryptionProfileResponse class]
        responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]];
}
/**
 * Метод создания сущности EncryptionProfile
 */
- (GRPCUnaryProtoCall *)saveEncryptionProfileWithMessage:(DEVICEAPISDEVICEV1SaveEncryptionProfileRequest *)message responseHandler:(id<GRPCProtoResponseHandler>)handler callOptions:(GRPCCallOptions *_Nullable)callOptions {
  return [self RPCToMethod:@"SaveEncryptionProfile"
                   message:message
           responseHandler:handler
               callOptions:callOptions
             responseClass:[DEVICEAPISDEVICEV1SaveEncryptionProfileResponse class]];
}

@end
#endif
