// Generated by the protocol buffer compiler.  DO NOT EDIT!
// clang-format off
// source: keyapis/device/v1/keyapis_device_command_v1.proto

// This CPP symbol can be defined to use imports that match up to the framework
// imports needed when using CocoaPods.
#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
#endif

#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
 #import <Protobuf/GPBProtocolBuffers.h>
#else
 #import "GPBProtocolBuffers.h"
#endif

#if GOOGLE_PROTOBUF_OBJC_VERSION < 30007
#error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
#if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
#error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
#endif

// @@protoc_insertion_point(imports)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

CF_EXTERN_C_BEGIN

@class KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Error;
@class KEYAPISDEVICEV1ValidationError;

NS_ASSUME_NONNULL_BEGIN

#pragma mark - KEYAPISDEVICEV1KeyapisDeviceCommandV1Root

/**
 * Exposes the extension registry for this file.
 *
 * The base class provides:
 * @code
 *   + (GPBExtensionRegistry *)extensionRegistry;
 * @endcode
 * which is a @c GPBExtensionRegistry that includes all the extensions defined by
 * this file and all files that it depends on.
 **/
GPB_FINAL @interface KEYAPISDEVICEV1KeyapisDeviceCommandV1Root : GPBRootObject
@end

#pragma mark - KEYAPISDEVICEV1PostCommandDeviceOpenRequest

typedef GPB_ENUM(KEYAPISDEVICEV1PostCommandDeviceOpenRequest_FieldNumber) {
  KEYAPISDEVICEV1PostCommandDeviceOpenRequest_FieldNumber_DeviceId = 1,
};

/**
 * Запрос на отправку задания на открытие устройства
 **/
GPB_FINAL @interface KEYAPISDEVICEV1PostCommandDeviceOpenRequest : GPBMessage

/** Идентификатор устройства */
@property(nonatomic, readwrite) int32_t deviceId;

@end

#pragma mark - KEYAPISDEVICEV1PostCommandDeviceOpenResponse

typedef GPB_ENUM(KEYAPISDEVICEV1PostCommandDeviceOpenResponse_FieldNumber) {
  KEYAPISDEVICEV1PostCommandDeviceOpenResponse_FieldNumber_Error = 1,
};

typedef GPB_ENUM(KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Type_OneOfCase) {
  KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Type_OneOfCase_GPBUnsetOneOfCase = 0,
  KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Type_OneOfCase_Error = 1,
};

/**
 * Ответ на запрос на отправку задания на открытие устройства
 **/
GPB_FINAL @interface KEYAPISDEVICEV1PostCommandDeviceOpenResponse : GPBMessage

/** Тип ответа */
@property(nonatomic, readonly) KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Type_OneOfCase typeOneOfCase;

/** Ошибка */
@property(nonatomic, readwrite, strong, null_resettable) KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Error *error;

@end

/**
 * Clears whatever value was set for the oneof 'type'.
 **/
void KEYAPISDEVICEV1PostCommandDeviceOpenResponse_ClearTypeOneOfCase(KEYAPISDEVICEV1PostCommandDeviceOpenResponse *message);

#pragma mark - KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Error

typedef GPB_ENUM(KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Error_FieldNumber) {
  KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Error_FieldNumber_Validation = 1,
};

typedef GPB_ENUM(KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Error_Reason_OneOfCase) {
  KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Error_Reason_OneOfCase_GPBUnsetOneOfCase = 0,
  KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Error_Reason_OneOfCase_Validation = 1,
};

/**
 * Ошибка запроса
 **/
GPB_FINAL @interface KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Error : GPBMessage

/** Причина ошибки */
@property(nonatomic, readonly) KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Error_Reason_OneOfCase reasonOneOfCase;

/** Ошибка валидации */
@property(nonatomic, readwrite, strong, null_resettable) KEYAPISDEVICEV1ValidationError *validation;

@end

/**
 * Clears whatever value was set for the oneof 'reason'.
 **/
void KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Error_ClearReasonOneOfCase(KEYAPISDEVICEV1PostCommandDeviceOpenResponse_Error *message);

NS_ASSUME_NONNULL_END

CF_EXTERN_C_END

#pragma clang diagnostic pop

// @@protoc_insertion_point(global_scope)

// clang-format on
