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

#ifndef GOOGLE_PROTOBUF_INCLUDED_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fftp_5fv1_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fftp_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_5fftp_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_5fftp_5fv1_2eproto {
  static const ::uint32_t offsets[];
};
namespace deviceapis {
namespace device {
namespace v1 {
class EditFtpRequest;
struct EditFtpRequestDefaultTypeInternal;
extern EditFtpRequestDefaultTypeInternal _EditFtpRequest_default_instance_;
class EditFtpResponse;
struct EditFtpResponseDefaultTypeInternal;
extern EditFtpResponseDefaultTypeInternal _EditFtpResponse_default_instance_;
class EditFtpResponse_Error;
struct EditFtpResponse_ErrorDefaultTypeInternal;
extern EditFtpResponse_ErrorDefaultTypeInternal _EditFtpResponse_Error_default_instance_;
class Ftp;
struct FtpDefaultTypeInternal;
extern FtpDefaultTypeInternal _Ftp_default_instance_;
class GetFtpRequest;
struct GetFtpRequestDefaultTypeInternal;
extern GetFtpRequestDefaultTypeInternal _GetFtpRequest_default_instance_;
class GetFtpResponse;
struct GetFtpResponseDefaultTypeInternal;
extern GetFtpResponseDefaultTypeInternal _GetFtpResponse_default_instance_;
class PostFtpBackupApplyRequest;
struct PostFtpBackupApplyRequestDefaultTypeInternal;
extern PostFtpBackupApplyRequestDefaultTypeInternal _PostFtpBackupApplyRequest_default_instance_;
class PostFtpBackupApplyResponse;
struct PostFtpBackupApplyResponseDefaultTypeInternal;
extern PostFtpBackupApplyResponseDefaultTypeInternal _PostFtpBackupApplyResponse_default_instance_;
class PostFtpBackupApplyResponse_Error;
struct PostFtpBackupApplyResponse_ErrorDefaultTypeInternal;
extern PostFtpBackupApplyResponse_ErrorDefaultTypeInternal _PostFtpBackupApplyResponse_Error_default_instance_;
class PostFtpBackupRequest;
struct PostFtpBackupRequestDefaultTypeInternal;
extern PostFtpBackupRequestDefaultTypeInternal _PostFtpBackupRequest_default_instance_;
class PostFtpBackupResponse;
struct PostFtpBackupResponseDefaultTypeInternal;
extern PostFtpBackupResponseDefaultTypeInternal _PostFtpBackupResponse_default_instance_;
class PostFtpBackupResponse_Error;
struct PostFtpBackupResponse_ErrorDefaultTypeInternal;
extern PostFtpBackupResponse_ErrorDefaultTypeInternal _PostFtpBackupResponse_Error_default_instance_;
}  // namespace v1
}  // namespace device
}  // namespace deviceapis
PROTOBUF_NAMESPACE_OPEN
template <>
::deviceapis::device::v1::EditFtpRequest* Arena::CreateMaybeMessage<::deviceapis::device::v1::EditFtpRequest>(Arena*);
template <>
::deviceapis::device::v1::EditFtpResponse* Arena::CreateMaybeMessage<::deviceapis::device::v1::EditFtpResponse>(Arena*);
template <>
::deviceapis::device::v1::EditFtpResponse_Error* Arena::CreateMaybeMessage<::deviceapis::device::v1::EditFtpResponse_Error>(Arena*);
template <>
::deviceapis::device::v1::Ftp* Arena::CreateMaybeMessage<::deviceapis::device::v1::Ftp>(Arena*);
template <>
::deviceapis::device::v1::GetFtpRequest* Arena::CreateMaybeMessage<::deviceapis::device::v1::GetFtpRequest>(Arena*);
template <>
::deviceapis::device::v1::GetFtpResponse* Arena::CreateMaybeMessage<::deviceapis::device::v1::GetFtpResponse>(Arena*);
template <>
::deviceapis::device::v1::PostFtpBackupApplyRequest* Arena::CreateMaybeMessage<::deviceapis::device::v1::PostFtpBackupApplyRequest>(Arena*);
template <>
::deviceapis::device::v1::PostFtpBackupApplyResponse* Arena::CreateMaybeMessage<::deviceapis::device::v1::PostFtpBackupApplyResponse>(Arena*);
template <>
::deviceapis::device::v1::PostFtpBackupApplyResponse_Error* Arena::CreateMaybeMessage<::deviceapis::device::v1::PostFtpBackupApplyResponse_Error>(Arena*);
template <>
::deviceapis::device::v1::PostFtpBackupRequest* Arena::CreateMaybeMessage<::deviceapis::device::v1::PostFtpBackupRequest>(Arena*);
template <>
::deviceapis::device::v1::PostFtpBackupResponse* Arena::CreateMaybeMessage<::deviceapis::device::v1::PostFtpBackupResponse>(Arena*);
template <>
::deviceapis::device::v1::PostFtpBackupResponse_Error* Arena::CreateMaybeMessage<::deviceapis::device::v1::PostFtpBackupResponse_Error>(Arena*);
PROTOBUF_NAMESPACE_CLOSE

namespace deviceapis {
namespace device {
namespace v1 {

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


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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

  typedef EditFtpResponse_Error Error;

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

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

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

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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

  enum : int {
    kRegServerAddressFieldNumber = 1,
    kLoginFieldNumber = 2,
    kPasswordFieldNumber = 3,
  };
  // string reg_server_address = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_reg_server_address() ;
  const std::string& reg_server_address() const;




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_reg_server_address(Arg_&& arg, Args_... args);
  std::string* mutable_reg_server_address();
  PROTOBUF_NODISCARD std::string* release_reg_server_address();
  void set_allocated_reg_server_address(std::string* ptr);

  private:
  const std::string& _internal_reg_server_address() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_reg_server_address(
      const std::string& value);
  std::string* _internal_mutable_reg_server_address();

  public:
  // string login = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_login() ;
  const std::string& login() const;




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_login(Arg_&& arg, Args_... args);
  std::string* mutable_login();
  PROTOBUF_NODISCARD std::string* release_login();
  void set_allocated_login(std::string* ptr);

  private:
  const std::string& _internal_login() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_login(
      const std::string& value);
  std::string* _internal_mutable_login();

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




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_password(Arg_&& arg, Args_... args);
  std::string* mutable_password();
  PROTOBUF_NODISCARD std::string* release_password();
  void set_allocated_password(std::string* ptr);

  private:
  const std::string& _internal_password() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_password(
      const std::string& value);
  std::string* _internal_mutable_password();

  public:
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.Ftp)
 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 reg_server_address_;
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr login_;
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fftp_5fv1_2eproto;
};// -------------------------------------------------------------------

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

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

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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

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

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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

  enum : int {
    kFtpPathFieldNumber = 1,
    kFileNameFieldNumber = 2,
    kRestoreOptionsFieldNumber = 3,
  };
  // string ftp_path = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_ftp_path() ;
  const std::string& ftp_path() const;




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_ftp_path(Arg_&& arg, Args_... args);
  std::string* mutable_ftp_path();
  PROTOBUF_NODISCARD std::string* release_ftp_path();
  void set_allocated_ftp_path(std::string* ptr);

  private:
  const std::string& _internal_ftp_path() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_ftp_path(
      const std::string& value);
  std::string* _internal_mutable_ftp_path();

  public:
  // string file_name = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_file_name() ;
  const std::string& file_name() const;




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_file_name(Arg_&& arg, Args_... args);
  std::string* mutable_file_name();
  PROTOBUF_NODISCARD std::string* release_file_name();
  void set_allocated_file_name(std::string* ptr);

  private:
  const std::string& _internal_file_name() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(
      const std::string& value);
  std::string* _internal_mutable_file_name();

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




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_restore_options(Arg_&& arg, Args_... args);
  std::string* mutable_restore_options();
  PROTOBUF_NODISCARD std::string* release_restore_options();
  void set_allocated_restore_options(std::string* ptr);

  private:
  const std::string& _internal_restore_options() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_restore_options(
      const std::string& value);
  std::string* _internal_mutable_restore_options();

  public:
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.PostFtpBackupApplyRequest)
 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 ftp_path_;
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr restore_options_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fftp_5fv1_2eproto;
};// -------------------------------------------------------------------

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

  typedef PostFtpBackupApplyResponse_Error Error;

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

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

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

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

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    union TypeUnion {
      constexpr TypeUnion() : _constinit_{} {}
        ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
      ::deviceapis::device::v1::PostFtpBackupApplyResponse_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_5fftp_5fv1_2eproto;
};// -------------------------------------------------------------------

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

  enum : int {
    kFtpPathFieldNumber = 1,
    kFileNameFieldNumber = 2,
    kBackupTypeFieldNumber = 3,
  };
  // string ftp_path = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_ftp_path() ;
  const std::string& ftp_path() const;




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_ftp_path(Arg_&& arg, Args_... args);
  std::string* mutable_ftp_path();
  PROTOBUF_NODISCARD std::string* release_ftp_path();
  void set_allocated_ftp_path(std::string* ptr);

  private:
  const std::string& _internal_ftp_path() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_ftp_path(
      const std::string& value);
  std::string* _internal_mutable_ftp_path();

  public:
  // string file_name = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_file_name() ;
  const std::string& file_name() const;




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_file_name(Arg_&& arg, Args_... args);
  std::string* mutable_file_name();
  PROTOBUF_NODISCARD std::string* release_file_name();
  void set_allocated_file_name(std::string* ptr);

  private:
  const std::string& _internal_file_name() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(
      const std::string& value);
  std::string* _internal_mutable_file_name();

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




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_backup_type(Arg_&& arg, Args_... args);
  std::string* mutable_backup_type();
  PROTOBUF_NODISCARD std::string* release_backup_type();
  void set_allocated_backup_type(std::string* ptr);

  private:
  const std::string& _internal_backup_type() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_backup_type(
      const std::string& value);
  std::string* _internal_mutable_backup_type();

  public:
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.PostFtpBackupRequest)
 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 ftp_path_;
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr backup_type_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fftp_5fv1_2eproto;
};// -------------------------------------------------------------------

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

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

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

  static inline const PostFtpBackupResponse_Error* internal_default_instance() {
    return reinterpret_cast<const PostFtpBackupResponse_Error*>(
               &_PostFtpBackupResponse_Error_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    10;

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

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

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

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

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

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

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

  static inline const PostFtpBackupResponse* internal_default_instance() {
    return reinterpret_cast<const PostFtpBackupResponse*>(
               &_PostFtpBackupResponse_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    11;

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

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

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

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

  std::string GetTypeName() const final;

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

  typedef PostFtpBackupResponse_Error Error;

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

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

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

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

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    union TypeUnion {
      constexpr TypeUnion() : _constinit_{} {}
        ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
      ::deviceapis::device::v1::PostFtpBackupResponse_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_5fftp_5fv1_2eproto;
};

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




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


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

// EditFtpRequest

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

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

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

// EditFtpResponse_Error

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

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

// EditFtpResponse

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

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

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

// Ftp

// string reg_server_address = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void Ftp::clear_reg_server_address() {
  _impl_.reg_server_address_.ClearToEmpty();
}
inline const std::string& Ftp::reg_server_address() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Ftp.reg_server_address)
  return _internal_reg_server_address();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Ftp::set_reg_server_address(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.reg_server_address_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Ftp.reg_server_address)
}
inline std::string* Ftp::mutable_reg_server_address() {
  std::string* _s = _internal_mutable_reg_server_address();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.Ftp.reg_server_address)
  return _s;
}
inline const std::string& Ftp::_internal_reg_server_address() const {
  return _impl_.reg_server_address_.Get();
}
inline void Ftp::_internal_set_reg_server_address(const std::string& value) {
  ;


  _impl_.reg_server_address_.Set(value, GetArenaForAllocation());
}
inline std::string* Ftp::_internal_mutable_reg_server_address() {
  ;
  return _impl_.reg_server_address_.Mutable( GetArenaForAllocation());
}
inline std::string* Ftp::release_reg_server_address() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.Ftp.reg_server_address)
  return _impl_.reg_server_address_.Release();
}
inline void Ftp::set_allocated_reg_server_address(std::string* value) {
  _impl_.reg_server_address_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.reg_server_address_.IsDefault()) {
          _impl_.reg_server_address_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.Ftp.reg_server_address)
}

// string login = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void Ftp::clear_login() {
  _impl_.login_.ClearToEmpty();
}
inline const std::string& Ftp::login() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Ftp.login)
  return _internal_login();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Ftp::set_login(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.login_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Ftp.login)
}
inline std::string* Ftp::mutable_login() {
  std::string* _s = _internal_mutable_login();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.Ftp.login)
  return _s;
}
inline const std::string& Ftp::_internal_login() const {
  return _impl_.login_.Get();
}
inline void Ftp::_internal_set_login(const std::string& value) {
  ;


  _impl_.login_.Set(value, GetArenaForAllocation());
}
inline std::string* Ftp::_internal_mutable_login() {
  ;
  return _impl_.login_.Mutable( GetArenaForAllocation());
}
inline std::string* Ftp::release_login() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.Ftp.login)
  return _impl_.login_.Release();
}
inline void Ftp::set_allocated_login(std::string* value) {
  _impl_.login_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.login_.IsDefault()) {
          _impl_.login_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.Ftp.login)
}

// string password = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void Ftp::clear_password() {
  _impl_.password_.ClearToEmpty();
}
inline const std::string& Ftp::password() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.Ftp.password)
  return _internal_password();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Ftp::set_password(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.password_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.Ftp.password)
}
inline std::string* Ftp::mutable_password() {
  std::string* _s = _internal_mutable_password();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.Ftp.password)
  return _s;
}
inline const std::string& Ftp::_internal_password() const {
  return _impl_.password_.Get();
}
inline void Ftp::_internal_set_password(const std::string& value) {
  ;


  _impl_.password_.Set(value, GetArenaForAllocation());
}
inline std::string* Ftp::_internal_mutable_password() {
  ;
  return _impl_.password_.Mutable( GetArenaForAllocation());
}
inline std::string* Ftp::release_password() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.Ftp.password)
  return _impl_.password_.Release();
}
inline void Ftp::set_allocated_password(std::string* value) {
  _impl_.password_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.password_.IsDefault()) {
          _impl_.password_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.Ftp.password)
}

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

// GetFtpRequest

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

// GetFtpResponse

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

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

// PostFtpBackupApplyRequest

// string ftp_path = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void PostFtpBackupApplyRequest::clear_ftp_path() {
  _impl_.ftp_path_.ClearToEmpty();
}
inline const std::string& PostFtpBackupApplyRequest::ftp_path() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.PostFtpBackupApplyRequest.ftp_path)
  return _internal_ftp_path();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void PostFtpBackupApplyRequest::set_ftp_path(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.ftp_path_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.PostFtpBackupApplyRequest.ftp_path)
}
inline std::string* PostFtpBackupApplyRequest::mutable_ftp_path() {
  std::string* _s = _internal_mutable_ftp_path();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.PostFtpBackupApplyRequest.ftp_path)
  return _s;
}
inline const std::string& PostFtpBackupApplyRequest::_internal_ftp_path() const {
  return _impl_.ftp_path_.Get();
}
inline void PostFtpBackupApplyRequest::_internal_set_ftp_path(const std::string& value) {
  ;


  _impl_.ftp_path_.Set(value, GetArenaForAllocation());
}
inline std::string* PostFtpBackupApplyRequest::_internal_mutable_ftp_path() {
  ;
  return _impl_.ftp_path_.Mutable( GetArenaForAllocation());
}
inline std::string* PostFtpBackupApplyRequest::release_ftp_path() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.PostFtpBackupApplyRequest.ftp_path)
  return _impl_.ftp_path_.Release();
}
inline void PostFtpBackupApplyRequest::set_allocated_ftp_path(std::string* value) {
  _impl_.ftp_path_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.ftp_path_.IsDefault()) {
          _impl_.ftp_path_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.PostFtpBackupApplyRequest.ftp_path)
}

// string file_name = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void PostFtpBackupApplyRequest::clear_file_name() {
  _impl_.file_name_.ClearToEmpty();
}
inline const std::string& PostFtpBackupApplyRequest::file_name() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.PostFtpBackupApplyRequest.file_name)
  return _internal_file_name();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void PostFtpBackupApplyRequest::set_file_name(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.file_name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.PostFtpBackupApplyRequest.file_name)
}
inline std::string* PostFtpBackupApplyRequest::mutable_file_name() {
  std::string* _s = _internal_mutable_file_name();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.PostFtpBackupApplyRequest.file_name)
  return _s;
}
inline const std::string& PostFtpBackupApplyRequest::_internal_file_name() const {
  return _impl_.file_name_.Get();
}
inline void PostFtpBackupApplyRequest::_internal_set_file_name(const std::string& value) {
  ;


  _impl_.file_name_.Set(value, GetArenaForAllocation());
}
inline std::string* PostFtpBackupApplyRequest::_internal_mutable_file_name() {
  ;
  return _impl_.file_name_.Mutable( GetArenaForAllocation());
}
inline std::string* PostFtpBackupApplyRequest::release_file_name() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.PostFtpBackupApplyRequest.file_name)
  return _impl_.file_name_.Release();
}
inline void PostFtpBackupApplyRequest::set_allocated_file_name(std::string* value) {
  _impl_.file_name_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.file_name_.IsDefault()) {
          _impl_.file_name_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.PostFtpBackupApplyRequest.file_name)
}

// string restore_options = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void PostFtpBackupApplyRequest::clear_restore_options() {
  _impl_.restore_options_.ClearToEmpty();
}
inline const std::string& PostFtpBackupApplyRequest::restore_options() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.PostFtpBackupApplyRequest.restore_options)
  return _internal_restore_options();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void PostFtpBackupApplyRequest::set_restore_options(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.restore_options_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.PostFtpBackupApplyRequest.restore_options)
}
inline std::string* PostFtpBackupApplyRequest::mutable_restore_options() {
  std::string* _s = _internal_mutable_restore_options();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.PostFtpBackupApplyRequest.restore_options)
  return _s;
}
inline const std::string& PostFtpBackupApplyRequest::_internal_restore_options() const {
  return _impl_.restore_options_.Get();
}
inline void PostFtpBackupApplyRequest::_internal_set_restore_options(const std::string& value) {
  ;


  _impl_.restore_options_.Set(value, GetArenaForAllocation());
}
inline std::string* PostFtpBackupApplyRequest::_internal_mutable_restore_options() {
  ;
  return _impl_.restore_options_.Mutable( GetArenaForAllocation());
}
inline std::string* PostFtpBackupApplyRequest::release_restore_options() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.PostFtpBackupApplyRequest.restore_options)
  return _impl_.restore_options_.Release();
}
inline void PostFtpBackupApplyRequest::set_allocated_restore_options(std::string* value) {
  _impl_.restore_options_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.restore_options_.IsDefault()) {
          _impl_.restore_options_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.PostFtpBackupApplyRequest.restore_options)
}

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

// PostFtpBackupApplyResponse_Error

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

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

// PostFtpBackupApplyResponse

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

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

// PostFtpBackupRequest

// string ftp_path = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void PostFtpBackupRequest::clear_ftp_path() {
  _impl_.ftp_path_.ClearToEmpty();
}
inline const std::string& PostFtpBackupRequest::ftp_path() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.PostFtpBackupRequest.ftp_path)
  return _internal_ftp_path();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void PostFtpBackupRequest::set_ftp_path(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.ftp_path_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.PostFtpBackupRequest.ftp_path)
}
inline std::string* PostFtpBackupRequest::mutable_ftp_path() {
  std::string* _s = _internal_mutable_ftp_path();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.PostFtpBackupRequest.ftp_path)
  return _s;
}
inline const std::string& PostFtpBackupRequest::_internal_ftp_path() const {
  return _impl_.ftp_path_.Get();
}
inline void PostFtpBackupRequest::_internal_set_ftp_path(const std::string& value) {
  ;


  _impl_.ftp_path_.Set(value, GetArenaForAllocation());
}
inline std::string* PostFtpBackupRequest::_internal_mutable_ftp_path() {
  ;
  return _impl_.ftp_path_.Mutable( GetArenaForAllocation());
}
inline std::string* PostFtpBackupRequest::release_ftp_path() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.PostFtpBackupRequest.ftp_path)
  return _impl_.ftp_path_.Release();
}
inline void PostFtpBackupRequest::set_allocated_ftp_path(std::string* value) {
  _impl_.ftp_path_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.ftp_path_.IsDefault()) {
          _impl_.ftp_path_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.PostFtpBackupRequest.ftp_path)
}

// string file_name = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void PostFtpBackupRequest::clear_file_name() {
  _impl_.file_name_.ClearToEmpty();
}
inline const std::string& PostFtpBackupRequest::file_name() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.PostFtpBackupRequest.file_name)
  return _internal_file_name();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void PostFtpBackupRequest::set_file_name(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.file_name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.PostFtpBackupRequest.file_name)
}
inline std::string* PostFtpBackupRequest::mutable_file_name() {
  std::string* _s = _internal_mutable_file_name();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.PostFtpBackupRequest.file_name)
  return _s;
}
inline const std::string& PostFtpBackupRequest::_internal_file_name() const {
  return _impl_.file_name_.Get();
}
inline void PostFtpBackupRequest::_internal_set_file_name(const std::string& value) {
  ;


  _impl_.file_name_.Set(value, GetArenaForAllocation());
}
inline std::string* PostFtpBackupRequest::_internal_mutable_file_name() {
  ;
  return _impl_.file_name_.Mutable( GetArenaForAllocation());
}
inline std::string* PostFtpBackupRequest::release_file_name() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.PostFtpBackupRequest.file_name)
  return _impl_.file_name_.Release();
}
inline void PostFtpBackupRequest::set_allocated_file_name(std::string* value) {
  _impl_.file_name_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.file_name_.IsDefault()) {
          _impl_.file_name_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.PostFtpBackupRequest.file_name)
}

// string backup_type = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void PostFtpBackupRequest::clear_backup_type() {
  _impl_.backup_type_.ClearToEmpty();
}
inline const std::string& PostFtpBackupRequest::backup_type() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.PostFtpBackupRequest.backup_type)
  return _internal_backup_type();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void PostFtpBackupRequest::set_backup_type(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.backup_type_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.PostFtpBackupRequest.backup_type)
}
inline std::string* PostFtpBackupRequest::mutable_backup_type() {
  std::string* _s = _internal_mutable_backup_type();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.PostFtpBackupRequest.backup_type)
  return _s;
}
inline const std::string& PostFtpBackupRequest::_internal_backup_type() const {
  return _impl_.backup_type_.Get();
}
inline void PostFtpBackupRequest::_internal_set_backup_type(const std::string& value) {
  ;


  _impl_.backup_type_.Set(value, GetArenaForAllocation());
}
inline std::string* PostFtpBackupRequest::_internal_mutable_backup_type() {
  ;
  return _impl_.backup_type_.Mutable( GetArenaForAllocation());
}
inline std::string* PostFtpBackupRequest::release_backup_type() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.PostFtpBackupRequest.backup_type)
  return _impl_.backup_type_.Release();
}
inline void PostFtpBackupRequest::set_allocated_backup_type(std::string* value) {
  _impl_.backup_type_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.backup_type_.IsDefault()) {
          _impl_.backup_type_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.PostFtpBackupRequest.backup_type)
}

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

// PostFtpBackupResponse_Error

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

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

// PostFtpBackupResponse

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

inline bool PostFtpBackupResponse::has_type() const {
  return type_case() != TYPE_NOT_SET;
}
inline void PostFtpBackupResponse::clear_has_type() {
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}
inline PostFtpBackupResponse::TypeCase PostFtpBackupResponse::type_case() const {
  return PostFtpBackupResponse::TypeCase(_impl_._oneof_case_[0]);
}
#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_5fftp_5fv1_2eproto_2epb_2eh
