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

#ifndef GOOGLE_PROTOBUF_INCLUDED_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fsos_5fv1_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fsos_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_5fsos_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_5fsos_5fv1_2eproto {
  static const ::uint32_t offsets[];
};
namespace deviceapis {
namespace device {
namespace v1 {
class EditSosRequest;
struct EditSosRequestDefaultTypeInternal;
extern EditSosRequestDefaultTypeInternal _EditSosRequest_default_instance_;
class EditSosResponse;
struct EditSosResponseDefaultTypeInternal;
extern EditSosResponseDefaultTypeInternal _EditSosResponse_default_instance_;
class EditSosResponse_Error;
struct EditSosResponse_ErrorDefaultTypeInternal;
extern EditSosResponse_ErrorDefaultTypeInternal _EditSosResponse_Error_default_instance_;
class GetSosRequest;
struct GetSosRequestDefaultTypeInternal;
extern GetSosRequestDefaultTypeInternal _GetSosRequest_default_instance_;
class GetSosResponse;
struct GetSosResponseDefaultTypeInternal;
extern GetSosResponseDefaultTypeInternal _GetSosResponse_default_instance_;
class Sos;
struct SosDefaultTypeInternal;
extern SosDefaultTypeInternal _Sos_default_instance_;
}  // namespace v1
}  // namespace device
}  // namespace deviceapis
PROTOBUF_NAMESPACE_OPEN
template <>
::deviceapis::device::v1::EditSosRequest* Arena::CreateMaybeMessage<::deviceapis::device::v1::EditSosRequest>(Arena*);
template <>
::deviceapis::device::v1::EditSosResponse* Arena::CreateMaybeMessage<::deviceapis::device::v1::EditSosResponse>(Arena*);
template <>
::deviceapis::device::v1::EditSosResponse_Error* Arena::CreateMaybeMessage<::deviceapis::device::v1::EditSosResponse_Error>(Arena*);
template <>
::deviceapis::device::v1::GetSosRequest* Arena::CreateMaybeMessage<::deviceapis::device::v1::GetSosRequest>(Arena*);
template <>
::deviceapis::device::v1::GetSosResponse* Arena::CreateMaybeMessage<::deviceapis::device::v1::GetSosResponse>(Arena*);
template <>
::deviceapis::device::v1::Sos* Arena::CreateMaybeMessage<::deviceapis::device::v1::Sos>(Arena*);
PROTOBUF_NAMESPACE_CLOSE

namespace deviceapis {
namespace device {
namespace v1 {

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


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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

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

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

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

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

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

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

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

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

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() {
    return "deviceapis.device.v1.EditSosResponse.Error";
  }
  protected:
  explicit EditSosResponse_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.EditSosResponse.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_5fsos_5fv1_2eproto;
};// -------------------------------------------------------------------

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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

  typedef EditSosResponse_Error Error;

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

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

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

  public:
  void clear_error() ;
  const ::deviceapis::device::v1::EditSosResponse_Error& error() const;
  PROTOBUF_NODISCARD ::deviceapis::device::v1::EditSosResponse_Error* release_error();
  ::deviceapis::device::v1::EditSosResponse_Error* mutable_error();
  void set_allocated_error(::deviceapis::device::v1::EditSosResponse_Error* error);
  private:
  const ::deviceapis::device::v1::EditSosResponse_Error& _internal_error() const;
  ::deviceapis::device::v1::EditSosResponse_Error* _internal_mutable_error();
  public:
  void unsafe_arena_set_allocated_error(
      ::deviceapis::device::v1::EditSosResponse_Error* error);
  ::deviceapis::device::v1::EditSosResponse_Error* unsafe_arena_release_error();
  void clear_type();
  TypeCase type_case() const;
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.EditSosResponse)
 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::Sos* data_;
      ::deviceapis::device::v1::EditSosResponse_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_5fsos_5fv1_2eproto;
};// -------------------------------------------------------------------

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

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

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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

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

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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

  enum : int {
    kSipInviteFieldNumber = 2,
    kSipServerFieldNumber = 3,
    kIsSosOnFieldNumber = 1,
  };
  // string sip_invite = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_sip_invite() ;
  const std::string& sip_invite() const;




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_sip_invite(Arg_&& arg, Args_... args);
  std::string* mutable_sip_invite();
  PROTOBUF_NODISCARD std::string* release_sip_invite();
  void set_allocated_sip_invite(std::string* ptr);

  private:
  const std::string& _internal_sip_invite() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_sip_invite(
      const std::string& value);
  std::string* _internal_mutable_sip_invite();

  public:
  // string sip_server = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_sip_server() ;
  const std::string& sip_server() const;




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_sip_server(Arg_&& arg, Args_... args);
  std::string* mutable_sip_server();
  PROTOBUF_NODISCARD std::string* release_sip_server();
  void set_allocated_sip_server(std::string* ptr);

  private:
  const std::string& _internal_sip_server() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_sip_server(
      const std::string& value);
  std::string* _internal_mutable_sip_server();

  public:
  // bool is_sos_on = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_is_sos_on() ;
  bool is_sos_on() const;
  void set_is_sos_on(bool value);

  private:
  bool _internal_is_sos_on() const;
  void _internal_set_is_sos_on(bool value);

  public:
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.Sos)
 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 sip_invite_;
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sip_server_;
    bool is_sos_on_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fsos_5fv1_2eproto;
};

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




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


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

// EditSosRequest

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

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

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

// EditSosResponse_Error

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

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

// EditSosResponse

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

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

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

// GetSosRequest

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

// GetSosResponse

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

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

// Sos

// bool is_sos_on = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void Sos::clear_is_sos_on() {
  _impl_.is_sos_on_ = false;
}
inline bool Sos::is_sos_on() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Sos.is_sos_on)
  return _internal_is_sos_on();
}
inline void Sos::set_is_sos_on(bool value) {
  _internal_set_is_sos_on(value);
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Sos.is_sos_on)
}
inline bool Sos::_internal_is_sos_on() const {
  return _impl_.is_sos_on_;
}
inline void Sos::_internal_set_is_sos_on(bool value) {
  ;
  _impl_.is_sos_on_ = value;
}

// string sip_invite = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void Sos::clear_sip_invite() {
  _impl_.sip_invite_.ClearToEmpty();
}
inline const std::string& Sos::sip_invite() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Sos.sip_invite)
  return _internal_sip_invite();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Sos::set_sip_invite(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.sip_invite_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Sos.sip_invite)
}
inline std::string* Sos::mutable_sip_invite() {
  std::string* _s = _internal_mutable_sip_invite();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.Sos.sip_invite)
  return _s;
}
inline const std::string& Sos::_internal_sip_invite() const {
  return _impl_.sip_invite_.Get();
}
inline void Sos::_internal_set_sip_invite(const std::string& value) {
  ;


  _impl_.sip_invite_.Set(value, GetArenaForAllocation());
}
inline std::string* Sos::_internal_mutable_sip_invite() {
  ;
  return _impl_.sip_invite_.Mutable( GetArenaForAllocation());
}
inline std::string* Sos::release_sip_invite() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.Sos.sip_invite)
  return _impl_.sip_invite_.Release();
}
inline void Sos::set_allocated_sip_invite(std::string* value) {
  _impl_.sip_invite_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.sip_invite_.IsDefault()) {
          _impl_.sip_invite_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.Sos.sip_invite)
}

// string sip_server = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void Sos::clear_sip_server() {
  _impl_.sip_server_.ClearToEmpty();
}
inline const std::string& Sos::sip_server() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Sos.sip_server)
  return _internal_sip_server();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Sos::set_sip_server(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.sip_server_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Sos.sip_server)
}
inline std::string* Sos::mutable_sip_server() {
  std::string* _s = _internal_mutable_sip_server();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.Sos.sip_server)
  return _s;
}
inline const std::string& Sos::_internal_sip_server() const {
  return _impl_.sip_server_.Get();
}
inline void Sos::_internal_set_sip_server(const std::string& value) {
  ;


  _impl_.sip_server_.Set(value, GetArenaForAllocation());
}
inline std::string* Sos::_internal_mutable_sip_server() {
  ;
  return _impl_.sip_server_.Mutable( GetArenaForAllocation());
}
inline std::string* Sos::release_sip_server() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.Sos.sip_server)
  return _impl_.sip_server_.Release();
}
inline void Sos::set_allocated_sip_server(std::string* value) {
  _impl_.sip_server_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.sip_server_.IsDefault()) {
          _impl_.sip_server_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.Sos.sip_server)
}

#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_5fsos_5fv1_2eproto_2epb_2eh
