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

#ifndef GOOGLE_PROTOBUF_INCLUDED_keyapis_2fvc_2fv1_2fkeyapis_5fvc_5fcamera_5faccess_5fv1_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_keyapis_2fvc_2fv1_2fkeyapis_5fvc_5fcamera_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 "google/protobuf/wrappers.pb.h"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_keyapis_2fvc_2fv1_2fkeyapis_5fvc_5fcamera_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_2fvc_2fv1_2fkeyapis_5fvc_5fcamera_5faccess_5fv1_2eproto {
  static const ::uint32_t offsets[];
};
namespace keyapis {
namespace vc {
namespace v1 {
class CameraAccess;
struct CameraAccessDefaultTypeInternal;
extern CameraAccessDefaultTypeInternal _CameraAccess_default_instance_;
}  // namespace v1
}  // namespace vc
}  // namespace keyapis
PROTOBUF_NAMESPACE_OPEN
template <>
::keyapis::vc::v1::CameraAccess* Arena::CreateMaybeMessage<::keyapis::vc::v1::CameraAccess>(Arena*);
PROTOBUF_NAMESPACE_CLOSE

namespace keyapis {
namespace vc {
namespace v1 {
enum CameraAccess_AccessorType : int {
  CameraAccess_AccessorType_ACCESSOR_TYPE_UNKNOWN = 0,
  CameraAccess_AccessorType_USER = 1,
  CameraAccess_AccessorType_GROUP = 2,
  CameraAccess_AccessorType_CameraAccess_AccessorType_INT_MIN_SENTINEL_DO_NOT_USE_ =
      std::numeric_limits<::int32_t>::min(),
  CameraAccess_AccessorType_CameraAccess_AccessorType_INT_MAX_SENTINEL_DO_NOT_USE_ =
      std::numeric_limits<::int32_t>::max(),
};

bool CameraAccess_AccessorType_IsValid(int value);
constexpr CameraAccess_AccessorType CameraAccess_AccessorType_AccessorType_MIN = static_cast<CameraAccess_AccessorType>(0);
constexpr CameraAccess_AccessorType CameraAccess_AccessorType_AccessorType_MAX = static_cast<CameraAccess_AccessorType>(2);
constexpr int CameraAccess_AccessorType_AccessorType_ARRAYSIZE = 2 + 1;
const std::string& CameraAccess_AccessorType_Name(CameraAccess_AccessorType value);
template <typename T>
const std::string& CameraAccess_AccessorType_Name(T value) {
  static_assert(std::is_same<T, CameraAccess_AccessorType>::value ||
                    std::is_integral<T>::value,
                "Incorrect type passed to AccessorType_Name().");
  return CameraAccess_AccessorType_Name(static_cast<CameraAccess_AccessorType>(value));
}
const std::string& CameraAccess_AccessorType_Name(CameraAccess_AccessorType value);
bool CameraAccess_AccessorType_Parse(absl::string_view name, CameraAccess_AccessorType* value);

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


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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

  using AccessorType = CameraAccess_AccessorType;
  static constexpr AccessorType ACCESSOR_TYPE_UNKNOWN = CameraAccess_AccessorType_ACCESSOR_TYPE_UNKNOWN;
  static constexpr AccessorType USER = CameraAccess_AccessorType_USER;
  static constexpr AccessorType GROUP = CameraAccess_AccessorType_GROUP;
  static inline bool AccessorType_IsValid(int value) {
    return CameraAccess_AccessorType_IsValid(value);
  }
  static constexpr AccessorType AccessorType_MIN = CameraAccess_AccessorType_AccessorType_MIN;
  static constexpr AccessorType AccessorType_MAX = CameraAccess_AccessorType_AccessorType_MAX;
  static constexpr int AccessorType_ARRAYSIZE = CameraAccess_AccessorType_AccessorType_ARRAYSIZE;
  template <typename T>
  static inline const std::string& AccessorType_Name(T value) {
    return CameraAccess_AccessorType_Name(value);
  }
  static inline bool AccessorType_Parse(absl::string_view name, AccessorType* value) {
    return CameraAccess_AccessorType_Parse(name, value);
  }

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

  enum : int {
    kExternalIdFieldNumber = 1,
    kAccessorIdFieldNumber = 3,
    kAccessorTypeFieldNumber = 2,
    kVcCompanyIdFieldNumber = 4,
  };
  // string external_id = 1 [(.google.api.field_behavior) = REQUIRED];
  void clear_external_id() ;
  const std::string& external_id() const;




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_external_id(Arg_&& arg, Args_... args);
  std::string* mutable_external_id();
  PROTOBUF_NODISCARD std::string* release_external_id();
  void set_allocated_external_id(std::string* ptr);

  private:
  const std::string& _internal_external_id() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_external_id(
      const std::string& value);
  std::string* _internal_mutable_external_id();

  public:
  // 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:
  // .keyapis.vc.v1.CameraAccess.AccessorType accessor_type = 2 [(.google.api.field_behavior) = REQUIRED];
  void clear_accessor_type() ;
  ::keyapis::vc::v1::CameraAccess_AccessorType accessor_type() const;
  void set_accessor_type(::keyapis::vc::v1::CameraAccess_AccessorType value);

  private:
  ::keyapis::vc::v1::CameraAccess_AccessorType _internal_accessor_type() const;
  void _internal_set_accessor_type(::keyapis::vc::v1::CameraAccess_AccessorType value);

  public:
  // int32 vc_company_id = 4 [(.google.api.field_behavior) = REQUIRED];
  void clear_vc_company_id() ;
  ::int32_t vc_company_id() const;
  void set_vc_company_id(::int32_t value);

  private:
  ::int32_t _internal_vc_company_id() const;
  void _internal_set_vc_company_id(::int32_t value);

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

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




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


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

// CameraAccess

// string external_id = 1 [(.google.api.field_behavior) = REQUIRED];
inline void CameraAccess::clear_external_id() {
  _impl_.external_id_.ClearToEmpty();
}
inline const std::string& CameraAccess::external_id() const {
  // @@protoc_insertion_point(field_get:keyapis.vc.v1.CameraAccess.external_id)
  return _internal_external_id();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void CameraAccess::set_external_id(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.external_id_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:keyapis.vc.v1.CameraAccess.external_id)
}
inline std::string* CameraAccess::mutable_external_id() {
  std::string* _s = _internal_mutable_external_id();
  // @@protoc_insertion_point(field_mutable:keyapis.vc.v1.CameraAccess.external_id)
  return _s;
}
inline const std::string& CameraAccess::_internal_external_id() const {
  return _impl_.external_id_.Get();
}
inline void CameraAccess::_internal_set_external_id(const std::string& value) {
  ;


  _impl_.external_id_.Set(value, GetArenaForAllocation());
}
inline std::string* CameraAccess::_internal_mutable_external_id() {
  ;
  return _impl_.external_id_.Mutable( GetArenaForAllocation());
}
inline std::string* CameraAccess::release_external_id() {
  // @@protoc_insertion_point(field_release:keyapis.vc.v1.CameraAccess.external_id)
  return _impl_.external_id_.Release();
}
inline void CameraAccess::set_allocated_external_id(std::string* value) {
  _impl_.external_id_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.external_id_.IsDefault()) {
          _impl_.external_id_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:keyapis.vc.v1.CameraAccess.external_id)
}

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

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


  _impl_.accessor_id_.Set(value, GetArenaForAllocation());
}
inline std::string* CameraAccess::_internal_mutable_accessor_id() {
  ;
  return _impl_.accessor_id_.Mutable( GetArenaForAllocation());
}
inline std::string* CameraAccess::release_accessor_id() {
  // @@protoc_insertion_point(field_release:keyapis.vc.v1.CameraAccess.accessor_id)
  return _impl_.accessor_id_.Release();
}
inline void CameraAccess::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.vc.v1.CameraAccess.accessor_id)
}

// int32 vc_company_id = 4 [(.google.api.field_behavior) = REQUIRED];
inline void CameraAccess::clear_vc_company_id() {
  _impl_.vc_company_id_ = 0;
}
inline ::int32_t CameraAccess::vc_company_id() const {
  // @@protoc_insertion_point(field_get:keyapis.vc.v1.CameraAccess.vc_company_id)
  return _internal_vc_company_id();
}
inline void CameraAccess::set_vc_company_id(::int32_t value) {
  _internal_set_vc_company_id(value);
  // @@protoc_insertion_point(field_set:keyapis.vc.v1.CameraAccess.vc_company_id)
}
inline ::int32_t CameraAccess::_internal_vc_company_id() const {
  return _impl_.vc_company_id_;
}
inline void CameraAccess::_internal_set_vc_company_id(::int32_t value) {
  ;
  _impl_.vc_company_id_ = value;
}

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

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


PROTOBUF_NAMESPACE_OPEN

template <>
struct is_proto_enum<::keyapis::vc::v1::CameraAccess_AccessorType> : std::true_type {};

PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"

#endif  // GOOGLE_PROTOBUF_INCLUDED_keyapis_2fvc_2fv1_2fkeyapis_5fvc_5fcamera_5faccess_5fv1_2eproto_2epb_2eh
