diff options
Diffstat (limited to 'Firestore/Protos/cpp/google/rpc')
-rw-r--r-- | Firestore/Protos/cpp/google/rpc/status.pb.cc | 485 | ||||
-rw-r--r-- | Firestore/Protos/cpp/google/rpc/status.pb.h | 321 |
2 files changed, 806 insertions, 0 deletions
diff --git a/Firestore/Protos/cpp/google/rpc/status.pb.cc b/Firestore/Protos/cpp/google/rpc/status.pb.cc new file mode 100644 index 0000000..d0213ae --- /dev/null +++ b/Firestore/Protos/cpp/google/rpc/status.pb.cc @@ -0,0 +1,485 @@ +/* + * Copyright 2018 Google + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/rpc/status.proto + +#include "google/rpc/status.pb.h" + +#include <algorithm> + +#include <google/protobuf/stubs/common.h> +#include <google/protobuf/stubs/port.h> +#include <google/protobuf/stubs/once.h> +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/wire_format_lite_inl.h> +#include <google/protobuf/descriptor.h> +#include <google/protobuf/generated_message_reflection.h> +#include <google/protobuf/reflection_ops.h> +#include <google/protobuf/wire_format.h> +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace google { +namespace rpc { +class StatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed<Status> + _instance; +} _Status_default_instance_; +} // namespace rpc +} // namespace google +namespace protobuf_google_2frpc_2fstatus_2eproto { +void InitDefaultsStatusImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_google_2fprotobuf_2fany_2eproto::InitDefaultsAny(); + { + void* ptr = &::google::rpc::_Status_default_instance_; + new (ptr) ::google::rpc::Status(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::google::rpc::Status::InitAsDefaultInstance(); +} + +void InitDefaultsStatus() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStatusImpl); +} + +::google::protobuf::Metadata file_level_metadata[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::rpc::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::rpc::Status, code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::rpc::Status, message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::rpc::Status, details_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::google::rpc::Status)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&::google::rpc::_Status_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "google/rpc/status.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\027google/rpc/status.proto\022\ngoogle.rpc\032\031g" + "oogle/protobuf/any.proto\"N\n\006Status\022\014\n\004co" + "de\030\001 \001(\005\022\017\n\007message\030\002 \001(\t\022%\n\007details\030\003 \003" + "(\0132\024.google.protobuf.AnyB^\n\016com.google.r" + "pcB\013StatusProtoP\001Z7google.golang.org/gen" + "proto/googleapis/rpc/status;status\242\002\003RPC" + "b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 248); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "google/rpc/status.proto", &protobuf_RegisterTypes); + ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_google_2frpc_2fstatus_2eproto +namespace google { +namespace rpc { + +// =================================================================== + +void Status::InitAsDefaultInstance() { +} +void Status::clear_details() { + details_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Status::kCodeFieldNumber; +const int Status::kMessageFieldNumber; +const int Status::kDetailsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Status::Status() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_google_2frpc_2fstatus_2eproto::InitDefaultsStatus(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:google.rpc.Status) +} +Status::Status(const Status& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + details_(from.details_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.message().size() > 0) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + code_ = from.code_; + // @@protoc_insertion_point(copy_constructor:google.rpc.Status) +} + +void Status::SharedCtor() { + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + code_ = 0; + _cached_size_ = 0; +} + +Status::~Status() { + // @@protoc_insertion_point(destructor:google.rpc.Status) + SharedDtor(); +} + +void Status::SharedDtor() { + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Status::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Status::descriptor() { + ::protobuf_google_2frpc_2fstatus_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_google_2frpc_2fstatus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Status& Status::default_instance() { + ::protobuf_google_2frpc_2fstatus_2eproto::InitDefaultsStatus(); + return *internal_default_instance(); +} + +Status* Status::New(::google::protobuf::Arena* arena) const { + Status* n = new Status; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Status::Clear() { +// @@protoc_insertion_point(message_clear_start:google.rpc.Status) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + details_.Clear(); + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + code_ = 0; + _internal_metadata_.Clear(); +} + +bool Status::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:google.rpc.Status) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int32 code = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &code_))); + } else { + goto handle_unusual; + } + break; + } + + // string message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_message())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast<int>(this->message().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "google.rpc.Status.message")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .google.protobuf.Any details = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_details())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:google.rpc.Status) + return true; +failure: + // @@protoc_insertion_point(parse_failure:google.rpc.Status) + return false; +#undef DO_ +} + +void Status::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:google.rpc.Status) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 code = 1; + if (this->code() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->code(), output); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast<int>(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "google.rpc.Status.message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->message(), output); + } + + // repeated .google.protobuf.Any details = 3; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->details_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->details(static_cast<int>(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:google.rpc.Status) +} + +::google::protobuf::uint8* Status::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:google.rpc.Status) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 code = 1; + if (this->code() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->code(), target); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast<int>(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "google.rpc.Status.message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->message(), target); + } + + // repeated .google.protobuf.Any details = 3; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->details_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->details(static_cast<int>(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:google.rpc.Status) + return target; +} + +size_t Status::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:google.rpc.Status) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .google.protobuf.Any details = 3; + { + unsigned int count = static_cast<unsigned int>(this->details_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->details(static_cast<int>(i))); + } + } + + // string message = 2; + if (this->message().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->message()); + } + + // int32 code = 1; + if (this->code() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->code()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Status::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:google.rpc.Status) + GOOGLE_DCHECK_NE(&from, this); + const Status* source = + ::google::protobuf::internal::DynamicCastToGenerated<const Status>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.rpc.Status) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:google.rpc.Status) + MergeFrom(*source); + } +} + +void Status::MergeFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.Status) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + details_.MergeFrom(from.details_); + if (from.message().size() > 0) { + + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (from.code() != 0) { + set_code(from.code()); + } +} + +void Status::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:google.rpc.Status) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Status::CopyFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.Status) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Status::IsInitialized() const { + return true; +} + +void Status::Swap(Status* other) { + if (other == this) return; + InternalSwap(other); +} +void Status::InternalSwap(Status* other) { + using std::swap; + details_.InternalSwap(&other->details_); + message_.Swap(&other->message_); + swap(code_, other->code_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Status::GetMetadata() const { + protobuf_google_2frpc_2fstatus_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_google_2frpc_2fstatus_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace rpc +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/Firestore/Protos/cpp/google/rpc/status.pb.h b/Firestore/Protos/cpp/google/rpc/status.pb.h new file mode 100644 index 0000000..7a54c9f --- /dev/null +++ b/Firestore/Protos/cpp/google/rpc/status.pb.h @@ -0,0 +1,321 @@ +/* + * Copyright 2018 Google + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/rpc/status.proto + +#ifndef PROTOBUF_google_2frpc_2fstatus_2eproto__INCLUDED +#define PROTOBUF_google_2frpc_2fstatus_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#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 3005000 < GOOGLE_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 <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +#include <google/protobuf/any.pb.h> +// @@protoc_insertion_point(includes) + +namespace protobuf_google_2frpc_2fstatus_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsStatusImpl(); +void InitDefaultsStatus(); +inline void InitDefaults() { + InitDefaultsStatus(); +} +} // namespace protobuf_google_2frpc_2fstatus_2eproto +namespace google { +namespace rpc { +class Status; +class StatusDefaultTypeInternal; +extern StatusDefaultTypeInternal _Status_default_instance_; +} // namespace rpc +} // namespace google +namespace google { +namespace rpc { + +// =================================================================== + +class Status : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.Status) */ { + public: + Status(); + virtual ~Status(); + + Status(const Status& from); + + inline Status& operator=(const Status& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Status(Status&& from) noexcept + : Status() { + *this = ::std::move(from); + } + + inline Status& operator=(Status&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Status& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Status* internal_default_instance() { + return reinterpret_cast<const Status*>( + &_Status_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(Status* other); + friend void swap(Status& a, Status& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Status* New() const PROTOBUF_FINAL { return New(NULL); } + + Status* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Status& from); + void MergeFrom(const Status& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Status* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .google.protobuf.Any details = 3; + int details_size() const; + void clear_details(); + static const int kDetailsFieldNumber = 3; + const ::google::protobuf::Any& details(int index) const; + ::google::protobuf::Any* mutable_details(int index); + ::google::protobuf::Any* add_details(); + ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >* + mutable_details(); + const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >& + details() const; + + // string message = 2; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const char* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // int32 code = 1; + void clear_code(); + static const int kCodeFieldNumber = 1; + ::google::protobuf::int32 code() const; + void set_code(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:google.rpc.Status) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any > details_; + ::google::protobuf::internal::ArenaStringPtr message_; + ::google::protobuf::int32 code_; + mutable int _cached_size_; + friend struct ::protobuf_google_2frpc_2fstatus_2eproto::TableStruct; + friend void ::protobuf_google_2frpc_2fstatus_2eproto::InitDefaultsStatusImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Status + +// int32 code = 1; +inline void Status::clear_code() { + code_ = 0; +} +inline ::google::protobuf::int32 Status::code() const { + // @@protoc_insertion_point(field_get:google.rpc.Status.code) + return code_; +} +inline void Status::set_code(::google::protobuf::int32 value) { + + code_ = value; + // @@protoc_insertion_point(field_set:google.rpc.Status.code) +} + +// string message = 2; +inline void Status::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Status::message() const { + // @@protoc_insertion_point(field_get:google.rpc.Status.message) + return message_.GetNoArena(); +} +inline void Status::set_message(const ::std::string& value) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:google.rpc.Status.message) +} +#if LANG_CXX11 +inline void Status::set_message(::std::string&& value) { + + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:google.rpc.Status.message) +} +#endif +inline void Status::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:google.rpc.Status.message) +} +inline void Status::set_message(const char* value, size_t size) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:google.rpc.Status.message) +} +inline ::std::string* Status::mutable_message() { + + // @@protoc_insertion_point(field_mutable:google.rpc.Status.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Status::release_message() { + // @@protoc_insertion_point(field_release:google.rpc.Status.message) + + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Status::set_allocated_message(::std::string* message) { + if (message != NULL) { + + } else { + + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:google.rpc.Status.message) +} + +// repeated .google.protobuf.Any details = 3; +inline int Status::details_size() const { + return details_.size(); +} +inline const ::google::protobuf::Any& Status::details(int index) const { + // @@protoc_insertion_point(field_get:google.rpc.Status.details) + return details_.Get(index); +} +inline ::google::protobuf::Any* Status::mutable_details(int index) { + // @@protoc_insertion_point(field_mutable:google.rpc.Status.details) + return details_.Mutable(index); +} +inline ::google::protobuf::Any* Status::add_details() { + // @@protoc_insertion_point(field_add:google.rpc.Status.details) + return details_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >* +Status::mutable_details() { + // @@protoc_insertion_point(field_mutable_list:google.rpc.Status.details) + return &details_; +} +inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >& +Status::details() const { + // @@protoc_insertion_point(field_list:google.rpc.Status.details) + return details_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace rpc +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_google_2frpc_2fstatus_2eproto__INCLUDED |