// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: deviceapis/device/v1/deviceapis_device_reader_v1.proto

#ifndef GOOGLE_PROTOBUF_INCLUDED_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto_2epb_2eh

#include <limits>
#include <string>
#include <type_traits>

#include "google/protobuf/port_def.inc"
#if PROTOBUF_VERSION < 4023000
#error "This file was generated by a newer version of protoc which is"
#error "incompatible with your Protocol Buffer headers. Please update"
#error "your headers."
#endif  // PROTOBUF_VERSION

#if 4023001 < PROTOBUF_MIN_PROTOC_VERSION
#error "This file was generated by an older version of protoc which is"
#error "incompatible with your Protocol Buffer headers. Please"
#error "regenerate this file with a newer version of protoc."
#endif  // PROTOBUF_MIN_PROTOC_VERSION
#include "google/protobuf/port_undef.inc"
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "google/protobuf/generated_enum_util.h"
#include "deviceapis/device/v1/deviceapis_device_common_v1.pb.h"
#include "google/api/annotations.pb.h"
#include "google/api/field_behavior.pb.h"
#include "google/protobuf/field_mask.pb.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"

#define PROTOBUF_INTERNAL_EXPORT_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto

PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
}  // namespace internal
PROTOBUF_NAMESPACE_CLOSE

// Internal implementation detail -- do not use these members.
struct TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto {
  static const ::uint32_t offsets[];
};
namespace deviceapis {
namespace device {
namespace v1 {
class EditReaderRequest;
struct EditReaderRequestDefaultTypeInternal;
extern EditReaderRequestDefaultTypeInternal _EditReaderRequest_default_instance_;
class EditReaderResponse;
struct EditReaderResponseDefaultTypeInternal;
extern EditReaderResponseDefaultTypeInternal _EditReaderResponse_default_instance_;
class EditReaderResponse_Error;
struct EditReaderResponse_ErrorDefaultTypeInternal;
extern EditReaderResponse_ErrorDefaultTypeInternal _EditReaderResponse_Error_default_instance_;
class GetReaderRequest;
struct GetReaderRequestDefaultTypeInternal;
extern GetReaderRequestDefaultTypeInternal _GetReaderRequest_default_instance_;
class GetReaderResponse;
struct GetReaderResponseDefaultTypeInternal;
extern GetReaderResponseDefaultTypeInternal _GetReaderResponse_default_instance_;
class Reader;
struct ReaderDefaultTypeInternal;
extern ReaderDefaultTypeInternal _Reader_default_instance_;
class Reader_SavingError;
struct Reader_SavingErrorDefaultTypeInternal;
extern Reader_SavingErrorDefaultTypeInternal _Reader_SavingError_default_instance_;
class Reader_SavingError_ProfileIsNotSupported;
struct Reader_SavingError_ProfileIsNotSupportedDefaultTypeInternal;
extern Reader_SavingError_ProfileIsNotSupportedDefaultTypeInternal _Reader_SavingError_ProfileIsNotSupported_default_instance_;
class Reader_SavingError_ProfileNotFound;
struct Reader_SavingError_ProfileNotFoundDefaultTypeInternal;
extern Reader_SavingError_ProfileNotFoundDefaultTypeInternal _Reader_SavingError_ProfileNotFound_default_instance_;
class Reader_SavingError_ReaderNotFound;
struct Reader_SavingError_ReaderNotFoundDefaultTypeInternal;
extern Reader_SavingError_ReaderNotFoundDefaultTypeInternal _Reader_SavingError_ReaderNotFound_default_instance_;
}  // namespace v1
}  // namespace device
}  // namespace deviceapis
PROTOBUF_NAMESPACE_OPEN
template <>
::deviceapis::device::v1::EditReaderRequest* Arena::CreateMaybeMessage<::deviceapis::device::v1::EditReaderRequest>(Arena*);
template <>
::deviceapis::device::v1::EditReaderResponse* Arena::CreateMaybeMessage<::deviceapis::device::v1::EditReaderResponse>(Arena*);
template <>
::deviceapis::device::v1::EditReaderResponse_Error* Arena::CreateMaybeMessage<::deviceapis::device::v1::EditReaderResponse_Error>(Arena*);
template <>
::deviceapis::device::v1::GetReaderRequest* Arena::CreateMaybeMessage<::deviceapis::device::v1::GetReaderRequest>(Arena*);
template <>
::deviceapis::device::v1::GetReaderResponse* Arena::CreateMaybeMessage<::deviceapis::device::v1::GetReaderResponse>(Arena*);
template <>
::deviceapis::device::v1::Reader* Arena::CreateMaybeMessage<::deviceapis::device::v1::Reader>(Arena*);
template <>
::deviceapis::device::v1::Reader_SavingError* Arena::CreateMaybeMessage<::deviceapis::device::v1::Reader_SavingError>(Arena*);
template <>
::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* Arena::CreateMaybeMessage<::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported>(Arena*);
template <>
::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* Arena::CreateMaybeMessage<::deviceapis::device::v1::Reader_SavingError_ProfileNotFound>(Arena*);
template <>
::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* Arena::CreateMaybeMessage<::deviceapis::device::v1::Reader_SavingError_ReaderNotFound>(Arena*);
PROTOBUF_NAMESPACE_CLOSE

namespace deviceapis {
namespace device {
namespace v1 {
enum Reader_DirectionType : int {
  Reader_DirectionType_DIRECTION_TYPE_UNKNOWN = 0,
  Reader_DirectionType_IN = 1,
  Reader_DirectionType_OUT = 2,
  Reader_DirectionType_Reader_DirectionType_INT_MIN_SENTINEL_DO_NOT_USE_ =
      std::numeric_limits<::int32_t>::min(),
  Reader_DirectionType_Reader_DirectionType_INT_MAX_SENTINEL_DO_NOT_USE_ =
      std::numeric_limits<::int32_t>::max(),
};

bool Reader_DirectionType_IsValid(int value);
constexpr Reader_DirectionType Reader_DirectionType_DirectionType_MIN = static_cast<Reader_DirectionType>(0);
constexpr Reader_DirectionType Reader_DirectionType_DirectionType_MAX = static_cast<Reader_DirectionType>(2);
constexpr int Reader_DirectionType_DirectionType_ARRAYSIZE = 2 + 1;
const std::string& Reader_DirectionType_Name(Reader_DirectionType value);
template <typename T>
const std::string& Reader_DirectionType_Name(T value) {
  static_assert(std::is_same<T, Reader_DirectionType>::value ||
                    std::is_integral<T>::value,
                "Incorrect type passed to DirectionType_Name().");
  return Reader_DirectionType_Name(static_cast<Reader_DirectionType>(value));
}
const std::string& Reader_DirectionType_Name(Reader_DirectionType value);
bool Reader_DirectionType_Parse(absl::string_view name, Reader_DirectionType* value);

// ===================================================================


// -------------------------------------------------------------------

class EditReaderRequest final :
    public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:deviceapis.device.v1.EditReaderRequest) */ {
 public:
  inline EditReaderRequest() : EditReaderRequest(nullptr) {}
  ~EditReaderRequest() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR EditReaderRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  EditReaderRequest(const EditReaderRequest& from);
  EditReaderRequest(EditReaderRequest&& from) noexcept
    : EditReaderRequest() {
    *this = ::std::move(from);
  }

  inline EditReaderRequest& operator=(const EditReaderRequest& from) {
    CopyFrom(from);
    return *this;
  }
  inline EditReaderRequest& operator=(EditReaderRequest&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const std::string& unknown_fields() const {
    return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
  }
  inline std::string* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields<std::string>();
  }

  static const EditReaderRequest& default_instance() {
    return *internal_default_instance();
  }
  static inline const EditReaderRequest* internal_default_instance() {
    return reinterpret_cast<const EditReaderRequest*>(
               &_EditReaderRequest_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  friend void swap(EditReaderRequest& a, EditReaderRequest& b) {
    a.Swap(&b);
  }
  inline void Swap(EditReaderRequest* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(EditReaderRequest* other) {
    if (other == this) return;
    ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  EditReaderRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<EditReaderRequest>(arena);
  }
  void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
  void CopyFrom(const EditReaderRequest& from);
  void MergeFrom(const EditReaderRequest& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  void SharedDtor();
  void SetCachedSize(int size) const;
  void InternalSwap(EditReaderRequest* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "deviceapis.device.v1.EditReaderRequest";
  }
  protected:
  explicit EditReaderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  public:

  std::string GetTypeName() const final;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kDataFieldNumber = 1,
    kUpdateMaskFieldNumber = 2,
  };
  // .deviceapis.device.v1.Reader data = 1 [(.google.api.field_behavior) = REQUIRED];
  bool has_data() const;
  void clear_data() ;
  const ::deviceapis::device::v1::Reader& data() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::Reader* release_data();
  ::deviceapis::device::v1::Reader* mutable_data();
  void set_allocated_data(::deviceapis::device::v1::Reader* data);
  private:
  const ::deviceapis::device::v1::Reader& _internal_data() const;
  ::deviceapis::device::v1::Reader* _internal_mutable_data();
  public:
  void unsafe_arena_set_allocated_data(
      ::deviceapis::device::v1::Reader* data);
  ::deviceapis::device::v1::Reader* unsafe_arena_release_data();
  // .google.protobuf.FieldMask update_mask = 2;
  bool has_update_mask() const;
  void clear_update_mask() ;
  const ::PROTOBUF_NAMESPACE_ID::FieldMask& update_mask() const;
  PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FieldMask* release_update_mask();
  ::PROTOBUF_NAMESPACE_ID::FieldMask* mutable_update_mask();
  void set_allocated_update_mask(::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask);
  private:
  const ::PROTOBUF_NAMESPACE_ID::FieldMask& _internal_update_mask() const;
  ::PROTOBUF_NAMESPACE_ID::FieldMask* _internal_mutable_update_mask();
  public:
  void unsafe_arena_set_allocated_update_mask(
      ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask);
  ::PROTOBUF_NAMESPACE_ID::FieldMask* unsafe_arena_release_update_mask();
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.EditReaderRequest)
 private:
  class _Internal;

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
    ::deviceapis::device::v1::Reader* data_;
    ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto;
};// -------------------------------------------------------------------

class EditReaderResponse_Error final :
    public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:deviceapis.device.v1.EditReaderResponse.Error) */ {
 public:
  inline EditReaderResponse_Error() : EditReaderResponse_Error(nullptr) {}
  ~EditReaderResponse_Error() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR EditReaderResponse_Error(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  EditReaderResponse_Error(const EditReaderResponse_Error& from);
  EditReaderResponse_Error(EditReaderResponse_Error&& from) noexcept
    : EditReaderResponse_Error() {
    *this = ::std::move(from);
  }

  inline EditReaderResponse_Error& operator=(const EditReaderResponse_Error& from) {
    CopyFrom(from);
    return *this;
  }
  inline EditReaderResponse_Error& operator=(EditReaderResponse_Error&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const std::string& unknown_fields() const {
    return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
  }
  inline std::string* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields<std::string>();
  }

  static const EditReaderResponse_Error& default_instance() {
    return *internal_default_instance();
  }
  enum ReasonCase {
    kValidation = 1,
    kSaving = 2,
    REASON_NOT_SET = 0,
  };

  static inline const EditReaderResponse_Error* internal_default_instance() {
    return reinterpret_cast<const EditReaderResponse_Error*>(
               &_EditReaderResponse_Error_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    1;

  friend void swap(EditReaderResponse_Error& a, EditReaderResponse_Error& b) {
    a.Swap(&b);
  }
  inline void Swap(EditReaderResponse_Error* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(EditReaderResponse_Error* other) {
    if (other == this) return;
    ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  EditReaderResponse_Error* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<EditReaderResponse_Error>(arena);
  }
  void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
  void CopyFrom(const EditReaderResponse_Error& from);
  void MergeFrom(const EditReaderResponse_Error& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  void SharedDtor();
  void SetCachedSize(int size) const;
  void InternalSwap(EditReaderResponse_Error* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "deviceapis.device.v1.EditReaderResponse.Error";
  }
  protected:
  explicit EditReaderResponse_Error(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  public:

  std::string GetTypeName() const final;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kValidationFieldNumber = 1,
    kSavingFieldNumber = 2,
  };
  // .deviceapis.device.v1.ValidationError validation = 1;
  bool has_validation() const;
  private:
  bool _internal_has_validation() const;

  public:
  void clear_validation() ;
  const ::deviceapis::device::v1::ValidationError& validation() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::ValidationError* release_validation();
  ::deviceapis::device::v1::ValidationError* mutable_validation();
  void set_allocated_validation(::deviceapis::device::v1::ValidationError* validation);
  private:
  const ::deviceapis::device::v1::ValidationError& _internal_validation() const;
  ::deviceapis::device::v1::ValidationError* _internal_mutable_validation();
  public:
  void unsafe_arena_set_allocated_validation(
      ::deviceapis::device::v1::ValidationError* validation);
  ::deviceapis::device::v1::ValidationError* unsafe_arena_release_validation();
  // .deviceapis.device.v1.Reader.SavingError saving = 2;
  bool has_saving() const;
  private:
  bool _internal_has_saving() const;

  public:
  void clear_saving() ;
  const ::deviceapis::device::v1::Reader_SavingError& saving() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::Reader_SavingError* release_saving();
  ::deviceapis::device::v1::Reader_SavingError* mutable_saving();
  void set_allocated_saving(::deviceapis::device::v1::Reader_SavingError* saving);
  private:
  const ::deviceapis::device::v1::Reader_SavingError& _internal_saving() const;
  ::deviceapis::device::v1::Reader_SavingError* _internal_mutable_saving();
  public:
  void unsafe_arena_set_allocated_saving(
      ::deviceapis::device::v1::Reader_SavingError* saving);
  ::deviceapis::device::v1::Reader_SavingError* unsafe_arena_release_saving();
  void clear_reason();
  ReasonCase reason_case() const;
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.EditReaderResponse.Error)
 private:
  class _Internal;
  void set_has_validation();
  void set_has_saving();

  inline bool has_reason() const;
  inline void clear_has_reason();

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    union ReasonUnion {
      constexpr ReasonUnion() : _constinit_{} {}
        ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
      ::deviceapis::device::v1::ValidationError* validation_;
      ::deviceapis::device::v1::Reader_SavingError* saving_;
    } reason_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
    ::uint32_t _oneof_case_[1];

  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto;
};// -------------------------------------------------------------------

class EditReaderResponse final :
    public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:deviceapis.device.v1.EditReaderResponse) */ {
 public:
  inline EditReaderResponse() : EditReaderResponse(nullptr) {}
  ~EditReaderResponse() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR EditReaderResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  EditReaderResponse(const EditReaderResponse& from);
  EditReaderResponse(EditReaderResponse&& from) noexcept
    : EditReaderResponse() {
    *this = ::std::move(from);
  }

  inline EditReaderResponse& operator=(const EditReaderResponse& from) {
    CopyFrom(from);
    return *this;
  }
  inline EditReaderResponse& operator=(EditReaderResponse&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const std::string& unknown_fields() const {
    return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
  }
  inline std::string* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields<std::string>();
  }

  static const EditReaderResponse& default_instance() {
    return *internal_default_instance();
  }
  enum TypeCase {
    kError = 1,
    TYPE_NOT_SET = 0,
  };

  static inline const EditReaderResponse* internal_default_instance() {
    return reinterpret_cast<const EditReaderResponse*>(
               &_EditReaderResponse_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    2;

  friend void swap(EditReaderResponse& a, EditReaderResponse& b) {
    a.Swap(&b);
  }
  inline void Swap(EditReaderResponse* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(EditReaderResponse* other) {
    if (other == this) return;
    ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  EditReaderResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<EditReaderResponse>(arena);
  }
  void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
  void CopyFrom(const EditReaderResponse& from);
  void MergeFrom(const EditReaderResponse& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  void SharedDtor();
  void SetCachedSize(int size) const;
  void InternalSwap(EditReaderResponse* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "deviceapis.device.v1.EditReaderResponse";
  }
  protected:
  explicit EditReaderResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  public:

  std::string GetTypeName() const final;

  // nested types ----------------------------------------------------

  typedef EditReaderResponse_Error Error;

  // accessors -------------------------------------------------------

  enum : int {
    kErrorFieldNumber = 1,
  };
  // .deviceapis.device.v1.EditReaderResponse.Error error = 1;
  bool has_error() const;
  private:
  bool _internal_has_error() const;

  public:
  void clear_error() ;
  const ::deviceapis::device::v1::EditReaderResponse_Error& error() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::EditReaderResponse_Error* release_error();
  ::deviceapis::device::v1::EditReaderResponse_Error* mutable_error();
  void set_allocated_error(::deviceapis::device::v1::EditReaderResponse_Error* error);
  private:
  const ::deviceapis::device::v1::EditReaderResponse_Error& _internal_error() const;
  ::deviceapis::device::v1::EditReaderResponse_Error* _internal_mutable_error();
  public:
  void unsafe_arena_set_allocated_error(
      ::deviceapis::device::v1::EditReaderResponse_Error* error);
  ::deviceapis::device::v1::EditReaderResponse_Error* unsafe_arena_release_error();
  void clear_type();
  TypeCase type_case() const;
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.EditReaderResponse)
 private:
  class _Internal;
  void set_has_error();

  inline bool has_type() const;
  inline void clear_has_type();

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    union TypeUnion {
      constexpr TypeUnion() : _constinit_{} {}
        ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
      ::deviceapis::device::v1::EditReaderResponse_Error* error_;
    } type_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
    ::uint32_t _oneof_case_[1];

  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto;
};// -------------------------------------------------------------------

class GetReaderRequest final :
    public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:deviceapis.device.v1.GetReaderRequest) */ {
 public:
  inline GetReaderRequest() : GetReaderRequest(nullptr) {}
  ~GetReaderRequest() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR GetReaderRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  GetReaderRequest(const GetReaderRequest& from);
  GetReaderRequest(GetReaderRequest&& from) noexcept
    : GetReaderRequest() {
    *this = ::std::move(from);
  }

  inline GetReaderRequest& operator=(const GetReaderRequest& from) {
    CopyFrom(from);
    return *this;
  }
  inline GetReaderRequest& operator=(GetReaderRequest&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const std::string& unknown_fields() const {
    return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
  }
  inline std::string* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields<std::string>();
  }

  static const GetReaderRequest& default_instance() {
    return *internal_default_instance();
  }
  static inline const GetReaderRequest* internal_default_instance() {
    return reinterpret_cast<const GetReaderRequest*>(
               &_GetReaderRequest_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    3;

  friend void swap(GetReaderRequest& a, GetReaderRequest& b) {
    a.Swap(&b);
  }
  inline void Swap(GetReaderRequest* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(GetReaderRequest* other) {
    if (other == this) return;
    ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  GetReaderRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<GetReaderRequest>(arena);
  }
  void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
  void CopyFrom(const GetReaderRequest& from);
  void MergeFrom(const GetReaderRequest& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  void SharedDtor();
  void SetCachedSize(int size) const;
  void InternalSwap(GetReaderRequest* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "deviceapis.device.v1.GetReaderRequest";
  }
  protected:
  explicit GetReaderRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  public:

  std::string GetTypeName() const final;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kIdFieldNumber = 1,
  };
  // int32 id = 1 [(.google.api.field_behavior) = REQUIRED];
  void clear_id() ;
  ::int32_t id() const;
  void set_id(::int32_t value);

  private:
  ::int32_t _internal_id() const;
  void _internal_set_id(::int32_t value);

  public:
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.GetReaderRequest)
 private:
  class _Internal;

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    ::int32_t id_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto;
};// -------------------------------------------------------------------

class GetReaderResponse final :
    public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:deviceapis.device.v1.GetReaderResponse) */ {
 public:
  inline GetReaderResponse() : GetReaderResponse(nullptr) {}
  ~GetReaderResponse() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR GetReaderResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  GetReaderResponse(const GetReaderResponse& from);
  GetReaderResponse(GetReaderResponse&& from) noexcept
    : GetReaderResponse() {
    *this = ::std::move(from);
  }

  inline GetReaderResponse& operator=(const GetReaderResponse& from) {
    CopyFrom(from);
    return *this;
  }
  inline GetReaderResponse& operator=(GetReaderResponse&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const std::string& unknown_fields() const {
    return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
  }
  inline std::string* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields<std::string>();
  }

  static const GetReaderResponse& default_instance() {
    return *internal_default_instance();
  }
  enum TypeCase {
    kData = 1,
    TYPE_NOT_SET = 0,
  };

  static inline const GetReaderResponse* internal_default_instance() {
    return reinterpret_cast<const GetReaderResponse*>(
               &_GetReaderResponse_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    4;

  friend void swap(GetReaderResponse& a, GetReaderResponse& b) {
    a.Swap(&b);
  }
  inline void Swap(GetReaderResponse* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(GetReaderResponse* other) {
    if (other == this) return;
    ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  GetReaderResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<GetReaderResponse>(arena);
  }
  void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
  void CopyFrom(const GetReaderResponse& from);
  void MergeFrom(const GetReaderResponse& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  void SharedDtor();
  void SetCachedSize(int size) const;
  void InternalSwap(GetReaderResponse* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "deviceapis.device.v1.GetReaderResponse";
  }
  protected:
  explicit GetReaderResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  public:

  std::string GetTypeName() const final;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kDataFieldNumber = 1,
  };
  // .deviceapis.device.v1.Reader data = 1;
  bool has_data() const;
  private:
  bool _internal_has_data() const;

  public:
  void clear_data() ;
  const ::deviceapis::device::v1::Reader& data() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::Reader* release_data();
  ::deviceapis::device::v1::Reader* mutable_data();
  void set_allocated_data(::deviceapis::device::v1::Reader* data);
  private:
  const ::deviceapis::device::v1::Reader& _internal_data() const;
  ::deviceapis::device::v1::Reader* _internal_mutable_data();
  public:
  void unsafe_arena_set_allocated_data(
      ::deviceapis::device::v1::Reader* data);
  ::deviceapis::device::v1::Reader* unsafe_arena_release_data();
  void clear_type();
  TypeCase type_case() const;
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.GetReaderResponse)
 private:
  class _Internal;
  void set_has_data();

  inline bool has_type() const;
  inline void clear_has_type();

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    union TypeUnion {
      constexpr TypeUnion() : _constinit_{} {}
        ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
      ::deviceapis::device::v1::Reader* data_;
    } type_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
    ::uint32_t _oneof_case_[1];

  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto;
};// -------------------------------------------------------------------

class Reader_SavingError_ProfileIsNotSupported final :
    public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:deviceapis.device.v1.Reader.SavingError.ProfileIsNotSupported) */ {
 public:
  inline Reader_SavingError_ProfileIsNotSupported() : Reader_SavingError_ProfileIsNotSupported(nullptr) {}
  ~Reader_SavingError_ProfileIsNotSupported() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR Reader_SavingError_ProfileIsNotSupported(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  Reader_SavingError_ProfileIsNotSupported(const Reader_SavingError_ProfileIsNotSupported& from);
  Reader_SavingError_ProfileIsNotSupported(Reader_SavingError_ProfileIsNotSupported&& from) noexcept
    : Reader_SavingError_ProfileIsNotSupported() {
    *this = ::std::move(from);
  }

  inline Reader_SavingError_ProfileIsNotSupported& operator=(const Reader_SavingError_ProfileIsNotSupported& from) {
    CopyFrom(from);
    return *this;
  }
  inline Reader_SavingError_ProfileIsNotSupported& operator=(Reader_SavingError_ProfileIsNotSupported&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const std::string& unknown_fields() const {
    return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
  }
  inline std::string* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields<std::string>();
  }

  static const Reader_SavingError_ProfileIsNotSupported& default_instance() {
    return *internal_default_instance();
  }
  static inline const Reader_SavingError_ProfileIsNotSupported* internal_default_instance() {
    return reinterpret_cast<const Reader_SavingError_ProfileIsNotSupported*>(
               &_Reader_SavingError_ProfileIsNotSupported_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    5;

  friend void swap(Reader_SavingError_ProfileIsNotSupported& a, Reader_SavingError_ProfileIsNotSupported& b) {
    a.Swap(&b);
  }
  inline void Swap(Reader_SavingError_ProfileIsNotSupported* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(Reader_SavingError_ProfileIsNotSupported* other) {
    if (other == this) return;
    ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  Reader_SavingError_ProfileIsNotSupported* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<Reader_SavingError_ProfileIsNotSupported>(arena);
  }
  void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
  void CopyFrom(const Reader_SavingError_ProfileIsNotSupported& from);
  void MergeFrom(const Reader_SavingError_ProfileIsNotSupported& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  void SharedDtor();
  void SetCachedSize(int size) const;
  void InternalSwap(Reader_SavingError_ProfileIsNotSupported* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "deviceapis.device.v1.Reader.SavingError.ProfileIsNotSupported";
  }
  protected:
  explicit Reader_SavingError_ProfileIsNotSupported(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  public:

  std::string GetTypeName() const final;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kProfileIdsFieldNumber = 1,
  };
  // repeated int32 profile_ids = 1;
  int profile_ids_size() const;
  private:
  int _internal_profile_ids_size() const;

  public:
  void clear_profile_ids() ;
  ::int32_t profile_ids(int index) const;
  void set_profile_ids(int index, ::int32_t value);
  void add_profile_ids(::int32_t value);
  const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>& profile_ids() const;
  ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>* mutable_profile_ids();

  private:
  ::int32_t _internal_profile_ids(int index) const;
  void _internal_add_profile_ids(::int32_t value);
  const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>& _internal_profile_ids() const;
  ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>* _internal_mutable_profile_ids();

  public:
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.Reader.SavingError.ProfileIsNotSupported)
 private:
  class _Internal;

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t> profile_ids_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _profile_ids_cached_byte_size_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto;
};// -------------------------------------------------------------------

class Reader_SavingError_ProfileNotFound final :
    public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:deviceapis.device.v1.Reader.SavingError.ProfileNotFound) */ {
 public:
  inline Reader_SavingError_ProfileNotFound() : Reader_SavingError_ProfileNotFound(nullptr) {}
  ~Reader_SavingError_ProfileNotFound() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR Reader_SavingError_ProfileNotFound(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  Reader_SavingError_ProfileNotFound(const Reader_SavingError_ProfileNotFound& from);
  Reader_SavingError_ProfileNotFound(Reader_SavingError_ProfileNotFound&& from) noexcept
    : Reader_SavingError_ProfileNotFound() {
    *this = ::std::move(from);
  }

  inline Reader_SavingError_ProfileNotFound& operator=(const Reader_SavingError_ProfileNotFound& from) {
    CopyFrom(from);
    return *this;
  }
  inline Reader_SavingError_ProfileNotFound& operator=(Reader_SavingError_ProfileNotFound&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const std::string& unknown_fields() const {
    return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
  }
  inline std::string* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields<std::string>();
  }

  static const Reader_SavingError_ProfileNotFound& default_instance() {
    return *internal_default_instance();
  }
  static inline const Reader_SavingError_ProfileNotFound* internal_default_instance() {
    return reinterpret_cast<const Reader_SavingError_ProfileNotFound*>(
               &_Reader_SavingError_ProfileNotFound_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    6;

  friend void swap(Reader_SavingError_ProfileNotFound& a, Reader_SavingError_ProfileNotFound& b) {
    a.Swap(&b);
  }
  inline void Swap(Reader_SavingError_ProfileNotFound* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(Reader_SavingError_ProfileNotFound* other) {
    if (other == this) return;
    ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  Reader_SavingError_ProfileNotFound* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<Reader_SavingError_ProfileNotFound>(arena);
  }
  void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
  void CopyFrom(const Reader_SavingError_ProfileNotFound& from);
  void MergeFrom(const Reader_SavingError_ProfileNotFound& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  void SharedDtor();
  void SetCachedSize(int size) const;
  void InternalSwap(Reader_SavingError_ProfileNotFound* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "deviceapis.device.v1.Reader.SavingError.ProfileNotFound";
  }
  protected:
  explicit Reader_SavingError_ProfileNotFound(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  public:

  std::string GetTypeName() const final;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.Reader.SavingError.ProfileNotFound)
 private:
  class _Internal;

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto;
};// -------------------------------------------------------------------

class Reader_SavingError_ReaderNotFound final :
    public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:deviceapis.device.v1.Reader.SavingError.ReaderNotFound) */ {
 public:
  inline Reader_SavingError_ReaderNotFound() : Reader_SavingError_ReaderNotFound(nullptr) {}
  ~Reader_SavingError_ReaderNotFound() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR Reader_SavingError_ReaderNotFound(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  Reader_SavingError_ReaderNotFound(const Reader_SavingError_ReaderNotFound& from);
  Reader_SavingError_ReaderNotFound(Reader_SavingError_ReaderNotFound&& from) noexcept
    : Reader_SavingError_ReaderNotFound() {
    *this = ::std::move(from);
  }

  inline Reader_SavingError_ReaderNotFound& operator=(const Reader_SavingError_ReaderNotFound& from) {
    CopyFrom(from);
    return *this;
  }
  inline Reader_SavingError_ReaderNotFound& operator=(Reader_SavingError_ReaderNotFound&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const std::string& unknown_fields() const {
    return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
  }
  inline std::string* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields<std::string>();
  }

  static const Reader_SavingError_ReaderNotFound& default_instance() {
    return *internal_default_instance();
  }
  static inline const Reader_SavingError_ReaderNotFound* internal_default_instance() {
    return reinterpret_cast<const Reader_SavingError_ReaderNotFound*>(
               &_Reader_SavingError_ReaderNotFound_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    7;

  friend void swap(Reader_SavingError_ReaderNotFound& a, Reader_SavingError_ReaderNotFound& b) {
    a.Swap(&b);
  }
  inline void Swap(Reader_SavingError_ReaderNotFound* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(Reader_SavingError_ReaderNotFound* other) {
    if (other == this) return;
    ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  Reader_SavingError_ReaderNotFound* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<Reader_SavingError_ReaderNotFound>(arena);
  }
  void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
  void CopyFrom(const Reader_SavingError_ReaderNotFound& from);
  void MergeFrom(const Reader_SavingError_ReaderNotFound& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  void SharedDtor();
  void SetCachedSize(int size) const;
  void InternalSwap(Reader_SavingError_ReaderNotFound* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "deviceapis.device.v1.Reader.SavingError.ReaderNotFound";
  }
  protected:
  explicit Reader_SavingError_ReaderNotFound(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  public:

  std::string GetTypeName() const final;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.Reader.SavingError.ReaderNotFound)
 private:
  class _Internal;

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto;
};// -------------------------------------------------------------------

class Reader_SavingError final :
    public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:deviceapis.device.v1.Reader.SavingError) */ {
 public:
  inline Reader_SavingError() : Reader_SavingError(nullptr) {}
  ~Reader_SavingError() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR Reader_SavingError(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  Reader_SavingError(const Reader_SavingError& from);
  Reader_SavingError(Reader_SavingError&& from) noexcept
    : Reader_SavingError() {
    *this = ::std::move(from);
  }

  inline Reader_SavingError& operator=(const Reader_SavingError& from) {
    CopyFrom(from);
    return *this;
  }
  inline Reader_SavingError& operator=(Reader_SavingError&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const std::string& unknown_fields() const {
    return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
  }
  inline std::string* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields<std::string>();
  }

  static const Reader_SavingError& default_instance() {
    return *internal_default_instance();
  }
  enum ReasonCase {
    kReaderNotFound = 1,
    kProfileIsNotSupported = 2,
    kProfileNotFound = 3,
    REASON_NOT_SET = 0,
  };

  static inline const Reader_SavingError* internal_default_instance() {
    return reinterpret_cast<const Reader_SavingError*>(
               &_Reader_SavingError_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    8;

  friend void swap(Reader_SavingError& a, Reader_SavingError& b) {
    a.Swap(&b);
  }
  inline void Swap(Reader_SavingError* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(Reader_SavingError* other) {
    if (other == this) return;
    ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  Reader_SavingError* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<Reader_SavingError>(arena);
  }
  void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
  void CopyFrom(const Reader_SavingError& from);
  void MergeFrom(const Reader_SavingError& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  void SharedDtor();
  void SetCachedSize(int size) const;
  void InternalSwap(Reader_SavingError* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "deviceapis.device.v1.Reader.SavingError";
  }
  protected:
  explicit Reader_SavingError(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  public:

  std::string GetTypeName() const final;

  // nested types ----------------------------------------------------

  typedef Reader_SavingError_ProfileIsNotSupported ProfileIsNotSupported;
  typedef Reader_SavingError_ProfileNotFound ProfileNotFound;
  typedef Reader_SavingError_ReaderNotFound ReaderNotFound;

  // accessors -------------------------------------------------------

  enum : int {
    kReaderNotFoundFieldNumber = 1,
    kProfileIsNotSupportedFieldNumber = 2,
    kProfileNotFoundFieldNumber = 3,
  };
  // .deviceapis.device.v1.Reader.SavingError.ReaderNotFound reader_not_found = 1;
  bool has_reader_not_found() const;
  private:
  bool _internal_has_reader_not_found() const;

  public:
  void clear_reader_not_found() ;
  const ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound& reader_not_found() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* release_reader_not_found();
  ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* mutable_reader_not_found();
  void set_allocated_reader_not_found(::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* reader_not_found);
  private:
  const ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound& _internal_reader_not_found() const;
  ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* _internal_mutable_reader_not_found();
  public:
  void unsafe_arena_set_allocated_reader_not_found(
      ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* reader_not_found);
  ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* unsafe_arena_release_reader_not_found();
  // .deviceapis.device.v1.Reader.SavingError.ProfileIsNotSupported profile_is_not_supported = 2;
  bool has_profile_is_not_supported() const;
  private:
  bool _internal_has_profile_is_not_supported() const;

  public:
  void clear_profile_is_not_supported() ;
  const ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported& profile_is_not_supported() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* release_profile_is_not_supported();
  ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* mutable_profile_is_not_supported();
  void set_allocated_profile_is_not_supported(::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* profile_is_not_supported);
  private:
  const ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported& _internal_profile_is_not_supported() const;
  ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* _internal_mutable_profile_is_not_supported();
  public:
  void unsafe_arena_set_allocated_profile_is_not_supported(
      ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* profile_is_not_supported);
  ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* unsafe_arena_release_profile_is_not_supported();
  // .deviceapis.device.v1.Reader.SavingError.ProfileNotFound profile_not_found = 3;
  bool has_profile_not_found() const;
  private:
  bool _internal_has_profile_not_found() const;

  public:
  void clear_profile_not_found() ;
  const ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound& profile_not_found() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* release_profile_not_found();
  ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* mutable_profile_not_found();
  void set_allocated_profile_not_found(::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* profile_not_found);
  private:
  const ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound& _internal_profile_not_found() const;
  ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* _internal_mutable_profile_not_found();
  public:
  void unsafe_arena_set_allocated_profile_not_found(
      ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* profile_not_found);
  ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* unsafe_arena_release_profile_not_found();
  void clear_reason();
  ReasonCase reason_case() const;
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.Reader.SavingError)
 private:
  class _Internal;
  void set_has_reader_not_found();
  void set_has_profile_is_not_supported();
  void set_has_profile_not_found();

  inline bool has_reason() const;
  inline void clear_has_reason();

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    union ReasonUnion {
      constexpr ReasonUnion() : _constinit_{} {}
        ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
      ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* reader_not_found_;
      ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* profile_is_not_supported_;
      ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* profile_not_found_;
    } reason_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
    ::uint32_t _oneof_case_[1];

  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto;
};// -------------------------------------------------------------------

class Reader final :
    public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:deviceapis.device.v1.Reader) */ {
 public:
  inline Reader() : Reader(nullptr) {}
  ~Reader() override;
  template<typename = void>
  explicit PROTOBUF_CONSTEXPR Reader(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  Reader(const Reader& from);
  Reader(Reader&& from) noexcept
    : Reader() {
    *this = ::std::move(from);
  }

  inline Reader& operator=(const Reader& from) {
    CopyFrom(from);
    return *this;
  }
  inline Reader& operator=(Reader&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const std::string& unknown_fields() const {
    return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
  }
  inline std::string* mutable_unknown_fields() {
    return _internal_metadata_.mutable_unknown_fields<std::string>();
  }

  static const Reader& default_instance() {
    return *internal_default_instance();
  }
  static inline const Reader* internal_default_instance() {
    return reinterpret_cast<const Reader*>(
               &_Reader_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    9;

  friend void swap(Reader& a, Reader& b) {
    a.Swap(&b);
  }
  inline void Swap(Reader* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(Reader* other) {
    if (other == this) return;
    ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  Reader* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<Reader>(arena);
  }
  void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
  void CopyFrom(const Reader& from);
  void MergeFrom(const Reader& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  ::size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  ::uint8_t* _InternalSerialize(
      ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  void SharedDtor();
  void SetCachedSize(int size) const;
  void InternalSwap(Reader* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "deviceapis.device.v1.Reader";
  }
  protected:
  explicit Reader(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  public:

  std::string GetTypeName() const final;

  // nested types ----------------------------------------------------

  typedef Reader_SavingError SavingError;

  using DirectionType = Reader_DirectionType;
  static constexpr DirectionType DIRECTION_TYPE_UNKNOWN = Reader_DirectionType_DIRECTION_TYPE_UNKNOWN;
  static constexpr DirectionType IN = Reader_DirectionType_IN;
  static constexpr DirectionType OUT = Reader_DirectionType_OUT;
  static inline bool DirectionType_IsValid(int value) {
    return Reader_DirectionType_IsValid(value);
  }
  static constexpr DirectionType DirectionType_MIN = Reader_DirectionType_DirectionType_MIN;
  static constexpr DirectionType DirectionType_MAX = Reader_DirectionType_DirectionType_MAX;
  static constexpr int DirectionType_ARRAYSIZE = Reader_DirectionType_DirectionType_ARRAYSIZE;
  template <typename T>
  static inline const std::string& DirectionType_Name(T value) {
    return Reader_DirectionType_Name(value);
  }
  static inline bool DirectionType_Parse(absl::string_view name, DirectionType* value) {
    return Reader_DirectionType_Parse(name, value);
  }

  // accessors -------------------------------------------------------

  enum : int {
    kEncryptionProfileIdsFieldNumber = 2,
    kRelayIndexesFieldNumber = 3,
    kIdFieldNumber = 1,
    kIsNoneSecureModeFieldNumber = 4,
    kDirectionTypeFieldNumber = 5,
  };
  // repeated int32 encryption_profile_ids = 2 [(.google.api.field_behavior) = REQUIRED];
  int encryption_profile_ids_size() const;
  private:
  int _internal_encryption_profile_ids_size() const;

  public:
  void clear_encryption_profile_ids() ;
  ::int32_t encryption_profile_ids(int index) const;
  void set_encryption_profile_ids(int index, ::int32_t value);
  void add_encryption_profile_ids(::int32_t value);
  const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>& encryption_profile_ids() const;
  ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>* mutable_encryption_profile_ids();

  private:
  ::int32_t _internal_encryption_profile_ids(int index) const;
  void _internal_add_encryption_profile_ids(::int32_t value);
  const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>& _internal_encryption_profile_ids() const;
  ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>* _internal_mutable_encryption_profile_ids();

  public:
  // repeated int32 relay_indexes = 3 [(.google.api.field_behavior) = REQUIRED];
  int relay_indexes_size() const;
  private:
  int _internal_relay_indexes_size() const;

  public:
  void clear_relay_indexes() ;
  ::int32_t relay_indexes(int index) const;
  void set_relay_indexes(int index, ::int32_t value);
  void add_relay_indexes(::int32_t value);
  const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>& relay_indexes() const;
  ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>* mutable_relay_indexes();

  private:
  ::int32_t _internal_relay_indexes(int index) const;
  void _internal_add_relay_indexes(::int32_t value);
  const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>& _internal_relay_indexes() const;
  ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>* _internal_mutable_relay_indexes();

  public:
  // int32 id = 1 [(.google.api.field_behavior) = REQUIRED];
  void clear_id() ;
  ::int32_t id() const;
  void set_id(::int32_t value);

  private:
  ::int32_t _internal_id() const;
  void _internal_set_id(::int32_t value);

  public:
  // bool is_none_secure_mode = 4 [(.google.api.field_behavior) = REQUIRED];
  void clear_is_none_secure_mode() ;
  bool is_none_secure_mode() const;
  void set_is_none_secure_mode(bool value);

  private:
  bool _internal_is_none_secure_mode() const;
  void _internal_set_is_none_secure_mode(bool value);

  public:
  // .deviceapis.device.v1.Reader.DirectionType direction_type = 5;
  void clear_direction_type() ;
  ::deviceapis::device::v1::Reader_DirectionType direction_type() const;
  void set_direction_type(::deviceapis::device::v1::Reader_DirectionType value);

  private:
  ::deviceapis::device::v1::Reader_DirectionType _internal_direction_type() const;
  void _internal_set_direction_type(::deviceapis::device::v1::Reader_DirectionType value);

  public:
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.Reader)
 private:
  class _Internal;

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t> encryption_profile_ids_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _encryption_profile_ids_cached_byte_size_;
    ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t> relay_indexes_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _relay_indexes_cached_byte_size_;
    ::int32_t id_;
    bool is_none_secure_mode_;
    int direction_type_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto;
};

// ===================================================================




// ===================================================================


#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// -------------------------------------------------------------------

// EditReaderRequest

// .deviceapis.device.v1.Reader data = 1 [(.google.api.field_behavior) = REQUIRED];
inline bool EditReaderRequest::has_data() const {
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.data_ != nullptr);
  return value;
}
inline void EditReaderRequest::clear_data() {
  if (_impl_.data_ != nullptr) _impl_.data_->Clear();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
inline const ::deviceapis::device::v1::Reader& EditReaderRequest::_internal_data() const {
  const ::deviceapis::device::v1::Reader* p = _impl_.data_;
  return p != nullptr ? *p : reinterpret_cast<const ::deviceapis::device::v1::Reader&>(
      ::deviceapis::device::v1::_Reader_default_instance_);
}
inline const ::deviceapis::device::v1::Reader& EditReaderRequest::data() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.EditReaderRequest.data)
  return _internal_data();
}
inline void EditReaderRequest::unsafe_arena_set_allocated_data(
    ::deviceapis::device::v1::Reader* data) {
  if (GetArenaForAllocation() == nullptr) {
    delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.data_);
  }
  _impl_.data_ = data;
  if (data) {
    _impl_._has_bits_[0] |= 0x00000001u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000001u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:deviceapis.device.v1.EditReaderRequest.data)
}
inline ::deviceapis::device::v1::Reader* EditReaderRequest::release_data() {
  _impl_._has_bits_[0] &= ~0x00000001u;
  ::deviceapis::device::v1::Reader* temp = _impl_.data_;
  _impl_.data_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  if (GetArenaForAllocation() == nullptr) { delete old; }
#else  // PROTOBUF_FORCE_COPY_IN_RELEASE
  if (GetArenaForAllocation() != nullptr) {
    temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  }
#endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
  return temp;
}
inline ::deviceapis::device::v1::Reader* EditReaderRequest::unsafe_arena_release_data() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.EditReaderRequest.data)
  _impl_._has_bits_[0] &= ~0x00000001u;
  ::deviceapis::device::v1::Reader* temp = _impl_.data_;
  _impl_.data_ = nullptr;
  return temp;
}
inline ::deviceapis::device::v1::Reader* EditReaderRequest::_internal_mutable_data() {
  _impl_._has_bits_[0] |= 0x00000001u;
  if (_impl_.data_ == nullptr) {
    auto* p = CreateMaybeMessage<::deviceapis::device::v1::Reader>(GetArenaForAllocation());
    _impl_.data_ = p;
  }
  return _impl_.data_;
}
inline ::deviceapis::device::v1::Reader* EditReaderRequest::mutable_data() {
  ::deviceapis::device::v1::Reader* _msg = _internal_mutable_data();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.EditReaderRequest.data)
  return _msg;
}
inline void EditReaderRequest::set_allocated_data(::deviceapis::device::v1::Reader* data) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  if (message_arena == nullptr) {
    delete _impl_.data_;
  }
  if (data) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
        ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data);
    if (message_arena != submessage_arena) {
      data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, data, submessage_arena);
    }
    _impl_._has_bits_[0] |= 0x00000001u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000001u;
  }
  _impl_.data_ = data;
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.EditReaderRequest.data)
}

// .google.protobuf.FieldMask update_mask = 2;
inline bool EditReaderRequest::has_update_mask() const {
  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.update_mask_ != nullptr);
  return value;
}
inline const ::PROTOBUF_NAMESPACE_ID::FieldMask& EditReaderRequest::_internal_update_mask() const {
  const ::PROTOBUF_NAMESPACE_ID::FieldMask* p = _impl_.update_mask_;
  return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::FieldMask&>(
      ::PROTOBUF_NAMESPACE_ID::_FieldMask_default_instance_);
}
inline const ::PROTOBUF_NAMESPACE_ID::FieldMask& EditReaderRequest::update_mask() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.EditReaderRequest.update_mask)
  return _internal_update_mask();
}
inline void EditReaderRequest::unsafe_arena_set_allocated_update_mask(
    ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask) {
  if (GetArenaForAllocation() == nullptr) {
    delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.update_mask_);
  }
  _impl_.update_mask_ = update_mask;
  if (update_mask) {
    _impl_._has_bits_[0] |= 0x00000002u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000002u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:deviceapis.device.v1.EditReaderRequest.update_mask)
}
inline ::PROTOBUF_NAMESPACE_ID::FieldMask* EditReaderRequest::release_update_mask() {
  _impl_._has_bits_[0] &= ~0x00000002u;
  ::PROTOBUF_NAMESPACE_ID::FieldMask* temp = _impl_.update_mask_;
  _impl_.update_mask_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  if (GetArenaForAllocation() == nullptr) { delete old; }
#else  // PROTOBUF_FORCE_COPY_IN_RELEASE
  if (GetArenaForAllocation() != nullptr) {
    temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  }
#endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
  return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::FieldMask* EditReaderRequest::unsafe_arena_release_update_mask() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.EditReaderRequest.update_mask)
  _impl_._has_bits_[0] &= ~0x00000002u;
  ::PROTOBUF_NAMESPACE_ID::FieldMask* temp = _impl_.update_mask_;
  _impl_.update_mask_ = nullptr;
  return temp;
}
inline ::PROTOBUF_NAMESPACE_ID::FieldMask* EditReaderRequest::_internal_mutable_update_mask() {
  _impl_._has_bits_[0] |= 0x00000002u;
  if (_impl_.update_mask_ == nullptr) {
    auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldMask>(GetArenaForAllocation());
    _impl_.update_mask_ = p;
  }
  return _impl_.update_mask_;
}
inline ::PROTOBUF_NAMESPACE_ID::FieldMask* EditReaderRequest::mutable_update_mask() {
  ::PROTOBUF_NAMESPACE_ID::FieldMask* _msg = _internal_mutable_update_mask();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.EditReaderRequest.update_mask)
  return _msg;
}
inline void EditReaderRequest::set_allocated_update_mask(::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  if (message_arena == nullptr) {
    delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.update_mask_);
  }
  if (update_mask) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
        ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
                reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_mask));
    if (message_arena != submessage_arena) {
      update_mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, update_mask, submessage_arena);
    }
    _impl_._has_bits_[0] |= 0x00000002u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000002u;
  }
  _impl_.update_mask_ = update_mask;
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.EditReaderRequest.update_mask)
}

// -------------------------------------------------------------------

// EditReaderResponse_Error

// .deviceapis.device.v1.ValidationError validation = 1;
inline bool EditReaderResponse_Error::has_validation() const {
  return reason_case() == kValidation;
}
inline bool EditReaderResponse_Error::_internal_has_validation() const {
  return reason_case() == kValidation;
}
inline void EditReaderResponse_Error::set_has_validation() {
  _impl_._oneof_case_[0] = kValidation;
}
inline ::deviceapis::device::v1::ValidationError* EditReaderResponse_Error::release_validation() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.EditReaderResponse.Error.validation)
  if (reason_case() == kValidation) {
    clear_has_reason();
    ::deviceapis::device::v1::ValidationError* temp = _impl_.reason_.validation_;
    if (GetArenaForAllocation() != nullptr) {
      temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
    }
    _impl_.reason_.validation_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::deviceapis::device::v1::ValidationError& EditReaderResponse_Error::_internal_validation() const {
  return reason_case() == kValidation
      ? *_impl_.reason_.validation_
      : reinterpret_cast<::deviceapis::device::v1::ValidationError&>(::deviceapis::device::v1::_ValidationError_default_instance_);
}
inline const ::deviceapis::device::v1::ValidationError& EditReaderResponse_Error::validation() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.EditReaderResponse.Error.validation)
  return _internal_validation();
}
inline ::deviceapis::device::v1::ValidationError* EditReaderResponse_Error::unsafe_arena_release_validation() {
  // @@protoc_insertion_point(field_unsafe_arena_release:deviceapis.device.v1.EditReaderResponse.Error.validation)
  if (reason_case() == kValidation) {
    clear_has_reason();
    ::deviceapis::device::v1::ValidationError* temp = _impl_.reason_.validation_;
    _impl_.reason_.validation_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void EditReaderResponse_Error::unsafe_arena_set_allocated_validation(::deviceapis::device::v1::ValidationError* validation) {
  clear_reason();
  if (validation) {
    set_has_validation();
    _impl_.reason_.validation_ = validation;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:deviceapis.device.v1.EditReaderResponse.Error.validation)
}
inline ::deviceapis::device::v1::ValidationError* EditReaderResponse_Error::_internal_mutable_validation() {
  if (reason_case() != kValidation) {
    clear_reason();
    set_has_validation();
    _impl_.reason_.validation_ = CreateMaybeMessage< ::deviceapis::device::v1::ValidationError >(GetArenaForAllocation());
  }
  return _impl_.reason_.validation_;
}
inline ::deviceapis::device::v1::ValidationError* EditReaderResponse_Error::mutable_validation() {
  ::deviceapis::device::v1::ValidationError* _msg = _internal_mutable_validation();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.EditReaderResponse.Error.validation)
  return _msg;
}

// .deviceapis.device.v1.Reader.SavingError saving = 2;
inline bool EditReaderResponse_Error::has_saving() const {
  return reason_case() == kSaving;
}
inline bool EditReaderResponse_Error::_internal_has_saving() const {
  return reason_case() == kSaving;
}
inline void EditReaderResponse_Error::set_has_saving() {
  _impl_._oneof_case_[0] = kSaving;
}
inline void EditReaderResponse_Error::clear_saving() {
  if (reason_case() == kSaving) {
    if (GetArenaForAllocation() == nullptr) {
      delete _impl_.reason_.saving_;
    }
    clear_has_reason();
  }
}
inline ::deviceapis::device::v1::Reader_SavingError* EditReaderResponse_Error::release_saving() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.EditReaderResponse.Error.saving)
  if (reason_case() == kSaving) {
    clear_has_reason();
    ::deviceapis::device::v1::Reader_SavingError* temp = _impl_.reason_.saving_;
    if (GetArenaForAllocation() != nullptr) {
      temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
    }
    _impl_.reason_.saving_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::deviceapis::device::v1::Reader_SavingError& EditReaderResponse_Error::_internal_saving() const {
  return reason_case() == kSaving
      ? *_impl_.reason_.saving_
      : reinterpret_cast<::deviceapis::device::v1::Reader_SavingError&>(::deviceapis::device::v1::_Reader_SavingError_default_instance_);
}
inline const ::deviceapis::device::v1::Reader_SavingError& EditReaderResponse_Error::saving() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.EditReaderResponse.Error.saving)
  return _internal_saving();
}
inline ::deviceapis::device::v1::Reader_SavingError* EditReaderResponse_Error::unsafe_arena_release_saving() {
  // @@protoc_insertion_point(field_unsafe_arena_release:deviceapis.device.v1.EditReaderResponse.Error.saving)
  if (reason_case() == kSaving) {
    clear_has_reason();
    ::deviceapis::device::v1::Reader_SavingError* temp = _impl_.reason_.saving_;
    _impl_.reason_.saving_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void EditReaderResponse_Error::unsafe_arena_set_allocated_saving(::deviceapis::device::v1::Reader_SavingError* saving) {
  clear_reason();
  if (saving) {
    set_has_saving();
    _impl_.reason_.saving_ = saving;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:deviceapis.device.v1.EditReaderResponse.Error.saving)
}
inline ::deviceapis::device::v1::Reader_SavingError* EditReaderResponse_Error::_internal_mutable_saving() {
  if (reason_case() != kSaving) {
    clear_reason();
    set_has_saving();
    _impl_.reason_.saving_ = CreateMaybeMessage< ::deviceapis::device::v1::Reader_SavingError >(GetArenaForAllocation());
  }
  return _impl_.reason_.saving_;
}
inline ::deviceapis::device::v1::Reader_SavingError* EditReaderResponse_Error::mutable_saving() {
  ::deviceapis::device::v1::Reader_SavingError* _msg = _internal_mutable_saving();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.EditReaderResponse.Error.saving)
  return _msg;
}

inline bool EditReaderResponse_Error::has_reason() const {
  return reason_case() != REASON_NOT_SET;
}
inline void EditReaderResponse_Error::clear_has_reason() {
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}
inline EditReaderResponse_Error::ReasonCase EditReaderResponse_Error::reason_case() const {
  return EditReaderResponse_Error::ReasonCase(_impl_._oneof_case_[0]);
}
// -------------------------------------------------------------------

// EditReaderResponse

// .deviceapis.device.v1.EditReaderResponse.Error error = 1;
inline bool EditReaderResponse::has_error() const {
  return type_case() == kError;
}
inline bool EditReaderResponse::_internal_has_error() const {
  return type_case() == kError;
}
inline void EditReaderResponse::set_has_error() {
  _impl_._oneof_case_[0] = kError;
}
inline void EditReaderResponse::clear_error() {
  if (type_case() == kError) {
    if (GetArenaForAllocation() == nullptr) {
      delete _impl_.type_.error_;
    }
    clear_has_type();
  }
}
inline ::deviceapis::device::v1::EditReaderResponse_Error* EditReaderResponse::release_error() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.EditReaderResponse.error)
  if (type_case() == kError) {
    clear_has_type();
    ::deviceapis::device::v1::EditReaderResponse_Error* temp = _impl_.type_.error_;
    if (GetArenaForAllocation() != nullptr) {
      temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
    }
    _impl_.type_.error_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::deviceapis::device::v1::EditReaderResponse_Error& EditReaderResponse::_internal_error() const {
  return type_case() == kError
      ? *_impl_.type_.error_
      : reinterpret_cast<::deviceapis::device::v1::EditReaderResponse_Error&>(::deviceapis::device::v1::_EditReaderResponse_Error_default_instance_);
}
inline const ::deviceapis::device::v1::EditReaderResponse_Error& EditReaderResponse::error() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.EditReaderResponse.error)
  return _internal_error();
}
inline ::deviceapis::device::v1::EditReaderResponse_Error* EditReaderResponse::unsafe_arena_release_error() {
  // @@protoc_insertion_point(field_unsafe_arena_release:deviceapis.device.v1.EditReaderResponse.error)
  if (type_case() == kError) {
    clear_has_type();
    ::deviceapis::device::v1::EditReaderResponse_Error* temp = _impl_.type_.error_;
    _impl_.type_.error_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void EditReaderResponse::unsafe_arena_set_allocated_error(::deviceapis::device::v1::EditReaderResponse_Error* error) {
  clear_type();
  if (error) {
    set_has_error();
    _impl_.type_.error_ = error;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:deviceapis.device.v1.EditReaderResponse.error)
}
inline ::deviceapis::device::v1::EditReaderResponse_Error* EditReaderResponse::_internal_mutable_error() {
  if (type_case() != kError) {
    clear_type();
    set_has_error();
    _impl_.type_.error_ = CreateMaybeMessage< ::deviceapis::device::v1::EditReaderResponse_Error >(GetArenaForAllocation());
  }
  return _impl_.type_.error_;
}
inline ::deviceapis::device::v1::EditReaderResponse_Error* EditReaderResponse::mutable_error() {
  ::deviceapis::device::v1::EditReaderResponse_Error* _msg = _internal_mutable_error();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.EditReaderResponse.error)
  return _msg;
}

inline bool EditReaderResponse::has_type() const {
  return type_case() != TYPE_NOT_SET;
}
inline void EditReaderResponse::clear_has_type() {
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}
inline EditReaderResponse::TypeCase EditReaderResponse::type_case() const {
  return EditReaderResponse::TypeCase(_impl_._oneof_case_[0]);
}
// -------------------------------------------------------------------

// GetReaderRequest

// int32 id = 1 [(.google.api.field_behavior) = REQUIRED];
inline void GetReaderRequest::clear_id() {
  _impl_.id_ = 0;
}
inline ::int32_t GetReaderRequest::id() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.GetReaderRequest.id)
  return _internal_id();
}
inline void GetReaderRequest::set_id(::int32_t value) {
  _internal_set_id(value);
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.GetReaderRequest.id)
}
inline ::int32_t GetReaderRequest::_internal_id() const {
  return _impl_.id_;
}
inline void GetReaderRequest::_internal_set_id(::int32_t value) {
  ;
  _impl_.id_ = value;
}

// -------------------------------------------------------------------

// GetReaderResponse

// .deviceapis.device.v1.Reader data = 1;
inline bool GetReaderResponse::has_data() const {
  return type_case() == kData;
}
inline bool GetReaderResponse::_internal_has_data() const {
  return type_case() == kData;
}
inline void GetReaderResponse::set_has_data() {
  _impl_._oneof_case_[0] = kData;
}
inline void GetReaderResponse::clear_data() {
  if (type_case() == kData) {
    if (GetArenaForAllocation() == nullptr) {
      delete _impl_.type_.data_;
    }
    clear_has_type();
  }
}
inline ::deviceapis::device::v1::Reader* GetReaderResponse::release_data() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.GetReaderResponse.data)
  if (type_case() == kData) {
    clear_has_type();
    ::deviceapis::device::v1::Reader* temp = _impl_.type_.data_;
    if (GetArenaForAllocation() != nullptr) {
      temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
    }
    _impl_.type_.data_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::deviceapis::device::v1::Reader& GetReaderResponse::_internal_data() const {
  return type_case() == kData
      ? *_impl_.type_.data_
      : reinterpret_cast<::deviceapis::device::v1::Reader&>(::deviceapis::device::v1::_Reader_default_instance_);
}
inline const ::deviceapis::device::v1::Reader& GetReaderResponse::data() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.GetReaderResponse.data)
  return _internal_data();
}
inline ::deviceapis::device::v1::Reader* GetReaderResponse::unsafe_arena_release_data() {
  // @@protoc_insertion_point(field_unsafe_arena_release:deviceapis.device.v1.GetReaderResponse.data)
  if (type_case() == kData) {
    clear_has_type();
    ::deviceapis::device::v1::Reader* temp = _impl_.type_.data_;
    _impl_.type_.data_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void GetReaderResponse::unsafe_arena_set_allocated_data(::deviceapis::device::v1::Reader* data) {
  clear_type();
  if (data) {
    set_has_data();
    _impl_.type_.data_ = data;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:deviceapis.device.v1.GetReaderResponse.data)
}
inline ::deviceapis::device::v1::Reader* GetReaderResponse::_internal_mutable_data() {
  if (type_case() != kData) {
    clear_type();
    set_has_data();
    _impl_.type_.data_ = CreateMaybeMessage< ::deviceapis::device::v1::Reader >(GetArenaForAllocation());
  }
  return _impl_.type_.data_;
}
inline ::deviceapis::device::v1::Reader* GetReaderResponse::mutable_data() {
  ::deviceapis::device::v1::Reader* _msg = _internal_mutable_data();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.GetReaderResponse.data)
  return _msg;
}

inline bool GetReaderResponse::has_type() const {
  return type_case() != TYPE_NOT_SET;
}
inline void GetReaderResponse::clear_has_type() {
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}
inline GetReaderResponse::TypeCase GetReaderResponse::type_case() const {
  return GetReaderResponse::TypeCase(_impl_._oneof_case_[0]);
}
// -------------------------------------------------------------------

// Reader_SavingError_ProfileIsNotSupported

// repeated int32 profile_ids = 1;
inline int Reader_SavingError_ProfileIsNotSupported::_internal_profile_ids_size() const {
  return _impl_.profile_ids_.size();
}
inline int Reader_SavingError_ProfileIsNotSupported::profile_ids_size() const {
  return _internal_profile_ids_size();
}
inline void Reader_SavingError_ProfileIsNotSupported::clear_profile_ids() {
  _internal_mutable_profile_ids()->Clear();
}
inline ::int32_t Reader_SavingError_ProfileIsNotSupported::profile_ids(int index) const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Reader.SavingError.ProfileIsNotSupported.profile_ids)
  return _internal_profile_ids(index);
}
inline void Reader_SavingError_ProfileIsNotSupported::set_profile_ids(int index, ::int32_t value) {
  _internal_mutable_profile_ids()->Set(index, value);
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Reader.SavingError.ProfileIsNotSupported.profile_ids)
}
inline void Reader_SavingError_ProfileIsNotSupported::add_profile_ids(::int32_t value) {
  _internal_add_profile_ids(value);
  // @@protoc_insertion_point(field_add:deviceapis.device.v1.Reader.SavingError.ProfileIsNotSupported.profile_ids)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>& Reader_SavingError_ProfileIsNotSupported::profile_ids() const {
  // @@protoc_insertion_point(field_list:deviceapis.device.v1.Reader.SavingError.ProfileIsNotSupported.profile_ids)
  return _internal_profile_ids();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>* Reader_SavingError_ProfileIsNotSupported::mutable_profile_ids() {
  // @@protoc_insertion_point(field_mutable_list:deviceapis.device.v1.Reader.SavingError.ProfileIsNotSupported.profile_ids)
  return _internal_mutable_profile_ids();
}

inline ::int32_t Reader_SavingError_ProfileIsNotSupported::_internal_profile_ids(int index) const {
  return _internal_profile_ids().Get(index);
}
inline void Reader_SavingError_ProfileIsNotSupported::_internal_add_profile_ids(::int32_t value) {
  _internal_mutable_profile_ids()->Add(value);
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>& Reader_SavingError_ProfileIsNotSupported::_internal_profile_ids() const {
  return _impl_.profile_ids_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>* Reader_SavingError_ProfileIsNotSupported::_internal_mutable_profile_ids() {
  return &_impl_.profile_ids_;
}

// -------------------------------------------------------------------

// Reader_SavingError_ProfileNotFound

// -------------------------------------------------------------------

// Reader_SavingError_ReaderNotFound

// -------------------------------------------------------------------

// Reader_SavingError

// .deviceapis.device.v1.Reader.SavingError.ReaderNotFound reader_not_found = 1;
inline bool Reader_SavingError::has_reader_not_found() const {
  return reason_case() == kReaderNotFound;
}
inline bool Reader_SavingError::_internal_has_reader_not_found() const {
  return reason_case() == kReaderNotFound;
}
inline void Reader_SavingError::set_has_reader_not_found() {
  _impl_._oneof_case_[0] = kReaderNotFound;
}
inline void Reader_SavingError::clear_reader_not_found() {
  if (reason_case() == kReaderNotFound) {
    if (GetArenaForAllocation() == nullptr) {
      delete _impl_.reason_.reader_not_found_;
    }
    clear_has_reason();
  }
}
inline ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* Reader_SavingError::release_reader_not_found() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.Reader.SavingError.reader_not_found)
  if (reason_case() == kReaderNotFound) {
    clear_has_reason();
    ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* temp = _impl_.reason_.reader_not_found_;
    if (GetArenaForAllocation() != nullptr) {
      temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
    }
    _impl_.reason_.reader_not_found_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound& Reader_SavingError::_internal_reader_not_found() const {
  return reason_case() == kReaderNotFound
      ? *_impl_.reason_.reader_not_found_
      : reinterpret_cast<::deviceapis::device::v1::Reader_SavingError_ReaderNotFound&>(::deviceapis::device::v1::_Reader_SavingError_ReaderNotFound_default_instance_);
}
inline const ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound& Reader_SavingError::reader_not_found() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Reader.SavingError.reader_not_found)
  return _internal_reader_not_found();
}
inline ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* Reader_SavingError::unsafe_arena_release_reader_not_found() {
  // @@protoc_insertion_point(field_unsafe_arena_release:deviceapis.device.v1.Reader.SavingError.reader_not_found)
  if (reason_case() == kReaderNotFound) {
    clear_has_reason();
    ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* temp = _impl_.reason_.reader_not_found_;
    _impl_.reason_.reader_not_found_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void Reader_SavingError::unsafe_arena_set_allocated_reader_not_found(::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* reader_not_found) {
  clear_reason();
  if (reader_not_found) {
    set_has_reader_not_found();
    _impl_.reason_.reader_not_found_ = reader_not_found;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:deviceapis.device.v1.Reader.SavingError.reader_not_found)
}
inline ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* Reader_SavingError::_internal_mutable_reader_not_found() {
  if (reason_case() != kReaderNotFound) {
    clear_reason();
    set_has_reader_not_found();
    _impl_.reason_.reader_not_found_ = CreateMaybeMessage< ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound >(GetArenaForAllocation());
  }
  return _impl_.reason_.reader_not_found_;
}
inline ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* Reader_SavingError::mutable_reader_not_found() {
  ::deviceapis::device::v1::Reader_SavingError_ReaderNotFound* _msg = _internal_mutable_reader_not_found();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.Reader.SavingError.reader_not_found)
  return _msg;
}

// .deviceapis.device.v1.Reader.SavingError.ProfileIsNotSupported profile_is_not_supported = 2;
inline bool Reader_SavingError::has_profile_is_not_supported() const {
  return reason_case() == kProfileIsNotSupported;
}
inline bool Reader_SavingError::_internal_has_profile_is_not_supported() const {
  return reason_case() == kProfileIsNotSupported;
}
inline void Reader_SavingError::set_has_profile_is_not_supported() {
  _impl_._oneof_case_[0] = kProfileIsNotSupported;
}
inline void Reader_SavingError::clear_profile_is_not_supported() {
  if (reason_case() == kProfileIsNotSupported) {
    if (GetArenaForAllocation() == nullptr) {
      delete _impl_.reason_.profile_is_not_supported_;
    }
    clear_has_reason();
  }
}
inline ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* Reader_SavingError::release_profile_is_not_supported() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.Reader.SavingError.profile_is_not_supported)
  if (reason_case() == kProfileIsNotSupported) {
    clear_has_reason();
    ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* temp = _impl_.reason_.profile_is_not_supported_;
    if (GetArenaForAllocation() != nullptr) {
      temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
    }
    _impl_.reason_.profile_is_not_supported_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported& Reader_SavingError::_internal_profile_is_not_supported() const {
  return reason_case() == kProfileIsNotSupported
      ? *_impl_.reason_.profile_is_not_supported_
      : reinterpret_cast<::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported&>(::deviceapis::device::v1::_Reader_SavingError_ProfileIsNotSupported_default_instance_);
}
inline const ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported& Reader_SavingError::profile_is_not_supported() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Reader.SavingError.profile_is_not_supported)
  return _internal_profile_is_not_supported();
}
inline ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* Reader_SavingError::unsafe_arena_release_profile_is_not_supported() {
  // @@protoc_insertion_point(field_unsafe_arena_release:deviceapis.device.v1.Reader.SavingError.profile_is_not_supported)
  if (reason_case() == kProfileIsNotSupported) {
    clear_has_reason();
    ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* temp = _impl_.reason_.profile_is_not_supported_;
    _impl_.reason_.profile_is_not_supported_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void Reader_SavingError::unsafe_arena_set_allocated_profile_is_not_supported(::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* profile_is_not_supported) {
  clear_reason();
  if (profile_is_not_supported) {
    set_has_profile_is_not_supported();
    _impl_.reason_.profile_is_not_supported_ = profile_is_not_supported;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:deviceapis.device.v1.Reader.SavingError.profile_is_not_supported)
}
inline ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* Reader_SavingError::_internal_mutable_profile_is_not_supported() {
  if (reason_case() != kProfileIsNotSupported) {
    clear_reason();
    set_has_profile_is_not_supported();
    _impl_.reason_.profile_is_not_supported_ = CreateMaybeMessage< ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported >(GetArenaForAllocation());
  }
  return _impl_.reason_.profile_is_not_supported_;
}
inline ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* Reader_SavingError::mutable_profile_is_not_supported() {
  ::deviceapis::device::v1::Reader_SavingError_ProfileIsNotSupported* _msg = _internal_mutable_profile_is_not_supported();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.Reader.SavingError.profile_is_not_supported)
  return _msg;
}

// .deviceapis.device.v1.Reader.SavingError.ProfileNotFound profile_not_found = 3;
inline bool Reader_SavingError::has_profile_not_found() const {
  return reason_case() == kProfileNotFound;
}
inline bool Reader_SavingError::_internal_has_profile_not_found() const {
  return reason_case() == kProfileNotFound;
}
inline void Reader_SavingError::set_has_profile_not_found() {
  _impl_._oneof_case_[0] = kProfileNotFound;
}
inline void Reader_SavingError::clear_profile_not_found() {
  if (reason_case() == kProfileNotFound) {
    if (GetArenaForAllocation() == nullptr) {
      delete _impl_.reason_.profile_not_found_;
    }
    clear_has_reason();
  }
}
inline ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* Reader_SavingError::release_profile_not_found() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.Reader.SavingError.profile_not_found)
  if (reason_case() == kProfileNotFound) {
    clear_has_reason();
    ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* temp = _impl_.reason_.profile_not_found_;
    if (GetArenaForAllocation() != nullptr) {
      temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
    }
    _impl_.reason_.profile_not_found_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound& Reader_SavingError::_internal_profile_not_found() const {
  return reason_case() == kProfileNotFound
      ? *_impl_.reason_.profile_not_found_
      : reinterpret_cast<::deviceapis::device::v1::Reader_SavingError_ProfileNotFound&>(::deviceapis::device::v1::_Reader_SavingError_ProfileNotFound_default_instance_);
}
inline const ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound& Reader_SavingError::profile_not_found() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Reader.SavingError.profile_not_found)
  return _internal_profile_not_found();
}
inline ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* Reader_SavingError::unsafe_arena_release_profile_not_found() {
  // @@protoc_insertion_point(field_unsafe_arena_release:deviceapis.device.v1.Reader.SavingError.profile_not_found)
  if (reason_case() == kProfileNotFound) {
    clear_has_reason();
    ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* temp = _impl_.reason_.profile_not_found_;
    _impl_.reason_.profile_not_found_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void Reader_SavingError::unsafe_arena_set_allocated_profile_not_found(::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* profile_not_found) {
  clear_reason();
  if (profile_not_found) {
    set_has_profile_not_found();
    _impl_.reason_.profile_not_found_ = profile_not_found;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:deviceapis.device.v1.Reader.SavingError.profile_not_found)
}
inline ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* Reader_SavingError::_internal_mutable_profile_not_found() {
  if (reason_case() != kProfileNotFound) {
    clear_reason();
    set_has_profile_not_found();
    _impl_.reason_.profile_not_found_ = CreateMaybeMessage< ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound >(GetArenaForAllocation());
  }
  return _impl_.reason_.profile_not_found_;
}
inline ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* Reader_SavingError::mutable_profile_not_found() {
  ::deviceapis::device::v1::Reader_SavingError_ProfileNotFound* _msg = _internal_mutable_profile_not_found();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.Reader.SavingError.profile_not_found)
  return _msg;
}

inline bool Reader_SavingError::has_reason() const {
  return reason_case() != REASON_NOT_SET;
}
inline void Reader_SavingError::clear_has_reason() {
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}
inline Reader_SavingError::ReasonCase Reader_SavingError::reason_case() const {
  return Reader_SavingError::ReasonCase(_impl_._oneof_case_[0]);
}
// -------------------------------------------------------------------

// Reader

// int32 id = 1 [(.google.api.field_behavior) = REQUIRED];
inline void Reader::clear_id() {
  _impl_.id_ = 0;
}
inline ::int32_t Reader::id() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Reader.id)
  return _internal_id();
}
inline void Reader::set_id(::int32_t value) {
  _internal_set_id(value);
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Reader.id)
}
inline ::int32_t Reader::_internal_id() const {
  return _impl_.id_;
}
inline void Reader::_internal_set_id(::int32_t value) {
  ;
  _impl_.id_ = value;
}

// repeated int32 encryption_profile_ids = 2 [(.google.api.field_behavior) = REQUIRED];
inline int Reader::_internal_encryption_profile_ids_size() const {
  return _impl_.encryption_profile_ids_.size();
}
inline int Reader::encryption_profile_ids_size() const {
  return _internal_encryption_profile_ids_size();
}
inline void Reader::clear_encryption_profile_ids() {
  _internal_mutable_encryption_profile_ids()->Clear();
}
inline ::int32_t Reader::encryption_profile_ids(int index) const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Reader.encryption_profile_ids)
  return _internal_encryption_profile_ids(index);
}
inline void Reader::set_encryption_profile_ids(int index, ::int32_t value) {
  _internal_mutable_encryption_profile_ids()->Set(index, value);
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Reader.encryption_profile_ids)
}
inline void Reader::add_encryption_profile_ids(::int32_t value) {
  _internal_add_encryption_profile_ids(value);
  // @@protoc_insertion_point(field_add:deviceapis.device.v1.Reader.encryption_profile_ids)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>& Reader::encryption_profile_ids() const {
  // @@protoc_insertion_point(field_list:deviceapis.device.v1.Reader.encryption_profile_ids)
  return _internal_encryption_profile_ids();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>* Reader::mutable_encryption_profile_ids() {
  // @@protoc_insertion_point(field_mutable_list:deviceapis.device.v1.Reader.encryption_profile_ids)
  return _internal_mutable_encryption_profile_ids();
}

inline ::int32_t Reader::_internal_encryption_profile_ids(int index) const {
  return _internal_encryption_profile_ids().Get(index);
}
inline void Reader::_internal_add_encryption_profile_ids(::int32_t value) {
  _internal_mutable_encryption_profile_ids()->Add(value);
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>& Reader::_internal_encryption_profile_ids() const {
  return _impl_.encryption_profile_ids_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>* Reader::_internal_mutable_encryption_profile_ids() {
  return &_impl_.encryption_profile_ids_;
}

// repeated int32 relay_indexes = 3 [(.google.api.field_behavior) = REQUIRED];
inline int Reader::_internal_relay_indexes_size() const {
  return _impl_.relay_indexes_.size();
}
inline int Reader::relay_indexes_size() const {
  return _internal_relay_indexes_size();
}
inline void Reader::clear_relay_indexes() {
  _internal_mutable_relay_indexes()->Clear();
}
inline ::int32_t Reader::relay_indexes(int index) const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Reader.relay_indexes)
  return _internal_relay_indexes(index);
}
inline void Reader::set_relay_indexes(int index, ::int32_t value) {
  _internal_mutable_relay_indexes()->Set(index, value);
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Reader.relay_indexes)
}
inline void Reader::add_relay_indexes(::int32_t value) {
  _internal_add_relay_indexes(value);
  // @@protoc_insertion_point(field_add:deviceapis.device.v1.Reader.relay_indexes)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>& Reader::relay_indexes() const {
  // @@protoc_insertion_point(field_list:deviceapis.device.v1.Reader.relay_indexes)
  return _internal_relay_indexes();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>* Reader::mutable_relay_indexes() {
  // @@protoc_insertion_point(field_mutable_list:deviceapis.device.v1.Reader.relay_indexes)
  return _internal_mutable_relay_indexes();
}

inline ::int32_t Reader::_internal_relay_indexes(int index) const {
  return _internal_relay_indexes().Get(index);
}
inline void Reader::_internal_add_relay_indexes(::int32_t value) {
  _internal_mutable_relay_indexes()->Add(value);
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>& Reader::_internal_relay_indexes() const {
  return _impl_.relay_indexes_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<::int32_t>* Reader::_internal_mutable_relay_indexes() {
  return &_impl_.relay_indexes_;
}

// bool is_none_secure_mode = 4 [(.google.api.field_behavior) = REQUIRED];
inline void Reader::clear_is_none_secure_mode() {
  _impl_.is_none_secure_mode_ = false;
}
inline bool Reader::is_none_secure_mode() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Reader.is_none_secure_mode)
  return _internal_is_none_secure_mode();
}
inline void Reader::set_is_none_secure_mode(bool value) {
  _internal_set_is_none_secure_mode(value);
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Reader.is_none_secure_mode)
}
inline bool Reader::_internal_is_none_secure_mode() const {
  return _impl_.is_none_secure_mode_;
}
inline void Reader::_internal_set_is_none_secure_mode(bool value) {
  ;
  _impl_.is_none_secure_mode_ = value;
}

// .deviceapis.device.v1.Reader.DirectionType direction_type = 5;
inline void Reader::clear_direction_type() {
  _impl_.direction_type_ = 0;
}
inline ::deviceapis::device::v1::Reader_DirectionType Reader::direction_type() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Reader.direction_type)
  return _internal_direction_type();
}
inline void Reader::set_direction_type(::deviceapis::device::v1::Reader_DirectionType value) {
   _internal_set_direction_type(value);
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Reader.direction_type)
}
inline ::deviceapis::device::v1::Reader_DirectionType Reader::_internal_direction_type() const {
  return static_cast<::deviceapis::device::v1::Reader_DirectionType>(_impl_.direction_type_);
}
inline void Reader::_internal_set_direction_type(::deviceapis::device::v1::Reader_DirectionType value) {
  ;
  _impl_.direction_type_ = value;
}

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif  // __GNUC__

// @@protoc_insertion_point(namespace_scope)
}  // namespace v1
}  // namespace device
}  // namespace deviceapis


PROTOBUF_NAMESPACE_OPEN

template <>
struct is_proto_enum<::deviceapis::device::v1::Reader_DirectionType> : std::true_type {};

PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"

#endif  // GOOGLE_PROTOBUF_INCLUDED_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5freader_5fv1_2eproto_2epb_2eh
