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

#ifndef GOOGLE_PROTOBUF_INCLUDED_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fsac_5fv1_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fsac_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 "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"
#include "protoc-gen-openapiv2/options/annotations.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_5fsac_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_5fsac_5fv1_2eproto {
  static const ::uint32_t offsets[];
};
namespace deviceapis {
namespace device {
namespace v1 {
class EditSacRequest;
struct EditSacRequestDefaultTypeInternal;
extern EditSacRequestDefaultTypeInternal _EditSacRequest_default_instance_;
class EditSacResponse;
struct EditSacResponseDefaultTypeInternal;
extern EditSacResponseDefaultTypeInternal _EditSacResponse_default_instance_;
class EditSacResponse_Error;
struct EditSacResponse_ErrorDefaultTypeInternal;
extern EditSacResponse_ErrorDefaultTypeInternal _EditSacResponse_Error_default_instance_;
class GetSacRequest;
struct GetSacRequestDefaultTypeInternal;
extern GetSacRequestDefaultTypeInternal _GetSacRequest_default_instance_;
class GetSacResponse;
struct GetSacResponseDefaultTypeInternal;
extern GetSacResponseDefaultTypeInternal _GetSacResponse_default_instance_;
class Sac;
struct SacDefaultTypeInternal;
extern SacDefaultTypeInternal _Sac_default_instance_;
}  // namespace v1
}  // namespace device
}  // namespace deviceapis
PROTOBUF_NAMESPACE_OPEN
template <>
::deviceapis::device::v1::EditSacRequest* Arena::CreateMaybeMessage<::deviceapis::device::v1::EditSacRequest>(Arena*);
template <>
::deviceapis::device::v1::EditSacResponse* Arena::CreateMaybeMessage<::deviceapis::device::v1::EditSacResponse>(Arena*);
template <>
::deviceapis::device::v1::EditSacResponse_Error* Arena::CreateMaybeMessage<::deviceapis::device::v1::EditSacResponse_Error>(Arena*);
template <>
::deviceapis::device::v1::GetSacRequest* Arena::CreateMaybeMessage<::deviceapis::device::v1::GetSacRequest>(Arena*);
template <>
::deviceapis::device::v1::GetSacResponse* Arena::CreateMaybeMessage<::deviceapis::device::v1::GetSacResponse>(Arena*);
template <>
::deviceapis::device::v1::Sac* Arena::CreateMaybeMessage<::deviceapis::device::v1::Sac>(Arena*);
PROTOBUF_NAMESPACE_CLOSE

namespace deviceapis {
namespace device {
namespace v1 {

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


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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

  enum : int {
    kDataFieldNumber = 1,
    kUpdateMaskFieldNumber = 2,
  };
  // .deviceapis.device.v1.Sac data = 1 [(.google.api.field_behavior) = REQUIRED];
  bool has_data() const;
  void clear_data() ;
  const ::deviceapis::device::v1::Sac& data() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::Sac* release_data();
  ::deviceapis::device::v1::Sac* mutable_data();
  void set_allocated_data(::deviceapis::device::v1::Sac* data);
  private:
  const ::deviceapis::device::v1::Sac& _internal_data() const;
  ::deviceapis::device::v1::Sac* _internal_mutable_data();
  public:
  void unsafe_arena_set_allocated_data(
      ::deviceapis::device::v1::Sac* data);
  ::deviceapis::device::v1::Sac* 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.EditSacRequest)
 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::Sac* data_;
    ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fsac_5fv1_2eproto;
};// -------------------------------------------------------------------

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

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

  inline EditSacResponse_Error& operator=(const EditSacResponse_Error& from) {
    CopyFrom(from);
    return *this;
  }
  inline EditSacResponse_Error& operator=(EditSacResponse_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 EditSacResponse_Error& default_instance() {
    return *internal_default_instance();
  }
  enum ReasonCase {
    kValidation = 1,
    REASON_NOT_SET = 0,
  };

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

  enum : int {
    kValidationFieldNumber = 1,
  };
  // .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();
  void clear_reason();
  ReasonCase reason_case() const;
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.EditSacResponse.Error)
 private:
  class _Internal;
  void set_has_validation();

  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_;
    } 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_5fsac_5fv1_2eproto;
};// -------------------------------------------------------------------

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

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

  inline EditSacResponse& operator=(const EditSacResponse& from) {
    CopyFrom(from);
    return *this;
  }
  inline EditSacResponse& operator=(EditSacResponse&& 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 EditSacResponse& default_instance() {
    return *internal_default_instance();
  }
  enum TypeCase {
    kData = 1,
    kError = 2,
    TYPE_NOT_SET = 0,
  };

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

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

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

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

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

  std::string GetTypeName() const final;

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

  typedef EditSacResponse_Error Error;

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

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

  public:
  void clear_data() ;
  const ::deviceapis::device::v1::Sac& data() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::Sac* release_data();
  ::deviceapis::device::v1::Sac* mutable_data();
  void set_allocated_data(::deviceapis::device::v1::Sac* data);
  private:
  const ::deviceapis::device::v1::Sac& _internal_data() const;
  ::deviceapis::device::v1::Sac* _internal_mutable_data();
  public:
  void unsafe_arena_set_allocated_data(
      ::deviceapis::device::v1::Sac* data);
  ::deviceapis::device::v1::Sac* unsafe_arena_release_data();
  // .deviceapis.device.v1.EditSacResponse.Error error = 2;
  bool has_error() const;
  private:
  bool _internal_has_error() const;

  public:
  void clear_error() ;
  const ::deviceapis::device::v1::EditSacResponse_Error& error() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::EditSacResponse_Error* release_error();
  ::deviceapis::device::v1::EditSacResponse_Error* mutable_error();
  void set_allocated_error(::deviceapis::device::v1::EditSacResponse_Error* error);
  private:
  const ::deviceapis::device::v1::EditSacResponse_Error& _internal_error() const;
  ::deviceapis::device::v1::EditSacResponse_Error* _internal_mutable_error();
  public:
  void unsafe_arena_set_allocated_error(
      ::deviceapis::device::v1::EditSacResponse_Error* error);
  ::deviceapis::device::v1::EditSacResponse_Error* unsafe_arena_release_error();
  void clear_type();
  TypeCase type_case() const;
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.EditSacResponse)
 private:
  class _Internal;
  void set_has_data();
  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::Sac* data_;
      ::deviceapis::device::v1::EditSacResponse_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_5fsac_5fv1_2eproto;
};// -------------------------------------------------------------------

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.GetSacRequest)
 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_5fsac_5fv1_2eproto;
};// -------------------------------------------------------------------

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

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

  inline GetSacResponse& operator=(const GetSacResponse& from) {
    CopyFrom(from);
    return *this;
  }
  inline GetSacResponse& operator=(GetSacResponse&& 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 GetSacResponse& default_instance() {
    return *internal_default_instance();
  }
  enum TypeCase {
    kData = 1,
    TYPE_NOT_SET = 0,
  };

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

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

  public:
  void clear_data() ;
  const ::deviceapis::device::v1::Sac& data() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::Sac* release_data();
  ::deviceapis::device::v1::Sac* mutable_data();
  void set_allocated_data(::deviceapis::device::v1::Sac* data);
  private:
  const ::deviceapis::device::v1::Sac& _internal_data() const;
  ::deviceapis::device::v1::Sac* _internal_mutable_data();
  public:
  void unsafe_arena_set_allocated_data(
      ::deviceapis::device::v1::Sac* data);
  ::deviceapis::device::v1::Sac* unsafe_arena_release_data();
  void clear_type();
  TypeCase type_case() const;
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.GetSacResponse)
 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::Sac* 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_5fsac_5fv1_2eproto;
};// -------------------------------------------------------------------

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

  enum : int {
    kKeyMaskFieldNumber = 4,
    kIsSacOnFieldNumber = 1,
    kMinFlatNumberFieldNumber = 2,
    kMaxFlatNumberFieldNumber = 3,
  };
  // string key_mask = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_key_mask() ;
  const std::string& key_mask() const;




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_key_mask(Arg_&& arg, Args_... args);
  std::string* mutable_key_mask();
  PROTOBUF_NODISCARD std::string* release_key_mask();
  void set_allocated_key_mask(std::string* ptr);

  private:
  const std::string& _internal_key_mask() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_key_mask(
      const std::string& value);
  std::string* _internal_mutable_key_mask();

  public:
  // bool is_sac_on = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_is_sac_on() ;
  bool is_sac_on() const;
  void set_is_sac_on(bool value);

  private:
  bool _internal_is_sac_on() const;
  void _internal_set_is_sac_on(bool value);

  public:
  // int32 min_flat_number = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_min_flat_number() ;
  ::int32_t min_flat_number() const;
  void set_min_flat_number(::int32_t value);

  private:
  ::int32_t _internal_min_flat_number() const;
  void _internal_set_min_flat_number(::int32_t value);

  public:
  // int32 max_flat_number = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_max_flat_number() ;
  ::int32_t max_flat_number() const;
  void set_max_flat_number(::int32_t value);

  private:
  ::int32_t _internal_max_flat_number() const;
  void _internal_set_max_flat_number(::int32_t value);

  public:
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.Sac)
 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 key_mask_;
    bool is_sac_on_;
    ::int32_t min_flat_number_;
    ::int32_t max_flat_number_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fsac_5fv1_2eproto;
};

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




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


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

// EditSacRequest

// .deviceapis.device.v1.Sac data = 1 [(.google.api.field_behavior) = REQUIRED];
inline bool EditSacRequest::has_data() const {
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.data_ != nullptr);
  return value;
}
inline void EditSacRequest::clear_data() {
  if (_impl_.data_ != nullptr) _impl_.data_->Clear();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
inline const ::deviceapis::device::v1::Sac& EditSacRequest::_internal_data() const {
  const ::deviceapis::device::v1::Sac* p = _impl_.data_;
  return p != nullptr ? *p : reinterpret_cast<const ::deviceapis::device::v1::Sac&>(
      ::deviceapis::device::v1::_Sac_default_instance_);
}
inline const ::deviceapis::device::v1::Sac& EditSacRequest::data() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.EditSacRequest.data)
  return _internal_data();
}
inline void EditSacRequest::unsafe_arena_set_allocated_data(
    ::deviceapis::device::v1::Sac* 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.EditSacRequest.data)
}
inline ::deviceapis::device::v1::Sac* EditSacRequest::release_data() {
  _impl_._has_bits_[0] &= ~0x00000001u;
  ::deviceapis::device::v1::Sac* 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::Sac* EditSacRequest::unsafe_arena_release_data() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.EditSacRequest.data)
  _impl_._has_bits_[0] &= ~0x00000001u;
  ::deviceapis::device::v1::Sac* temp = _impl_.data_;
  _impl_.data_ = nullptr;
  return temp;
}
inline ::deviceapis::device::v1::Sac* EditSacRequest::_internal_mutable_data() {
  _impl_._has_bits_[0] |= 0x00000001u;
  if (_impl_.data_ == nullptr) {
    auto* p = CreateMaybeMessage<::deviceapis::device::v1::Sac>(GetArenaForAllocation());
    _impl_.data_ = p;
  }
  return _impl_.data_;
}
inline ::deviceapis::device::v1::Sac* EditSacRequest::mutable_data() {
  ::deviceapis::device::v1::Sac* _msg = _internal_mutable_data();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.EditSacRequest.data)
  return _msg;
}
inline void EditSacRequest::set_allocated_data(::deviceapis::device::v1::Sac* 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.EditSacRequest.data)
}

// .google.protobuf.FieldMask update_mask = 2;
inline bool EditSacRequest::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& EditSacRequest::_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& EditSacRequest::update_mask() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.EditSacRequest.update_mask)
  return _internal_update_mask();
}
inline void EditSacRequest::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.EditSacRequest.update_mask)
}
inline ::PROTOBUF_NAMESPACE_ID::FieldMask* EditSacRequest::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* EditSacRequest::unsafe_arena_release_update_mask() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.EditSacRequest.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* EditSacRequest::_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* EditSacRequest::mutable_update_mask() {
  ::PROTOBUF_NAMESPACE_ID::FieldMask* _msg = _internal_mutable_update_mask();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.EditSacRequest.update_mask)
  return _msg;
}
inline void EditSacRequest::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.EditSacRequest.update_mask)
}

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

// EditSacResponse_Error

// .deviceapis.device.v1.ValidationError validation = 1;
inline bool EditSacResponse_Error::has_validation() const {
  return reason_case() == kValidation;
}
inline bool EditSacResponse_Error::_internal_has_validation() const {
  return reason_case() == kValidation;
}
inline void EditSacResponse_Error::set_has_validation() {
  _impl_._oneof_case_[0] = kValidation;
}
inline ::deviceapis::device::v1::ValidationError* EditSacResponse_Error::release_validation() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.EditSacResponse.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& EditSacResponse_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& EditSacResponse_Error::validation() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.EditSacResponse.Error.validation)
  return _internal_validation();
}
inline ::deviceapis::device::v1::ValidationError* EditSacResponse_Error::unsafe_arena_release_validation() {
  // @@protoc_insertion_point(field_unsafe_arena_release:deviceapis.device.v1.EditSacResponse.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 EditSacResponse_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.EditSacResponse.Error.validation)
}
inline ::deviceapis::device::v1::ValidationError* EditSacResponse_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* EditSacResponse_Error::mutable_validation() {
  ::deviceapis::device::v1::ValidationError* _msg = _internal_mutable_validation();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.EditSacResponse.Error.validation)
  return _msg;
}

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

// EditSacResponse

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

// .deviceapis.device.v1.EditSacResponse.Error error = 2;
inline bool EditSacResponse::has_error() const {
  return type_case() == kError;
}
inline bool EditSacResponse::_internal_has_error() const {
  return type_case() == kError;
}
inline void EditSacResponse::set_has_error() {
  _impl_._oneof_case_[0] = kError;
}
inline void EditSacResponse::clear_error() {
  if (type_case() == kError) {
    if (GetArenaForAllocation() == nullptr) {
      delete _impl_.type_.error_;
    }
    clear_has_type();
  }
}
inline ::deviceapis::device::v1::EditSacResponse_Error* EditSacResponse::release_error() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.EditSacResponse.error)
  if (type_case() == kError) {
    clear_has_type();
    ::deviceapis::device::v1::EditSacResponse_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::EditSacResponse_Error& EditSacResponse::_internal_error() const {
  return type_case() == kError
      ? *_impl_.type_.error_
      : reinterpret_cast<::deviceapis::device::v1::EditSacResponse_Error&>(::deviceapis::device::v1::_EditSacResponse_Error_default_instance_);
}
inline const ::deviceapis::device::v1::EditSacResponse_Error& EditSacResponse::error() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.EditSacResponse.error)
  return _internal_error();
}
inline ::deviceapis::device::v1::EditSacResponse_Error* EditSacResponse::unsafe_arena_release_error() {
  // @@protoc_insertion_point(field_unsafe_arena_release:deviceapis.device.v1.EditSacResponse.error)
  if (type_case() == kError) {
    clear_has_type();
    ::deviceapis::device::v1::EditSacResponse_Error* temp = _impl_.type_.error_;
    _impl_.type_.error_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline void EditSacResponse::unsafe_arena_set_allocated_error(::deviceapis::device::v1::EditSacResponse_Error* error) {
  clear_type();
  if (error) {
    set_has_error();
    _impl_.type_.error_ = error;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:deviceapis.device.v1.EditSacResponse.error)
}
inline ::deviceapis::device::v1::EditSacResponse_Error* EditSacResponse::_internal_mutable_error() {
  if (type_case() != kError) {
    clear_type();
    set_has_error();
    _impl_.type_.error_ = CreateMaybeMessage< ::deviceapis::device::v1::EditSacResponse_Error >(GetArenaForAllocation());
  }
  return _impl_.type_.error_;
}
inline ::deviceapis::device::v1::EditSacResponse_Error* EditSacResponse::mutable_error() {
  ::deviceapis::device::v1::EditSacResponse_Error* _msg = _internal_mutable_error();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.EditSacResponse.error)
  return _msg;
}

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

// GetSacRequest

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

// GetSacResponse

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

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

// Sac

// bool is_sac_on = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void Sac::clear_is_sac_on() {
  _impl_.is_sac_on_ = false;
}
inline bool Sac::is_sac_on() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Sac.is_sac_on)
  return _internal_is_sac_on();
}
inline void Sac::set_is_sac_on(bool value) {
  _internal_set_is_sac_on(value);
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Sac.is_sac_on)
}
inline bool Sac::_internal_is_sac_on() const {
  return _impl_.is_sac_on_;
}
inline void Sac::_internal_set_is_sac_on(bool value) {
  ;
  _impl_.is_sac_on_ = value;
}

// int32 min_flat_number = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void Sac::clear_min_flat_number() {
  _impl_.min_flat_number_ = 0;
}
inline ::int32_t Sac::min_flat_number() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Sac.min_flat_number)
  return _internal_min_flat_number();
}
inline void Sac::set_min_flat_number(::int32_t value) {
  _internal_set_min_flat_number(value);
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Sac.min_flat_number)
}
inline ::int32_t Sac::_internal_min_flat_number() const {
  return _impl_.min_flat_number_;
}
inline void Sac::_internal_set_min_flat_number(::int32_t value) {
  ;
  _impl_.min_flat_number_ = value;
}

// int32 max_flat_number = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void Sac::clear_max_flat_number() {
  _impl_.max_flat_number_ = 0;
}
inline ::int32_t Sac::max_flat_number() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Sac.max_flat_number)
  return _internal_max_flat_number();
}
inline void Sac::set_max_flat_number(::int32_t value) {
  _internal_set_max_flat_number(value);
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Sac.max_flat_number)
}
inline ::int32_t Sac::_internal_max_flat_number() const {
  return _impl_.max_flat_number_;
}
inline void Sac::_internal_set_max_flat_number(::int32_t value) {
  ;
  _impl_.max_flat_number_ = value;
}

// string key_mask = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void Sac::clear_key_mask() {
  _impl_.key_mask_.ClearToEmpty();
}
inline const std::string& Sac::key_mask() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Sac.key_mask)
  return _internal_key_mask();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Sac::set_key_mask(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.key_mask_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Sac.key_mask)
}
inline std::string* Sac::mutable_key_mask() {
  std::string* _s = _internal_mutable_key_mask();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.Sac.key_mask)
  return _s;
}
inline const std::string& Sac::_internal_key_mask() const {
  return _impl_.key_mask_.Get();
}
inline void Sac::_internal_set_key_mask(const std::string& value) {
  ;


  _impl_.key_mask_.Set(value, GetArenaForAllocation());
}
inline std::string* Sac::_internal_mutable_key_mask() {
  ;
  return _impl_.key_mask_.Mutable( GetArenaForAllocation());
}
inline std::string* Sac::release_key_mask() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.Sac.key_mask)
  return _impl_.key_mask_.Release();
}
inline void Sac::set_allocated_key_mask(std::string* value) {
  _impl_.key_mask_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.key_mask_.IsDefault()) {
          _impl_.key_mask_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.Sac.key_mask)
}

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

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


// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"

#endif  // GOOGLE_PROTOBUF_INCLUDED_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fsac_5fv1_2eproto_2epb_2eh
