// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: api/logtracer/client/v1/error.proto

#ifndef GOOGLE_PROTOBUF_INCLUDED_api_2flogtracer_2fclient_2fv1_2ferror_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_api_2flogtracer_2fclient_2fv1_2ferror_2eproto

#include <limits>
#include <string>


#include <herogoogle/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3018000
#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
#if 3018000 < 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


#include <herogoogle/protobuf/io/coded_stream.h>
#include <herogoogle/protobuf/arena.h>
#include <herogoogle/protobuf/arenastring.h>
#include <herogoogle/protobuf/generated_message_table_driven.h>
#include <herogoogle/protobuf/generated_message_util.h>
#include <herogoogle/protobuf/metadata_lite.h>
#include <herogoogle/protobuf/generated_message_reflection.h>
#include <herogoogle/protobuf/message.h>
#include <herogoogle/protobuf/repeated_field.h>  // IWYU pragma: export
#include <herogoogle/protobuf/extension_set.h>  // IWYU pragma: export
#include <herogoogle/protobuf/map.h>  // IWYU pragma: export
#include <herogoogle/protobuf/map_entry.h>
#include <herogoogle/protobuf/map_field_inl.h>
#include <herogoogle/protobuf/generated_enum_reflection.h>
#include <herogoogle/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)

#define PROTOBUF_INTERNAL_EXPORT_api_2flogtracer_2fclient_2fv1_2ferror_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
}  // namespace internal
PROTOBUF_NAMESPACE_CLOSE

// Internal implementation detail -- do not use these members.
struct TableStruct_api_2flogtracer_2fclient_2fv1_2ferror_2eproto {
  static const ::herogoogle::protobuf::internal::ParseTableField entries[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::herogoogle::protobuf::internal::AuxiliaryParseTableField aux[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::herogoogle::protobuf::internal::ParseTable schema[2]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::herogoogle::protobuf::internal::FieldMetadata field_metadata[];
  static const ::herogoogle::protobuf::internal::SerializationTable serialization_table[];
  static const ::herogoogle::protobuf::uint32 offsets[];
};
extern const ::herogoogle::protobuf::internal::DescriptorTable descriptor_table_api_2flogtracer_2fclient_2fv1_2ferror_2eproto;
namespace logtracer {
namespace client {
namespace v1 {
class Error;
struct ErrorDefaultTypeInternal;
extern ErrorDefaultTypeInternal _Error_default_instance_;
class Error_MetadataEntry_DoNotUse;
struct Error_MetadataEntry_DoNotUseDefaultTypeInternal;
extern Error_MetadataEntry_DoNotUseDefaultTypeInternal _Error_MetadataEntry_DoNotUse_default_instance_;
}  // namespace v1
}  // namespace client
}  // namespace logtracer
PROTOBUF_NAMESPACE_OPEN
template<> ::logtracer::client::v1::Error* Arena::CreateMaybeMessage<::logtracer::client::v1::Error>(Arena*);
template<> ::logtracer::client::v1::Error_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::logtracer::client::v1::Error_MetadataEntry_DoNotUse>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace logtracer {
namespace client {
namespace v1 {

enum ErrorReason : int {
  UN_SPECIFIED = 0,
  API_NOT_FOUND = 1,
  SIGN_INVALID = 2,
  ErrorReason_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::herogoogle::protobuf::int32>::min(),
  ErrorReason_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::herogoogle::protobuf::int32>::max()
};
bool ErrorReason_IsValid(int value);
constexpr ErrorReason ErrorReason_MIN = UN_SPECIFIED;
constexpr ErrorReason ErrorReason_MAX = SIGN_INVALID;
constexpr int ErrorReason_ARRAYSIZE = ErrorReason_MAX + 1;

const ::herogoogle::protobuf::EnumDescriptor* ErrorReason_descriptor();
template<typename T>
inline const std::string& ErrorReason_Name(T enum_t_value) {
  static_assert(::std::is_same<T, ErrorReason>::value ||
    ::std::is_integral<T>::value,
    "Incorrect type passed to function ErrorReason_Name.");
  return ::herogoogle::protobuf::internal::NameOfEnum(
    ErrorReason_descriptor(), enum_t_value);
}
inline bool ErrorReason_Parse(
    ::herogoogle::protobuf::ConstStringParam name, ErrorReason* value) {
  return ::herogoogle::protobuf::internal::ParseNamedEnum<ErrorReason>(
    ErrorReason_descriptor(), name, value);
}
// ===================================================================

class Error_MetadataEntry_DoNotUse : public ::herogoogle::protobuf::internal::MapEntry<Error_MetadataEntry_DoNotUse, 
    std::string, std::string,
    ::herogoogle::protobuf::internal::WireFormatLite::TYPE_STRING,
    ::herogoogle::protobuf::internal::WireFormatLite::TYPE_STRING> {
public:
  typedef ::herogoogle::protobuf::internal::MapEntry<Error_MetadataEntry_DoNotUse, 
    std::string, std::string,
    ::herogoogle::protobuf::internal::WireFormatLite::TYPE_STRING,
    ::herogoogle::protobuf::internal::WireFormatLite::TYPE_STRING> SuperType;
  Error_MetadataEntry_DoNotUse();
  explicit constexpr Error_MetadataEntry_DoNotUse(
      ::herogoogle::protobuf::internal::ConstantInitialized);
  explicit Error_MetadataEntry_DoNotUse(::herogoogle::protobuf::Arena* arena);
  void MergeFrom(const Error_MetadataEntry_DoNotUse& other);
  static const Error_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const Error_MetadataEntry_DoNotUse*>(&_Error_MetadataEntry_DoNotUse_default_instance_); }
  static bool ValidateKey(std::string* s) {
    return ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::herogoogle::protobuf::internal::WireFormatLite::PARSE, "logtracer.client.v1.Error.MetadataEntry.key");
 }
  static bool ValidateValue(std::string* s) {
    return ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::herogoogle::protobuf::internal::WireFormatLite::PARSE, "logtracer.client.v1.Error.MetadataEntry.value");
 }
  using ::herogoogle::protobuf::Message::MergeFrom;
  ::herogoogle::protobuf::Metadata GetMetadata() const final;
};

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

class Error final :
    public ::herogoogle::protobuf::Message /* @@protoc_insertion_point(class_definition:logtracer.client.v1.Error) */ {
 public:
  inline Error() : Error(nullptr) {}
  ~Error() override;
  explicit constexpr Error(::herogoogle::protobuf::internal::ConstantInitialized);

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

  inline Error& operator=(const Error& from) {
    CopyFrom(from);
    return *this;
  }
  inline Error& operator=(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;
  }

  static const ::herogoogle::protobuf::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::herogoogle::protobuf::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::herogoogle::protobuf::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const Error& default_instance() {
    return *internal_default_instance();
  }
  static inline const Error* internal_default_instance() {
    return reinterpret_cast<const Error*>(
               &_Error_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    1;

  friend void swap(Error& a, Error& b) {
    a.Swap(&b);
  }
  inline void Swap(Error* other) {
    if (other == this) return;
    if (GetOwningArena() == other->GetOwningArena()) {
      InternalSwap(other);
    } else {
      ::herogoogle::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(Error* other) {
    if (other == this) return;
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

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

  inline Error* New() const final {
    return new Error();
  }

  Error* New(::herogoogle::protobuf::Arena* arena) const final {
    return CreateMaybeMessage<Error>(arena);
  }
  using ::herogoogle::protobuf::Message::CopyFrom;
  void CopyFrom(const Error& from);
  using ::herogoogle::protobuf::Message::MergeFrom;
  void MergeFrom(const Error& from);
  private:
  static void MergeImpl(::herogoogle::protobuf::Message* to, const ::herogoogle::protobuf::Message& from);
  public:
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) final;
  ::herogoogle::protobuf::uint8* _InternalSerialize(
      ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(Error* other);
  friend class ::herogoogle::protobuf::internal::AnyMetadata;
  static ::herogoogle::protobuf::StringPiece FullMessageName() {
    return "logtracer.client.v1.Error";
  }
  protected:
  explicit Error(::herogoogle::protobuf::Arena* arena,
                       bool is_message_owned = false);
  private:
  static void ArenaDtor(void* object);
  inline void RegisterArenaDtor(::herogoogle::protobuf::Arena* arena);
  public:

  static const ClassData _class_data_;
  const ::herogoogle::protobuf::Message::ClassData*GetClassData() const final;

  ::herogoogle::protobuf::Metadata GetMetadata() const final;

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


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

  enum : int {
    kMetadataFieldNumber = 4,
    kReasonFieldNumber = 2,
    kMessageFieldNumber = 3,
    kCodeFieldNumber = 1,
  };
  // map<string, string> metadata = 4;
  int metadata_size() const;
  private:
  int _internal_metadata_size() const;
  public:
  void clear_metadata();
  private:
  const ::herogoogle::protobuf::Map< std::string, std::string >&
      _internal_metadata() const;
  ::herogoogle::protobuf::Map< std::string, std::string >*
      _internal_mutable_metadata();
  public:
  const ::herogoogle::protobuf::Map< std::string, std::string >&
      metadata() const;
  ::herogoogle::protobuf::Map< std::string, std::string >*
      mutable_metadata();

  // string reason = 2;
  void clear_reason();
  const std::string& reason() const;
  template <typename ArgT0 = const std::string&, typename... ArgT>
  void set_reason(ArgT0&& arg0, ArgT... args);
  std::string* mutable_reason();
  PROTOBUF_MUST_USE_RESULT std::string* release_reason();
  void set_allocated_reason(std::string* reason);
  private:
  const std::string& _internal_reason() const;
  inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE void _internal_set_reason(const std::string& value);
  std::string* _internal_mutable_reason();
  public:

  // string message = 3;
  void clear_message();
  const std::string& message() const;
  template <typename ArgT0 = const std::string&, typename... ArgT>
  void set_message(ArgT0&& arg0, ArgT... args);
  std::string* mutable_message();
  PROTOBUF_MUST_USE_RESULT std::string* release_message();
  void set_allocated_message(std::string* message);
  private:
  const std::string& _internal_message() const;
  inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE void _internal_set_message(const std::string& value);
  std::string* _internal_mutable_message();
  public:

  // int32 code = 1;
  void clear_code();
  ::herogoogle::protobuf::int32 code() const;
  void set_code(::herogoogle::protobuf::int32 value);
  private:
  ::herogoogle::protobuf::int32 _internal_code() const;
  void _internal_set_code(::herogoogle::protobuf::int32 value);
  public:

  // @@protoc_insertion_point(class_scope:logtracer.client.v1.Error)
 private:
  class _Internal;

  template <typename T> friend class ::herogoogle::protobuf::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  ::herogoogle::protobuf::internal::MapField<
      Error_MetadataEntry_DoNotUse,
      std::string, std::string,
      ::herogoogle::protobuf::internal::WireFormatLite::TYPE_STRING,
      ::herogoogle::protobuf::internal::WireFormatLite::TYPE_STRING> metadata_;
  ::herogoogle::protobuf::internal::ArenaStringPtr reason_;
  ::herogoogle::protobuf::internal::ArenaStringPtr message_;
  ::herogoogle::protobuf::int32 code_;
  mutable ::herogoogle::protobuf::internal::CachedSize _cached_size_;
  friend struct ::TableStruct_api_2flogtracer_2fclient_2fv1_2ferror_2eproto;
};
// ===================================================================


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

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

// Error

// int32 code = 1;
inline void Error::clear_code() {
  code_ = 0;
}
inline ::herogoogle::protobuf::int32 Error::_internal_code() const {
  return code_;
}
inline ::herogoogle::protobuf::int32 Error::code() const {
  // @@protoc_insertion_point(field_get:logtracer.client.v1.Error.code)
  return _internal_code();
}
inline void Error::_internal_set_code(::herogoogle::protobuf::int32 value) {
  
  code_ = value;
}
inline void Error::set_code(::herogoogle::protobuf::int32 value) {
  _internal_set_code(value);
  // @@protoc_insertion_point(field_set:logtracer.client.v1.Error.code)
}

// string reason = 2;
inline void Error::clear_reason() {
  reason_.ClearToEmpty();
}
inline const std::string& Error::reason() const {
  // @@protoc_insertion_point(field_get:logtracer.client.v1.Error.reason)
  return _internal_reason();
}
template <typename ArgT0, typename... ArgT>
inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE
void Error::set_reason(ArgT0&& arg0, ArgT... args) {
 
 reason_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:logtracer.client.v1.Error.reason)
}
inline std::string* Error::mutable_reason() {
  std::string* _s = _internal_mutable_reason();
  // @@protoc_insertion_point(field_mutable:logtracer.client.v1.Error.reason)
  return _s;
}
inline const std::string& Error::_internal_reason() const {
  return reason_.Get();
}
inline void Error::_internal_set_reason(const std::string& value) {
  
  reason_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* Error::_internal_mutable_reason() {
  
  return reason_.Mutable(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* Error::release_reason() {
  // @@protoc_insertion_point(field_release:logtracer.client.v1.Error.reason)
  return reason_.Release(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
}
inline void Error::set_allocated_reason(std::string* reason) {
  if (reason != nullptr) {
    
  } else {
    
  }
  reason_.SetAllocated(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(), reason,
      GetArenaForAllocation());
  // @@protoc_insertion_point(field_set_allocated:logtracer.client.v1.Error.reason)
}

// string message = 3;
inline void Error::clear_message() {
  message_.ClearToEmpty();
}
inline const std::string& Error::message() const {
  // @@protoc_insertion_point(field_get:logtracer.client.v1.Error.message)
  return _internal_message();
}
template <typename ArgT0, typename... ArgT>
inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE
void Error::set_message(ArgT0&& arg0, ArgT... args) {
 
 message_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:logtracer.client.v1.Error.message)
}
inline std::string* Error::mutable_message() {
  std::string* _s = _internal_mutable_message();
  // @@protoc_insertion_point(field_mutable:logtracer.client.v1.Error.message)
  return _s;
}
inline const std::string& Error::_internal_message() const {
  return message_.Get();
}
inline void Error::_internal_set_message(const std::string& value) {
  
  message_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* Error::_internal_mutable_message() {
  
  return message_.Mutable(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* Error::release_message() {
  // @@protoc_insertion_point(field_release:logtracer.client.v1.Error.message)
  return message_.Release(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
}
inline void Error::set_allocated_message(std::string* message) {
  if (message != nullptr) {
    
  } else {
    
  }
  message_.SetAllocated(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(), message,
      GetArenaForAllocation());
  // @@protoc_insertion_point(field_set_allocated:logtracer.client.v1.Error.message)
}

// map<string, string> metadata = 4;
inline int Error::_internal_metadata_size() const {
  return metadata_.size();
}
inline int Error::metadata_size() const {
  return _internal_metadata_size();
}
inline void Error::clear_metadata() {
  metadata_.Clear();
}
inline const ::herogoogle::protobuf::Map< std::string, std::string >&
Error::_internal_metadata() const {
  return metadata_.GetMap();
}
inline const ::herogoogle::protobuf::Map< std::string, std::string >&
Error::metadata() const {
  // @@protoc_insertion_point(field_map:logtracer.client.v1.Error.metadata)
  return _internal_metadata();
}
inline ::herogoogle::protobuf::Map< std::string, std::string >*
Error::_internal_mutable_metadata() {
  return metadata_.MutableMap();
}
inline ::herogoogle::protobuf::Map< std::string, std::string >*
Error::mutable_metadata() {
  // @@protoc_insertion_point(field_mutable_map:logtracer.client.v1.Error.metadata)
  return _internal_mutable_metadata();
}

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


// @@protoc_insertion_point(namespace_scope)

}  // namespace v1
}  // namespace client
}  // namespace logtracer

PROTOBUF_NAMESPACE_OPEN

template <> struct is_proto_enum< ::logtracer::client::v1::ErrorReason> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::logtracer::client::v1::ErrorReason>() {
  return ::logtracer::client::v1::ErrorReason_descriptor();
}

PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)


#endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_api_2flogtracer_2fclient_2fv1_2ferror_2eproto
