This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhuyujia-webhopper/collector/adg-linux/gen/components/feedback/proto/dom.pb.cc
little_stone bd2d50cf35 code update
2022-05-05 20:41:28 +08:00

2870 lines
106 KiB
C++
Executable File

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: dom.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "dom.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/io/zero_copy_stream_impl_lite.h>
// @@protoc_insertion_point(includes)
namespace userfeedback {
class HtmlDocumentDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<HtmlDocument> {
} _HtmlDocument_default_instance_;
class HtmlElementDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<HtmlElement> {
} _HtmlElement_default_instance_;
class NavigatorDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Navigator> {
} _Navigator_default_instance_;
class HtmlPathDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<HtmlPath> {
} _HtmlPath_default_instance_;
namespace protobuf_dom_2eproto {
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
const TableStruct::entries[] = {
{0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
};
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
const TableStruct::aux[] = {
::google::protobuf::internal::AuxillaryParseTableField(),
};
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
TableStruct::schema[] = {
{ NULL, NULL, 0, -1, -1, false },
{ NULL, NULL, 0, -1, -1, false },
{ NULL, NULL, 0, -1, -1, false },
{ NULL, NULL, 0, -1, -1, false },
};
void TableStruct::Shutdown() {
_HtmlDocument_default_instance_.Shutdown();
_HtmlElement_default_instance_.Shutdown();
_Navigator_default_instance_.Shutdown();
_HtmlPath_default_instance_.Shutdown();
}
void TableStruct::InitDefaultsImpl() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
::google::protobuf::internal::InitProtobufDefaults();
_HtmlDocument_default_instance_.DefaultConstruct();
_HtmlElement_default_instance_.DefaultConstruct();
_Navigator_default_instance_.DefaultConstruct();
_HtmlPath_default_instance_.DefaultConstruct();
_HtmlDocument_default_instance_.get_mutable()->document_element_ = const_cast< ::userfeedback::HtmlElement*>(
::userfeedback::HtmlElement::internal_default_instance());
_HtmlElement_default_instance_.get_mutable()->frame_content_document_ = const_cast< ::userfeedback::HtmlDocument*>(
::userfeedback::HtmlDocument::internal_default_instance());
}
void InitDefaults() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
}
void AddDescriptorsImpl() {
InitDefaults();
::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown);
}
void AddDescriptors() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
}
} // namespace protobuf_dom_2eproto
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int HtmlDocument::kUrlFieldNumber;
const int HtmlDocument::kTitleFieldNumber;
const int HtmlDocument::kDocumentElementFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
HtmlDocument::HtmlDocument()
: ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_dom_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:userfeedback.HtmlDocument)
}
HtmlDocument::HtmlDocument(const HtmlDocument& from)
: ::google::protobuf::MessageLite(),
_internal_metadata_(NULL),
_has_bits_(from._has_bits_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_url()) {
url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_);
}
title_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_title()) {
title_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.title_);
}
if (from.has_document_element()) {
document_element_ = new ::userfeedback::HtmlElement(*from.document_element_);
} else {
document_element_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:userfeedback.HtmlDocument)
}
void HtmlDocument::SharedCtor() {
_cached_size_ = 0;
url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
title_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
document_element_ = NULL;
}
HtmlDocument::~HtmlDocument() {
// @@protoc_insertion_point(destructor:userfeedback.HtmlDocument)
SharedDtor();
}
void HtmlDocument::SharedDtor() {
url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
title_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) {
delete document_element_;
}
}
void HtmlDocument::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const HtmlDocument& HtmlDocument::default_instance() {
protobuf_dom_2eproto::InitDefaults();
return *internal_default_instance();
}
HtmlDocument* HtmlDocument::New(::google::protobuf::Arena* arena) const {
HtmlDocument* n = new HtmlDocument;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void HtmlDocument::Clear() {
// @@protoc_insertion_point(message_clear_start:userfeedback.HtmlDocument)
if (_has_bits_[0 / 32] & 7u) {
if (has_url()) {
GOOGLE_DCHECK(!url_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*url_.UnsafeRawStringPointer())->clear();
}
if (has_title()) {
GOOGLE_DCHECK(!title_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*title_.UnsafeRawStringPointer())->clear();
}
if (has_document_element()) {
GOOGLE_DCHECK(document_element_ != NULL);
document_element_->::userfeedback::HtmlElement::Clear();
}
}
_has_bits_.Clear();
_internal_metadata_.Clear();
}
bool HtmlDocument::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
::google::protobuf::NewPermanentCallback(&_internal_metadata_,
&::google::protobuf::internal::InternalMetadataWithArenaLite::
mutable_unknown_fields));
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
&unknown_fields_string, false);
// @@protoc_insertion_point(parse_start:userfeedback.HtmlDocument)
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)) {
// required string url = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_url()));
} else {
goto handle_unusual;
}
break;
}
// optional string title = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(18u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_title()));
} else {
goto handle_unusual;
}
break;
}
// optional .userfeedback.HtmlElement document_element = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(26u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_document_element()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(
input, tag, &unknown_fields_stream));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:userfeedback.HtmlDocument)
return true;
failure:
// @@protoc_insertion_point(parse_failure:userfeedback.HtmlDocument)
return false;
#undef DO_
}
void HtmlDocument::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:userfeedback.HtmlDocument)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// required string url = 1;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->url(), output);
}
// optional string title = 2;
if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->title(), output);
}
// optional .userfeedback.HtmlElement document_element = 3;
if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteMessage(
3, *this->document_element_, output);
}
output->WriteRaw(unknown_fields().data(),
static_cast<int>(unknown_fields().size()));
// @@protoc_insertion_point(serialize_end:userfeedback.HtmlDocument)
}
size_t HtmlDocument::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:userfeedback.HtmlDocument)
size_t total_size = 0;
total_size += unknown_fields().size();
// required string url = 1;
if (has_url()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->url());
}
if (_has_bits_[0 / 32] & 6u) {
// optional string title = 2;
if (has_title()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->title());
}
// optional .userfeedback.HtmlElement document_element = 3;
if (has_document_element()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->document_element_);
}
}
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 HtmlDocument::CheckTypeAndMergeFrom(
const ::google::protobuf::MessageLite& from) {
MergeFrom(*::google::protobuf::down_cast<const HtmlDocument*>(&from));
}
void HtmlDocument::MergeFrom(const HtmlDocument& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:userfeedback.HtmlDocument)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = from._has_bits_[0];
if (cached_has_bits & 7u) {
if (cached_has_bits & 0x00000001u) {
set_has_url();
url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_);
}
if (cached_has_bits & 0x00000002u) {
set_has_title();
title_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.title_);
}
if (cached_has_bits & 0x00000004u) {
mutable_document_element()->::userfeedback::HtmlElement::MergeFrom(from.document_element());
}
}
}
void HtmlDocument::CopyFrom(const HtmlDocument& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:userfeedback.HtmlDocument)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool HtmlDocument::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_document_element()) {
if (!this->document_element_->IsInitialized()) return false;
}
return true;
}
void HtmlDocument::Swap(HtmlDocument* other) {
if (other == this) return;
InternalSwap(other);
}
void HtmlDocument::InternalSwap(HtmlDocument* other) {
url_.Swap(&other->url_);
title_.Swap(&other->title_);
std::swap(document_element_, other->document_element_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_internal_metadata_.Swap(&other->_internal_metadata_);
std::swap(_cached_size_, other->_cached_size_);
}
::std::string HtmlDocument::GetTypeName() const {
return "userfeedback.HtmlDocument";
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// HtmlDocument
// required string url = 1;
bool HtmlDocument::has_url() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
void HtmlDocument::set_has_url() {
_has_bits_[0] |= 0x00000001u;
}
void HtmlDocument::clear_has_url() {
_has_bits_[0] &= ~0x00000001u;
}
void HtmlDocument::clear_url() {
url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_url();
}
const ::std::string& HtmlDocument::url() const {
// @@protoc_insertion_point(field_get:userfeedback.HtmlDocument.url)
return url_.GetNoArena();
}
void HtmlDocument::set_url(const ::std::string& value) {
set_has_url();
url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.HtmlDocument.url)
}
#if LANG_CXX11
void HtmlDocument::set_url(::std::string&& value) {
set_has_url();
url_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.HtmlDocument.url)
}
#endif
void HtmlDocument::set_url(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_url();
url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.HtmlDocument.url)
}
void HtmlDocument::set_url(const char* value, size_t size) {
set_has_url();
url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.HtmlDocument.url)
}
::std::string* HtmlDocument::mutable_url() {
set_has_url();
// @@protoc_insertion_point(field_mutable:userfeedback.HtmlDocument.url)
return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HtmlDocument::release_url() {
// @@protoc_insertion_point(field_release:userfeedback.HtmlDocument.url)
clear_has_url();
return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HtmlDocument::set_allocated_url(::std::string* url) {
if (url != NULL) {
set_has_url();
} else {
clear_has_url();
}
url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url);
// @@protoc_insertion_point(field_set_allocated:userfeedback.HtmlDocument.url)
}
// optional string title = 2;
bool HtmlDocument::has_title() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
void HtmlDocument::set_has_title() {
_has_bits_[0] |= 0x00000002u;
}
void HtmlDocument::clear_has_title() {
_has_bits_[0] &= ~0x00000002u;
}
void HtmlDocument::clear_title() {
title_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_title();
}
const ::std::string& HtmlDocument::title() const {
// @@protoc_insertion_point(field_get:userfeedback.HtmlDocument.title)
return title_.GetNoArena();
}
void HtmlDocument::set_title(const ::std::string& value) {
set_has_title();
title_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.HtmlDocument.title)
}
#if LANG_CXX11
void HtmlDocument::set_title(::std::string&& value) {
set_has_title();
title_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.HtmlDocument.title)
}
#endif
void HtmlDocument::set_title(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_title();
title_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.HtmlDocument.title)
}
void HtmlDocument::set_title(const char* value, size_t size) {
set_has_title();
title_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.HtmlDocument.title)
}
::std::string* HtmlDocument::mutable_title() {
set_has_title();
// @@protoc_insertion_point(field_mutable:userfeedback.HtmlDocument.title)
return title_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HtmlDocument::release_title() {
// @@protoc_insertion_point(field_release:userfeedback.HtmlDocument.title)
clear_has_title();
return title_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HtmlDocument::set_allocated_title(::std::string* title) {
if (title != NULL) {
set_has_title();
} else {
clear_has_title();
}
title_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), title);
// @@protoc_insertion_point(field_set_allocated:userfeedback.HtmlDocument.title)
}
// optional .userfeedback.HtmlElement document_element = 3;
bool HtmlDocument::has_document_element() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
void HtmlDocument::set_has_document_element() {
_has_bits_[0] |= 0x00000004u;
}
void HtmlDocument::clear_has_document_element() {
_has_bits_[0] &= ~0x00000004u;
}
void HtmlDocument::clear_document_element() {
if (document_element_ != NULL) document_element_->::userfeedback::HtmlElement::Clear();
clear_has_document_element();
}
const ::userfeedback::HtmlElement& HtmlDocument::document_element() const {
// @@protoc_insertion_point(field_get:userfeedback.HtmlDocument.document_element)
return document_element_ != NULL ? *document_element_
: *::userfeedback::HtmlElement::internal_default_instance();
}
::userfeedback::HtmlElement* HtmlDocument::mutable_document_element() {
set_has_document_element();
if (document_element_ == NULL) {
document_element_ = new ::userfeedback::HtmlElement;
}
// @@protoc_insertion_point(field_mutable:userfeedback.HtmlDocument.document_element)
return document_element_;
}
::userfeedback::HtmlElement* HtmlDocument::release_document_element() {
// @@protoc_insertion_point(field_release:userfeedback.HtmlDocument.document_element)
clear_has_document_element();
::userfeedback::HtmlElement* temp = document_element_;
document_element_ = NULL;
return temp;
}
void HtmlDocument::set_allocated_document_element(::userfeedback::HtmlElement* document_element) {
delete document_element_;
document_element_ = document_element;
if (document_element) {
set_has_document_element();
} else {
clear_has_document_element();
}
// @@protoc_insertion_point(field_set_allocated:userfeedback.HtmlDocument.document_element)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int HtmlElement::kTagNameFieldNumber;
const int HtmlElement::kIdFieldNumber;
const int HtmlElement::kClassNameFieldNumber;
const int HtmlElement::kChildElementFieldNumber;
const int HtmlElement::kFrameContentDocumentFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
HtmlElement::HtmlElement()
: ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_dom_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:userfeedback.HtmlElement)
}
HtmlElement::HtmlElement(const HtmlElement& from)
: ::google::protobuf::MessageLite(),
_internal_metadata_(NULL),
_has_bits_(from._has_bits_),
_cached_size_(0),
child_element_(from.child_element_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_tag_name()) {
tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_);
}
id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_id()) {
id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
}
class_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_class_name()) {
class_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.class_name_);
}
if (from.has_frame_content_document()) {
frame_content_document_ = new ::userfeedback::HtmlDocument(*from.frame_content_document_);
} else {
frame_content_document_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:userfeedback.HtmlElement)
}
void HtmlElement::SharedCtor() {
_cached_size_ = 0;
tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
class_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
frame_content_document_ = NULL;
}
HtmlElement::~HtmlElement() {
// @@protoc_insertion_point(destructor:userfeedback.HtmlElement)
SharedDtor();
}
void HtmlElement::SharedDtor() {
tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
class_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) {
delete frame_content_document_;
}
}
void HtmlElement::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const HtmlElement& HtmlElement::default_instance() {
protobuf_dom_2eproto::InitDefaults();
return *internal_default_instance();
}
HtmlElement* HtmlElement::New(::google::protobuf::Arena* arena) const {
HtmlElement* n = new HtmlElement;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void HtmlElement::Clear() {
// @@protoc_insertion_point(message_clear_start:userfeedback.HtmlElement)
child_element_.Clear();
if (_has_bits_[0 / 32] & 15u) {
if (has_tag_name()) {
GOOGLE_DCHECK(!tag_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*tag_name_.UnsafeRawStringPointer())->clear();
}
if (has_id()) {
GOOGLE_DCHECK(!id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*id_.UnsafeRawStringPointer())->clear();
}
if (has_class_name()) {
GOOGLE_DCHECK(!class_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*class_name_.UnsafeRawStringPointer())->clear();
}
if (has_frame_content_document()) {
GOOGLE_DCHECK(frame_content_document_ != NULL);
frame_content_document_->::userfeedback::HtmlDocument::Clear();
}
}
_has_bits_.Clear();
_internal_metadata_.Clear();
}
bool HtmlElement::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
::google::protobuf::NewPermanentCallback(&_internal_metadata_,
&::google::protobuf::internal::InternalMetadataWithArenaLite::
mutable_unknown_fields));
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
&unknown_fields_string, false);
// @@protoc_insertion_point(parse_start:userfeedback.HtmlElement)
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)) {
// required string tag_name = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_tag_name()));
} else {
goto handle_unusual;
}
break;
}
// optional string id = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(18u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_id()));
} else {
goto handle_unusual;
}
break;
}
// optional string class_name = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(26u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_class_name()));
} else {
goto handle_unusual;
}
break;
}
// repeated .userfeedback.HtmlElement child_element = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(34u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_child_element()));
} else {
goto handle_unusual;
}
break;
}
// optional .userfeedback.HtmlDocument frame_content_document = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(42u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_frame_content_document()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(
input, tag, &unknown_fields_stream));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:userfeedback.HtmlElement)
return true;
failure:
// @@protoc_insertion_point(parse_failure:userfeedback.HtmlElement)
return false;
#undef DO_
}
void HtmlElement::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:userfeedback.HtmlElement)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// required string tag_name = 1;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->tag_name(), output);
}
// optional string id = 2;
if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->id(), output);
}
// optional string class_name = 3;
if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->class_name(), output);
}
// repeated .userfeedback.HtmlElement child_element = 4;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->child_element_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessage(
4, this->child_element(static_cast<int>(i)), output);
}
// optional .userfeedback.HtmlDocument frame_content_document = 5;
if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteMessage(
5, *this->frame_content_document_, output);
}
output->WriteRaw(unknown_fields().data(),
static_cast<int>(unknown_fields().size()));
// @@protoc_insertion_point(serialize_end:userfeedback.HtmlElement)
}
size_t HtmlElement::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:userfeedback.HtmlElement)
size_t total_size = 0;
total_size += unknown_fields().size();
// required string tag_name = 1;
if (has_tag_name()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->tag_name());
}
// repeated .userfeedback.HtmlElement child_element = 4;
{
unsigned int count = static_cast<unsigned int>(this->child_element_size());
total_size += 1UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->child_element(static_cast<int>(i)));
}
}
if (_has_bits_[0 / 32] & 14u) {
// optional string id = 2;
if (has_id()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->id());
}
// optional string class_name = 3;
if (has_class_name()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->class_name());
}
// optional .userfeedback.HtmlDocument frame_content_document = 5;
if (has_frame_content_document()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->frame_content_document_);
}
}
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 HtmlElement::CheckTypeAndMergeFrom(
const ::google::protobuf::MessageLite& from) {
MergeFrom(*::google::protobuf::down_cast<const HtmlElement*>(&from));
}
void HtmlElement::MergeFrom(const HtmlElement& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:userfeedback.HtmlElement)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
child_element_.MergeFrom(from.child_element_);
cached_has_bits = from._has_bits_[0];
if (cached_has_bits & 15u) {
if (cached_has_bits & 0x00000001u) {
set_has_tag_name();
tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_);
}
if (cached_has_bits & 0x00000002u) {
set_has_id();
id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
}
if (cached_has_bits & 0x00000004u) {
set_has_class_name();
class_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.class_name_);
}
if (cached_has_bits & 0x00000008u) {
mutable_frame_content_document()->::userfeedback::HtmlDocument::MergeFrom(from.frame_content_document());
}
}
}
void HtmlElement::CopyFrom(const HtmlElement& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:userfeedback.HtmlElement)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool HtmlElement::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (!::google::protobuf::internal::AllAreInitialized(this->child_element())) return false;
if (has_frame_content_document()) {
if (!this->frame_content_document_->IsInitialized()) return false;
}
return true;
}
void HtmlElement::Swap(HtmlElement* other) {
if (other == this) return;
InternalSwap(other);
}
void HtmlElement::InternalSwap(HtmlElement* other) {
child_element_.InternalSwap(&other->child_element_);
tag_name_.Swap(&other->tag_name_);
id_.Swap(&other->id_);
class_name_.Swap(&other->class_name_);
std::swap(frame_content_document_, other->frame_content_document_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_internal_metadata_.Swap(&other->_internal_metadata_);
std::swap(_cached_size_, other->_cached_size_);
}
::std::string HtmlElement::GetTypeName() const {
return "userfeedback.HtmlElement";
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// HtmlElement
// required string tag_name = 1;
bool HtmlElement::has_tag_name() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
void HtmlElement::set_has_tag_name() {
_has_bits_[0] |= 0x00000001u;
}
void HtmlElement::clear_has_tag_name() {
_has_bits_[0] &= ~0x00000001u;
}
void HtmlElement::clear_tag_name() {
tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_tag_name();
}
const ::std::string& HtmlElement::tag_name() const {
// @@protoc_insertion_point(field_get:userfeedback.HtmlElement.tag_name)
return tag_name_.GetNoArena();
}
void HtmlElement::set_tag_name(const ::std::string& value) {
set_has_tag_name();
tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.HtmlElement.tag_name)
}
#if LANG_CXX11
void HtmlElement::set_tag_name(::std::string&& value) {
set_has_tag_name();
tag_name_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.HtmlElement.tag_name)
}
#endif
void HtmlElement::set_tag_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_tag_name();
tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.HtmlElement.tag_name)
}
void HtmlElement::set_tag_name(const char* value, size_t size) {
set_has_tag_name();
tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.HtmlElement.tag_name)
}
::std::string* HtmlElement::mutable_tag_name() {
set_has_tag_name();
// @@protoc_insertion_point(field_mutable:userfeedback.HtmlElement.tag_name)
return tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HtmlElement::release_tag_name() {
// @@protoc_insertion_point(field_release:userfeedback.HtmlElement.tag_name)
clear_has_tag_name();
return tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HtmlElement::set_allocated_tag_name(::std::string* tag_name) {
if (tag_name != NULL) {
set_has_tag_name();
} else {
clear_has_tag_name();
}
tag_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag_name);
// @@protoc_insertion_point(field_set_allocated:userfeedback.HtmlElement.tag_name)
}
// optional string id = 2;
bool HtmlElement::has_id() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
void HtmlElement::set_has_id() {
_has_bits_[0] |= 0x00000002u;
}
void HtmlElement::clear_has_id() {
_has_bits_[0] &= ~0x00000002u;
}
void HtmlElement::clear_id() {
id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_id();
}
const ::std::string& HtmlElement::id() const {
// @@protoc_insertion_point(field_get:userfeedback.HtmlElement.id)
return id_.GetNoArena();
}
void HtmlElement::set_id(const ::std::string& value) {
set_has_id();
id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.HtmlElement.id)
}
#if LANG_CXX11
void HtmlElement::set_id(::std::string&& value) {
set_has_id();
id_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.HtmlElement.id)
}
#endif
void HtmlElement::set_id(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_id();
id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.HtmlElement.id)
}
void HtmlElement::set_id(const char* value, size_t size) {
set_has_id();
id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.HtmlElement.id)
}
::std::string* HtmlElement::mutable_id() {
set_has_id();
// @@protoc_insertion_point(field_mutable:userfeedback.HtmlElement.id)
return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HtmlElement::release_id() {
// @@protoc_insertion_point(field_release:userfeedback.HtmlElement.id)
clear_has_id();
return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HtmlElement::set_allocated_id(::std::string* id) {
if (id != NULL) {
set_has_id();
} else {
clear_has_id();
}
id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id);
// @@protoc_insertion_point(field_set_allocated:userfeedback.HtmlElement.id)
}
// optional string class_name = 3;
bool HtmlElement::has_class_name() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
void HtmlElement::set_has_class_name() {
_has_bits_[0] |= 0x00000004u;
}
void HtmlElement::clear_has_class_name() {
_has_bits_[0] &= ~0x00000004u;
}
void HtmlElement::clear_class_name() {
class_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_class_name();
}
const ::std::string& HtmlElement::class_name() const {
// @@protoc_insertion_point(field_get:userfeedback.HtmlElement.class_name)
return class_name_.GetNoArena();
}
void HtmlElement::set_class_name(const ::std::string& value) {
set_has_class_name();
class_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.HtmlElement.class_name)
}
#if LANG_CXX11
void HtmlElement::set_class_name(::std::string&& value) {
set_has_class_name();
class_name_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.HtmlElement.class_name)
}
#endif
void HtmlElement::set_class_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_class_name();
class_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.HtmlElement.class_name)
}
void HtmlElement::set_class_name(const char* value, size_t size) {
set_has_class_name();
class_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.HtmlElement.class_name)
}
::std::string* HtmlElement::mutable_class_name() {
set_has_class_name();
// @@protoc_insertion_point(field_mutable:userfeedback.HtmlElement.class_name)
return class_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HtmlElement::release_class_name() {
// @@protoc_insertion_point(field_release:userfeedback.HtmlElement.class_name)
clear_has_class_name();
return class_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HtmlElement::set_allocated_class_name(::std::string* class_name) {
if (class_name != NULL) {
set_has_class_name();
} else {
clear_has_class_name();
}
class_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), class_name);
// @@protoc_insertion_point(field_set_allocated:userfeedback.HtmlElement.class_name)
}
// repeated .userfeedback.HtmlElement child_element = 4;
int HtmlElement::child_element_size() const {
return child_element_.size();
}
void HtmlElement::clear_child_element() {
child_element_.Clear();
}
const ::userfeedback::HtmlElement& HtmlElement::child_element(int index) const {
// @@protoc_insertion_point(field_get:userfeedback.HtmlElement.child_element)
return child_element_.Get(index);
}
::userfeedback::HtmlElement* HtmlElement::mutable_child_element(int index) {
// @@protoc_insertion_point(field_mutable:userfeedback.HtmlElement.child_element)
return child_element_.Mutable(index);
}
::userfeedback::HtmlElement* HtmlElement::add_child_element() {
// @@protoc_insertion_point(field_add:userfeedback.HtmlElement.child_element)
return child_element_.Add();
}
::google::protobuf::RepeatedPtrField< ::userfeedback::HtmlElement >*
HtmlElement::mutable_child_element() {
// @@protoc_insertion_point(field_mutable_list:userfeedback.HtmlElement.child_element)
return &child_element_;
}
const ::google::protobuf::RepeatedPtrField< ::userfeedback::HtmlElement >&
HtmlElement::child_element() const {
// @@protoc_insertion_point(field_list:userfeedback.HtmlElement.child_element)
return child_element_;
}
// optional .userfeedback.HtmlDocument frame_content_document = 5;
bool HtmlElement::has_frame_content_document() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
void HtmlElement::set_has_frame_content_document() {
_has_bits_[0] |= 0x00000008u;
}
void HtmlElement::clear_has_frame_content_document() {
_has_bits_[0] &= ~0x00000008u;
}
void HtmlElement::clear_frame_content_document() {
if (frame_content_document_ != NULL) frame_content_document_->::userfeedback::HtmlDocument::Clear();
clear_has_frame_content_document();
}
const ::userfeedback::HtmlDocument& HtmlElement::frame_content_document() const {
// @@protoc_insertion_point(field_get:userfeedback.HtmlElement.frame_content_document)
return frame_content_document_ != NULL ? *frame_content_document_
: *::userfeedback::HtmlDocument::internal_default_instance();
}
::userfeedback::HtmlDocument* HtmlElement::mutable_frame_content_document() {
set_has_frame_content_document();
if (frame_content_document_ == NULL) {
frame_content_document_ = new ::userfeedback::HtmlDocument;
}
// @@protoc_insertion_point(field_mutable:userfeedback.HtmlElement.frame_content_document)
return frame_content_document_;
}
::userfeedback::HtmlDocument* HtmlElement::release_frame_content_document() {
// @@protoc_insertion_point(field_release:userfeedback.HtmlElement.frame_content_document)
clear_has_frame_content_document();
::userfeedback::HtmlDocument* temp = frame_content_document_;
frame_content_document_ = NULL;
return temp;
}
void HtmlElement::set_allocated_frame_content_document(::userfeedback::HtmlDocument* frame_content_document) {
delete frame_content_document_;
frame_content_document_ = frame_content_document;
if (frame_content_document) {
set_has_frame_content_document();
} else {
clear_has_frame_content_document();
}
// @@protoc_insertion_point(field_set_allocated:userfeedback.HtmlElement.frame_content_document)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Navigator::kAppCodeNameFieldNumber;
const int Navigator::kAppNameFieldNumber;
const int Navigator::kAppVersionFieldNumber;
const int Navigator::kAppMinorVersionFieldNumber;
const int Navigator::kCookieEnabledFieldNumber;
const int Navigator::kCpuClassFieldNumber;
const int Navigator::kOnLineFieldNumber;
const int Navigator::kPlatformFieldNumber;
const int Navigator::kBrowserLanguageFieldNumber;
const int Navigator::kSystemLanguageFieldNumber;
const int Navigator::kUserAgentFieldNumber;
const int Navigator::kJavaEnabledFieldNumber;
const int Navigator::kTaintEnabledFieldNumber;
const int Navigator::kPluginNameFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Navigator::Navigator()
: ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_dom_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:userfeedback.Navigator)
}
Navigator::Navigator(const Navigator& from)
: ::google::protobuf::MessageLite(),
_internal_metadata_(NULL),
_has_bits_(from._has_bits_),
_cached_size_(0),
plugin_name_(from.plugin_name_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
app_code_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_app_code_name()) {
app_code_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.app_code_name_);
}
app_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_app_name()) {
app_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.app_name_);
}
app_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_app_version()) {
app_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.app_version_);
}
app_minor_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_app_minor_version()) {
app_minor_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.app_minor_version_);
}
cpu_class_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_cpu_class()) {
cpu_class_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cpu_class_);
}
platform_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_platform()) {
platform_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.platform_);
}
browser_language_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_browser_language()) {
browser_language_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.browser_language_);
}
system_language_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_system_language()) {
system_language_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.system_language_);
}
user_agent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_user_agent()) {
user_agent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_agent_);
}
::memcpy(&cookie_enabled_, &from.cookie_enabled_,
static_cast<size_t>(reinterpret_cast<char*>(&taint_enabled_) -
reinterpret_cast<char*>(&cookie_enabled_)) + sizeof(taint_enabled_));
// @@protoc_insertion_point(copy_constructor:userfeedback.Navigator)
}
void Navigator::SharedCtor() {
_cached_size_ = 0;
app_code_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
app_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
app_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
app_minor_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
cpu_class_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
platform_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
browser_language_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
system_language_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
user_agent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&cookie_enabled_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&taint_enabled_) -
reinterpret_cast<char*>(&cookie_enabled_)) + sizeof(taint_enabled_));
}
Navigator::~Navigator() {
// @@protoc_insertion_point(destructor:userfeedback.Navigator)
SharedDtor();
}
void Navigator::SharedDtor() {
app_code_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
app_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
app_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
app_minor_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
cpu_class_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
platform_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
browser_language_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
system_language_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
user_agent_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Navigator::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const Navigator& Navigator::default_instance() {
protobuf_dom_2eproto::InitDefaults();
return *internal_default_instance();
}
Navigator* Navigator::New(::google::protobuf::Arena* arena) const {
Navigator* n = new Navigator;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void Navigator::Clear() {
// @@protoc_insertion_point(message_clear_start:userfeedback.Navigator)
plugin_name_.Clear();
if (_has_bits_[0 / 32] & 255u) {
if (has_app_code_name()) {
GOOGLE_DCHECK(!app_code_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*app_code_name_.UnsafeRawStringPointer())->clear();
}
if (has_app_name()) {
GOOGLE_DCHECK(!app_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*app_name_.UnsafeRawStringPointer())->clear();
}
if (has_app_version()) {
GOOGLE_DCHECK(!app_version_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*app_version_.UnsafeRawStringPointer())->clear();
}
if (has_app_minor_version()) {
GOOGLE_DCHECK(!app_minor_version_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*app_minor_version_.UnsafeRawStringPointer())->clear();
}
if (has_cpu_class()) {
GOOGLE_DCHECK(!cpu_class_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*cpu_class_.UnsafeRawStringPointer())->clear();
}
if (has_platform()) {
GOOGLE_DCHECK(!platform_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*platform_.UnsafeRawStringPointer())->clear();
}
if (has_browser_language()) {
GOOGLE_DCHECK(!browser_language_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*browser_language_.UnsafeRawStringPointer())->clear();
}
if (has_system_language()) {
GOOGLE_DCHECK(!system_language_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*system_language_.UnsafeRawStringPointer())->clear();
}
}
if (has_user_agent()) {
GOOGLE_DCHECK(!user_agent_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*user_agent_.UnsafeRawStringPointer())->clear();
}
if (_has_bits_[8 / 32] & 7680u) {
::memset(&cookie_enabled_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&taint_enabled_) -
reinterpret_cast<char*>(&cookie_enabled_)) + sizeof(taint_enabled_));
}
_has_bits_.Clear();
_internal_metadata_.Clear();
}
bool Navigator::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
::google::protobuf::NewPermanentCallback(&_internal_metadata_,
&::google::protobuf::internal::InternalMetadataWithArenaLite::
mutable_unknown_fields));
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
&unknown_fields_string, false);
// @@protoc_insertion_point(parse_start:userfeedback.Navigator)
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)) {
// optional string app_code_name = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_app_code_name()));
} else {
goto handle_unusual;
}
break;
}
// optional string app_name = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(18u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_app_name()));
} else {
goto handle_unusual;
}
break;
}
// optional string app_version = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(26u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_app_version()));
} else {
goto handle_unusual;
}
break;
}
// optional string app_minor_version = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(34u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_app_minor_version()));
} else {
goto handle_unusual;
}
break;
}
// optional bool cookie_enabled = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(40u)) {
set_has_cookie_enabled();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &cookie_enabled_)));
} else {
goto handle_unusual;
}
break;
}
// optional string cpu_class = 6;
case 6: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(50u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_cpu_class()));
} else {
goto handle_unusual;
}
break;
}
// optional bool on_line = 7;
case 7: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(56u)) {
set_has_on_line();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &on_line_)));
} else {
goto handle_unusual;
}
break;
}
// optional string platform = 8;
case 8: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(66u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_platform()));
} else {
goto handle_unusual;
}
break;
}
// optional string browser_language = 9;
case 9: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(74u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_browser_language()));
} else {
goto handle_unusual;
}
break;
}
// optional string system_language = 10;
case 10: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(82u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_system_language()));
} else {
goto handle_unusual;
}
break;
}
// optional string user_agent = 11;
case 11: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(90u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_user_agent()));
} else {
goto handle_unusual;
}
break;
}
// optional bool java_enabled = 12;
case 12: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(96u)) {
set_has_java_enabled();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &java_enabled_)));
} else {
goto handle_unusual;
}
break;
}
// optional bool taint_enabled = 13;
case 13: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(104u)) {
set_has_taint_enabled();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &taint_enabled_)));
} else {
goto handle_unusual;
}
break;
}
// repeated string plugin_name = 14;
case 14: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(114u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_plugin_name()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(
input, tag, &unknown_fields_stream));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:userfeedback.Navigator)
return true;
failure:
// @@protoc_insertion_point(parse_failure:userfeedback.Navigator)
return false;
#undef DO_
}
void Navigator::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:userfeedback.Navigator)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional string app_code_name = 1;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->app_code_name(), output);
}
// optional string app_name = 2;
if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->app_name(), output);
}
// optional string app_version = 3;
if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->app_version(), output);
}
// optional string app_minor_version = 4;
if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->app_minor_version(), output);
}
// optional bool cookie_enabled = 5;
if (cached_has_bits & 0x00000200u) {
::google::protobuf::internal::WireFormatLite::WriteBool(5, this->cookie_enabled(), output);
}
// optional string cpu_class = 6;
if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6, this->cpu_class(), output);
}
// optional bool on_line = 7;
if (cached_has_bits & 0x00000400u) {
::google::protobuf::internal::WireFormatLite::WriteBool(7, this->on_line(), output);
}
// optional string platform = 8;
if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8, this->platform(), output);
}
// optional string browser_language = 9;
if (cached_has_bits & 0x00000040u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9, this->browser_language(), output);
}
// optional string system_language = 10;
if (cached_has_bits & 0x00000080u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10, this->system_language(), output);
}
// optional string user_agent = 11;
if (cached_has_bits & 0x00000100u) {
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11, this->user_agent(), output);
}
// optional bool java_enabled = 12;
if (cached_has_bits & 0x00000800u) {
::google::protobuf::internal::WireFormatLite::WriteBool(12, this->java_enabled(), output);
}
// optional bool taint_enabled = 13;
if (cached_has_bits & 0x00001000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(13, this->taint_enabled(), output);
}
// repeated string plugin_name = 14;
for (int i = 0, n = this->plugin_name_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteString(
14, this->plugin_name(i), output);
}
output->WriteRaw(unknown_fields().data(),
static_cast<int>(unknown_fields().size()));
// @@protoc_insertion_point(serialize_end:userfeedback.Navigator)
}
size_t Navigator::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:userfeedback.Navigator)
size_t total_size = 0;
total_size += unknown_fields().size();
// repeated string plugin_name = 14;
total_size += 1 *
::google::protobuf::internal::FromIntSize(this->plugin_name_size());
for (int i = 0, n = this->plugin_name_size(); i < n; i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->plugin_name(i));
}
if (_has_bits_[0 / 32] & 255u) {
// optional string app_code_name = 1;
if (has_app_code_name()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->app_code_name());
}
// optional string app_name = 2;
if (has_app_name()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->app_name());
}
// optional string app_version = 3;
if (has_app_version()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->app_version());
}
// optional string app_minor_version = 4;
if (has_app_minor_version()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->app_minor_version());
}
// optional string cpu_class = 6;
if (has_cpu_class()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->cpu_class());
}
// optional string platform = 8;
if (has_platform()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->platform());
}
// optional string browser_language = 9;
if (has_browser_language()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->browser_language());
}
// optional string system_language = 10;
if (has_system_language()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->system_language());
}
}
if (_has_bits_[8 / 32] & 7936u) {
// optional string user_agent = 11;
if (has_user_agent()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->user_agent());
}
// optional bool cookie_enabled = 5;
if (has_cookie_enabled()) {
total_size += 1 + 1;
}
// optional bool on_line = 7;
if (has_on_line()) {
total_size += 1 + 1;
}
// optional bool java_enabled = 12;
if (has_java_enabled()) {
total_size += 1 + 1;
}
// optional bool taint_enabled = 13;
if (has_taint_enabled()) {
total_size += 1 + 1;
}
}
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 Navigator::CheckTypeAndMergeFrom(
const ::google::protobuf::MessageLite& from) {
MergeFrom(*::google::protobuf::down_cast<const Navigator*>(&from));
}
void Navigator::MergeFrom(const Navigator& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:userfeedback.Navigator)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
plugin_name_.MergeFrom(from.plugin_name_);
cached_has_bits = from._has_bits_[0];
if (cached_has_bits & 255u) {
if (cached_has_bits & 0x00000001u) {
set_has_app_code_name();
app_code_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.app_code_name_);
}
if (cached_has_bits & 0x00000002u) {
set_has_app_name();
app_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.app_name_);
}
if (cached_has_bits & 0x00000004u) {
set_has_app_version();
app_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.app_version_);
}
if (cached_has_bits & 0x00000008u) {
set_has_app_minor_version();
app_minor_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.app_minor_version_);
}
if (cached_has_bits & 0x00000010u) {
set_has_cpu_class();
cpu_class_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cpu_class_);
}
if (cached_has_bits & 0x00000020u) {
set_has_platform();
platform_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.platform_);
}
if (cached_has_bits & 0x00000040u) {
set_has_browser_language();
browser_language_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.browser_language_);
}
if (cached_has_bits & 0x00000080u) {
set_has_system_language();
system_language_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.system_language_);
}
}
if (cached_has_bits & 7936u) {
if (cached_has_bits & 0x00000100u) {
set_has_user_agent();
user_agent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_agent_);
}
if (cached_has_bits & 0x00000200u) {
cookie_enabled_ = from.cookie_enabled_;
}
if (cached_has_bits & 0x00000400u) {
on_line_ = from.on_line_;
}
if (cached_has_bits & 0x00000800u) {
java_enabled_ = from.java_enabled_;
}
if (cached_has_bits & 0x00001000u) {
taint_enabled_ = from.taint_enabled_;
}
_has_bits_[0] |= cached_has_bits;
}
}
void Navigator::CopyFrom(const Navigator& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:userfeedback.Navigator)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Navigator::IsInitialized() const {
return true;
}
void Navigator::Swap(Navigator* other) {
if (other == this) return;
InternalSwap(other);
}
void Navigator::InternalSwap(Navigator* other) {
plugin_name_.InternalSwap(&other->plugin_name_);
app_code_name_.Swap(&other->app_code_name_);
app_name_.Swap(&other->app_name_);
app_version_.Swap(&other->app_version_);
app_minor_version_.Swap(&other->app_minor_version_);
cpu_class_.Swap(&other->cpu_class_);
platform_.Swap(&other->platform_);
browser_language_.Swap(&other->browser_language_);
system_language_.Swap(&other->system_language_);
user_agent_.Swap(&other->user_agent_);
std::swap(cookie_enabled_, other->cookie_enabled_);
std::swap(on_line_, other->on_line_);
std::swap(java_enabled_, other->java_enabled_);
std::swap(taint_enabled_, other->taint_enabled_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_internal_metadata_.Swap(&other->_internal_metadata_);
std::swap(_cached_size_, other->_cached_size_);
}
::std::string Navigator::GetTypeName() const {
return "userfeedback.Navigator";
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Navigator
// optional string app_code_name = 1;
bool Navigator::has_app_code_name() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
void Navigator::set_has_app_code_name() {
_has_bits_[0] |= 0x00000001u;
}
void Navigator::clear_has_app_code_name() {
_has_bits_[0] &= ~0x00000001u;
}
void Navigator::clear_app_code_name() {
app_code_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_app_code_name();
}
const ::std::string& Navigator::app_code_name() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.app_code_name)
return app_code_name_.GetNoArena();
}
void Navigator::set_app_code_name(const ::std::string& value) {
set_has_app_code_name();
app_code_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.Navigator.app_code_name)
}
#if LANG_CXX11
void Navigator::set_app_code_name(::std::string&& value) {
set_has_app_code_name();
app_code_name_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.Navigator.app_code_name)
}
#endif
void Navigator::set_app_code_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_app_code_name();
app_code_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.Navigator.app_code_name)
}
void Navigator::set_app_code_name(const char* value, size_t size) {
set_has_app_code_name();
app_code_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.Navigator.app_code_name)
}
::std::string* Navigator::mutable_app_code_name() {
set_has_app_code_name();
// @@protoc_insertion_point(field_mutable:userfeedback.Navigator.app_code_name)
return app_code_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Navigator::release_app_code_name() {
// @@protoc_insertion_point(field_release:userfeedback.Navigator.app_code_name)
clear_has_app_code_name();
return app_code_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Navigator::set_allocated_app_code_name(::std::string* app_code_name) {
if (app_code_name != NULL) {
set_has_app_code_name();
} else {
clear_has_app_code_name();
}
app_code_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), app_code_name);
// @@protoc_insertion_point(field_set_allocated:userfeedback.Navigator.app_code_name)
}
// optional string app_name = 2;
bool Navigator::has_app_name() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
void Navigator::set_has_app_name() {
_has_bits_[0] |= 0x00000002u;
}
void Navigator::clear_has_app_name() {
_has_bits_[0] &= ~0x00000002u;
}
void Navigator::clear_app_name() {
app_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_app_name();
}
const ::std::string& Navigator::app_name() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.app_name)
return app_name_.GetNoArena();
}
void Navigator::set_app_name(const ::std::string& value) {
set_has_app_name();
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.Navigator.app_name)
}
#if LANG_CXX11
void Navigator::set_app_name(::std::string&& value) {
set_has_app_name();
app_name_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.Navigator.app_name)
}
#endif
void Navigator::set_app_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_app_name();
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.Navigator.app_name)
}
void Navigator::set_app_name(const char* value, size_t size) {
set_has_app_name();
app_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.Navigator.app_name)
}
::std::string* Navigator::mutable_app_name() {
set_has_app_name();
// @@protoc_insertion_point(field_mutable:userfeedback.Navigator.app_name)
return app_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Navigator::release_app_name() {
// @@protoc_insertion_point(field_release:userfeedback.Navigator.app_name)
clear_has_app_name();
return app_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Navigator::set_allocated_app_name(::std::string* app_name) {
if (app_name != NULL) {
set_has_app_name();
} else {
clear_has_app_name();
}
app_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), app_name);
// @@protoc_insertion_point(field_set_allocated:userfeedback.Navigator.app_name)
}
// optional string app_version = 3;
bool Navigator::has_app_version() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
void Navigator::set_has_app_version() {
_has_bits_[0] |= 0x00000004u;
}
void Navigator::clear_has_app_version() {
_has_bits_[0] &= ~0x00000004u;
}
void Navigator::clear_app_version() {
app_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_app_version();
}
const ::std::string& Navigator::app_version() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.app_version)
return app_version_.GetNoArena();
}
void Navigator::set_app_version(const ::std::string& value) {
set_has_app_version();
app_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.Navigator.app_version)
}
#if LANG_CXX11
void Navigator::set_app_version(::std::string&& value) {
set_has_app_version();
app_version_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.Navigator.app_version)
}
#endif
void Navigator::set_app_version(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_app_version();
app_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.Navigator.app_version)
}
void Navigator::set_app_version(const char* value, size_t size) {
set_has_app_version();
app_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.Navigator.app_version)
}
::std::string* Navigator::mutable_app_version() {
set_has_app_version();
// @@protoc_insertion_point(field_mutable:userfeedback.Navigator.app_version)
return app_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Navigator::release_app_version() {
// @@protoc_insertion_point(field_release:userfeedback.Navigator.app_version)
clear_has_app_version();
return app_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Navigator::set_allocated_app_version(::std::string* app_version) {
if (app_version != NULL) {
set_has_app_version();
} else {
clear_has_app_version();
}
app_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), app_version);
// @@protoc_insertion_point(field_set_allocated:userfeedback.Navigator.app_version)
}
// optional string app_minor_version = 4;
bool Navigator::has_app_minor_version() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
void Navigator::set_has_app_minor_version() {
_has_bits_[0] |= 0x00000008u;
}
void Navigator::clear_has_app_minor_version() {
_has_bits_[0] &= ~0x00000008u;
}
void Navigator::clear_app_minor_version() {
app_minor_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_app_minor_version();
}
const ::std::string& Navigator::app_minor_version() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.app_minor_version)
return app_minor_version_.GetNoArena();
}
void Navigator::set_app_minor_version(const ::std::string& value) {
set_has_app_minor_version();
app_minor_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.Navigator.app_minor_version)
}
#if LANG_CXX11
void Navigator::set_app_minor_version(::std::string&& value) {
set_has_app_minor_version();
app_minor_version_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.Navigator.app_minor_version)
}
#endif
void Navigator::set_app_minor_version(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_app_minor_version();
app_minor_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.Navigator.app_minor_version)
}
void Navigator::set_app_minor_version(const char* value, size_t size) {
set_has_app_minor_version();
app_minor_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.Navigator.app_minor_version)
}
::std::string* Navigator::mutable_app_minor_version() {
set_has_app_minor_version();
// @@protoc_insertion_point(field_mutable:userfeedback.Navigator.app_minor_version)
return app_minor_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Navigator::release_app_minor_version() {
// @@protoc_insertion_point(field_release:userfeedback.Navigator.app_minor_version)
clear_has_app_minor_version();
return app_minor_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Navigator::set_allocated_app_minor_version(::std::string* app_minor_version) {
if (app_minor_version != NULL) {
set_has_app_minor_version();
} else {
clear_has_app_minor_version();
}
app_minor_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), app_minor_version);
// @@protoc_insertion_point(field_set_allocated:userfeedback.Navigator.app_minor_version)
}
// optional bool cookie_enabled = 5;
bool Navigator::has_cookie_enabled() const {
return (_has_bits_[0] & 0x00000200u) != 0;
}
void Navigator::set_has_cookie_enabled() {
_has_bits_[0] |= 0x00000200u;
}
void Navigator::clear_has_cookie_enabled() {
_has_bits_[0] &= ~0x00000200u;
}
void Navigator::clear_cookie_enabled() {
cookie_enabled_ = false;
clear_has_cookie_enabled();
}
bool Navigator::cookie_enabled() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.cookie_enabled)
return cookie_enabled_;
}
void Navigator::set_cookie_enabled(bool value) {
set_has_cookie_enabled();
cookie_enabled_ = value;
// @@protoc_insertion_point(field_set:userfeedback.Navigator.cookie_enabled)
}
// optional string cpu_class = 6;
bool Navigator::has_cpu_class() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
void Navigator::set_has_cpu_class() {
_has_bits_[0] |= 0x00000010u;
}
void Navigator::clear_has_cpu_class() {
_has_bits_[0] &= ~0x00000010u;
}
void Navigator::clear_cpu_class() {
cpu_class_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_cpu_class();
}
const ::std::string& Navigator::cpu_class() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.cpu_class)
return cpu_class_.GetNoArena();
}
void Navigator::set_cpu_class(const ::std::string& value) {
set_has_cpu_class();
cpu_class_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.Navigator.cpu_class)
}
#if LANG_CXX11
void Navigator::set_cpu_class(::std::string&& value) {
set_has_cpu_class();
cpu_class_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.Navigator.cpu_class)
}
#endif
void Navigator::set_cpu_class(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_cpu_class();
cpu_class_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.Navigator.cpu_class)
}
void Navigator::set_cpu_class(const char* value, size_t size) {
set_has_cpu_class();
cpu_class_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.Navigator.cpu_class)
}
::std::string* Navigator::mutable_cpu_class() {
set_has_cpu_class();
// @@protoc_insertion_point(field_mutable:userfeedback.Navigator.cpu_class)
return cpu_class_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Navigator::release_cpu_class() {
// @@protoc_insertion_point(field_release:userfeedback.Navigator.cpu_class)
clear_has_cpu_class();
return cpu_class_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Navigator::set_allocated_cpu_class(::std::string* cpu_class) {
if (cpu_class != NULL) {
set_has_cpu_class();
} else {
clear_has_cpu_class();
}
cpu_class_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cpu_class);
// @@protoc_insertion_point(field_set_allocated:userfeedback.Navigator.cpu_class)
}
// optional bool on_line = 7;
bool Navigator::has_on_line() const {
return (_has_bits_[0] & 0x00000400u) != 0;
}
void Navigator::set_has_on_line() {
_has_bits_[0] |= 0x00000400u;
}
void Navigator::clear_has_on_line() {
_has_bits_[0] &= ~0x00000400u;
}
void Navigator::clear_on_line() {
on_line_ = false;
clear_has_on_line();
}
bool Navigator::on_line() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.on_line)
return on_line_;
}
void Navigator::set_on_line(bool value) {
set_has_on_line();
on_line_ = value;
// @@protoc_insertion_point(field_set:userfeedback.Navigator.on_line)
}
// optional string platform = 8;
bool Navigator::has_platform() const {
return (_has_bits_[0] & 0x00000020u) != 0;
}
void Navigator::set_has_platform() {
_has_bits_[0] |= 0x00000020u;
}
void Navigator::clear_has_platform() {
_has_bits_[0] &= ~0x00000020u;
}
void Navigator::clear_platform() {
platform_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_platform();
}
const ::std::string& Navigator::platform() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.platform)
return platform_.GetNoArena();
}
void Navigator::set_platform(const ::std::string& value) {
set_has_platform();
platform_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.Navigator.platform)
}
#if LANG_CXX11
void Navigator::set_platform(::std::string&& value) {
set_has_platform();
platform_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.Navigator.platform)
}
#endif
void Navigator::set_platform(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_platform();
platform_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.Navigator.platform)
}
void Navigator::set_platform(const char* value, size_t size) {
set_has_platform();
platform_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.Navigator.platform)
}
::std::string* Navigator::mutable_platform() {
set_has_platform();
// @@protoc_insertion_point(field_mutable:userfeedback.Navigator.platform)
return platform_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Navigator::release_platform() {
// @@protoc_insertion_point(field_release:userfeedback.Navigator.platform)
clear_has_platform();
return platform_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Navigator::set_allocated_platform(::std::string* platform) {
if (platform != NULL) {
set_has_platform();
} else {
clear_has_platform();
}
platform_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), platform);
// @@protoc_insertion_point(field_set_allocated:userfeedback.Navigator.platform)
}
// optional string browser_language = 9;
bool Navigator::has_browser_language() const {
return (_has_bits_[0] & 0x00000040u) != 0;
}
void Navigator::set_has_browser_language() {
_has_bits_[0] |= 0x00000040u;
}
void Navigator::clear_has_browser_language() {
_has_bits_[0] &= ~0x00000040u;
}
void Navigator::clear_browser_language() {
browser_language_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_browser_language();
}
const ::std::string& Navigator::browser_language() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.browser_language)
return browser_language_.GetNoArena();
}
void Navigator::set_browser_language(const ::std::string& value) {
set_has_browser_language();
browser_language_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.Navigator.browser_language)
}
#if LANG_CXX11
void Navigator::set_browser_language(::std::string&& value) {
set_has_browser_language();
browser_language_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.Navigator.browser_language)
}
#endif
void Navigator::set_browser_language(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_browser_language();
browser_language_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.Navigator.browser_language)
}
void Navigator::set_browser_language(const char* value, size_t size) {
set_has_browser_language();
browser_language_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.Navigator.browser_language)
}
::std::string* Navigator::mutable_browser_language() {
set_has_browser_language();
// @@protoc_insertion_point(field_mutable:userfeedback.Navigator.browser_language)
return browser_language_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Navigator::release_browser_language() {
// @@protoc_insertion_point(field_release:userfeedback.Navigator.browser_language)
clear_has_browser_language();
return browser_language_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Navigator::set_allocated_browser_language(::std::string* browser_language) {
if (browser_language != NULL) {
set_has_browser_language();
} else {
clear_has_browser_language();
}
browser_language_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), browser_language);
// @@protoc_insertion_point(field_set_allocated:userfeedback.Navigator.browser_language)
}
// optional string system_language = 10;
bool Navigator::has_system_language() const {
return (_has_bits_[0] & 0x00000080u) != 0;
}
void Navigator::set_has_system_language() {
_has_bits_[0] |= 0x00000080u;
}
void Navigator::clear_has_system_language() {
_has_bits_[0] &= ~0x00000080u;
}
void Navigator::clear_system_language() {
system_language_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_system_language();
}
const ::std::string& Navigator::system_language() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.system_language)
return system_language_.GetNoArena();
}
void Navigator::set_system_language(const ::std::string& value) {
set_has_system_language();
system_language_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.Navigator.system_language)
}
#if LANG_CXX11
void Navigator::set_system_language(::std::string&& value) {
set_has_system_language();
system_language_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.Navigator.system_language)
}
#endif
void Navigator::set_system_language(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_system_language();
system_language_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.Navigator.system_language)
}
void Navigator::set_system_language(const char* value, size_t size) {
set_has_system_language();
system_language_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.Navigator.system_language)
}
::std::string* Navigator::mutable_system_language() {
set_has_system_language();
// @@protoc_insertion_point(field_mutable:userfeedback.Navigator.system_language)
return system_language_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Navigator::release_system_language() {
// @@protoc_insertion_point(field_release:userfeedback.Navigator.system_language)
clear_has_system_language();
return system_language_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Navigator::set_allocated_system_language(::std::string* system_language) {
if (system_language != NULL) {
set_has_system_language();
} else {
clear_has_system_language();
}
system_language_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), system_language);
// @@protoc_insertion_point(field_set_allocated:userfeedback.Navigator.system_language)
}
// optional string user_agent = 11;
bool Navigator::has_user_agent() const {
return (_has_bits_[0] & 0x00000100u) != 0;
}
void Navigator::set_has_user_agent() {
_has_bits_[0] |= 0x00000100u;
}
void Navigator::clear_has_user_agent() {
_has_bits_[0] &= ~0x00000100u;
}
void Navigator::clear_user_agent() {
user_agent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_user_agent();
}
const ::std::string& Navigator::user_agent() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.user_agent)
return user_agent_.GetNoArena();
}
void Navigator::set_user_agent(const ::std::string& value) {
set_has_user_agent();
user_agent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:userfeedback.Navigator.user_agent)
}
#if LANG_CXX11
void Navigator::set_user_agent(::std::string&& value) {
set_has_user_agent();
user_agent_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:userfeedback.Navigator.user_agent)
}
#endif
void Navigator::set_user_agent(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_user_agent();
user_agent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:userfeedback.Navigator.user_agent)
}
void Navigator::set_user_agent(const char* value, size_t size) {
set_has_user_agent();
user_agent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:userfeedback.Navigator.user_agent)
}
::std::string* Navigator::mutable_user_agent() {
set_has_user_agent();
// @@protoc_insertion_point(field_mutable:userfeedback.Navigator.user_agent)
return user_agent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Navigator::release_user_agent() {
// @@protoc_insertion_point(field_release:userfeedback.Navigator.user_agent)
clear_has_user_agent();
return user_agent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Navigator::set_allocated_user_agent(::std::string* user_agent) {
if (user_agent != NULL) {
set_has_user_agent();
} else {
clear_has_user_agent();
}
user_agent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), user_agent);
// @@protoc_insertion_point(field_set_allocated:userfeedback.Navigator.user_agent)
}
// optional bool java_enabled = 12;
bool Navigator::has_java_enabled() const {
return (_has_bits_[0] & 0x00000800u) != 0;
}
void Navigator::set_has_java_enabled() {
_has_bits_[0] |= 0x00000800u;
}
void Navigator::clear_has_java_enabled() {
_has_bits_[0] &= ~0x00000800u;
}
void Navigator::clear_java_enabled() {
java_enabled_ = false;
clear_has_java_enabled();
}
bool Navigator::java_enabled() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.java_enabled)
return java_enabled_;
}
void Navigator::set_java_enabled(bool value) {
set_has_java_enabled();
java_enabled_ = value;
// @@protoc_insertion_point(field_set:userfeedback.Navigator.java_enabled)
}
// optional bool taint_enabled = 13;
bool Navigator::has_taint_enabled() const {
return (_has_bits_[0] & 0x00001000u) != 0;
}
void Navigator::set_has_taint_enabled() {
_has_bits_[0] |= 0x00001000u;
}
void Navigator::clear_has_taint_enabled() {
_has_bits_[0] &= ~0x00001000u;
}
void Navigator::clear_taint_enabled() {
taint_enabled_ = false;
clear_has_taint_enabled();
}
bool Navigator::taint_enabled() const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.taint_enabled)
return taint_enabled_;
}
void Navigator::set_taint_enabled(bool value) {
set_has_taint_enabled();
taint_enabled_ = value;
// @@protoc_insertion_point(field_set:userfeedback.Navigator.taint_enabled)
}
// repeated string plugin_name = 14;
int Navigator::plugin_name_size() const {
return plugin_name_.size();
}
void Navigator::clear_plugin_name() {
plugin_name_.Clear();
}
const ::std::string& Navigator::plugin_name(int index) const {
// @@protoc_insertion_point(field_get:userfeedback.Navigator.plugin_name)
return plugin_name_.Get(index);
}
::std::string* Navigator::mutable_plugin_name(int index) {
// @@protoc_insertion_point(field_mutable:userfeedback.Navigator.plugin_name)
return plugin_name_.Mutable(index);
}
void Navigator::set_plugin_name(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:userfeedback.Navigator.plugin_name)
plugin_name_.Mutable(index)->assign(value);
}
#if LANG_CXX11
void Navigator::set_plugin_name(int index, ::std::string&& value) {
// @@protoc_insertion_point(field_set:userfeedback.Navigator.plugin_name)
plugin_name_.Mutable(index)->assign(std::move(value));
}
#endif
void Navigator::set_plugin_name(int index, const char* value) {
GOOGLE_DCHECK(value != NULL);
plugin_name_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:userfeedback.Navigator.plugin_name)
}
void Navigator::set_plugin_name(int index, const char* value, size_t size) {
plugin_name_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:userfeedback.Navigator.plugin_name)
}
::std::string* Navigator::add_plugin_name() {
// @@protoc_insertion_point(field_add_mutable:userfeedback.Navigator.plugin_name)
return plugin_name_.Add();
}
void Navigator::add_plugin_name(const ::std::string& value) {
plugin_name_.Add()->assign(value);
// @@protoc_insertion_point(field_add:userfeedback.Navigator.plugin_name)
}
#if LANG_CXX11
void Navigator::add_plugin_name(::std::string&& value) {
plugin_name_.Add(std::move(value));
// @@protoc_insertion_point(field_add:userfeedback.Navigator.plugin_name)
}
#endif
void Navigator::add_plugin_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
plugin_name_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:userfeedback.Navigator.plugin_name)
}
void Navigator::add_plugin_name(const char* value, size_t size) {
plugin_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:userfeedback.Navigator.plugin_name)
}
const ::google::protobuf::RepeatedPtrField< ::std::string>&
Navigator::plugin_name() const {
// @@protoc_insertion_point(field_list:userfeedback.Navigator.plugin_name)
return plugin_name_;
}
::google::protobuf::RepeatedPtrField< ::std::string>*
Navigator::mutable_plugin_name() {
// @@protoc_insertion_point(field_mutable_list:userfeedback.Navigator.plugin_name)
return &plugin_name_;
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int HtmlPath::kIndexFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
HtmlPath::HtmlPath()
: ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_dom_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:userfeedback.HtmlPath)
}
HtmlPath::HtmlPath(const HtmlPath& from)
: ::google::protobuf::MessageLite(),
_internal_metadata_(NULL),
_has_bits_(from._has_bits_),
_cached_size_(0),
index_(from.index_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:userfeedback.HtmlPath)
}
void HtmlPath::SharedCtor() {
_cached_size_ = 0;
}
HtmlPath::~HtmlPath() {
// @@protoc_insertion_point(destructor:userfeedback.HtmlPath)
SharedDtor();
}
void HtmlPath::SharedDtor() {
}
void HtmlPath::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const HtmlPath& HtmlPath::default_instance() {
protobuf_dom_2eproto::InitDefaults();
return *internal_default_instance();
}
HtmlPath* HtmlPath::New(::google::protobuf::Arena* arena) const {
HtmlPath* n = new HtmlPath;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void HtmlPath::Clear() {
// @@protoc_insertion_point(message_clear_start:userfeedback.HtmlPath)
index_.Clear();
_has_bits_.Clear();
_internal_metadata_.Clear();
}
bool HtmlPath::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
::google::protobuf::NewPermanentCallback(&_internal_metadata_,
&::google::protobuf::internal::InternalMetadataWithArenaLite::
mutable_unknown_fields));
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
&unknown_fields_string, false);
// @@protoc_insertion_point(parse_start:userfeedback.HtmlPath)
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)) {
// repeated int32 index = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(8u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1, 8u, input, this->mutable_index())));
} else if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(10u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, this->mutable_index())));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(
input, tag, &unknown_fields_stream));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:userfeedback.HtmlPath)
return true;
failure:
// @@protoc_insertion_point(parse_failure:userfeedback.HtmlPath)
return false;
#undef DO_
}
void HtmlPath::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:userfeedback.HtmlPath)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// repeated int32 index = 1;
for (int i = 0, n = this->index_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteInt32(
1, this->index(i), output);
}
output->WriteRaw(unknown_fields().data(),
static_cast<int>(unknown_fields().size()));
// @@protoc_insertion_point(serialize_end:userfeedback.HtmlPath)
}
size_t HtmlPath::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:userfeedback.HtmlPath)
size_t total_size = 0;
total_size += unknown_fields().size();
// repeated int32 index = 1;
{
size_t data_size = ::google::protobuf::internal::WireFormatLite::
Int32Size(this->index_);
total_size += 1 *
::google::protobuf::internal::FromIntSize(this->index_size());
total_size += data_size;
}
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 HtmlPath::CheckTypeAndMergeFrom(
const ::google::protobuf::MessageLite& from) {
MergeFrom(*::google::protobuf::down_cast<const HtmlPath*>(&from));
}
void HtmlPath::MergeFrom(const HtmlPath& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:userfeedback.HtmlPath)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
index_.MergeFrom(from.index_);
}
void HtmlPath::CopyFrom(const HtmlPath& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:userfeedback.HtmlPath)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool HtmlPath::IsInitialized() const {
return true;
}
void HtmlPath::Swap(HtmlPath* other) {
if (other == this) return;
InternalSwap(other);
}
void HtmlPath::InternalSwap(HtmlPath* other) {
index_.InternalSwap(&other->index_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_internal_metadata_.Swap(&other->_internal_metadata_);
std::swap(_cached_size_, other->_cached_size_);
}
::std::string HtmlPath::GetTypeName() const {
return "userfeedback.HtmlPath";
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// HtmlPath
// repeated int32 index = 1;
int HtmlPath::index_size() const {
return index_.size();
}
void HtmlPath::clear_index() {
index_.Clear();
}
::google::protobuf::int32 HtmlPath::index(int index) const {
// @@protoc_insertion_point(field_get:userfeedback.HtmlPath.index)
return index_.Get(index);
}
void HtmlPath::set_index(int index, ::google::protobuf::int32 value) {
index_.Set(index, value);
// @@protoc_insertion_point(field_set:userfeedback.HtmlPath.index)
}
void HtmlPath::add_index(::google::protobuf::int32 value) {
index_.Add(value);
// @@protoc_insertion_point(field_add:userfeedback.HtmlPath.index)
}
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
HtmlPath::index() const {
// @@protoc_insertion_point(field_list:userfeedback.HtmlPath.index)
return index_;
}
::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
HtmlPath::mutable_index() {
// @@protoc_insertion_point(field_mutable_list:userfeedback.HtmlPath.index)
return &index_;
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// @@protoc_insertion_point(namespace_scope)
} // namespace userfeedback
// @@protoc_insertion_point(global_scope)