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

#ifndef GOOGLE_PROTOBUF_INCLUDED_keyapis_2fdevice_2fv1_2fkeyapis_5fdevice_5faccess_5fv1_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_keyapis_2fdevice_2fv1_2fkeyapis_5fdevice_5faccess_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 "google/protobuf/timestamp.pb.h"
#include "google/api/annotations.pb.h"
#include "google/api/field_behavior.pb.h"
#include "google/protobuf/descriptor.pb.h"
#include "keyapis/device/v1/keyapis_device_device_v1.pb.h"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_keyapis_2fdevice_2fv1_2fkeyapis_5fdevice_5faccess_5fv1_2eproto

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

// Internal implementation detail -- do not use these members.
struct TableStruct_keyapis_2fdevice_2fv1_2fkeyapis_5fdevice_5faccess_5fv1_2eproto {
  static const ::uint32_t offsets[];
};
namespace keyapis {
namespace device {
namespace v1 {
class DeviceAccess;
struct DeviceAccessDefaultTypeInternal;
extern DeviceAccessDefaultTypeInternal _DeviceAccess_default_instance_;
}  // namespace v1
}  // namespace device
}  // namespace keyapis
PROTOBUF_NAMESPACE_OPEN
template <>
::keyapis::device::v1::DeviceAccess* Arena::CreateMaybeMessage<::keyapis::device::v1::DeviceAccess>(Arena*);
PROTOBUF_NAMESPACE_CLOSE

namespace keyapis {
namespace device {
namespace v1 {
enum DeviceAccess_AccessorType : int {
  DeviceAccess_AccessorType_ACCESSOR_TYPE_UNKNOWN = 0,
  DeviceAccess_AccessorType_GROUP = 1,
  DeviceAccess_AccessorType_DeviceAccess_AccessorType_INT_MIN_SENTINEL_DO_NOT_USE_ =
      std::numeric_limits<::int32_t>::min(),
  DeviceAccess_AccessorType_DeviceAccess_AccessorType_INT_MAX_SENTINEL_DO_NOT_USE_ =
      std::numeric_limits<::int32_t>::max(),
};

bool DeviceAccess_AccessorType_IsValid(int value);
constexpr DeviceAccess_AccessorType DeviceAccess_AccessorType_AccessorType_MIN = static_cast<DeviceAccess_AccessorType>(0);
constexpr DeviceAccess_AccessorType DeviceAccess_AccessorType_AccessorType_MAX = static_cast<DeviceAccess_AccessorType>(1);
constexpr int DeviceAccess_AccessorType_AccessorType_ARRAYSIZE = 1 + 1;
const std::string& DeviceAccess_AccessorType_Name(DeviceAccess_AccessorType value);
template <typename T>
const std::string& DeviceAccess_AccessorType_Name(T value) {
  static_assert(std::is_same<T, DeviceAccess_AccessorType>::value ||
                    std::is_integral<T>::value,
                "Incorrect type passed to AccessorType_Name().");
  return DeviceAccess_AccessorType_Name(static_cast<DeviceAccess_AccessorType>(value));
}
const std::string& DeviceAccess_AccessorType_Name(DeviceAccess_AccessorType value);
bool DeviceAccess_AccessorType_Parse(absl::string_view name, DeviceAccess_AccessorType* value);

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


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

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

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

  inline DeviceAccess& operator=(const DeviceAccess& from) {
    CopyFrom(from);
    return *this;
  }
  inline DeviceAccess& operator=(DeviceAccess&& 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 DeviceAccess& default_instance() {
    return *internal_default_instance();
  }
  static inline const DeviceAccess* internal_default_instance() {
    return reinterpret_cast<const DeviceAccess*>(
               &_DeviceAccess_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  friend void swap(DeviceAccess& a, DeviceAccess& b) {
    a.Swap(&b);
  }
  inline void Swap(DeviceAccess* 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(DeviceAccess* other) {
    if (other == this) return;
    ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

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

  DeviceAccess* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<DeviceAccess>(arena);
  }
  void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
  void CopyFrom(const DeviceAccess& from);
  void MergeFrom(const DeviceAccess& 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(DeviceAccess* other);

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

  std::string GetTypeName() const final;

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

  using AccessorType = DeviceAccess_AccessorType;
  static constexpr AccessorType ACCESSOR_TYPE_UNKNOWN = DeviceAccess_AccessorType_ACCESSOR_TYPE_UNKNOWN;
  static constexpr AccessorType GROUP = DeviceAccess_AccessorType_GROUP;
  static inline bool AccessorType_IsValid(int value) {
    return DeviceAccess_AccessorType_IsValid(value);
  }
  static constexpr AccessorType AccessorType_MIN = DeviceAccess_AccessorType_AccessorType_MIN;
  static constexpr AccessorType AccessorType_MAX = DeviceAccess_AccessorType_AccessorType_MAX;
  static constexpr int AccessorType_ARRAYSIZE = DeviceAccess_AccessorType_AccessorType_ARRAYSIZE;
  template <typename T>
  static inline const std::string& AccessorType_Name(T value) {
    return DeviceAccess_AccessorType_Name(value);
  }
  static inline bool AccessorType_Parse(absl::string_view name, AccessorType* value) {
    return DeviceAccess_AccessorType_Parse(name, value);
  }

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

  enum : int {
    kAccessorIdFieldNumber = 3,
    kDeviceIdFieldNumber = 1,
    kAccessorTypeFieldNumber = 2,
  };
  // string accessor_id = 3 [(.google.api.field_behavior) = REQUIRED];
  void clear_accessor_id() ;
  const std::string& accessor_id() const;




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_accessor_id(Arg_&& arg, Args_... args);
  std::string* mutable_accessor_id();
  PROTOBUF_NODISCARD std::string* release_accessor_id();
  void set_allocated_accessor_id(std::string* ptr);

  private:
  const std::string& _internal_accessor_id() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_accessor_id(
      const std::string& value);
  std::string* _internal_mutable_accessor_id();

  public:
  // int32 device_id = 1 [(.google.api.field_behavior) = REQUIRED];
  void clear_device_id() ;
  ::int32_t device_id() const;
  void set_device_id(::int32_t value);

  private:
  ::int32_t _internal_device_id() const;
  void _internal_set_device_id(::int32_t value);

  public:
  // .keyapis.device.v1.DeviceAccess.AccessorType accessor_type = 2 [(.google.api.field_behavior) = REQUIRED];
  void clear_accessor_type() ;
  ::keyapis::device::v1::DeviceAccess_AccessorType accessor_type() const;
  void set_accessor_type(::keyapis::device::v1::DeviceAccess_AccessorType value);

  private:
  ::keyapis::device::v1::DeviceAccess_AccessorType _internal_accessor_type() const;
  void _internal_set_accessor_type(::keyapis::device::v1::DeviceAccess_AccessorType value);

  public:
  // @@protoc_insertion_point(class_scope:keyapis.device.v1.DeviceAccess)
 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::ArenaStringPtr accessor_id_;
    ::int32_t device_id_;
    int accessor_type_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_keyapis_2fdevice_2fv1_2fkeyapis_5fdevice_5faccess_5fv1_2eproto;
};

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




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


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

// DeviceAccess

// int32 device_id = 1 [(.google.api.field_behavior) = REQUIRED];
inline void DeviceAccess::clear_device_id() {
  _impl_.device_id_ = 0;
}
inline ::int32_t DeviceAccess::device_id() const {
  // @@protoc_insertion_point(field_get:keyapis.device.v1.DeviceAccess.device_id)
  return _internal_device_id();
}
inline void DeviceAccess::set_device_id(::int32_t value) {
  _internal_set_device_id(value);
  // @@protoc_insertion_point(field_set:keyapis.device.v1.DeviceAccess.device_id)
}
inline ::int32_t DeviceAccess::_internal_device_id() const {
  return _impl_.device_id_;
}
inline void DeviceAccess::_internal_set_device_id(::int32_t value) {
  ;
  _impl_.device_id_ = value;
}

// .keyapis.device.v1.DeviceAccess.AccessorType accessor_type = 2 [(.google.api.field_behavior) = REQUIRED];
inline void DeviceAccess::clear_accessor_type() {
  _impl_.accessor_type_ = 0;
}
inline ::keyapis::device::v1::DeviceAccess_AccessorType DeviceAccess::accessor_type() const {
  // @@protoc_insertion_point(field_get:keyapis.device.v1.DeviceAccess.accessor_type)
  return _internal_accessor_type();
}
inline void DeviceAccess::set_accessor_type(::keyapis::device::v1::DeviceAccess_AccessorType value) {
   _internal_set_accessor_type(value);
  // @@protoc_insertion_point(field_set:keyapis.device.v1.DeviceAccess.accessor_type)
}
inline ::keyapis::device::v1::DeviceAccess_AccessorType DeviceAccess::_internal_accessor_type() const {
  return static_cast<::keyapis::device::v1::DeviceAccess_AccessorType>(_impl_.accessor_type_);
}
inline void DeviceAccess::_internal_set_accessor_type(::keyapis::device::v1::DeviceAccess_AccessorType value) {
  ;
  _impl_.accessor_type_ = value;
}

// string accessor_id = 3 [(.google.api.field_behavior) = REQUIRED];
inline void DeviceAccess::clear_accessor_id() {
  _impl_.accessor_id_.ClearToEmpty();
}
inline const std::string& DeviceAccess::accessor_id() const {
  // @@protoc_insertion_point(field_get:keyapis.device.v1.DeviceAccess.accessor_id)
  return _internal_accessor_id();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void DeviceAccess::set_accessor_id(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.accessor_id_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:keyapis.device.v1.DeviceAccess.accessor_id)
}
inline std::string* DeviceAccess::mutable_accessor_id() {
  std::string* _s = _internal_mutable_accessor_id();
  // @@protoc_insertion_point(field_mutable:keyapis.device.v1.DeviceAccess.accessor_id)
  return _s;
}
inline const std::string& DeviceAccess::_internal_accessor_id() const {
  return _impl_.accessor_id_.Get();
}
inline void DeviceAccess::_internal_set_accessor_id(const std::string& value) {
  ;


  _impl_.accessor_id_.Set(value, GetArenaForAllocation());
}
inline std::string* DeviceAccess::_internal_mutable_accessor_id() {
  ;
  return _impl_.accessor_id_.Mutable( GetArenaForAllocation());
}
inline std::string* DeviceAccess::release_accessor_id() {
  // @@protoc_insertion_point(field_release:keyapis.device.v1.DeviceAccess.accessor_id)
  return _impl_.accessor_id_.Release();
}
inline void DeviceAccess::set_allocated_accessor_id(std::string* value) {
  _impl_.accessor_id_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.accessor_id_.IsDefault()) {
          _impl_.accessor_id_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:keyapis.device.v1.DeviceAccess.accessor_id)
}

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

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


PROTOBUF_NAMESPACE_OPEN

template <>
struct is_proto_enum<::keyapis::device::v1::DeviceAccess_AccessorType> : std::true_type {};

PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"

#endif  // GOOGLE_PROTOBUF_INCLUDED_keyapis_2fdevice_2fv1_2fkeyapis_5fdevice_5faccess_5fv1_2eproto_2epb_2eh
