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

#ifndef GOOGLE_PROTOBUF_INCLUDED_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fupdate_5fv1_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fupdate_5fv1_2eproto_2epb_2eh

#include <limits>
#include <string>
#include <type_traits>

#include "google/protobuf/port_def.inc"
#if PROTOBUF_VERSION < 4023000
#error "This file was generated by a newer version of protoc which is"
#error "incompatible with your Protocol Buffer headers. Please update"
#error "your headers."
#endif  // PROTOBUF_VERSION

#if 4023001 < PROTOBUF_MIN_PROTOC_VERSION
#error "This file was generated by an older version of protoc which is"
#error "incompatible with your Protocol Buffer headers. Please"
#error "regenerate this file with a newer version of protoc."
#endif  // PROTOBUF_MIN_PROTOC_VERSION
#include "google/protobuf/port_undef.inc"
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "google/api/annotations.pb.h"
#include "google/api/field_behavior.pb.h"
#include "deviceapis/device/v1/deviceapis_device_common_v1.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_5fupdate_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_5fupdate_5fv1_2eproto {
  static const ::uint32_t offsets[];
};
namespace deviceapis {
namespace device {
namespace v1 {
class PostUpdateApplyRequest;
struct PostUpdateApplyRequestDefaultTypeInternal;
extern PostUpdateApplyRequestDefaultTypeInternal _PostUpdateApplyRequest_default_instance_;
class PostUpdateApplyResponse;
struct PostUpdateApplyResponseDefaultTypeInternal;
extern PostUpdateApplyResponseDefaultTypeInternal _PostUpdateApplyResponse_default_instance_;
class PostUpdateDownloadRequest;
struct PostUpdateDownloadRequestDefaultTypeInternal;
extern PostUpdateDownloadRequestDefaultTypeInternal _PostUpdateDownloadRequest_default_instance_;
class PostUpdateDownloadResponse;
struct PostUpdateDownloadResponseDefaultTypeInternal;
extern PostUpdateDownloadResponseDefaultTypeInternal _PostUpdateDownloadResponse_default_instance_;
class PostUpdateDownloadResponse_Error;
struct PostUpdateDownloadResponse_ErrorDefaultTypeInternal;
extern PostUpdateDownloadResponse_ErrorDefaultTypeInternal _PostUpdateDownloadResponse_Error_default_instance_;
}  // namespace v1
}  // namespace device
}  // namespace deviceapis
PROTOBUF_NAMESPACE_OPEN
template <>
::deviceapis::device::v1::PostUpdateApplyRequest* Arena::CreateMaybeMessage<::deviceapis::device::v1::PostUpdateApplyRequest>(Arena*);
template <>
::deviceapis::device::v1::PostUpdateApplyResponse* Arena::CreateMaybeMessage<::deviceapis::device::v1::PostUpdateApplyResponse>(Arena*);
template <>
::deviceapis::device::v1::PostUpdateDownloadRequest* Arena::CreateMaybeMessage<::deviceapis::device::v1::PostUpdateDownloadRequest>(Arena*);
template <>
::deviceapis::device::v1::PostUpdateDownloadResponse* Arena::CreateMaybeMessage<::deviceapis::device::v1::PostUpdateDownloadResponse>(Arena*);
template <>
::deviceapis::device::v1::PostUpdateDownloadResponse_Error* Arena::CreateMaybeMessage<::deviceapis::device::v1::PostUpdateDownloadResponse_Error>(Arena*);
PROTOBUF_NAMESPACE_CLOSE

namespace deviceapis {
namespace device {
namespace v1 {

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


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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

  enum : int {
    kFtpPathFieldNumber = 1,
    kFileNameFieldNumber = 2,
    kUpdateModeFieldNumber = 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 update_mode = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
  void clear_update_mode() ;
  const std::string& update_mode() const;




  template <typename Arg_ = const std::string&, typename... Args_>
  void set_update_mode(Arg_&& arg, Args_... args);
  std::string* mutable_update_mode();
  PROTOBUF_NODISCARD std::string* release_update_mode();
  void set_allocated_update_mode(std::string* ptr);

  private:
  const std::string& _internal_update_mode() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_update_mode(
      const std::string& value);
  std::string* _internal_mutable_update_mode();

  public:
  // @@protoc_insertion_point(class_scope:deviceapis.device.v1.PostUpdateDownloadRequest)
 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 update_mode_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_deviceapis_2fdevice_2fv1_2fdeviceapis_5fdevice_5fupdate_5fv1_2eproto;
};// -------------------------------------------------------------------

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

  typedef PostUpdateDownloadResponse_Error Error;

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

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

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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

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

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

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

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

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

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

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

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

  std::string GetTypeName() const final;

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

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

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

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




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


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

// PostUpdateDownloadRequest

// string ftp_path = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void PostUpdateDownloadRequest::clear_ftp_path() {
  _impl_.ftp_path_.ClearToEmpty();
}
inline const std::string& PostUpdateDownloadRequest::ftp_path() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.PostUpdateDownloadRequest.ftp_path)
  return _internal_ftp_path();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void PostUpdateDownloadRequest::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.PostUpdateDownloadRequest.ftp_path)
}
inline std::string* PostUpdateDownloadRequest::mutable_ftp_path() {
  std::string* _s = _internal_mutable_ftp_path();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.PostUpdateDownloadRequest.ftp_path)
  return _s;
}
inline const std::string& PostUpdateDownloadRequest::_internal_ftp_path() const {
  return _impl_.ftp_path_.Get();
}
inline void PostUpdateDownloadRequest::_internal_set_ftp_path(const std::string& value) {
  ;


  _impl_.ftp_path_.Set(value, GetArenaForAllocation());
}
inline std::string* PostUpdateDownloadRequest::_internal_mutable_ftp_path() {
  ;
  return _impl_.ftp_path_.Mutable( GetArenaForAllocation());
}
inline std::string* PostUpdateDownloadRequest::release_ftp_path() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.PostUpdateDownloadRequest.ftp_path)
  return _impl_.ftp_path_.Release();
}
inline void PostUpdateDownloadRequest::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.PostUpdateDownloadRequest.ftp_path)
}

// string file_name = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void PostUpdateDownloadRequest::clear_file_name() {
  _impl_.file_name_.ClearToEmpty();
}
inline const std::string& PostUpdateDownloadRequest::file_name() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.PostUpdateDownloadRequest.file_name)
  return _internal_file_name();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void PostUpdateDownloadRequest::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.PostUpdateDownloadRequest.file_name)
}
inline std::string* PostUpdateDownloadRequest::mutable_file_name() {
  std::string* _s = _internal_mutable_file_name();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.PostUpdateDownloadRequest.file_name)
  return _s;
}
inline const std::string& PostUpdateDownloadRequest::_internal_file_name() const {
  return _impl_.file_name_.Get();
}
inline void PostUpdateDownloadRequest::_internal_set_file_name(const std::string& value) {
  ;


  _impl_.file_name_.Set(value, GetArenaForAllocation());
}
inline std::string* PostUpdateDownloadRequest::_internal_mutable_file_name() {
  ;
  return _impl_.file_name_.Mutable( GetArenaForAllocation());
}
inline std::string* PostUpdateDownloadRequest::release_file_name() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.PostUpdateDownloadRequest.file_name)
  return _impl_.file_name_.Release();
}
inline void PostUpdateDownloadRequest::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.PostUpdateDownloadRequest.file_name)
}

// string update_mode = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
inline void PostUpdateDownloadRequest::clear_update_mode() {
  _impl_.update_mode_.ClearToEmpty();
}
inline const std::string& PostUpdateDownloadRequest::update_mode() const {
  // @@protoc_insertion_point(field_get:deviceapis.device.v1.PostUpdateDownloadRequest.update_mode)
  return _internal_update_mode();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void PostUpdateDownloadRequest::set_update_mode(Arg_&& arg,
                                                     Args_... args) {
  ;
  _impl_.update_mode_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:deviceapis.device.v1.PostUpdateDownloadRequest.update_mode)
}
inline std::string* PostUpdateDownloadRequest::mutable_update_mode() {
  std::string* _s = _internal_mutable_update_mode();
  // @@protoc_insertion_point(field_mutable:deviceapis.device.v1.PostUpdateDownloadRequest.update_mode)
  return _s;
}
inline const std::string& PostUpdateDownloadRequest::_internal_update_mode() const {
  return _impl_.update_mode_.Get();
}
inline void PostUpdateDownloadRequest::_internal_set_update_mode(const std::string& value) {
  ;


  _impl_.update_mode_.Set(value, GetArenaForAllocation());
}
inline std::string* PostUpdateDownloadRequest::_internal_mutable_update_mode() {
  ;
  return _impl_.update_mode_.Mutable( GetArenaForAllocation());
}
inline std::string* PostUpdateDownloadRequest::release_update_mode() {
  // @@protoc_insertion_point(field_release:deviceapis.device.v1.PostUpdateDownloadRequest.update_mode)
  return _impl_.update_mode_.Release();
}
inline void PostUpdateDownloadRequest::set_allocated_update_mode(std::string* value) {
  _impl_.update_mode_.SetAllocated(value, GetArenaForAllocation());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.update_mode_.IsDefault()) {
          _impl_.update_mode_.Set("", GetArenaForAllocation());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:deviceapis.device.v1.PostUpdateDownloadRequest.update_mode)
}

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

// PostUpdateDownloadResponse_Error

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

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

// PostUpdateDownloadResponse

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

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

// PostUpdateApplyRequest

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

// PostUpdateApplyResponse

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