mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
3a7487a7d0
--HG-- rename : toolkit/components/protobuf/google/protobuf/extension_set.cc => toolkit/components/protobuf/src/google/protobuf/extension_set.cc rename : toolkit/components/protobuf/google/protobuf/extension_set.h => toolkit/components/protobuf/src/google/protobuf/extension_set.h rename : toolkit/components/protobuf/google/protobuf/generated_message_util.cc => toolkit/components/protobuf/src/google/protobuf/generated_message_util.cc rename : toolkit/components/protobuf/google/protobuf/generated_message_util.h => toolkit/components/protobuf/src/google/protobuf/generated_message_util.h rename : toolkit/components/protobuf/google/protobuf/io/coded_stream.cc => toolkit/components/protobuf/src/google/protobuf/io/coded_stream.cc rename : toolkit/components/protobuf/google/protobuf/io/coded_stream.h => toolkit/components/protobuf/src/google/protobuf/io/coded_stream.h rename : toolkit/components/protobuf/google/protobuf/io/coded_stream_inl.h => toolkit/components/protobuf/src/google/protobuf/io/coded_stream_inl.h rename : toolkit/components/protobuf/google/protobuf/io/package_info.h => toolkit/components/protobuf/src/google/protobuf/io/package_info.h rename : toolkit/components/protobuf/google/protobuf/io/zero_copy_stream.cc => toolkit/components/protobuf/src/google/protobuf/io/strtod.h rename : toolkit/components/protobuf/google/protobuf/io/zero_copy_stream.cc => toolkit/components/protobuf/src/google/protobuf/io/zero_copy_stream.cc rename : toolkit/components/protobuf/google/protobuf/io/zero_copy_stream.h => toolkit/components/protobuf/src/google/protobuf/io/zero_copy_stream.h rename : toolkit/components/protobuf/google/protobuf/io/zero_copy_stream_impl.h => toolkit/components/protobuf/src/google/protobuf/io/zero_copy_stream_impl.h rename : toolkit/components/protobuf/google/protobuf/io/zero_copy_stream_impl_lite.cc => toolkit/components/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc rename : toolkit/components/protobuf/google/protobuf/io/zero_copy_stream_impl_lite.h => toolkit/components/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h rename : toolkit/components/protobuf/google/protobuf/message_lite.cc => toolkit/components/protobuf/src/google/protobuf/message_lite.cc rename : toolkit/components/protobuf/google/protobuf/message_lite.h => toolkit/components/protobuf/src/google/protobuf/message_lite.h rename : toolkit/components/protobuf/google/protobuf/package_info.h => toolkit/components/protobuf/src/google/protobuf/package_info.h rename : toolkit/components/protobuf/google/protobuf/generated_message_util.h => toolkit/components/protobuf/src/google/protobuf/reflection_ops.h rename : toolkit/components/protobuf/google/protobuf/repeated_field.cc => toolkit/components/protobuf/src/google/protobuf/repeated_field.cc rename : toolkit/components/protobuf/google/protobuf/repeated_field.h => toolkit/components/protobuf/src/google/protobuf/repeated_field.h rename : toolkit/components/protobuf/google/protobuf/io/zero_copy_stream.cc => toolkit/components/protobuf/src/google/protobuf/service.cc rename : toolkit/components/protobuf/google/protobuf/generated_message_util.cc => toolkit/components/protobuf/src/google/protobuf/stubs/atomicops_internals_pnacl.h rename : toolkit/components/protobuf/google/protobuf/stubs/common.cc => toolkit/components/protobuf/src/google/protobuf/stubs/common.cc rename : toolkit/components/protobuf/google/protobuf/stubs/common.h => toolkit/components/protobuf/src/google/protobuf/stubs/common.h rename : toolkit/components/protobuf/google/protobuf/stubs/hash.h => toolkit/components/protobuf/src/google/protobuf/stubs/hash.h rename : toolkit/components/protobuf/google/protobuf/stubs/once.cc => toolkit/components/protobuf/src/google/protobuf/stubs/once.cc rename : toolkit/components/protobuf/google/protobuf/stubs/once.h => toolkit/components/protobuf/src/google/protobuf/stubs/once.h rename : toolkit/components/protobuf/google/protobuf/stubs/stl_util-inl.h => toolkit/components/protobuf/src/google/protobuf/stubs/stl_util.h rename : toolkit/components/protobuf/google/protobuf/generated_message_util.h => toolkit/components/protobuf/src/google/protobuf/stubs/stringprintf.h rename : toolkit/components/protobuf/google/protobuf/wire_format_lite.cc => toolkit/components/protobuf/src/google/protobuf/wire_format_lite.cc rename : toolkit/components/protobuf/google/protobuf/wire_format_lite.h => toolkit/components/protobuf/src/google/protobuf/wire_format_lite.h rename : toolkit/components/protobuf/google/protobuf/wire_format_lite_inl.h => toolkit/components/protobuf/src/google/protobuf/wire_format_lite_inl.h
12070 lines
421 KiB
C++
12070 lines
421 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: csd.proto
|
|
|
|
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
|
|
#include "csd.pb.h"
|
|
|
|
#include <algorithm>
|
|
|
|
#include <google/protobuf/stubs/common.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 safe_browsing {
|
|
|
|
void protobuf_ShutdownFile_csd_2eproto() {
|
|
delete ClientPhishingRequest::default_instance_;
|
|
delete ClientPhishingRequest_Feature::default_instance_;
|
|
delete ClientPhishingResponse::default_instance_;
|
|
delete ClientMalwareRequest::default_instance_;
|
|
delete ClientMalwareRequest_UrlInfo::default_instance_;
|
|
delete ClientMalwareResponse::default_instance_;
|
|
delete ClientDownloadRequest::default_instance_;
|
|
delete ClientDownloadRequest_Digests::default_instance_;
|
|
delete ClientDownloadRequest_Resource::default_instance_;
|
|
delete ClientDownloadRequest_CertificateChain::default_instance_;
|
|
delete ClientDownloadRequest_CertificateChain_Element::default_instance_;
|
|
delete ClientDownloadRequest_SignatureInfo::default_instance_;
|
|
delete ClientDownloadRequest_PEImageHeaders::default_instance_;
|
|
delete ClientDownloadRequest_PEImageHeaders_DebugData::default_instance_;
|
|
delete ClientDownloadRequest_ImageHeaders::default_instance_;
|
|
delete ClientDownloadRequest_ArchivedBinary::default_instance_;
|
|
delete ClientDownloadResponse::default_instance_;
|
|
delete ClientDownloadResponse_MoreInfo::default_instance_;
|
|
delete ClientDownloadReport::default_instance_;
|
|
delete ClientDownloadReport_UserInformation::default_instance_;
|
|
delete ClientUploadResponse::default_instance_;
|
|
delete ClientIncidentReport::default_instance_;
|
|
delete ClientIncidentReport_IncidentData::default_instance_;
|
|
delete ClientIncidentReport_IncidentData_TrackedPreferenceIncident::default_instance_;
|
|
delete ClientIncidentReport_IncidentData_BinaryIntegrityIncident::default_instance_;
|
|
delete ClientIncidentReport_IncidentData_BlacklistLoadIncident::default_instance_;
|
|
delete ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::default_instance_;
|
|
delete ClientIncidentReport_IncidentData_ScriptRequestIncident::default_instance_;
|
|
delete ClientIncidentReport_DownloadDetails::default_instance_;
|
|
delete ClientIncidentReport_EnvironmentData::default_instance_;
|
|
delete ClientIncidentReport_EnvironmentData_OS::default_instance_;
|
|
delete ClientIncidentReport_EnvironmentData_Machine::default_instance_;
|
|
delete ClientIncidentReport_EnvironmentData_Process::default_instance_;
|
|
delete ClientIncidentReport_EnvironmentData_Process_Patch::default_instance_;
|
|
delete ClientIncidentReport_EnvironmentData_Process_NetworkProvider::default_instance_;
|
|
delete ClientIncidentReport_EnvironmentData_Process_Dll::default_instance_;
|
|
delete ClientIncidentReport_EnvironmentData_Process_ModuleState::default_instance_;
|
|
delete ClientIncidentResponse::default_instance_;
|
|
delete ClientIncidentResponse_EnvironmentRequest::default_instance_;
|
|
delete DownloadMetadata::default_instance_;
|
|
}
|
|
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
void protobuf_AddDesc_csd_2eproto_impl() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
#else
|
|
void protobuf_AddDesc_csd_2eproto() {
|
|
static bool already_here = false;
|
|
if (already_here) return;
|
|
already_here = true;
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
#endif
|
|
ClientPhishingRequest::default_instance_ = new ClientPhishingRequest();
|
|
ClientPhishingRequest_Feature::default_instance_ = new ClientPhishingRequest_Feature();
|
|
ClientPhishingResponse::default_instance_ = new ClientPhishingResponse();
|
|
ClientMalwareRequest::default_instance_ = new ClientMalwareRequest();
|
|
ClientMalwareRequest_UrlInfo::default_instance_ = new ClientMalwareRequest_UrlInfo();
|
|
ClientMalwareResponse::default_instance_ = new ClientMalwareResponse();
|
|
ClientDownloadRequest::default_instance_ = new ClientDownloadRequest();
|
|
ClientDownloadRequest_Digests::default_instance_ = new ClientDownloadRequest_Digests();
|
|
ClientDownloadRequest_Resource::default_instance_ = new ClientDownloadRequest_Resource();
|
|
ClientDownloadRequest_CertificateChain::default_instance_ = new ClientDownloadRequest_CertificateChain();
|
|
ClientDownloadRequest_CertificateChain_Element::default_instance_ = new ClientDownloadRequest_CertificateChain_Element();
|
|
ClientDownloadRequest_SignatureInfo::default_instance_ = new ClientDownloadRequest_SignatureInfo();
|
|
ClientDownloadRequest_PEImageHeaders::default_instance_ = new ClientDownloadRequest_PEImageHeaders();
|
|
ClientDownloadRequest_PEImageHeaders_DebugData::default_instance_ = new ClientDownloadRequest_PEImageHeaders_DebugData();
|
|
ClientDownloadRequest_ImageHeaders::default_instance_ = new ClientDownloadRequest_ImageHeaders();
|
|
ClientDownloadRequest_ArchivedBinary::default_instance_ = new ClientDownloadRequest_ArchivedBinary();
|
|
ClientDownloadResponse::default_instance_ = new ClientDownloadResponse();
|
|
ClientDownloadResponse_MoreInfo::default_instance_ = new ClientDownloadResponse_MoreInfo();
|
|
ClientDownloadReport::default_instance_ = new ClientDownloadReport();
|
|
ClientDownloadReport_UserInformation::default_instance_ = new ClientDownloadReport_UserInformation();
|
|
ClientUploadResponse::default_instance_ = new ClientUploadResponse();
|
|
ClientIncidentReport::default_instance_ = new ClientIncidentReport();
|
|
ClientIncidentReport_IncidentData::default_instance_ = new ClientIncidentReport_IncidentData();
|
|
ClientIncidentReport_IncidentData_TrackedPreferenceIncident::default_instance_ = new ClientIncidentReport_IncidentData_TrackedPreferenceIncident();
|
|
ClientIncidentReport_IncidentData_BinaryIntegrityIncident::default_instance_ = new ClientIncidentReport_IncidentData_BinaryIntegrityIncident();
|
|
ClientIncidentReport_IncidentData_BlacklistLoadIncident::default_instance_ = new ClientIncidentReport_IncidentData_BlacklistLoadIncident();
|
|
ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::default_instance_ = new ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident();
|
|
ClientIncidentReport_IncidentData_ScriptRequestIncident::default_instance_ = new ClientIncidentReport_IncidentData_ScriptRequestIncident();
|
|
ClientIncidentReport_DownloadDetails::default_instance_ = new ClientIncidentReport_DownloadDetails();
|
|
ClientIncidentReport_EnvironmentData::default_instance_ = new ClientIncidentReport_EnvironmentData();
|
|
ClientIncidentReport_EnvironmentData_OS::default_instance_ = new ClientIncidentReport_EnvironmentData_OS();
|
|
ClientIncidentReport_EnvironmentData_Machine::default_instance_ = new ClientIncidentReport_EnvironmentData_Machine();
|
|
ClientIncidentReport_EnvironmentData_Process::default_instance_ = new ClientIncidentReport_EnvironmentData_Process();
|
|
ClientIncidentReport_EnvironmentData_Process_Patch::default_instance_ = new ClientIncidentReport_EnvironmentData_Process_Patch();
|
|
ClientIncidentReport_EnvironmentData_Process_NetworkProvider::default_instance_ = new ClientIncidentReport_EnvironmentData_Process_NetworkProvider();
|
|
ClientIncidentReport_EnvironmentData_Process_Dll::default_instance_ = new ClientIncidentReport_EnvironmentData_Process_Dll();
|
|
ClientIncidentReport_EnvironmentData_Process_ModuleState::default_instance_ = new ClientIncidentReport_EnvironmentData_Process_ModuleState();
|
|
ClientIncidentResponse::default_instance_ = new ClientIncidentResponse();
|
|
ClientIncidentResponse_EnvironmentRequest::default_instance_ = new ClientIncidentResponse_EnvironmentRequest();
|
|
DownloadMetadata::default_instance_ = new DownloadMetadata();
|
|
ClientPhishingRequest::default_instance_->InitAsDefaultInstance();
|
|
ClientPhishingRequest_Feature::default_instance_->InitAsDefaultInstance();
|
|
ClientPhishingResponse::default_instance_->InitAsDefaultInstance();
|
|
ClientMalwareRequest::default_instance_->InitAsDefaultInstance();
|
|
ClientMalwareRequest_UrlInfo::default_instance_->InitAsDefaultInstance();
|
|
ClientMalwareResponse::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadRequest::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadRequest_Digests::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadRequest_Resource::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadRequest_CertificateChain::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadRequest_CertificateChain_Element::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadRequest_SignatureInfo::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadRequest_PEImageHeaders::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadRequest_PEImageHeaders_DebugData::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadRequest_ImageHeaders::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadRequest_ArchivedBinary::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadResponse::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadResponse_MoreInfo::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadReport::default_instance_->InitAsDefaultInstance();
|
|
ClientDownloadReport_UserInformation::default_instance_->InitAsDefaultInstance();
|
|
ClientUploadResponse::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_IncidentData::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_IncidentData_TrackedPreferenceIncident::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_IncidentData_BinaryIntegrityIncident::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_IncidentData_BlacklistLoadIncident::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_IncidentData_ScriptRequestIncident::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_DownloadDetails::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_EnvironmentData::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_EnvironmentData_OS::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_EnvironmentData_Machine::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_EnvironmentData_Process::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_EnvironmentData_Process_Patch::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_EnvironmentData_Process_NetworkProvider::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_EnvironmentData_Process_Dll::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentReport_EnvironmentData_Process_ModuleState::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentResponse::default_instance_->InitAsDefaultInstance();
|
|
ClientIncidentResponse_EnvironmentRequest::default_instance_->InitAsDefaultInstance();
|
|
DownloadMetadata::default_instance_->InitAsDefaultInstance();
|
|
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_csd_2eproto);
|
|
}
|
|
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_csd_2eproto_once_);
|
|
void protobuf_AddDesc_csd_2eproto() {
|
|
::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_csd_2eproto_once_,
|
|
&protobuf_AddDesc_csd_2eproto_impl);
|
|
}
|
|
#else
|
|
// Force AddDescriptors() to be called at static initialization time.
|
|
struct StaticDescriptorInitializer_csd_2eproto {
|
|
StaticDescriptorInitializer_csd_2eproto() {
|
|
protobuf_AddDesc_csd_2eproto();
|
|
}
|
|
} static_descriptor_initializer_csd_2eproto_;
|
|
#endif
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientPhishingRequest_Feature::kNameFieldNumber;
|
|
const int ClientPhishingRequest_Feature::kValueFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientPhishingRequest_Feature::ClientPhishingRequest_Feature()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientPhishingRequest.Feature)
|
|
}
|
|
|
|
void ClientPhishingRequest_Feature::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientPhishingRequest_Feature::ClientPhishingRequest_Feature(const ClientPhishingRequest_Feature& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientPhishingRequest.Feature)
|
|
}
|
|
|
|
void ClientPhishingRequest_Feature::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
value_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientPhishingRequest_Feature::~ClientPhishingRequest_Feature() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientPhishingRequest.Feature)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientPhishingRequest_Feature::SharedDtor() {
|
|
if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete name_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientPhishingRequest_Feature::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientPhishingRequest_Feature& ClientPhishingRequest_Feature::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientPhishingRequest_Feature* ClientPhishingRequest_Feature::default_instance_ = NULL;
|
|
|
|
ClientPhishingRequest_Feature* ClientPhishingRequest_Feature::New() const {
|
|
return new ClientPhishingRequest_Feature;
|
|
}
|
|
|
|
void ClientPhishingRequest_Feature::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
if (has_name()) {
|
|
if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
name_->clear();
|
|
}
|
|
}
|
|
value_ = 0;
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientPhishingRequest_Feature::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientPhishingRequest.Feature)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string name = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_name()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(17)) goto parse_value;
|
|
break;
|
|
}
|
|
|
|
// required double value = 2;
|
|
case 2: {
|
|
if (tag == 17) {
|
|
parse_value:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
|
input, &value_)));
|
|
set_has_value();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientPhishingRequest.Feature)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientPhishingRequest.Feature)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientPhishingRequest_Feature::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientPhishingRequest.Feature)
|
|
// required string name = 1;
|
|
if (has_name()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->name(), output);
|
|
}
|
|
|
|
// required double value = 2;
|
|
if (has_value()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->value(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientPhishingRequest.Feature)
|
|
}
|
|
|
|
int ClientPhishingRequest_Feature::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string name = 1;
|
|
if (has_name()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->name());
|
|
}
|
|
|
|
// required double value = 2;
|
|
if (has_value()) {
|
|
total_size += 1 + 8;
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientPhishingRequest_Feature::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientPhishingRequest_Feature*>(&from));
|
|
}
|
|
|
|
void ClientPhishingRequest_Feature::MergeFrom(const ClientPhishingRequest_Feature& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_name()) {
|
|
set_name(from.name());
|
|
}
|
|
if (from.has_value()) {
|
|
set_value(from.value());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientPhishingRequest_Feature::CopyFrom(const ClientPhishingRequest_Feature& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientPhishingRequest_Feature::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientPhishingRequest_Feature::Swap(ClientPhishingRequest_Feature* other) {
|
|
if (other != this) {
|
|
std::swap(name_, other->name_);
|
|
std::swap(value_, other->value_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientPhishingRequest_Feature::GetTypeName() const {
|
|
return "safe_browsing.ClientPhishingRequest.Feature";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientPhishingRequest::kUrlFieldNumber;
|
|
const int ClientPhishingRequest::kOBSOLETEHashPrefixFieldNumber;
|
|
const int ClientPhishingRequest::kClientScoreFieldNumber;
|
|
const int ClientPhishingRequest::kIsPhishingFieldNumber;
|
|
const int ClientPhishingRequest::kFeatureMapFieldNumber;
|
|
const int ClientPhishingRequest::kModelVersionFieldNumber;
|
|
const int ClientPhishingRequest::kNonModelFeatureMapFieldNumber;
|
|
const int ClientPhishingRequest::kOBSOLETEReferrerUrlFieldNumber;
|
|
const int ClientPhishingRequest::kShingleHashesFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientPhishingRequest::ClientPhishingRequest()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientPhishingRequest)
|
|
}
|
|
|
|
void ClientPhishingRequest::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientPhishingRequest::ClientPhishingRequest(const ClientPhishingRequest& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientPhishingRequest)
|
|
}
|
|
|
|
void ClientPhishingRequest::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
obsolete_hash_prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
client_score_ = 0;
|
|
is_phishing_ = false;
|
|
model_version_ = 0;
|
|
obsolete_referrer_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientPhishingRequest::~ClientPhishingRequest() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientPhishingRequest)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientPhishingRequest::SharedDtor() {
|
|
if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete url_;
|
|
}
|
|
if (obsolete_hash_prefix_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete obsolete_hash_prefix_;
|
|
}
|
|
if (obsolete_referrer_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete obsolete_referrer_url_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientPhishingRequest::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientPhishingRequest& ClientPhishingRequest::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientPhishingRequest* ClientPhishingRequest::default_instance_ = NULL;
|
|
|
|
ClientPhishingRequest* ClientPhishingRequest::New() const {
|
|
return new ClientPhishingRequest;
|
|
}
|
|
|
|
void ClientPhishingRequest::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<ClientPhishingRequest*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 175) {
|
|
ZR_(client_score_, is_phishing_);
|
|
if (has_url()) {
|
|
if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
url_->clear();
|
|
}
|
|
}
|
|
if (has_obsolete_hash_prefix()) {
|
|
if (obsolete_hash_prefix_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
obsolete_hash_prefix_->clear();
|
|
}
|
|
}
|
|
model_version_ = 0;
|
|
if (has_obsolete_referrer_url()) {
|
|
if (obsolete_referrer_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
obsolete_referrer_url_->clear();
|
|
}
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
feature_map_.Clear();
|
|
non_model_feature_map_.Clear();
|
|
shingle_hashes_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientPhishingRequest::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientPhishingRequest)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string url = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_url()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(21)) goto parse_client_score;
|
|
break;
|
|
}
|
|
|
|
// required float client_score = 2;
|
|
case 2: {
|
|
if (tag == 21) {
|
|
parse_client_score:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &client_score_)));
|
|
set_has_client_score();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_is_phishing;
|
|
break;
|
|
}
|
|
|
|
// optional bool is_phishing = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_is_phishing:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &is_phishing_)));
|
|
set_has_is_phishing();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(42)) goto parse_feature_map;
|
|
break;
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientPhishingRequest.Feature feature_map = 5;
|
|
case 5: {
|
|
if (tag == 42) {
|
|
parse_feature_map:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_feature_map()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(42)) goto parse_feature_map;
|
|
if (input->ExpectTag(48)) goto parse_model_version;
|
|
break;
|
|
}
|
|
|
|
// optional int32 model_version = 6;
|
|
case 6: {
|
|
if (tag == 48) {
|
|
parse_model_version:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &model_version_)));
|
|
set_has_model_version();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(66)) goto parse_non_model_feature_map;
|
|
break;
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientPhishingRequest.Feature non_model_feature_map = 8;
|
|
case 8: {
|
|
if (tag == 66) {
|
|
parse_non_model_feature_map:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_non_model_feature_map()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(66)) goto parse_non_model_feature_map;
|
|
if (input->ExpectTag(74)) goto parse_OBSOLETE_referrer_url;
|
|
break;
|
|
}
|
|
|
|
// optional string OBSOLETE_referrer_url = 9;
|
|
case 9: {
|
|
if (tag == 74) {
|
|
parse_OBSOLETE_referrer_url:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_obsolete_referrer_url()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(82)) goto parse_OBSOLETE_hash_prefix;
|
|
break;
|
|
}
|
|
|
|
// optional bytes OBSOLETE_hash_prefix = 10;
|
|
case 10: {
|
|
if (tag == 82) {
|
|
parse_OBSOLETE_hash_prefix:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_obsolete_hash_prefix()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(98)) goto parse_shingle_hashes;
|
|
break;
|
|
}
|
|
|
|
// repeated uint32 shingle_hashes = 12 [packed = true];
|
|
case 12: {
|
|
if (tag == 98) {
|
|
parse_shingle_hashes:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
|
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, this->mutable_shingle_hashes())));
|
|
} else if (tag == 96) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
|
1, 98, input, this->mutable_shingle_hashes())));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientPhishingRequest)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientPhishingRequest)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientPhishingRequest::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientPhishingRequest)
|
|
// optional string url = 1;
|
|
if (has_url()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->url(), output);
|
|
}
|
|
|
|
// required float client_score = 2;
|
|
if (has_client_score()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->client_score(), output);
|
|
}
|
|
|
|
// optional bool is_phishing = 4;
|
|
if (has_is_phishing()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_phishing(), output);
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientPhishingRequest.Feature feature_map = 5;
|
|
for (int i = 0; i < this->feature_map_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
5, this->feature_map(i), output);
|
|
}
|
|
|
|
// optional int32 model_version = 6;
|
|
if (has_model_version()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->model_version(), output);
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientPhishingRequest.Feature non_model_feature_map = 8;
|
|
for (int i = 0; i < this->non_model_feature_map_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
8, this->non_model_feature_map(i), output);
|
|
}
|
|
|
|
// optional string OBSOLETE_referrer_url = 9;
|
|
if (has_obsolete_referrer_url()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
9, this->obsolete_referrer_url(), output);
|
|
}
|
|
|
|
// optional bytes OBSOLETE_hash_prefix = 10;
|
|
if (has_obsolete_hash_prefix()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
10, this->obsolete_hash_prefix(), output);
|
|
}
|
|
|
|
// repeated uint32 shingle_hashes = 12 [packed = true];
|
|
if (this->shingle_hashes_size() > 0) {
|
|
::google::protobuf::internal::WireFormatLite::WriteTag(12, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
|
|
output->WriteVarint32(_shingle_hashes_cached_byte_size_);
|
|
}
|
|
for (int i = 0; i < this->shingle_hashes_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
|
|
this->shingle_hashes(i), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientPhishingRequest)
|
|
}
|
|
|
|
int ClientPhishingRequest::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string url = 1;
|
|
if (has_url()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->url());
|
|
}
|
|
|
|
// optional bytes OBSOLETE_hash_prefix = 10;
|
|
if (has_obsolete_hash_prefix()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->obsolete_hash_prefix());
|
|
}
|
|
|
|
// required float client_score = 2;
|
|
if (has_client_score()) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// optional bool is_phishing = 4;
|
|
if (has_is_phishing()) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
// optional int32 model_version = 6;
|
|
if (has_model_version()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->model_version());
|
|
}
|
|
|
|
// optional string OBSOLETE_referrer_url = 9;
|
|
if (has_obsolete_referrer_url()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->obsolete_referrer_url());
|
|
}
|
|
|
|
}
|
|
// repeated .safe_browsing.ClientPhishingRequest.Feature feature_map = 5;
|
|
total_size += 1 * this->feature_map_size();
|
|
for (int i = 0; i < this->feature_map_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->feature_map(i));
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientPhishingRequest.Feature non_model_feature_map = 8;
|
|
total_size += 1 * this->non_model_feature_map_size();
|
|
for (int i = 0; i < this->non_model_feature_map_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->non_model_feature_map(i));
|
|
}
|
|
|
|
// repeated uint32 shingle_hashes = 12 [packed = true];
|
|
{
|
|
int data_size = 0;
|
|
for (int i = 0; i < this->shingle_hashes_size(); i++) {
|
|
data_size += ::google::protobuf::internal::WireFormatLite::
|
|
UInt32Size(this->shingle_hashes(i));
|
|
}
|
|
if (data_size > 0) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_shingle_hashes_cached_byte_size_ = data_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
total_size += data_size;
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientPhishingRequest::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientPhishingRequest*>(&from));
|
|
}
|
|
|
|
void ClientPhishingRequest::MergeFrom(const ClientPhishingRequest& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
feature_map_.MergeFrom(from.feature_map_);
|
|
non_model_feature_map_.MergeFrom(from.non_model_feature_map_);
|
|
shingle_hashes_.MergeFrom(from.shingle_hashes_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_url()) {
|
|
set_url(from.url());
|
|
}
|
|
if (from.has_obsolete_hash_prefix()) {
|
|
set_obsolete_hash_prefix(from.obsolete_hash_prefix());
|
|
}
|
|
if (from.has_client_score()) {
|
|
set_client_score(from.client_score());
|
|
}
|
|
if (from.has_is_phishing()) {
|
|
set_is_phishing(from.is_phishing());
|
|
}
|
|
if (from.has_model_version()) {
|
|
set_model_version(from.model_version());
|
|
}
|
|
if (from.has_obsolete_referrer_url()) {
|
|
set_obsolete_referrer_url(from.obsolete_referrer_url());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientPhishingRequest::CopyFrom(const ClientPhishingRequest& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientPhishingRequest::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000004) != 0x00000004) return false;
|
|
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->feature_map())) return false;
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->non_model_feature_map())) return false;
|
|
return true;
|
|
}
|
|
|
|
void ClientPhishingRequest::Swap(ClientPhishingRequest* other) {
|
|
if (other != this) {
|
|
std::swap(url_, other->url_);
|
|
std::swap(obsolete_hash_prefix_, other->obsolete_hash_prefix_);
|
|
std::swap(client_score_, other->client_score_);
|
|
std::swap(is_phishing_, other->is_phishing_);
|
|
feature_map_.Swap(&other->feature_map_);
|
|
std::swap(model_version_, other->model_version_);
|
|
non_model_feature_map_.Swap(&other->non_model_feature_map_);
|
|
std::swap(obsolete_referrer_url_, other->obsolete_referrer_url_);
|
|
shingle_hashes_.Swap(&other->shingle_hashes_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientPhishingRequest::GetTypeName() const {
|
|
return "safe_browsing.ClientPhishingRequest";
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientPhishingResponse::kPhishyFieldNumber;
|
|
const int ClientPhishingResponse::kOBSOLETEWhitelistExpressionFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientPhishingResponse::ClientPhishingResponse()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientPhishingResponse)
|
|
}
|
|
|
|
void ClientPhishingResponse::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientPhishingResponse::ClientPhishingResponse(const ClientPhishingResponse& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientPhishingResponse)
|
|
}
|
|
|
|
void ClientPhishingResponse::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
phishy_ = false;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientPhishingResponse::~ClientPhishingResponse() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientPhishingResponse)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientPhishingResponse::SharedDtor() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientPhishingResponse::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientPhishingResponse& ClientPhishingResponse::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientPhishingResponse* ClientPhishingResponse::default_instance_ = NULL;
|
|
|
|
ClientPhishingResponse* ClientPhishingResponse::New() const {
|
|
return new ClientPhishingResponse;
|
|
}
|
|
|
|
void ClientPhishingResponse::Clear() {
|
|
phishy_ = false;
|
|
obsolete_whitelist_expression_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientPhishingResponse::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientPhishingResponse)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required bool phishy = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &phishy_)));
|
|
set_has_phishy();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_OBSOLETE_whitelist_expression;
|
|
break;
|
|
}
|
|
|
|
// repeated string OBSOLETE_whitelist_expression = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_OBSOLETE_whitelist_expression:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_obsolete_whitelist_expression()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_OBSOLETE_whitelist_expression;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientPhishingResponse)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientPhishingResponse)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientPhishingResponse::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientPhishingResponse)
|
|
// required bool phishy = 1;
|
|
if (has_phishy()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBool(1, this->phishy(), output);
|
|
}
|
|
|
|
// repeated string OBSOLETE_whitelist_expression = 2;
|
|
for (int i = 0; i < this->obsolete_whitelist_expression_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
2, this->obsolete_whitelist_expression(i), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientPhishingResponse)
|
|
}
|
|
|
|
int ClientPhishingResponse::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required bool phishy = 1;
|
|
if (has_phishy()) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
}
|
|
// repeated string OBSOLETE_whitelist_expression = 2;
|
|
total_size += 1 * this->obsolete_whitelist_expression_size();
|
|
for (int i = 0; i < this->obsolete_whitelist_expression_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->obsolete_whitelist_expression(i));
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientPhishingResponse::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientPhishingResponse*>(&from));
|
|
}
|
|
|
|
void ClientPhishingResponse::MergeFrom(const ClientPhishingResponse& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
obsolete_whitelist_expression_.MergeFrom(from.obsolete_whitelist_expression_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_phishy()) {
|
|
set_phishy(from.phishy());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientPhishingResponse::CopyFrom(const ClientPhishingResponse& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientPhishingResponse::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientPhishingResponse::Swap(ClientPhishingResponse* other) {
|
|
if (other != this) {
|
|
std::swap(phishy_, other->phishy_);
|
|
obsolete_whitelist_expression_.Swap(&other->obsolete_whitelist_expression_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientPhishingResponse::GetTypeName() const {
|
|
return "safe_browsing.ClientPhishingResponse";
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientMalwareRequest_UrlInfo::kIpFieldNumber;
|
|
const int ClientMalwareRequest_UrlInfo::kUrlFieldNumber;
|
|
const int ClientMalwareRequest_UrlInfo::kMethodFieldNumber;
|
|
const int ClientMalwareRequest_UrlInfo::kReferrerFieldNumber;
|
|
const int ClientMalwareRequest_UrlInfo::kResourceTypeFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientMalwareRequest_UrlInfo::ClientMalwareRequest_UrlInfo()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientMalwareRequest.UrlInfo)
|
|
}
|
|
|
|
void ClientMalwareRequest_UrlInfo::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientMalwareRequest_UrlInfo::ClientMalwareRequest_UrlInfo(const ClientMalwareRequest_UrlInfo& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientMalwareRequest.UrlInfo)
|
|
}
|
|
|
|
void ClientMalwareRequest_UrlInfo::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
ip_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
method_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
referrer_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
resource_type_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientMalwareRequest_UrlInfo::~ClientMalwareRequest_UrlInfo() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientMalwareRequest.UrlInfo)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientMalwareRequest_UrlInfo::SharedDtor() {
|
|
if (ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete ip_;
|
|
}
|
|
if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete url_;
|
|
}
|
|
if (method_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete method_;
|
|
}
|
|
if (referrer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete referrer_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientMalwareRequest_UrlInfo::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientMalwareRequest_UrlInfo& ClientMalwareRequest_UrlInfo::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientMalwareRequest_UrlInfo* ClientMalwareRequest_UrlInfo::default_instance_ = NULL;
|
|
|
|
ClientMalwareRequest_UrlInfo* ClientMalwareRequest_UrlInfo::New() const {
|
|
return new ClientMalwareRequest_UrlInfo;
|
|
}
|
|
|
|
void ClientMalwareRequest_UrlInfo::Clear() {
|
|
if (_has_bits_[0 / 32] & 31) {
|
|
if (has_ip()) {
|
|
if (ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
ip_->clear();
|
|
}
|
|
}
|
|
if (has_url()) {
|
|
if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
url_->clear();
|
|
}
|
|
}
|
|
if (has_method()) {
|
|
if (method_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
method_->clear();
|
|
}
|
|
}
|
|
if (has_referrer()) {
|
|
if (referrer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
referrer_->clear();
|
|
}
|
|
}
|
|
resource_type_ = 0;
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientMalwareRequest_UrlInfo::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientMalwareRequest.UrlInfo)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string ip = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_ip()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_url;
|
|
break;
|
|
}
|
|
|
|
// required string url = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_url:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_url()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_method;
|
|
break;
|
|
}
|
|
|
|
// optional string method = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_method:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_method()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_referrer;
|
|
break;
|
|
}
|
|
|
|
// optional string referrer = 4;
|
|
case 4: {
|
|
if (tag == 34) {
|
|
parse_referrer:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_referrer()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(40)) goto parse_resource_type;
|
|
break;
|
|
}
|
|
|
|
// optional int32 resource_type = 5;
|
|
case 5: {
|
|
if (tag == 40) {
|
|
parse_resource_type:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &resource_type_)));
|
|
set_has_resource_type();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientMalwareRequest.UrlInfo)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientMalwareRequest.UrlInfo)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientMalwareRequest_UrlInfo::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientMalwareRequest.UrlInfo)
|
|
// required string ip = 1;
|
|
if (has_ip()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->ip(), output);
|
|
}
|
|
|
|
// required string url = 2;
|
|
if (has_url()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->url(), output);
|
|
}
|
|
|
|
// optional string method = 3;
|
|
if (has_method()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->method(), output);
|
|
}
|
|
|
|
// optional string referrer = 4;
|
|
if (has_referrer()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
4, this->referrer(), output);
|
|
}
|
|
|
|
// optional int32 resource_type = 5;
|
|
if (has_resource_type()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->resource_type(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientMalwareRequest.UrlInfo)
|
|
}
|
|
|
|
int ClientMalwareRequest_UrlInfo::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string ip = 1;
|
|
if (has_ip()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->ip());
|
|
}
|
|
|
|
// required string url = 2;
|
|
if (has_url()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->url());
|
|
}
|
|
|
|
// optional string method = 3;
|
|
if (has_method()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->method());
|
|
}
|
|
|
|
// optional string referrer = 4;
|
|
if (has_referrer()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->referrer());
|
|
}
|
|
|
|
// optional int32 resource_type = 5;
|
|
if (has_resource_type()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->resource_type());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientMalwareRequest_UrlInfo::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientMalwareRequest_UrlInfo*>(&from));
|
|
}
|
|
|
|
void ClientMalwareRequest_UrlInfo::MergeFrom(const ClientMalwareRequest_UrlInfo& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_ip()) {
|
|
set_ip(from.ip());
|
|
}
|
|
if (from.has_url()) {
|
|
set_url(from.url());
|
|
}
|
|
if (from.has_method()) {
|
|
set_method(from.method());
|
|
}
|
|
if (from.has_referrer()) {
|
|
set_referrer(from.referrer());
|
|
}
|
|
if (from.has_resource_type()) {
|
|
set_resource_type(from.resource_type());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientMalwareRequest_UrlInfo::CopyFrom(const ClientMalwareRequest_UrlInfo& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientMalwareRequest_UrlInfo::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientMalwareRequest_UrlInfo::Swap(ClientMalwareRequest_UrlInfo* other) {
|
|
if (other != this) {
|
|
std::swap(ip_, other->ip_);
|
|
std::swap(url_, other->url_);
|
|
std::swap(method_, other->method_);
|
|
std::swap(referrer_, other->referrer_);
|
|
std::swap(resource_type_, other->resource_type_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientMalwareRequest_UrlInfo::GetTypeName() const {
|
|
return "safe_browsing.ClientMalwareRequest.UrlInfo";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientMalwareRequest::kUrlFieldNumber;
|
|
const int ClientMalwareRequest::kReferrerUrlFieldNumber;
|
|
const int ClientMalwareRequest::kBadIpUrlInfoFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientMalwareRequest::ClientMalwareRequest()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientMalwareRequest)
|
|
}
|
|
|
|
void ClientMalwareRequest::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientMalwareRequest::ClientMalwareRequest(const ClientMalwareRequest& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientMalwareRequest)
|
|
}
|
|
|
|
void ClientMalwareRequest::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
referrer_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientMalwareRequest::~ClientMalwareRequest() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientMalwareRequest)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientMalwareRequest::SharedDtor() {
|
|
if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete url_;
|
|
}
|
|
if (referrer_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete referrer_url_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientMalwareRequest::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientMalwareRequest& ClientMalwareRequest::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientMalwareRequest* ClientMalwareRequest::default_instance_ = NULL;
|
|
|
|
ClientMalwareRequest* ClientMalwareRequest::New() const {
|
|
return new ClientMalwareRequest;
|
|
}
|
|
|
|
void ClientMalwareRequest::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
if (has_url()) {
|
|
if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
url_->clear();
|
|
}
|
|
}
|
|
if (has_referrer_url()) {
|
|
if (referrer_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
referrer_url_->clear();
|
|
}
|
|
}
|
|
}
|
|
bad_ip_url_info_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientMalwareRequest::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientMalwareRequest)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string url = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_url()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_referrer_url;
|
|
break;
|
|
}
|
|
|
|
// optional string referrer_url = 4;
|
|
case 4: {
|
|
if (tag == 34) {
|
|
parse_referrer_url:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_referrer_url()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(58)) goto parse_bad_ip_url_info;
|
|
break;
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientMalwareRequest.UrlInfo bad_ip_url_info = 7;
|
|
case 7: {
|
|
if (tag == 58) {
|
|
parse_bad_ip_url_info:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_bad_ip_url_info()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(58)) goto parse_bad_ip_url_info;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientMalwareRequest)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientMalwareRequest)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientMalwareRequest::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientMalwareRequest)
|
|
// required string url = 1;
|
|
if (has_url()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->url(), output);
|
|
}
|
|
|
|
// optional string referrer_url = 4;
|
|
if (has_referrer_url()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
4, this->referrer_url(), output);
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientMalwareRequest.UrlInfo bad_ip_url_info = 7;
|
|
for (int i = 0; i < this->bad_ip_url_info_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
7, this->bad_ip_url_info(i), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientMalwareRequest)
|
|
}
|
|
|
|
int ClientMalwareRequest::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string url = 1;
|
|
if (has_url()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->url());
|
|
}
|
|
|
|
// optional string referrer_url = 4;
|
|
if (has_referrer_url()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->referrer_url());
|
|
}
|
|
|
|
}
|
|
// repeated .safe_browsing.ClientMalwareRequest.UrlInfo bad_ip_url_info = 7;
|
|
total_size += 1 * this->bad_ip_url_info_size();
|
|
for (int i = 0; i < this->bad_ip_url_info_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->bad_ip_url_info(i));
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientMalwareRequest::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientMalwareRequest*>(&from));
|
|
}
|
|
|
|
void ClientMalwareRequest::MergeFrom(const ClientMalwareRequest& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
bad_ip_url_info_.MergeFrom(from.bad_ip_url_info_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_url()) {
|
|
set_url(from.url());
|
|
}
|
|
if (from.has_referrer_url()) {
|
|
set_referrer_url(from.referrer_url());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientMalwareRequest::CopyFrom(const ClientMalwareRequest& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientMalwareRequest::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
|
|
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->bad_ip_url_info())) return false;
|
|
return true;
|
|
}
|
|
|
|
void ClientMalwareRequest::Swap(ClientMalwareRequest* other) {
|
|
if (other != this) {
|
|
std::swap(url_, other->url_);
|
|
std::swap(referrer_url_, other->referrer_url_);
|
|
bad_ip_url_info_.Swap(&other->bad_ip_url_info_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientMalwareRequest::GetTypeName() const {
|
|
return "safe_browsing.ClientMalwareRequest";
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientMalwareResponse::kBlacklistFieldNumber;
|
|
const int ClientMalwareResponse::kBadIpFieldNumber;
|
|
const int ClientMalwareResponse::kBadUrlFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientMalwareResponse::ClientMalwareResponse()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientMalwareResponse)
|
|
}
|
|
|
|
void ClientMalwareResponse::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientMalwareResponse::ClientMalwareResponse(const ClientMalwareResponse& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientMalwareResponse)
|
|
}
|
|
|
|
void ClientMalwareResponse::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
blacklist_ = false;
|
|
bad_ip_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
bad_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientMalwareResponse::~ClientMalwareResponse() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientMalwareResponse)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientMalwareResponse::SharedDtor() {
|
|
if (bad_ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete bad_ip_;
|
|
}
|
|
if (bad_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete bad_url_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientMalwareResponse::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientMalwareResponse& ClientMalwareResponse::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientMalwareResponse* ClientMalwareResponse::default_instance_ = NULL;
|
|
|
|
ClientMalwareResponse* ClientMalwareResponse::New() const {
|
|
return new ClientMalwareResponse;
|
|
}
|
|
|
|
void ClientMalwareResponse::Clear() {
|
|
if (_has_bits_[0 / 32] & 7) {
|
|
blacklist_ = false;
|
|
if (has_bad_ip()) {
|
|
if (bad_ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
bad_ip_->clear();
|
|
}
|
|
}
|
|
if (has_bad_url()) {
|
|
if (bad_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
bad_url_->clear();
|
|
}
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientMalwareResponse::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientMalwareResponse)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required bool blacklist = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &blacklist_)));
|
|
set_has_blacklist();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_bad_ip;
|
|
break;
|
|
}
|
|
|
|
// optional string bad_ip = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_bad_ip:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_bad_ip()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_bad_url;
|
|
break;
|
|
}
|
|
|
|
// optional string bad_url = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_bad_url:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_bad_url()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientMalwareResponse)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientMalwareResponse)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientMalwareResponse::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientMalwareResponse)
|
|
// required bool blacklist = 1;
|
|
if (has_blacklist()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBool(1, this->blacklist(), output);
|
|
}
|
|
|
|
// optional string bad_ip = 2;
|
|
if (has_bad_ip()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->bad_ip(), output);
|
|
}
|
|
|
|
// optional string bad_url = 3;
|
|
if (has_bad_url()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->bad_url(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientMalwareResponse)
|
|
}
|
|
|
|
int ClientMalwareResponse::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required bool blacklist = 1;
|
|
if (has_blacklist()) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
// optional string bad_ip = 2;
|
|
if (has_bad_ip()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->bad_ip());
|
|
}
|
|
|
|
// optional string bad_url = 3;
|
|
if (has_bad_url()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->bad_url());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientMalwareResponse::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientMalwareResponse*>(&from));
|
|
}
|
|
|
|
void ClientMalwareResponse::MergeFrom(const ClientMalwareResponse& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_blacklist()) {
|
|
set_blacklist(from.blacklist());
|
|
}
|
|
if (from.has_bad_ip()) {
|
|
set_bad_ip(from.bad_ip());
|
|
}
|
|
if (from.has_bad_url()) {
|
|
set_bad_url(from.bad_url());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientMalwareResponse::CopyFrom(const ClientMalwareResponse& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientMalwareResponse::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientMalwareResponse::Swap(ClientMalwareResponse* other) {
|
|
if (other != this) {
|
|
std::swap(blacklist_, other->blacklist_);
|
|
std::swap(bad_ip_, other->bad_ip_);
|
|
std::swap(bad_url_, other->bad_url_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientMalwareResponse::GetTypeName() const {
|
|
return "safe_browsing.ClientMalwareResponse";
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
bool ClientDownloadRequest_ResourceType_IsValid(int value) {
|
|
switch(value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#ifndef _MSC_VER
|
|
const ClientDownloadRequest_ResourceType ClientDownloadRequest::DOWNLOAD_URL;
|
|
const ClientDownloadRequest_ResourceType ClientDownloadRequest::DOWNLOAD_REDIRECT;
|
|
const ClientDownloadRequest_ResourceType ClientDownloadRequest::TAB_URL;
|
|
const ClientDownloadRequest_ResourceType ClientDownloadRequest::TAB_REDIRECT;
|
|
const ClientDownloadRequest_ResourceType ClientDownloadRequest::ResourceType_MIN;
|
|
const ClientDownloadRequest_ResourceType ClientDownloadRequest::ResourceType_MAX;
|
|
const int ClientDownloadRequest::ResourceType_ARRAYSIZE;
|
|
#endif // _MSC_VER
|
|
bool ClientDownloadRequest_DownloadType_IsValid(int value) {
|
|
switch(value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#ifndef _MSC_VER
|
|
const ClientDownloadRequest_DownloadType ClientDownloadRequest::WIN_EXECUTABLE;
|
|
const ClientDownloadRequest_DownloadType ClientDownloadRequest::CHROME_EXTENSION;
|
|
const ClientDownloadRequest_DownloadType ClientDownloadRequest::ANDROID_APK;
|
|
const ClientDownloadRequest_DownloadType ClientDownloadRequest::ZIPPED_EXECUTABLE;
|
|
const ClientDownloadRequest_DownloadType ClientDownloadRequest::MAC_EXECUTABLE;
|
|
const ClientDownloadRequest_DownloadType ClientDownloadRequest::DownloadType_MIN;
|
|
const ClientDownloadRequest_DownloadType ClientDownloadRequest::DownloadType_MAX;
|
|
const int ClientDownloadRequest::DownloadType_ARRAYSIZE;
|
|
#endif // _MSC_VER
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadRequest_Digests::kSha256FieldNumber;
|
|
const int ClientDownloadRequest_Digests::kSha1FieldNumber;
|
|
const int ClientDownloadRequest_Digests::kMd5FieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadRequest_Digests::ClientDownloadRequest_Digests()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.Digests)
|
|
}
|
|
|
|
void ClientDownloadRequest_Digests::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientDownloadRequest_Digests::ClientDownloadRequest_Digests(const ClientDownloadRequest_Digests& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.Digests)
|
|
}
|
|
|
|
void ClientDownloadRequest_Digests::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
sha256_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
sha1_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
md5_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadRequest_Digests::~ClientDownloadRequest_Digests() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.Digests)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadRequest_Digests::SharedDtor() {
|
|
if (sha256_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete sha256_;
|
|
}
|
|
if (sha1_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete sha1_;
|
|
}
|
|
if (md5_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete md5_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientDownloadRequest_Digests::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadRequest_Digests& ClientDownloadRequest_Digests::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadRequest_Digests* ClientDownloadRequest_Digests::default_instance_ = NULL;
|
|
|
|
ClientDownloadRequest_Digests* ClientDownloadRequest_Digests::New() const {
|
|
return new ClientDownloadRequest_Digests;
|
|
}
|
|
|
|
void ClientDownloadRequest_Digests::Clear() {
|
|
if (_has_bits_[0 / 32] & 7) {
|
|
if (has_sha256()) {
|
|
if (sha256_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
sha256_->clear();
|
|
}
|
|
}
|
|
if (has_sha1()) {
|
|
if (sha1_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
sha1_->clear();
|
|
}
|
|
}
|
|
if (has_md5()) {
|
|
if (md5_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
md5_->clear();
|
|
}
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadRequest_Digests::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.Digests)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional bytes sha256 = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_sha256()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_sha1;
|
|
break;
|
|
}
|
|
|
|
// optional bytes sha1 = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_sha1:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_sha1()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_md5;
|
|
break;
|
|
}
|
|
|
|
// optional bytes md5 = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_md5:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_md5()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadRequest.Digests)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.Digests)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadRequest_Digests::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.Digests)
|
|
// optional bytes sha256 = 1;
|
|
if (has_sha256()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
1, this->sha256(), output);
|
|
}
|
|
|
|
// optional bytes sha1 = 2;
|
|
if (has_sha1()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
2, this->sha1(), output);
|
|
}
|
|
|
|
// optional bytes md5 = 3;
|
|
if (has_md5()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
3, this->md5(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.Digests)
|
|
}
|
|
|
|
int ClientDownloadRequest_Digests::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional bytes sha256 = 1;
|
|
if (has_sha256()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->sha256());
|
|
}
|
|
|
|
// optional bytes sha1 = 2;
|
|
if (has_sha1()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->sha1());
|
|
}
|
|
|
|
// optional bytes md5 = 3;
|
|
if (has_md5()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->md5());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadRequest_Digests::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_Digests*>(&from));
|
|
}
|
|
|
|
void ClientDownloadRequest_Digests::MergeFrom(const ClientDownloadRequest_Digests& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_sha256()) {
|
|
set_sha256(from.sha256());
|
|
}
|
|
if (from.has_sha1()) {
|
|
set_sha1(from.sha1());
|
|
}
|
|
if (from.has_md5()) {
|
|
set_md5(from.md5());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadRequest_Digests::CopyFrom(const ClientDownloadRequest_Digests& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadRequest_Digests::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadRequest_Digests::Swap(ClientDownloadRequest_Digests* other) {
|
|
if (other != this) {
|
|
std::swap(sha256_, other->sha256_);
|
|
std::swap(sha1_, other->sha1_);
|
|
std::swap(md5_, other->md5_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadRequest_Digests::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadRequest.Digests";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadRequest_Resource::kUrlFieldNumber;
|
|
const int ClientDownloadRequest_Resource::kTypeFieldNumber;
|
|
const int ClientDownloadRequest_Resource::kRemoteIpFieldNumber;
|
|
const int ClientDownloadRequest_Resource::kReferrerFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadRequest_Resource::ClientDownloadRequest_Resource()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.Resource)
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientDownloadRequest_Resource::ClientDownloadRequest_Resource(const ClientDownloadRequest_Resource& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.Resource)
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
type_ = 0;
|
|
remote_ip_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
referrer_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadRequest_Resource::~ClientDownloadRequest_Resource() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.Resource)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::SharedDtor() {
|
|
if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete url_;
|
|
}
|
|
if (remote_ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete remote_ip_;
|
|
}
|
|
if (referrer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete referrer_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadRequest_Resource& ClientDownloadRequest_Resource::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadRequest_Resource* ClientDownloadRequest_Resource::default_instance_ = NULL;
|
|
|
|
ClientDownloadRequest_Resource* ClientDownloadRequest_Resource::New() const {
|
|
return new ClientDownloadRequest_Resource;
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::Clear() {
|
|
if (_has_bits_[0 / 32] & 15) {
|
|
if (has_url()) {
|
|
if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
url_->clear();
|
|
}
|
|
}
|
|
type_ = 0;
|
|
if (has_remote_ip()) {
|
|
if (remote_ip_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
remote_ip_->clear();
|
|
}
|
|
}
|
|
if (has_referrer()) {
|
|
if (referrer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
referrer_->clear();
|
|
}
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadRequest_Resource::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.Resource)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string url = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_url()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_type;
|
|
break;
|
|
}
|
|
|
|
// required .safe_browsing.ClientDownloadRequest.ResourceType type = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_type:
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::safe_browsing::ClientDownloadRequest_ResourceType_IsValid(value)) {
|
|
set_type(static_cast< ::safe_browsing::ClientDownloadRequest_ResourceType >(value));
|
|
} else {
|
|
unknown_fields_stream.WriteVarint32(tag);
|
|
unknown_fields_stream.WriteVarint32(value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_remote_ip;
|
|
break;
|
|
}
|
|
|
|
// optional bytes remote_ip = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_remote_ip:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_remote_ip()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_referrer;
|
|
break;
|
|
}
|
|
|
|
// optional string referrer = 4;
|
|
case 4: {
|
|
if (tag == 34) {
|
|
parse_referrer:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_referrer()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadRequest.Resource)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.Resource)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.Resource)
|
|
// required string url = 1;
|
|
if (has_url()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->url(), output);
|
|
}
|
|
|
|
// required .safe_browsing.ClientDownloadRequest.ResourceType type = 2;
|
|
if (has_type()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
2, this->type(), output);
|
|
}
|
|
|
|
// optional bytes remote_ip = 3;
|
|
if (has_remote_ip()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
3, this->remote_ip(), output);
|
|
}
|
|
|
|
// optional string referrer = 4;
|
|
if (has_referrer()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
4, this->referrer(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.Resource)
|
|
}
|
|
|
|
int ClientDownloadRequest_Resource::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string url = 1;
|
|
if (has_url()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->url());
|
|
}
|
|
|
|
// required .safe_browsing.ClientDownloadRequest.ResourceType type = 2;
|
|
if (has_type()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
|
|
}
|
|
|
|
// optional bytes remote_ip = 3;
|
|
if (has_remote_ip()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->remote_ip());
|
|
}
|
|
|
|
// optional string referrer = 4;
|
|
if (has_referrer()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->referrer());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_Resource*>(&from));
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::MergeFrom(const ClientDownloadRequest_Resource& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_url()) {
|
|
set_url(from.url());
|
|
}
|
|
if (from.has_type()) {
|
|
set_type(from.type());
|
|
}
|
|
if (from.has_remote_ip()) {
|
|
set_remote_ip(from.remote_ip());
|
|
}
|
|
if (from.has_referrer()) {
|
|
set_referrer(from.referrer());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::CopyFrom(const ClientDownloadRequest_Resource& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadRequest_Resource::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::Swap(ClientDownloadRequest_Resource* other) {
|
|
if (other != this) {
|
|
std::swap(url_, other->url_);
|
|
std::swap(type_, other->type_);
|
|
std::swap(remote_ip_, other->remote_ip_);
|
|
std::swap(referrer_, other->referrer_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadRequest_Resource::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadRequest.Resource";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadRequest_CertificateChain_Element::kCertificateFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadRequest_CertificateChain_Element::ClientDownloadRequest_CertificateChain_Element()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain_Element::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientDownloadRequest_CertificateChain_Element::ClientDownloadRequest_CertificateChain_Element(const ClientDownloadRequest_CertificateChain_Element& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain_Element::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
certificate_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadRequest_CertificateChain_Element::~ClientDownloadRequest_CertificateChain_Element() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain_Element::SharedDtor() {
|
|
if (certificate_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete certificate_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain_Element::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadRequest_CertificateChain_Element& ClientDownloadRequest_CertificateChain_Element::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadRequest_CertificateChain_Element* ClientDownloadRequest_CertificateChain_Element::default_instance_ = NULL;
|
|
|
|
ClientDownloadRequest_CertificateChain_Element* ClientDownloadRequest_CertificateChain_Element::New() const {
|
|
return new ClientDownloadRequest_CertificateChain_Element;
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain_Element::Clear() {
|
|
if (has_certificate()) {
|
|
if (certificate_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
certificate_->clear();
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadRequest_CertificateChain_Element::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional bytes certificate = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_certificate()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain_Element::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
|
|
// optional bytes certificate = 1;
|
|
if (has_certificate()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
1, this->certificate(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.CertificateChain.Element)
|
|
}
|
|
|
|
int ClientDownloadRequest_CertificateChain_Element::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional bytes certificate = 1;
|
|
if (has_certificate()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->certificate());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain_Element::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_CertificateChain_Element*>(&from));
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain_Element::MergeFrom(const ClientDownloadRequest_CertificateChain_Element& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_certificate()) {
|
|
set_certificate(from.certificate());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain_Element::CopyFrom(const ClientDownloadRequest_CertificateChain_Element& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadRequest_CertificateChain_Element::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain_Element::Swap(ClientDownloadRequest_CertificateChain_Element* other) {
|
|
if (other != this) {
|
|
std::swap(certificate_, other->certificate_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadRequest_CertificateChain_Element::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadRequest.CertificateChain.Element";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadRequest_CertificateChain::kElementFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadRequest_CertificateChain::ClientDownloadRequest_CertificateChain()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.CertificateChain)
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientDownloadRequest_CertificateChain::ClientDownloadRequest_CertificateChain(const ClientDownloadRequest_CertificateChain& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.CertificateChain)
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadRequest_CertificateChain::~ClientDownloadRequest_CertificateChain() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.CertificateChain)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain::SharedDtor() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadRequest_CertificateChain& ClientDownloadRequest_CertificateChain::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadRequest_CertificateChain* ClientDownloadRequest_CertificateChain::default_instance_ = NULL;
|
|
|
|
ClientDownloadRequest_CertificateChain* ClientDownloadRequest_CertificateChain::New() const {
|
|
return new ClientDownloadRequest_CertificateChain;
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain::Clear() {
|
|
element_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadRequest_CertificateChain::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.CertificateChain)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated .safe_browsing.ClientDownloadRequest.CertificateChain.Element element = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
parse_element:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_element()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(10)) goto parse_element;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadRequest.CertificateChain)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.CertificateChain)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.CertificateChain)
|
|
// repeated .safe_browsing.ClientDownloadRequest.CertificateChain.Element element = 1;
|
|
for (int i = 0; i < this->element_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
1, this->element(i), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.CertificateChain)
|
|
}
|
|
|
|
int ClientDownloadRequest_CertificateChain::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
// repeated .safe_browsing.ClientDownloadRequest.CertificateChain.Element element = 1;
|
|
total_size += 1 * this->element_size();
|
|
for (int i = 0; i < this->element_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->element(i));
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_CertificateChain*>(&from));
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain::MergeFrom(const ClientDownloadRequest_CertificateChain& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
element_.MergeFrom(from.element_);
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain::CopyFrom(const ClientDownloadRequest_CertificateChain& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadRequest_CertificateChain::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadRequest_CertificateChain::Swap(ClientDownloadRequest_CertificateChain* other) {
|
|
if (other != this) {
|
|
element_.Swap(&other->element_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadRequest_CertificateChain::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadRequest.CertificateChain";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadRequest_SignatureInfo::kCertificateChainFieldNumber;
|
|
const int ClientDownloadRequest_SignatureInfo::kTrustedFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadRequest_SignatureInfo::ClientDownloadRequest_SignatureInfo()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.SignatureInfo)
|
|
}
|
|
|
|
void ClientDownloadRequest_SignatureInfo::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientDownloadRequest_SignatureInfo::ClientDownloadRequest_SignatureInfo(const ClientDownloadRequest_SignatureInfo& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.SignatureInfo)
|
|
}
|
|
|
|
void ClientDownloadRequest_SignatureInfo::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
trusted_ = false;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadRequest_SignatureInfo::~ClientDownloadRequest_SignatureInfo() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.SignatureInfo)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadRequest_SignatureInfo::SharedDtor() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientDownloadRequest_SignatureInfo::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadRequest_SignatureInfo& ClientDownloadRequest_SignatureInfo::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadRequest_SignatureInfo* ClientDownloadRequest_SignatureInfo::default_instance_ = NULL;
|
|
|
|
ClientDownloadRequest_SignatureInfo* ClientDownloadRequest_SignatureInfo::New() const {
|
|
return new ClientDownloadRequest_SignatureInfo;
|
|
}
|
|
|
|
void ClientDownloadRequest_SignatureInfo::Clear() {
|
|
trusted_ = false;
|
|
certificate_chain_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadRequest_SignatureInfo::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.SignatureInfo)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated .safe_browsing.ClientDownloadRequest.CertificateChain certificate_chain = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
parse_certificate_chain:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_certificate_chain()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(10)) goto parse_certificate_chain;
|
|
if (input->ExpectTag(16)) goto parse_trusted;
|
|
break;
|
|
}
|
|
|
|
// optional bool trusted = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_trusted:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &trusted_)));
|
|
set_has_trusted();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadRequest.SignatureInfo)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.SignatureInfo)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadRequest_SignatureInfo::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.SignatureInfo)
|
|
// repeated .safe_browsing.ClientDownloadRequest.CertificateChain certificate_chain = 1;
|
|
for (int i = 0; i < this->certificate_chain_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
1, this->certificate_chain(i), output);
|
|
}
|
|
|
|
// optional bool trusted = 2;
|
|
if (has_trusted()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->trusted(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.SignatureInfo)
|
|
}
|
|
|
|
int ClientDownloadRequest_SignatureInfo::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
|
|
// optional bool trusted = 2;
|
|
if (has_trusted()) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
}
|
|
// repeated .safe_browsing.ClientDownloadRequest.CertificateChain certificate_chain = 1;
|
|
total_size += 1 * this->certificate_chain_size();
|
|
for (int i = 0; i < this->certificate_chain_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->certificate_chain(i));
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadRequest_SignatureInfo::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_SignatureInfo*>(&from));
|
|
}
|
|
|
|
void ClientDownloadRequest_SignatureInfo::MergeFrom(const ClientDownloadRequest_SignatureInfo& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
certificate_chain_.MergeFrom(from.certificate_chain_);
|
|
if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
|
|
if (from.has_trusted()) {
|
|
set_trusted(from.trusted());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadRequest_SignatureInfo::CopyFrom(const ClientDownloadRequest_SignatureInfo& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadRequest_SignatureInfo::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadRequest_SignatureInfo::Swap(ClientDownloadRequest_SignatureInfo* other) {
|
|
if (other != this) {
|
|
certificate_chain_.Swap(&other->certificate_chain_);
|
|
std::swap(trusted_, other->trusted_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadRequest_SignatureInfo::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadRequest.SignatureInfo";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadRequest_PEImageHeaders_DebugData::kDirectoryEntryFieldNumber;
|
|
const int ClientDownloadRequest_PEImageHeaders_DebugData::kRawDataFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadRequest_PEImageHeaders_DebugData::ClientDownloadRequest_PEImageHeaders_DebugData()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders_DebugData::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientDownloadRequest_PEImageHeaders_DebugData::ClientDownloadRequest_PEImageHeaders_DebugData(const ClientDownloadRequest_PEImageHeaders_DebugData& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders_DebugData::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
directory_entry_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
raw_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadRequest_PEImageHeaders_DebugData::~ClientDownloadRequest_PEImageHeaders_DebugData() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders_DebugData::SharedDtor() {
|
|
if (directory_entry_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete directory_entry_;
|
|
}
|
|
if (raw_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete raw_data_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders_DebugData::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadRequest_PEImageHeaders_DebugData& ClientDownloadRequest_PEImageHeaders_DebugData::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadRequest_PEImageHeaders_DebugData* ClientDownloadRequest_PEImageHeaders_DebugData::default_instance_ = NULL;
|
|
|
|
ClientDownloadRequest_PEImageHeaders_DebugData* ClientDownloadRequest_PEImageHeaders_DebugData::New() const {
|
|
return new ClientDownloadRequest_PEImageHeaders_DebugData;
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders_DebugData::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
if (has_directory_entry()) {
|
|
if (directory_entry_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
directory_entry_->clear();
|
|
}
|
|
}
|
|
if (has_raw_data()) {
|
|
if (raw_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
raw_data_->clear();
|
|
}
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadRequest_PEImageHeaders_DebugData::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional bytes directory_entry = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_directory_entry()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_raw_data;
|
|
break;
|
|
}
|
|
|
|
// optional bytes raw_data = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_raw_data:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_raw_data()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders_DebugData::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
|
|
// optional bytes directory_entry = 1;
|
|
if (has_directory_entry()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
1, this->directory_entry(), output);
|
|
}
|
|
|
|
// optional bytes raw_data = 2;
|
|
if (has_raw_data()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
2, this->raw_data(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData)
|
|
}
|
|
|
|
int ClientDownloadRequest_PEImageHeaders_DebugData::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional bytes directory_entry = 1;
|
|
if (has_directory_entry()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->directory_entry());
|
|
}
|
|
|
|
// optional bytes raw_data = 2;
|
|
if (has_raw_data()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->raw_data());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders_DebugData::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_PEImageHeaders_DebugData*>(&from));
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders_DebugData::MergeFrom(const ClientDownloadRequest_PEImageHeaders_DebugData& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_directory_entry()) {
|
|
set_directory_entry(from.directory_entry());
|
|
}
|
|
if (from.has_raw_data()) {
|
|
set_raw_data(from.raw_data());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders_DebugData::CopyFrom(const ClientDownloadRequest_PEImageHeaders_DebugData& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadRequest_PEImageHeaders_DebugData::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders_DebugData::Swap(ClientDownloadRequest_PEImageHeaders_DebugData* other) {
|
|
if (other != this) {
|
|
std::swap(directory_entry_, other->directory_entry_);
|
|
std::swap(raw_data_, other->raw_data_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadRequest_PEImageHeaders_DebugData::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadRequest_PEImageHeaders::kDosHeaderFieldNumber;
|
|
const int ClientDownloadRequest_PEImageHeaders::kFileHeaderFieldNumber;
|
|
const int ClientDownloadRequest_PEImageHeaders::kOptionalHeaders32FieldNumber;
|
|
const int ClientDownloadRequest_PEImageHeaders::kOptionalHeaders64FieldNumber;
|
|
const int ClientDownloadRequest_PEImageHeaders::kSectionHeaderFieldNumber;
|
|
const int ClientDownloadRequest_PEImageHeaders::kExportSectionDataFieldNumber;
|
|
const int ClientDownloadRequest_PEImageHeaders::kDebugDataFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadRequest_PEImageHeaders::ClientDownloadRequest_PEImageHeaders()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.PEImageHeaders)
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientDownloadRequest_PEImageHeaders::ClientDownloadRequest_PEImageHeaders(const ClientDownloadRequest_PEImageHeaders& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.PEImageHeaders)
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
dos_header_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
file_header_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
optional_headers32_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
optional_headers64_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
export_section_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadRequest_PEImageHeaders::~ClientDownloadRequest_PEImageHeaders() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.PEImageHeaders)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders::SharedDtor() {
|
|
if (dos_header_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete dos_header_;
|
|
}
|
|
if (file_header_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete file_header_;
|
|
}
|
|
if (optional_headers32_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete optional_headers32_;
|
|
}
|
|
if (optional_headers64_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete optional_headers64_;
|
|
}
|
|
if (export_section_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete export_section_data_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadRequest_PEImageHeaders& ClientDownloadRequest_PEImageHeaders::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadRequest_PEImageHeaders* ClientDownloadRequest_PEImageHeaders::default_instance_ = NULL;
|
|
|
|
ClientDownloadRequest_PEImageHeaders* ClientDownloadRequest_PEImageHeaders::New() const {
|
|
return new ClientDownloadRequest_PEImageHeaders;
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders::Clear() {
|
|
if (_has_bits_[0 / 32] & 47) {
|
|
if (has_dos_header()) {
|
|
if (dos_header_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
dos_header_->clear();
|
|
}
|
|
}
|
|
if (has_file_header()) {
|
|
if (file_header_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
file_header_->clear();
|
|
}
|
|
}
|
|
if (has_optional_headers32()) {
|
|
if (optional_headers32_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
optional_headers32_->clear();
|
|
}
|
|
}
|
|
if (has_optional_headers64()) {
|
|
if (optional_headers64_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
optional_headers64_->clear();
|
|
}
|
|
}
|
|
if (has_export_section_data()) {
|
|
if (export_section_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
export_section_data_->clear();
|
|
}
|
|
}
|
|
}
|
|
section_header_.Clear();
|
|
debug_data_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadRequest_PEImageHeaders::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.PEImageHeaders)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional bytes dos_header = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_dos_header()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_file_header;
|
|
break;
|
|
}
|
|
|
|
// optional bytes file_header = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_file_header:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_file_header()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_optional_headers32;
|
|
break;
|
|
}
|
|
|
|
// optional bytes optional_headers32 = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_optional_headers32:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_optional_headers32()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_optional_headers64;
|
|
break;
|
|
}
|
|
|
|
// optional bytes optional_headers64 = 4;
|
|
case 4: {
|
|
if (tag == 34) {
|
|
parse_optional_headers64:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_optional_headers64()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(42)) goto parse_section_header;
|
|
break;
|
|
}
|
|
|
|
// repeated bytes section_header = 5;
|
|
case 5: {
|
|
if (tag == 42) {
|
|
parse_section_header:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->add_section_header()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(42)) goto parse_section_header;
|
|
if (input->ExpectTag(50)) goto parse_export_section_data;
|
|
break;
|
|
}
|
|
|
|
// optional bytes export_section_data = 6;
|
|
case 6: {
|
|
if (tag == 50) {
|
|
parse_export_section_data:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_export_section_data()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(58)) goto parse_debug_data;
|
|
break;
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData debug_data = 7;
|
|
case 7: {
|
|
if (tag == 58) {
|
|
parse_debug_data:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_debug_data()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(58)) goto parse_debug_data;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadRequest.PEImageHeaders)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.PEImageHeaders)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.PEImageHeaders)
|
|
// optional bytes dos_header = 1;
|
|
if (has_dos_header()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
1, this->dos_header(), output);
|
|
}
|
|
|
|
// optional bytes file_header = 2;
|
|
if (has_file_header()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
2, this->file_header(), output);
|
|
}
|
|
|
|
// optional bytes optional_headers32 = 3;
|
|
if (has_optional_headers32()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
3, this->optional_headers32(), output);
|
|
}
|
|
|
|
// optional bytes optional_headers64 = 4;
|
|
if (has_optional_headers64()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
4, this->optional_headers64(), output);
|
|
}
|
|
|
|
// repeated bytes section_header = 5;
|
|
for (int i = 0; i < this->section_header_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytes(
|
|
5, this->section_header(i), output);
|
|
}
|
|
|
|
// optional bytes export_section_data = 6;
|
|
if (has_export_section_data()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
6, this->export_section_data(), output);
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData debug_data = 7;
|
|
for (int i = 0; i < this->debug_data_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
7, this->debug_data(i), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.PEImageHeaders)
|
|
}
|
|
|
|
int ClientDownloadRequest_PEImageHeaders::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional bytes dos_header = 1;
|
|
if (has_dos_header()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->dos_header());
|
|
}
|
|
|
|
// optional bytes file_header = 2;
|
|
if (has_file_header()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->file_header());
|
|
}
|
|
|
|
// optional bytes optional_headers32 = 3;
|
|
if (has_optional_headers32()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->optional_headers32());
|
|
}
|
|
|
|
// optional bytes optional_headers64 = 4;
|
|
if (has_optional_headers64()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->optional_headers64());
|
|
}
|
|
|
|
// optional bytes export_section_data = 6;
|
|
if (has_export_section_data()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->export_section_data());
|
|
}
|
|
|
|
}
|
|
// repeated bytes section_header = 5;
|
|
total_size += 1 * this->section_header_size();
|
|
for (int i = 0; i < this->section_header_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->section_header(i));
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientDownloadRequest.PEImageHeaders.DebugData debug_data = 7;
|
|
total_size += 1 * this->debug_data_size();
|
|
for (int i = 0; i < this->debug_data_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->debug_data(i));
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_PEImageHeaders*>(&from));
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders::MergeFrom(const ClientDownloadRequest_PEImageHeaders& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
section_header_.MergeFrom(from.section_header_);
|
|
debug_data_.MergeFrom(from.debug_data_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_dos_header()) {
|
|
set_dos_header(from.dos_header());
|
|
}
|
|
if (from.has_file_header()) {
|
|
set_file_header(from.file_header());
|
|
}
|
|
if (from.has_optional_headers32()) {
|
|
set_optional_headers32(from.optional_headers32());
|
|
}
|
|
if (from.has_optional_headers64()) {
|
|
set_optional_headers64(from.optional_headers64());
|
|
}
|
|
if (from.has_export_section_data()) {
|
|
set_export_section_data(from.export_section_data());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders::CopyFrom(const ClientDownloadRequest_PEImageHeaders& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadRequest_PEImageHeaders::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadRequest_PEImageHeaders::Swap(ClientDownloadRequest_PEImageHeaders* other) {
|
|
if (other != this) {
|
|
std::swap(dos_header_, other->dos_header_);
|
|
std::swap(file_header_, other->file_header_);
|
|
std::swap(optional_headers32_, other->optional_headers32_);
|
|
std::swap(optional_headers64_, other->optional_headers64_);
|
|
section_header_.Swap(&other->section_header_);
|
|
std::swap(export_section_data_, other->export_section_data_);
|
|
debug_data_.Swap(&other->debug_data_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadRequest_PEImageHeaders::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadRequest.PEImageHeaders";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadRequest_ImageHeaders::kPeHeadersFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadRequest_ImageHeaders::ClientDownloadRequest_ImageHeaders()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.ImageHeaders)
|
|
}
|
|
|
|
void ClientDownloadRequest_ImageHeaders::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
pe_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_PEImageHeaders*>(
|
|
::safe_browsing::ClientDownloadRequest_PEImageHeaders::internal_default_instance());
|
|
#else
|
|
pe_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_PEImageHeaders*>(&::safe_browsing::ClientDownloadRequest_PEImageHeaders::default_instance());
|
|
#endif
|
|
}
|
|
|
|
ClientDownloadRequest_ImageHeaders::ClientDownloadRequest_ImageHeaders(const ClientDownloadRequest_ImageHeaders& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.ImageHeaders)
|
|
}
|
|
|
|
void ClientDownloadRequest_ImageHeaders::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
pe_headers_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadRequest_ImageHeaders::~ClientDownloadRequest_ImageHeaders() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.ImageHeaders)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadRequest_ImageHeaders::SharedDtor() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete pe_headers_;
|
|
}
|
|
}
|
|
|
|
void ClientDownloadRequest_ImageHeaders::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadRequest_ImageHeaders& ClientDownloadRequest_ImageHeaders::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadRequest_ImageHeaders* ClientDownloadRequest_ImageHeaders::default_instance_ = NULL;
|
|
|
|
ClientDownloadRequest_ImageHeaders* ClientDownloadRequest_ImageHeaders::New() const {
|
|
return new ClientDownloadRequest_ImageHeaders;
|
|
}
|
|
|
|
void ClientDownloadRequest_ImageHeaders::Clear() {
|
|
if (has_pe_headers()) {
|
|
if (pe_headers_ != NULL) pe_headers_->::safe_browsing::ClientDownloadRequest_PEImageHeaders::Clear();
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadRequest_ImageHeaders::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.ImageHeaders)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional .safe_browsing.ClientDownloadRequest.PEImageHeaders pe_headers = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_pe_headers()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadRequest.ImageHeaders)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.ImageHeaders)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadRequest_ImageHeaders::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.ImageHeaders)
|
|
// optional .safe_browsing.ClientDownloadRequest.PEImageHeaders pe_headers = 1;
|
|
if (has_pe_headers()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
1, this->pe_headers(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.ImageHeaders)
|
|
}
|
|
|
|
int ClientDownloadRequest_ImageHeaders::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional .safe_browsing.ClientDownloadRequest.PEImageHeaders pe_headers = 1;
|
|
if (has_pe_headers()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->pe_headers());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadRequest_ImageHeaders::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_ImageHeaders*>(&from));
|
|
}
|
|
|
|
void ClientDownloadRequest_ImageHeaders::MergeFrom(const ClientDownloadRequest_ImageHeaders& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_pe_headers()) {
|
|
mutable_pe_headers()->::safe_browsing::ClientDownloadRequest_PEImageHeaders::MergeFrom(from.pe_headers());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadRequest_ImageHeaders::CopyFrom(const ClientDownloadRequest_ImageHeaders& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadRequest_ImageHeaders::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadRequest_ImageHeaders::Swap(ClientDownloadRequest_ImageHeaders* other) {
|
|
if (other != this) {
|
|
std::swap(pe_headers_, other->pe_headers_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadRequest_ImageHeaders::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadRequest.ImageHeaders";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadRequest_ArchivedBinary::kFileBasenameFieldNumber;
|
|
const int ClientDownloadRequest_ArchivedBinary::kDownloadTypeFieldNumber;
|
|
const int ClientDownloadRequest_ArchivedBinary::kDigestsFieldNumber;
|
|
const int ClientDownloadRequest_ArchivedBinary::kLengthFieldNumber;
|
|
const int ClientDownloadRequest_ArchivedBinary::kSignatureFieldNumber;
|
|
const int ClientDownloadRequest_ArchivedBinary::kImageHeadersFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadRequest_ArchivedBinary::ClientDownloadRequest_ArchivedBinary()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest.ArchivedBinary)
|
|
}
|
|
|
|
void ClientDownloadRequest_ArchivedBinary::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
digests_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(
|
|
::safe_browsing::ClientDownloadRequest_Digests::internal_default_instance());
|
|
#else
|
|
digests_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(&::safe_browsing::ClientDownloadRequest_Digests::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(
|
|
::safe_browsing::ClientDownloadRequest_SignatureInfo::internal_default_instance());
|
|
#else
|
|
signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(&::safe_browsing::ClientDownloadRequest_SignatureInfo::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(
|
|
::safe_browsing::ClientDownloadRequest_ImageHeaders::internal_default_instance());
|
|
#else
|
|
image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(&::safe_browsing::ClientDownloadRequest_ImageHeaders::default_instance());
|
|
#endif
|
|
}
|
|
|
|
ClientDownloadRequest_ArchivedBinary::ClientDownloadRequest_ArchivedBinary(const ClientDownloadRequest_ArchivedBinary& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest.ArchivedBinary)
|
|
}
|
|
|
|
void ClientDownloadRequest_ArchivedBinary::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
file_basename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
download_type_ = 0;
|
|
digests_ = NULL;
|
|
length_ = GOOGLE_LONGLONG(0);
|
|
signature_ = NULL;
|
|
image_headers_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadRequest_ArchivedBinary::~ClientDownloadRequest_ArchivedBinary() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest.ArchivedBinary)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadRequest_ArchivedBinary::SharedDtor() {
|
|
if (file_basename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete file_basename_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete digests_;
|
|
delete signature_;
|
|
delete image_headers_;
|
|
}
|
|
}
|
|
|
|
void ClientDownloadRequest_ArchivedBinary::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadRequest_ArchivedBinary& ClientDownloadRequest_ArchivedBinary::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadRequest_ArchivedBinary* ClientDownloadRequest_ArchivedBinary::default_instance_ = NULL;
|
|
|
|
ClientDownloadRequest_ArchivedBinary* ClientDownloadRequest_ArchivedBinary::New() const {
|
|
return new ClientDownloadRequest_ArchivedBinary;
|
|
}
|
|
|
|
void ClientDownloadRequest_ArchivedBinary::Clear() {
|
|
if (_has_bits_[0 / 32] & 63) {
|
|
if (has_file_basename()) {
|
|
if (file_basename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
file_basename_->clear();
|
|
}
|
|
}
|
|
download_type_ = 0;
|
|
if (has_digests()) {
|
|
if (digests_ != NULL) digests_->::safe_browsing::ClientDownloadRequest_Digests::Clear();
|
|
}
|
|
length_ = GOOGLE_LONGLONG(0);
|
|
if (has_signature()) {
|
|
if (signature_ != NULL) signature_->::safe_browsing::ClientDownloadRequest_SignatureInfo::Clear();
|
|
}
|
|
if (has_image_headers()) {
|
|
if (image_headers_ != NULL) image_headers_->::safe_browsing::ClientDownloadRequest_ImageHeaders::Clear();
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadRequest_ArchivedBinary::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest.ArchivedBinary)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string file_basename = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_file_basename()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_download_type;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_download_type:
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::safe_browsing::ClientDownloadRequest_DownloadType_IsValid(value)) {
|
|
set_download_type(static_cast< ::safe_browsing::ClientDownloadRequest_DownloadType >(value));
|
|
} else {
|
|
unknown_fields_stream.WriteVarint32(tag);
|
|
unknown_fields_stream.WriteVarint32(value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_digests;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.Digests digests = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_digests:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_digests()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_length;
|
|
break;
|
|
}
|
|
|
|
// optional int64 length = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_length:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &length_)));
|
|
set_has_length();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(42)) goto parse_signature;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
|
|
case 5: {
|
|
if (tag == 42) {
|
|
parse_signature:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_signature()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(50)) goto parse_image_headers;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 6;
|
|
case 6: {
|
|
if (tag == 50) {
|
|
parse_image_headers:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_image_headers()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadRequest.ArchivedBinary)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest.ArchivedBinary)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadRequest_ArchivedBinary::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest.ArchivedBinary)
|
|
// optional string file_basename = 1;
|
|
if (has_file_basename()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->file_basename(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 2;
|
|
if (has_download_type()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
2, this->download_type(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.Digests digests = 3;
|
|
if (has_digests()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
3, this->digests(), output);
|
|
}
|
|
|
|
// optional int64 length = 4;
|
|
if (has_length()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->length(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
|
|
if (has_signature()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
5, this->signature(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 6;
|
|
if (has_image_headers()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
6, this->image_headers(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest.ArchivedBinary)
|
|
}
|
|
|
|
int ClientDownloadRequest_ArchivedBinary::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string file_basename = 1;
|
|
if (has_file_basename()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->file_basename());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 2;
|
|
if (has_download_type()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->download_type());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.Digests digests = 3;
|
|
if (has_digests()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->digests());
|
|
}
|
|
|
|
// optional int64 length = 4;
|
|
if (has_length()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->length());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
|
|
if (has_signature()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->signature());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 6;
|
|
if (has_image_headers()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->image_headers());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadRequest_ArchivedBinary::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest_ArchivedBinary*>(&from));
|
|
}
|
|
|
|
void ClientDownloadRequest_ArchivedBinary::MergeFrom(const ClientDownloadRequest_ArchivedBinary& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_file_basename()) {
|
|
set_file_basename(from.file_basename());
|
|
}
|
|
if (from.has_download_type()) {
|
|
set_download_type(from.download_type());
|
|
}
|
|
if (from.has_digests()) {
|
|
mutable_digests()->::safe_browsing::ClientDownloadRequest_Digests::MergeFrom(from.digests());
|
|
}
|
|
if (from.has_length()) {
|
|
set_length(from.length());
|
|
}
|
|
if (from.has_signature()) {
|
|
mutable_signature()->::safe_browsing::ClientDownloadRequest_SignatureInfo::MergeFrom(from.signature());
|
|
}
|
|
if (from.has_image_headers()) {
|
|
mutable_image_headers()->::safe_browsing::ClientDownloadRequest_ImageHeaders::MergeFrom(from.image_headers());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadRequest_ArchivedBinary::CopyFrom(const ClientDownloadRequest_ArchivedBinary& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadRequest_ArchivedBinary::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadRequest_ArchivedBinary::Swap(ClientDownloadRequest_ArchivedBinary* other) {
|
|
if (other != this) {
|
|
std::swap(file_basename_, other->file_basename_);
|
|
std::swap(download_type_, other->download_type_);
|
|
std::swap(digests_, other->digests_);
|
|
std::swap(length_, other->length_);
|
|
std::swap(signature_, other->signature_);
|
|
std::swap(image_headers_, other->image_headers_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadRequest_ArchivedBinary::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadRequest.ArchivedBinary";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadRequest::kUrlFieldNumber;
|
|
const int ClientDownloadRequest::kDigestsFieldNumber;
|
|
const int ClientDownloadRequest::kLengthFieldNumber;
|
|
const int ClientDownloadRequest::kResourcesFieldNumber;
|
|
const int ClientDownloadRequest::kSignatureFieldNumber;
|
|
const int ClientDownloadRequest::kUserInitiatedFieldNumber;
|
|
const int ClientDownloadRequest::kFileBasenameFieldNumber;
|
|
const int ClientDownloadRequest::kDownloadTypeFieldNumber;
|
|
const int ClientDownloadRequest::kLocaleFieldNumber;
|
|
const int ClientDownloadRequest::kImageHeadersFieldNumber;
|
|
const int ClientDownloadRequest::kArchivedBinaryFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadRequest::ClientDownloadRequest()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadRequest)
|
|
}
|
|
|
|
void ClientDownloadRequest::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
digests_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(
|
|
::safe_browsing::ClientDownloadRequest_Digests::internal_default_instance());
|
|
#else
|
|
digests_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(&::safe_browsing::ClientDownloadRequest_Digests::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(
|
|
::safe_browsing::ClientDownloadRequest_SignatureInfo::internal_default_instance());
|
|
#else
|
|
signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(&::safe_browsing::ClientDownloadRequest_SignatureInfo::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(
|
|
::safe_browsing::ClientDownloadRequest_ImageHeaders::internal_default_instance());
|
|
#else
|
|
image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(&::safe_browsing::ClientDownloadRequest_ImageHeaders::default_instance());
|
|
#endif
|
|
}
|
|
|
|
ClientDownloadRequest::ClientDownloadRequest(const ClientDownloadRequest& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadRequest)
|
|
}
|
|
|
|
void ClientDownloadRequest::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
digests_ = NULL;
|
|
length_ = GOOGLE_LONGLONG(0);
|
|
signature_ = NULL;
|
|
user_initiated_ = false;
|
|
file_basename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
download_type_ = 0;
|
|
locale_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
image_headers_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadRequest::~ClientDownloadRequest() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadRequest)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadRequest::SharedDtor() {
|
|
if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete url_;
|
|
}
|
|
if (file_basename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete file_basename_;
|
|
}
|
|
if (locale_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete locale_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete digests_;
|
|
delete signature_;
|
|
delete image_headers_;
|
|
}
|
|
}
|
|
|
|
void ClientDownloadRequest::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadRequest& ClientDownloadRequest::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadRequest* ClientDownloadRequest::default_instance_ = NULL;
|
|
|
|
ClientDownloadRequest* ClientDownloadRequest::New() const {
|
|
return new ClientDownloadRequest;
|
|
}
|
|
|
|
void ClientDownloadRequest::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<ClientDownloadRequest*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 247) {
|
|
ZR_(user_initiated_, download_type_);
|
|
if (has_url()) {
|
|
if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
url_->clear();
|
|
}
|
|
}
|
|
if (has_digests()) {
|
|
if (digests_ != NULL) digests_->::safe_browsing::ClientDownloadRequest_Digests::Clear();
|
|
}
|
|
length_ = GOOGLE_LONGLONG(0);
|
|
if (has_signature()) {
|
|
if (signature_ != NULL) signature_->::safe_browsing::ClientDownloadRequest_SignatureInfo::Clear();
|
|
}
|
|
if (has_file_basename()) {
|
|
if (file_basename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
file_basename_->clear();
|
|
}
|
|
}
|
|
}
|
|
if (_has_bits_[8 / 32] & 768) {
|
|
if (has_locale()) {
|
|
if (locale_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
locale_->clear();
|
|
}
|
|
}
|
|
if (has_image_headers()) {
|
|
if (image_headers_ != NULL) image_headers_->::safe_browsing::ClientDownloadRequest_ImageHeaders::Clear();
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
resources_.Clear();
|
|
archived_binary_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadRequest::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadRequest)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string url = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_url()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_digests;
|
|
break;
|
|
}
|
|
|
|
// required .safe_browsing.ClientDownloadRequest.Digests digests = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_digests:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_digests()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_length;
|
|
break;
|
|
}
|
|
|
|
// required int64 length = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_length:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &length_)));
|
|
set_has_length();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_resources;
|
|
break;
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientDownloadRequest.Resource resources = 4;
|
|
case 4: {
|
|
if (tag == 34) {
|
|
parse_resources:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_resources()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_resources;
|
|
if (input->ExpectTag(42)) goto parse_signature;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
|
|
case 5: {
|
|
if (tag == 42) {
|
|
parse_signature:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_signature()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(48)) goto parse_user_initiated;
|
|
break;
|
|
}
|
|
|
|
// optional bool user_initiated = 6;
|
|
case 6: {
|
|
if (tag == 48) {
|
|
parse_user_initiated:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &user_initiated_)));
|
|
set_has_user_initiated();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(74)) goto parse_file_basename;
|
|
break;
|
|
}
|
|
|
|
// optional string file_basename = 9;
|
|
case 9: {
|
|
if (tag == 74) {
|
|
parse_file_basename:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_file_basename()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(80)) goto parse_download_type;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 10 [default = WIN_EXECUTABLE];
|
|
case 10: {
|
|
if (tag == 80) {
|
|
parse_download_type:
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::safe_browsing::ClientDownloadRequest_DownloadType_IsValid(value)) {
|
|
set_download_type(static_cast< ::safe_browsing::ClientDownloadRequest_DownloadType >(value));
|
|
} else {
|
|
unknown_fields_stream.WriteVarint32(tag);
|
|
unknown_fields_stream.WriteVarint32(value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(90)) goto parse_locale;
|
|
break;
|
|
}
|
|
|
|
// optional string locale = 11;
|
|
case 11: {
|
|
if (tag == 90) {
|
|
parse_locale:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_locale()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(146)) goto parse_image_headers;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 18;
|
|
case 18: {
|
|
if (tag == 146) {
|
|
parse_image_headers:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_image_headers()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(178)) goto parse_archived_binary;
|
|
break;
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientDownloadRequest.ArchivedBinary archived_binary = 22;
|
|
case 22: {
|
|
if (tag == 178) {
|
|
parse_archived_binary:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_archived_binary()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(178)) goto parse_archived_binary;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadRequest)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadRequest)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadRequest::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadRequest)
|
|
// required string url = 1;
|
|
if (has_url()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->url(), output);
|
|
}
|
|
|
|
// required .safe_browsing.ClientDownloadRequest.Digests digests = 2;
|
|
if (has_digests()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
2, this->digests(), output);
|
|
}
|
|
|
|
// required int64 length = 3;
|
|
if (has_length()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->length(), output);
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientDownloadRequest.Resource resources = 4;
|
|
for (int i = 0; i < this->resources_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
4, this->resources(i), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
|
|
if (has_signature()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
5, this->signature(), output);
|
|
}
|
|
|
|
// optional bool user_initiated = 6;
|
|
if (has_user_initiated()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBool(6, this->user_initiated(), output);
|
|
}
|
|
|
|
// optional string file_basename = 9;
|
|
if (has_file_basename()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
9, this->file_basename(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 10 [default = WIN_EXECUTABLE];
|
|
if (has_download_type()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
10, this->download_type(), output);
|
|
}
|
|
|
|
// optional string locale = 11;
|
|
if (has_locale()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
11, this->locale(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 18;
|
|
if (has_image_headers()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
18, this->image_headers(), output);
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientDownloadRequest.ArchivedBinary archived_binary = 22;
|
|
for (int i = 0; i < this->archived_binary_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
22, this->archived_binary(i), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadRequest)
|
|
}
|
|
|
|
int ClientDownloadRequest::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string url = 1;
|
|
if (has_url()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->url());
|
|
}
|
|
|
|
// required .safe_browsing.ClientDownloadRequest.Digests digests = 2;
|
|
if (has_digests()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->digests());
|
|
}
|
|
|
|
// required int64 length = 3;
|
|
if (has_length()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->length());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
|
|
if (has_signature()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->signature());
|
|
}
|
|
|
|
// optional bool user_initiated = 6;
|
|
if (has_user_initiated()) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
// optional string file_basename = 9;
|
|
if (has_file_basename()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->file_basename());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 10 [default = WIN_EXECUTABLE];
|
|
if (has_download_type()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->download_type());
|
|
}
|
|
|
|
}
|
|
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
|
|
// optional string locale = 11;
|
|
if (has_locale()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->locale());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 18;
|
|
if (has_image_headers()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->image_headers());
|
|
}
|
|
|
|
}
|
|
// repeated .safe_browsing.ClientDownloadRequest.Resource resources = 4;
|
|
total_size += 1 * this->resources_size();
|
|
for (int i = 0; i < this->resources_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->resources(i));
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientDownloadRequest.ArchivedBinary archived_binary = 22;
|
|
total_size += 2 * this->archived_binary_size();
|
|
for (int i = 0; i < this->archived_binary_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->archived_binary(i));
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadRequest::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadRequest*>(&from));
|
|
}
|
|
|
|
void ClientDownloadRequest::MergeFrom(const ClientDownloadRequest& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
resources_.MergeFrom(from.resources_);
|
|
archived_binary_.MergeFrom(from.archived_binary_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_url()) {
|
|
set_url(from.url());
|
|
}
|
|
if (from.has_digests()) {
|
|
mutable_digests()->::safe_browsing::ClientDownloadRequest_Digests::MergeFrom(from.digests());
|
|
}
|
|
if (from.has_length()) {
|
|
set_length(from.length());
|
|
}
|
|
if (from.has_signature()) {
|
|
mutable_signature()->::safe_browsing::ClientDownloadRequest_SignatureInfo::MergeFrom(from.signature());
|
|
}
|
|
if (from.has_user_initiated()) {
|
|
set_user_initiated(from.user_initiated());
|
|
}
|
|
if (from.has_file_basename()) {
|
|
set_file_basename(from.file_basename());
|
|
}
|
|
if (from.has_download_type()) {
|
|
set_download_type(from.download_type());
|
|
}
|
|
}
|
|
if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
|
|
if (from.has_locale()) {
|
|
set_locale(from.locale());
|
|
}
|
|
if (from.has_image_headers()) {
|
|
mutable_image_headers()->::safe_browsing::ClientDownloadRequest_ImageHeaders::MergeFrom(from.image_headers());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadRequest::CopyFrom(const ClientDownloadRequest& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadRequest::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
|
|
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->resources())) return false;
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadRequest::Swap(ClientDownloadRequest* other) {
|
|
if (other != this) {
|
|
std::swap(url_, other->url_);
|
|
std::swap(digests_, other->digests_);
|
|
std::swap(length_, other->length_);
|
|
resources_.Swap(&other->resources_);
|
|
std::swap(signature_, other->signature_);
|
|
std::swap(user_initiated_, other->user_initiated_);
|
|
std::swap(file_basename_, other->file_basename_);
|
|
std::swap(download_type_, other->download_type_);
|
|
std::swap(locale_, other->locale_);
|
|
std::swap(image_headers_, other->image_headers_);
|
|
archived_binary_.Swap(&other->archived_binary_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadRequest::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadRequest";
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
bool ClientDownloadResponse_Verdict_IsValid(int value) {
|
|
switch(value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#ifndef _MSC_VER
|
|
const ClientDownloadResponse_Verdict ClientDownloadResponse::SAFE;
|
|
const ClientDownloadResponse_Verdict ClientDownloadResponse::DANGEROUS;
|
|
const ClientDownloadResponse_Verdict ClientDownloadResponse::UNCOMMON;
|
|
const ClientDownloadResponse_Verdict ClientDownloadResponse::POTENTIALLY_UNWANTED;
|
|
const ClientDownloadResponse_Verdict ClientDownloadResponse::DANGEROUS_HOST;
|
|
const ClientDownloadResponse_Verdict ClientDownloadResponse::Verdict_MIN;
|
|
const ClientDownloadResponse_Verdict ClientDownloadResponse::Verdict_MAX;
|
|
const int ClientDownloadResponse::Verdict_ARRAYSIZE;
|
|
#endif // _MSC_VER
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadResponse_MoreInfo::kDescriptionFieldNumber;
|
|
const int ClientDownloadResponse_MoreInfo::kUrlFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadResponse_MoreInfo::ClientDownloadResponse_MoreInfo()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadResponse.MoreInfo)
|
|
}
|
|
|
|
void ClientDownloadResponse_MoreInfo::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientDownloadResponse_MoreInfo::ClientDownloadResponse_MoreInfo(const ClientDownloadResponse_MoreInfo& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadResponse.MoreInfo)
|
|
}
|
|
|
|
void ClientDownloadResponse_MoreInfo::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
description_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadResponse_MoreInfo::~ClientDownloadResponse_MoreInfo() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadResponse.MoreInfo)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadResponse_MoreInfo::SharedDtor() {
|
|
if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete description_;
|
|
}
|
|
if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete url_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientDownloadResponse_MoreInfo::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadResponse_MoreInfo& ClientDownloadResponse_MoreInfo::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadResponse_MoreInfo* ClientDownloadResponse_MoreInfo::default_instance_ = NULL;
|
|
|
|
ClientDownloadResponse_MoreInfo* ClientDownloadResponse_MoreInfo::New() const {
|
|
return new ClientDownloadResponse_MoreInfo;
|
|
}
|
|
|
|
void ClientDownloadResponse_MoreInfo::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
if (has_description()) {
|
|
if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
description_->clear();
|
|
}
|
|
}
|
|
if (has_url()) {
|
|
if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
url_->clear();
|
|
}
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadResponse_MoreInfo::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadResponse.MoreInfo)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string description = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_description()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_url;
|
|
break;
|
|
}
|
|
|
|
// optional string url = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_url:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_url()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadResponse.MoreInfo)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadResponse.MoreInfo)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadResponse_MoreInfo::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadResponse.MoreInfo)
|
|
// optional string description = 1;
|
|
if (has_description()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->description(), output);
|
|
}
|
|
|
|
// optional string url = 2;
|
|
if (has_url()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->url(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadResponse.MoreInfo)
|
|
}
|
|
|
|
int ClientDownloadResponse_MoreInfo::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string description = 1;
|
|
if (has_description()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->description());
|
|
}
|
|
|
|
// optional string url = 2;
|
|
if (has_url()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->url());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadResponse_MoreInfo::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadResponse_MoreInfo*>(&from));
|
|
}
|
|
|
|
void ClientDownloadResponse_MoreInfo::MergeFrom(const ClientDownloadResponse_MoreInfo& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_description()) {
|
|
set_description(from.description());
|
|
}
|
|
if (from.has_url()) {
|
|
set_url(from.url());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadResponse_MoreInfo::CopyFrom(const ClientDownloadResponse_MoreInfo& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadResponse_MoreInfo::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadResponse_MoreInfo::Swap(ClientDownloadResponse_MoreInfo* other) {
|
|
if (other != this) {
|
|
std::swap(description_, other->description_);
|
|
std::swap(url_, other->url_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadResponse_MoreInfo::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadResponse.MoreInfo";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadResponse::kVerdictFieldNumber;
|
|
const int ClientDownloadResponse::kMoreInfoFieldNumber;
|
|
const int ClientDownloadResponse::kTokenFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadResponse::ClientDownloadResponse()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadResponse)
|
|
}
|
|
|
|
void ClientDownloadResponse::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
more_info_ = const_cast< ::safe_browsing::ClientDownloadResponse_MoreInfo*>(
|
|
::safe_browsing::ClientDownloadResponse_MoreInfo::internal_default_instance());
|
|
#else
|
|
more_info_ = const_cast< ::safe_browsing::ClientDownloadResponse_MoreInfo*>(&::safe_browsing::ClientDownloadResponse_MoreInfo::default_instance());
|
|
#endif
|
|
}
|
|
|
|
ClientDownloadResponse::ClientDownloadResponse(const ClientDownloadResponse& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadResponse)
|
|
}
|
|
|
|
void ClientDownloadResponse::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
verdict_ = 0;
|
|
more_info_ = NULL;
|
|
token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadResponse::~ClientDownloadResponse() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadResponse)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadResponse::SharedDtor() {
|
|
if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete token_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete more_info_;
|
|
}
|
|
}
|
|
|
|
void ClientDownloadResponse::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadResponse& ClientDownloadResponse::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadResponse* ClientDownloadResponse::default_instance_ = NULL;
|
|
|
|
ClientDownloadResponse* ClientDownloadResponse::New() const {
|
|
return new ClientDownloadResponse;
|
|
}
|
|
|
|
void ClientDownloadResponse::Clear() {
|
|
if (_has_bits_[0 / 32] & 7) {
|
|
verdict_ = 0;
|
|
if (has_more_info()) {
|
|
if (more_info_ != NULL) more_info_->::safe_browsing::ClientDownloadResponse_MoreInfo::Clear();
|
|
}
|
|
if (has_token()) {
|
|
if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
token_->clear();
|
|
}
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadResponse::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadResponse)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required .safe_browsing.ClientDownloadResponse.Verdict verdict = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::safe_browsing::ClientDownloadResponse_Verdict_IsValid(value)) {
|
|
set_verdict(static_cast< ::safe_browsing::ClientDownloadResponse_Verdict >(value));
|
|
} else {
|
|
unknown_fields_stream.WriteVarint32(tag);
|
|
unknown_fields_stream.WriteVarint32(value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_more_info;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadResponse.MoreInfo more_info = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_more_info:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_more_info()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_token;
|
|
break;
|
|
}
|
|
|
|
// optional bytes token = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_token:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_token()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadResponse)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadResponse)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadResponse::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadResponse)
|
|
// required .safe_browsing.ClientDownloadResponse.Verdict verdict = 1;
|
|
if (has_verdict()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
1, this->verdict(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadResponse.MoreInfo more_info = 2;
|
|
if (has_more_info()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
2, this->more_info(), output);
|
|
}
|
|
|
|
// optional bytes token = 3;
|
|
if (has_token()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
3, this->token(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadResponse)
|
|
}
|
|
|
|
int ClientDownloadResponse::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required .safe_browsing.ClientDownloadResponse.Verdict verdict = 1;
|
|
if (has_verdict()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->verdict());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadResponse.MoreInfo more_info = 2;
|
|
if (has_more_info()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->more_info());
|
|
}
|
|
|
|
// optional bytes token = 3;
|
|
if (has_token()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->token());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadResponse::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadResponse*>(&from));
|
|
}
|
|
|
|
void ClientDownloadResponse::MergeFrom(const ClientDownloadResponse& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_verdict()) {
|
|
set_verdict(from.verdict());
|
|
}
|
|
if (from.has_more_info()) {
|
|
mutable_more_info()->::safe_browsing::ClientDownloadResponse_MoreInfo::MergeFrom(from.more_info());
|
|
}
|
|
if (from.has_token()) {
|
|
set_token(from.token());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadResponse::CopyFrom(const ClientDownloadResponse& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadResponse::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadResponse::Swap(ClientDownloadResponse* other) {
|
|
if (other != this) {
|
|
std::swap(verdict_, other->verdict_);
|
|
std::swap(more_info_, other->more_info_);
|
|
std::swap(token_, other->token_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadResponse::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadResponse";
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
bool ClientDownloadReport_Reason_IsValid(int value) {
|
|
switch(value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#ifndef _MSC_VER
|
|
const ClientDownloadReport_Reason ClientDownloadReport::SHARE;
|
|
const ClientDownloadReport_Reason ClientDownloadReport::FALSE_POSITIVE;
|
|
const ClientDownloadReport_Reason ClientDownloadReport::APPEAL;
|
|
const ClientDownloadReport_Reason ClientDownloadReport::Reason_MIN;
|
|
const ClientDownloadReport_Reason ClientDownloadReport::Reason_MAX;
|
|
const int ClientDownloadReport::Reason_ARRAYSIZE;
|
|
#endif // _MSC_VER
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadReport_UserInformation::kEmailFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadReport_UserInformation::ClientDownloadReport_UserInformation()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadReport.UserInformation)
|
|
}
|
|
|
|
void ClientDownloadReport_UserInformation::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientDownloadReport_UserInformation::ClientDownloadReport_UserInformation(const ClientDownloadReport_UserInformation& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadReport.UserInformation)
|
|
}
|
|
|
|
void ClientDownloadReport_UserInformation::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
email_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadReport_UserInformation::~ClientDownloadReport_UserInformation() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadReport.UserInformation)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadReport_UserInformation::SharedDtor() {
|
|
if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete email_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientDownloadReport_UserInformation::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadReport_UserInformation& ClientDownloadReport_UserInformation::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadReport_UserInformation* ClientDownloadReport_UserInformation::default_instance_ = NULL;
|
|
|
|
ClientDownloadReport_UserInformation* ClientDownloadReport_UserInformation::New() const {
|
|
return new ClientDownloadReport_UserInformation;
|
|
}
|
|
|
|
void ClientDownloadReport_UserInformation::Clear() {
|
|
if (has_email()) {
|
|
if (email_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
email_->clear();
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadReport_UserInformation::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadReport.UserInformation)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string email = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_email()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadReport.UserInformation)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadReport.UserInformation)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadReport_UserInformation::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadReport.UserInformation)
|
|
// optional string email = 1;
|
|
if (has_email()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->email(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadReport.UserInformation)
|
|
}
|
|
|
|
int ClientDownloadReport_UserInformation::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string email = 1;
|
|
if (has_email()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->email());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadReport_UserInformation::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadReport_UserInformation*>(&from));
|
|
}
|
|
|
|
void ClientDownloadReport_UserInformation::MergeFrom(const ClientDownloadReport_UserInformation& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_email()) {
|
|
set_email(from.email());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadReport_UserInformation::CopyFrom(const ClientDownloadReport_UserInformation& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadReport_UserInformation::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadReport_UserInformation::Swap(ClientDownloadReport_UserInformation* other) {
|
|
if (other != this) {
|
|
std::swap(email_, other->email_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadReport_UserInformation::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadReport.UserInformation";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientDownloadReport::kReasonFieldNumber;
|
|
const int ClientDownloadReport::kDownloadRequestFieldNumber;
|
|
const int ClientDownloadReport::kUserInformationFieldNumber;
|
|
const int ClientDownloadReport::kCommentFieldNumber;
|
|
const int ClientDownloadReport::kDownloadResponseFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientDownloadReport::ClientDownloadReport()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientDownloadReport)
|
|
}
|
|
|
|
void ClientDownloadReport::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
download_request_ = const_cast< ::safe_browsing::ClientDownloadRequest*>(
|
|
::safe_browsing::ClientDownloadRequest::internal_default_instance());
|
|
#else
|
|
download_request_ = const_cast< ::safe_browsing::ClientDownloadRequest*>(&::safe_browsing::ClientDownloadRequest::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
user_information_ = const_cast< ::safe_browsing::ClientDownloadReport_UserInformation*>(
|
|
::safe_browsing::ClientDownloadReport_UserInformation::internal_default_instance());
|
|
#else
|
|
user_information_ = const_cast< ::safe_browsing::ClientDownloadReport_UserInformation*>(&::safe_browsing::ClientDownloadReport_UserInformation::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
download_response_ = const_cast< ::safe_browsing::ClientDownloadResponse*>(
|
|
::safe_browsing::ClientDownloadResponse::internal_default_instance());
|
|
#else
|
|
download_response_ = const_cast< ::safe_browsing::ClientDownloadResponse*>(&::safe_browsing::ClientDownloadResponse::default_instance());
|
|
#endif
|
|
}
|
|
|
|
ClientDownloadReport::ClientDownloadReport(const ClientDownloadReport& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientDownloadReport)
|
|
}
|
|
|
|
void ClientDownloadReport::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
reason_ = 0;
|
|
download_request_ = NULL;
|
|
user_information_ = NULL;
|
|
comment_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
download_response_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientDownloadReport::~ClientDownloadReport() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientDownloadReport)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientDownloadReport::SharedDtor() {
|
|
if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete comment_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete download_request_;
|
|
delete user_information_;
|
|
delete download_response_;
|
|
}
|
|
}
|
|
|
|
void ClientDownloadReport::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientDownloadReport& ClientDownloadReport::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientDownloadReport* ClientDownloadReport::default_instance_ = NULL;
|
|
|
|
ClientDownloadReport* ClientDownloadReport::New() const {
|
|
return new ClientDownloadReport;
|
|
}
|
|
|
|
void ClientDownloadReport::Clear() {
|
|
if (_has_bits_[0 / 32] & 31) {
|
|
reason_ = 0;
|
|
if (has_download_request()) {
|
|
if (download_request_ != NULL) download_request_->::safe_browsing::ClientDownloadRequest::Clear();
|
|
}
|
|
if (has_user_information()) {
|
|
if (user_information_ != NULL) user_information_->::safe_browsing::ClientDownloadReport_UserInformation::Clear();
|
|
}
|
|
if (has_comment()) {
|
|
if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
comment_->clear();
|
|
}
|
|
}
|
|
if (has_download_response()) {
|
|
if (download_response_ != NULL) download_response_->::safe_browsing::ClientDownloadResponse::Clear();
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientDownloadReport::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientDownloadReport)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional .safe_browsing.ClientDownloadReport.Reason reason = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::safe_browsing::ClientDownloadReport_Reason_IsValid(value)) {
|
|
set_reason(static_cast< ::safe_browsing::ClientDownloadReport_Reason >(value));
|
|
} else {
|
|
unknown_fields_stream.WriteVarint32(tag);
|
|
unknown_fields_stream.WriteVarint32(value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_download_request;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest download_request = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_download_request:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_download_request()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_user_information;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadReport.UserInformation user_information = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_user_information:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_user_information()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_comment;
|
|
break;
|
|
}
|
|
|
|
// optional bytes comment = 4;
|
|
case 4: {
|
|
if (tag == 34) {
|
|
parse_comment:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_comment()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(42)) goto parse_download_response;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadResponse download_response = 5;
|
|
case 5: {
|
|
if (tag == 42) {
|
|
parse_download_response:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_download_response()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientDownloadReport)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientDownloadReport)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientDownloadReport::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientDownloadReport)
|
|
// optional .safe_browsing.ClientDownloadReport.Reason reason = 1;
|
|
if (has_reason()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
1, this->reason(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest download_request = 2;
|
|
if (has_download_request()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
2, this->download_request(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadReport.UserInformation user_information = 3;
|
|
if (has_user_information()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
3, this->user_information(), output);
|
|
}
|
|
|
|
// optional bytes comment = 4;
|
|
if (has_comment()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
4, this->comment(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadResponse download_response = 5;
|
|
if (has_download_response()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
5, this->download_response(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientDownloadReport)
|
|
}
|
|
|
|
int ClientDownloadReport::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional .safe_browsing.ClientDownloadReport.Reason reason = 1;
|
|
if (has_reason()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest download_request = 2;
|
|
if (has_download_request()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->download_request());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadReport.UserInformation user_information = 3;
|
|
if (has_user_information()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->user_information());
|
|
}
|
|
|
|
// optional bytes comment = 4;
|
|
if (has_comment()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->comment());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadResponse download_response = 5;
|
|
if (has_download_response()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->download_response());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadReport::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientDownloadReport*>(&from));
|
|
}
|
|
|
|
void ClientDownloadReport::MergeFrom(const ClientDownloadReport& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_reason()) {
|
|
set_reason(from.reason());
|
|
}
|
|
if (from.has_download_request()) {
|
|
mutable_download_request()->::safe_browsing::ClientDownloadRequest::MergeFrom(from.download_request());
|
|
}
|
|
if (from.has_user_information()) {
|
|
mutable_user_information()->::safe_browsing::ClientDownloadReport_UserInformation::MergeFrom(from.user_information());
|
|
}
|
|
if (from.has_comment()) {
|
|
set_comment(from.comment());
|
|
}
|
|
if (from.has_download_response()) {
|
|
mutable_download_response()->::safe_browsing::ClientDownloadResponse::MergeFrom(from.download_response());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientDownloadReport::CopyFrom(const ClientDownloadReport& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientDownloadReport::IsInitialized() const {
|
|
|
|
if (has_download_request()) {
|
|
if (!this->download_request().IsInitialized()) return false;
|
|
}
|
|
if (has_download_response()) {
|
|
if (!this->download_response().IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadReport::Swap(ClientDownloadReport* other) {
|
|
if (other != this) {
|
|
std::swap(reason_, other->reason_);
|
|
std::swap(download_request_, other->download_request_);
|
|
std::swap(user_information_, other->user_information_);
|
|
std::swap(comment_, other->comment_);
|
|
std::swap(download_response_, other->download_response_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientDownloadReport::GetTypeName() const {
|
|
return "safe_browsing.ClientDownloadReport";
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
bool ClientUploadResponse_UploadStatus_IsValid(int value) {
|
|
switch(value) {
|
|
case 0:
|
|
case 1:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#ifndef _MSC_VER
|
|
const ClientUploadResponse_UploadStatus ClientUploadResponse::SUCCESS;
|
|
const ClientUploadResponse_UploadStatus ClientUploadResponse::UPLOAD_FAILURE;
|
|
const ClientUploadResponse_UploadStatus ClientUploadResponse::UploadStatus_MIN;
|
|
const ClientUploadResponse_UploadStatus ClientUploadResponse::UploadStatus_MAX;
|
|
const int ClientUploadResponse::UploadStatus_ARRAYSIZE;
|
|
#endif // _MSC_VER
|
|
#ifndef _MSC_VER
|
|
const int ClientUploadResponse::kStatusFieldNumber;
|
|
const int ClientUploadResponse::kPermalinkFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientUploadResponse::ClientUploadResponse()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientUploadResponse)
|
|
}
|
|
|
|
void ClientUploadResponse::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientUploadResponse::ClientUploadResponse(const ClientUploadResponse& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientUploadResponse)
|
|
}
|
|
|
|
void ClientUploadResponse::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
status_ = 0;
|
|
permalink_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientUploadResponse::~ClientUploadResponse() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientUploadResponse)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientUploadResponse::SharedDtor() {
|
|
if (permalink_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete permalink_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientUploadResponse::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientUploadResponse& ClientUploadResponse::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientUploadResponse* ClientUploadResponse::default_instance_ = NULL;
|
|
|
|
ClientUploadResponse* ClientUploadResponse::New() const {
|
|
return new ClientUploadResponse;
|
|
}
|
|
|
|
void ClientUploadResponse::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
status_ = 0;
|
|
if (has_permalink()) {
|
|
if (permalink_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
permalink_->clear();
|
|
}
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientUploadResponse::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientUploadResponse)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional .safe_browsing.ClientUploadResponse.UploadStatus status = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::safe_browsing::ClientUploadResponse_UploadStatus_IsValid(value)) {
|
|
set_status(static_cast< ::safe_browsing::ClientUploadResponse_UploadStatus >(value));
|
|
} else {
|
|
unknown_fields_stream.WriteVarint32(tag);
|
|
unknown_fields_stream.WriteVarint32(value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_permalink;
|
|
break;
|
|
}
|
|
|
|
// optional string permalink = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_permalink:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_permalink()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientUploadResponse)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientUploadResponse)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientUploadResponse::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientUploadResponse)
|
|
// optional .safe_browsing.ClientUploadResponse.UploadStatus status = 1;
|
|
if (has_status()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
1, this->status(), output);
|
|
}
|
|
|
|
// optional string permalink = 2;
|
|
if (has_permalink()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->permalink(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientUploadResponse)
|
|
}
|
|
|
|
int ClientUploadResponse::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional .safe_browsing.ClientUploadResponse.UploadStatus status = 1;
|
|
if (has_status()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
|
|
}
|
|
|
|
// optional string permalink = 2;
|
|
if (has_permalink()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->permalink());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientUploadResponse::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientUploadResponse*>(&from));
|
|
}
|
|
|
|
void ClientUploadResponse::MergeFrom(const ClientUploadResponse& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_status()) {
|
|
set_status(from.status());
|
|
}
|
|
if (from.has_permalink()) {
|
|
set_permalink(from.permalink());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientUploadResponse::CopyFrom(const ClientUploadResponse& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientUploadResponse::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientUploadResponse::Swap(ClientUploadResponse* other) {
|
|
if (other != this) {
|
|
std::swap(status_, other->status_);
|
|
std::swap(permalink_, other->permalink_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientUploadResponse::GetTypeName() const {
|
|
return "safe_browsing.ClientUploadResponse";
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
bool ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState_IsValid(int value) {
|
|
switch(value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#ifndef _MSC_VER
|
|
const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::UNKNOWN;
|
|
const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::CLEARED;
|
|
const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::WEAK_LEGACY_OBSOLETE;
|
|
const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::CHANGED;
|
|
const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::UNTRUSTED_UNKNOWN_VALUE;
|
|
const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::ValueState_MIN;
|
|
const ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState ClientIncidentReport_IncidentData_TrackedPreferenceIncident::ValueState_MAX;
|
|
const int ClientIncidentReport_IncidentData_TrackedPreferenceIncident::ValueState_ARRAYSIZE;
|
|
#endif // _MSC_VER
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_IncidentData_TrackedPreferenceIncident::kPathFieldNumber;
|
|
const int ClientIncidentReport_IncidentData_TrackedPreferenceIncident::kAtomicValueFieldNumber;
|
|
const int ClientIncidentReport_IncidentData_TrackedPreferenceIncident::kSplitKeyFieldNumber;
|
|
const int ClientIncidentReport_IncidentData_TrackedPreferenceIncident::kValueStateFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_IncidentData_TrackedPreferenceIncident::ClientIncidentReport_IncidentData_TrackedPreferenceIncident()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_TrackedPreferenceIncident::ClientIncidentReport_IncidentData_TrackedPreferenceIncident(const ClientIncidentReport_IncidentData_TrackedPreferenceIncident& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
path_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
atomic_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
value_state_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_TrackedPreferenceIncident::~ClientIncidentReport_IncidentData_TrackedPreferenceIncident() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::SharedDtor() {
|
|
if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete path_;
|
|
}
|
|
if (atomic_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete atomic_value_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_IncidentData_TrackedPreferenceIncident& ClientIncidentReport_IncidentData_TrackedPreferenceIncident::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_TrackedPreferenceIncident* ClientIncidentReport_IncidentData_TrackedPreferenceIncident::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_IncidentData_TrackedPreferenceIncident* ClientIncidentReport_IncidentData_TrackedPreferenceIncident::New() const {
|
|
return new ClientIncidentReport_IncidentData_TrackedPreferenceIncident;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::Clear() {
|
|
if (_has_bits_[0 / 32] & 11) {
|
|
if (has_path()) {
|
|
if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
path_->clear();
|
|
}
|
|
}
|
|
if (has_atomic_value()) {
|
|
if (atomic_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
atomic_value_->clear();
|
|
}
|
|
}
|
|
value_state_ = 0;
|
|
}
|
|
split_key_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_IncidentData_TrackedPreferenceIncident::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string path = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_path()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_atomic_value;
|
|
break;
|
|
}
|
|
|
|
// optional string atomic_value = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_atomic_value:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_atomic_value()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_split_key;
|
|
break;
|
|
}
|
|
|
|
// repeated string split_key = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_split_key:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_split_key()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_split_key;
|
|
if (input->ExpectTag(32)) goto parse_value_state;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident.ValueState value_state = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_value_state:
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState_IsValid(value)) {
|
|
set_value_state(static_cast< ::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident_ValueState >(value));
|
|
} else {
|
|
unknown_fields_stream.WriteVarint32(tag);
|
|
unknown_fields_stream.WriteVarint32(value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
|
|
// optional string path = 1;
|
|
if (has_path()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->path(), output);
|
|
}
|
|
|
|
// optional string atomic_value = 2;
|
|
if (has_atomic_value()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->atomic_value(), output);
|
|
}
|
|
|
|
// repeated string split_key = 3;
|
|
for (int i = 0; i < this->split_key_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
3, this->split_key(i), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident.ValueState value_state = 4;
|
|
if (has_value_state()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
4, this->value_state(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident)
|
|
}
|
|
|
|
int ClientIncidentReport_IncidentData_TrackedPreferenceIncident::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string path = 1;
|
|
if (has_path()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->path());
|
|
}
|
|
|
|
// optional string atomic_value = 2;
|
|
if (has_atomic_value()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->atomic_value());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident.ValueState value_state = 4;
|
|
if (has_value_state()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->value_state());
|
|
}
|
|
|
|
}
|
|
// repeated string split_key = 3;
|
|
total_size += 1 * this->split_key_size();
|
|
for (int i = 0; i < this->split_key_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->split_key(i));
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData_TrackedPreferenceIncident*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::MergeFrom(const ClientIncidentReport_IncidentData_TrackedPreferenceIncident& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
split_key_.MergeFrom(from.split_key_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_path()) {
|
|
set_path(from.path());
|
|
}
|
|
if (from.has_atomic_value()) {
|
|
set_atomic_value(from.atomic_value());
|
|
}
|
|
if (from.has_value_state()) {
|
|
set_value_state(from.value_state());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::CopyFrom(const ClientIncidentReport_IncidentData_TrackedPreferenceIncident& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_IncidentData_TrackedPreferenceIncident::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_TrackedPreferenceIncident::Swap(ClientIncidentReport_IncidentData_TrackedPreferenceIncident* other) {
|
|
if (other != this) {
|
|
std::swap(path_, other->path_);
|
|
std::swap(atomic_value_, other->atomic_value_);
|
|
split_key_.Swap(&other->split_key_);
|
|
std::swap(value_state_, other->value_state_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_IncidentData_TrackedPreferenceIncident::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_IncidentData_BinaryIntegrityIncident::kFileBasenameFieldNumber;
|
|
const int ClientIncidentReport_IncidentData_BinaryIntegrityIncident::kSignatureFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_IncidentData_BinaryIntegrityIncident::ClientIncidentReport_IncidentData_BinaryIntegrityIncident()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(
|
|
::safe_browsing::ClientDownloadRequest_SignatureInfo::internal_default_instance());
|
|
#else
|
|
signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(&::safe_browsing::ClientDownloadRequest_SignatureInfo::default_instance());
|
|
#endif
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_BinaryIntegrityIncident::ClientIncidentReport_IncidentData_BinaryIntegrityIncident(const ClientIncidentReport_IncidentData_BinaryIntegrityIncident& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
file_basename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
signature_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_BinaryIntegrityIncident::~ClientIncidentReport_IncidentData_BinaryIntegrityIncident() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::SharedDtor() {
|
|
if (file_basename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete file_basename_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete signature_;
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_IncidentData_BinaryIntegrityIncident& ClientIncidentReport_IncidentData_BinaryIntegrityIncident::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_BinaryIntegrityIncident* ClientIncidentReport_IncidentData_BinaryIntegrityIncident::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_IncidentData_BinaryIntegrityIncident* ClientIncidentReport_IncidentData_BinaryIntegrityIncident::New() const {
|
|
return new ClientIncidentReport_IncidentData_BinaryIntegrityIncident;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
if (has_file_basename()) {
|
|
if (file_basename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
file_basename_->clear();
|
|
}
|
|
}
|
|
if (has_signature()) {
|
|
if (signature_ != NULL) signature_->::safe_browsing::ClientDownloadRequest_SignatureInfo::Clear();
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_IncidentData_BinaryIntegrityIncident::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string file_basename = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_file_basename()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_signature;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_signature:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_signature()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
|
|
// optional string file_basename = 1;
|
|
if (has_file_basename()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->file_basename(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 2;
|
|
if (has_signature()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
2, this->signature(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident)
|
|
}
|
|
|
|
int ClientIncidentReport_IncidentData_BinaryIntegrityIncident::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string file_basename = 1;
|
|
if (has_file_basename()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->file_basename());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 2;
|
|
if (has_signature()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->signature());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData_BinaryIntegrityIncident*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::MergeFrom(const ClientIncidentReport_IncidentData_BinaryIntegrityIncident& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_file_basename()) {
|
|
set_file_basename(from.file_basename());
|
|
}
|
|
if (from.has_signature()) {
|
|
mutable_signature()->::safe_browsing::ClientDownloadRequest_SignatureInfo::MergeFrom(from.signature());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::CopyFrom(const ClientIncidentReport_IncidentData_BinaryIntegrityIncident& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_IncidentData_BinaryIntegrityIncident::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BinaryIntegrityIncident::Swap(ClientIncidentReport_IncidentData_BinaryIntegrityIncident* other) {
|
|
if (other != this) {
|
|
std::swap(file_basename_, other->file_basename_);
|
|
std::swap(signature_, other->signature_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_IncidentData_BinaryIntegrityIncident::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_IncidentData_BlacklistLoadIncident::kPathFieldNumber;
|
|
const int ClientIncidentReport_IncidentData_BlacklistLoadIncident::kDigestFieldNumber;
|
|
const int ClientIncidentReport_IncidentData_BlacklistLoadIncident::kVersionFieldNumber;
|
|
const int ClientIncidentReport_IncidentData_BlacklistLoadIncident::kBlacklistInitializedFieldNumber;
|
|
const int ClientIncidentReport_IncidentData_BlacklistLoadIncident::kSignatureFieldNumber;
|
|
const int ClientIncidentReport_IncidentData_BlacklistLoadIncident::kImageHeadersFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_IncidentData_BlacklistLoadIncident::ClientIncidentReport_IncidentData_BlacklistLoadIncident()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BlacklistLoadIncident::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
digest_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(
|
|
::safe_browsing::ClientDownloadRequest_Digests::internal_default_instance());
|
|
#else
|
|
digest_ = const_cast< ::safe_browsing::ClientDownloadRequest_Digests*>(&::safe_browsing::ClientDownloadRequest_Digests::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(
|
|
::safe_browsing::ClientDownloadRequest_SignatureInfo::internal_default_instance());
|
|
#else
|
|
signature_ = const_cast< ::safe_browsing::ClientDownloadRequest_SignatureInfo*>(&::safe_browsing::ClientDownloadRequest_SignatureInfo::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(
|
|
::safe_browsing::ClientDownloadRequest_ImageHeaders::internal_default_instance());
|
|
#else
|
|
image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(&::safe_browsing::ClientDownloadRequest_ImageHeaders::default_instance());
|
|
#endif
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_BlacklistLoadIncident::ClientIncidentReport_IncidentData_BlacklistLoadIncident(const ClientIncidentReport_IncidentData_BlacklistLoadIncident& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BlacklistLoadIncident::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
path_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
digest_ = NULL;
|
|
version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
blacklist_initialized_ = false;
|
|
signature_ = NULL;
|
|
image_headers_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_BlacklistLoadIncident::~ClientIncidentReport_IncidentData_BlacklistLoadIncident() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BlacklistLoadIncident::SharedDtor() {
|
|
if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete path_;
|
|
}
|
|
if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete version_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete digest_;
|
|
delete signature_;
|
|
delete image_headers_;
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BlacklistLoadIncident::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_IncidentData_BlacklistLoadIncident& ClientIncidentReport_IncidentData_BlacklistLoadIncident::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_BlacklistLoadIncident* ClientIncidentReport_IncidentData_BlacklistLoadIncident::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_IncidentData_BlacklistLoadIncident* ClientIncidentReport_IncidentData_BlacklistLoadIncident::New() const {
|
|
return new ClientIncidentReport_IncidentData_BlacklistLoadIncident;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BlacklistLoadIncident::Clear() {
|
|
if (_has_bits_[0 / 32] & 63) {
|
|
if (has_path()) {
|
|
if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
path_->clear();
|
|
}
|
|
}
|
|
if (has_digest()) {
|
|
if (digest_ != NULL) digest_->::safe_browsing::ClientDownloadRequest_Digests::Clear();
|
|
}
|
|
if (has_version()) {
|
|
if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
version_->clear();
|
|
}
|
|
}
|
|
blacklist_initialized_ = false;
|
|
if (has_signature()) {
|
|
if (signature_ != NULL) signature_->::safe_browsing::ClientDownloadRequest_SignatureInfo::Clear();
|
|
}
|
|
if (has_image_headers()) {
|
|
if (image_headers_ != NULL) image_headers_->::safe_browsing::ClientDownloadRequest_ImageHeaders::Clear();
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_IncidentData_BlacklistLoadIncident::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string path = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_path()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_digest;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.Digests digest = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_digest:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_digest()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_version;
|
|
break;
|
|
}
|
|
|
|
// optional string version = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_version:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_version()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_blacklist_initialized;
|
|
break;
|
|
}
|
|
|
|
// optional bool blacklist_initialized = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_blacklist_initialized:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &blacklist_initialized_)));
|
|
set_has_blacklist_initialized();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(42)) goto parse_signature;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
|
|
case 5: {
|
|
if (tag == 42) {
|
|
parse_signature:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_signature()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(50)) goto parse_image_headers;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 6;
|
|
case 6: {
|
|
if (tag == 50) {
|
|
parse_image_headers:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_image_headers()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BlacklistLoadIncident::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
|
|
// optional string path = 1;
|
|
if (has_path()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->path(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.Digests digest = 2;
|
|
if (has_digest()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
2, this->digest(), output);
|
|
}
|
|
|
|
// optional string version = 3;
|
|
if (has_version()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->version(), output);
|
|
}
|
|
|
|
// optional bool blacklist_initialized = 4;
|
|
if (has_blacklist_initialized()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBool(4, this->blacklist_initialized(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
|
|
if (has_signature()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
5, this->signature(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 6;
|
|
if (has_image_headers()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
6, this->image_headers(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident)
|
|
}
|
|
|
|
int ClientIncidentReport_IncidentData_BlacklistLoadIncident::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string path = 1;
|
|
if (has_path()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->path());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.Digests digest = 2;
|
|
if (has_digest()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->digest());
|
|
}
|
|
|
|
// optional string version = 3;
|
|
if (has_version()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->version());
|
|
}
|
|
|
|
// optional bool blacklist_initialized = 4;
|
|
if (has_blacklist_initialized()) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5;
|
|
if (has_signature()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->signature());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 6;
|
|
if (has_image_headers()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->image_headers());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BlacklistLoadIncident::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData_BlacklistLoadIncident*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BlacklistLoadIncident::MergeFrom(const ClientIncidentReport_IncidentData_BlacklistLoadIncident& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_path()) {
|
|
set_path(from.path());
|
|
}
|
|
if (from.has_digest()) {
|
|
mutable_digest()->::safe_browsing::ClientDownloadRequest_Digests::MergeFrom(from.digest());
|
|
}
|
|
if (from.has_version()) {
|
|
set_version(from.version());
|
|
}
|
|
if (from.has_blacklist_initialized()) {
|
|
set_blacklist_initialized(from.blacklist_initialized());
|
|
}
|
|
if (from.has_signature()) {
|
|
mutable_signature()->::safe_browsing::ClientDownloadRequest_SignatureInfo::MergeFrom(from.signature());
|
|
}
|
|
if (from.has_image_headers()) {
|
|
mutable_image_headers()->::safe_browsing::ClientDownloadRequest_ImageHeaders::MergeFrom(from.image_headers());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BlacklistLoadIncident::CopyFrom(const ClientIncidentReport_IncidentData_BlacklistLoadIncident& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_IncidentData_BlacklistLoadIncident::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_BlacklistLoadIncident::Swap(ClientIncidentReport_IncidentData_BlacklistLoadIncident* other) {
|
|
if (other != this) {
|
|
std::swap(path_, other->path_);
|
|
std::swap(digest_, other->digest_);
|
|
std::swap(version_, other->version_);
|
|
std::swap(blacklist_initialized_, other->blacklist_initialized_);
|
|
std::swap(signature_, other->signature_);
|
|
std::swap(image_headers_, other->image_headers_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_IncidentData_BlacklistLoadIncident::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::kVariationsSeedSignatureFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident(const ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
variations_seed_signature_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::~ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::SharedDtor() {
|
|
if (variations_seed_signature_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete variations_seed_signature_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident& ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident* ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident* ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::New() const {
|
|
return new ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::Clear() {
|
|
if (has_variations_seed_signature()) {
|
|
if (variations_seed_signature_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
variations_seed_signature_->clear();
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string variations_seed_signature = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_variations_seed_signature()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
|
|
// optional string variations_seed_signature = 1;
|
|
if (has_variations_seed_signature()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->variations_seed_signature(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident)
|
|
}
|
|
|
|
int ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string variations_seed_signature = 1;
|
|
if (has_variations_seed_signature()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->variations_seed_signature());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::MergeFrom(const ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_variations_seed_signature()) {
|
|
set_variations_seed_signature(from.variations_seed_signature());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::CopyFrom(const ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::Swap(ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident* other) {
|
|
if (other != this) {
|
|
std::swap(variations_seed_signature_, other->variations_seed_signature_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_IncidentData_ScriptRequestIncident::kScriptDigestFieldNumber;
|
|
const int ClientIncidentReport_IncidentData_ScriptRequestIncident::kInclusionOriginFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_IncidentData_ScriptRequestIncident::ClientIncidentReport_IncidentData_ScriptRequestIncident()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData.ScriptRequestIncident)
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_ScriptRequestIncident::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_ScriptRequestIncident::ClientIncidentReport_IncidentData_ScriptRequestIncident(const ClientIncidentReport_IncidentData_ScriptRequestIncident& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData.ScriptRequestIncident)
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_ScriptRequestIncident::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
script_digest_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
inclusion_origin_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_ScriptRequestIncident::~ClientIncidentReport_IncidentData_ScriptRequestIncident() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData.ScriptRequestIncident)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_ScriptRequestIncident::SharedDtor() {
|
|
if (script_digest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete script_digest_;
|
|
}
|
|
if (inclusion_origin_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete inclusion_origin_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_ScriptRequestIncident::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_IncidentData_ScriptRequestIncident& ClientIncidentReport_IncidentData_ScriptRequestIncident::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData_ScriptRequestIncident* ClientIncidentReport_IncidentData_ScriptRequestIncident::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_IncidentData_ScriptRequestIncident* ClientIncidentReport_IncidentData_ScriptRequestIncident::New() const {
|
|
return new ClientIncidentReport_IncidentData_ScriptRequestIncident;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_ScriptRequestIncident::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
if (has_script_digest()) {
|
|
if (script_digest_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
script_digest_->clear();
|
|
}
|
|
}
|
|
if (has_inclusion_origin()) {
|
|
if (inclusion_origin_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
inclusion_origin_->clear();
|
|
}
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_IncidentData_ScriptRequestIncident::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData.ScriptRequestIncident)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string script_digest = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_script_digest()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_inclusion_origin;
|
|
break;
|
|
}
|
|
|
|
// optional string inclusion_origin = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_inclusion_origin:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_inclusion_origin()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.IncidentData.ScriptRequestIncident)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData.ScriptRequestIncident)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_ScriptRequestIncident::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData.ScriptRequestIncident)
|
|
// optional string script_digest = 1;
|
|
if (has_script_digest()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->script_digest(), output);
|
|
}
|
|
|
|
// optional string inclusion_origin = 2;
|
|
if (has_inclusion_origin()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->inclusion_origin(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData.ScriptRequestIncident)
|
|
}
|
|
|
|
int ClientIncidentReport_IncidentData_ScriptRequestIncident::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string script_digest = 1;
|
|
if (has_script_digest()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->script_digest());
|
|
}
|
|
|
|
// optional string inclusion_origin = 2;
|
|
if (has_inclusion_origin()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->inclusion_origin());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_ScriptRequestIncident::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData_ScriptRequestIncident*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_ScriptRequestIncident::MergeFrom(const ClientIncidentReport_IncidentData_ScriptRequestIncident& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_script_digest()) {
|
|
set_script_digest(from.script_digest());
|
|
}
|
|
if (from.has_inclusion_origin()) {
|
|
set_inclusion_origin(from.inclusion_origin());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_ScriptRequestIncident::CopyFrom(const ClientIncidentReport_IncidentData_ScriptRequestIncident& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_IncidentData_ScriptRequestIncident::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData_ScriptRequestIncident::Swap(ClientIncidentReport_IncidentData_ScriptRequestIncident* other) {
|
|
if (other != this) {
|
|
std::swap(script_digest_, other->script_digest_);
|
|
std::swap(inclusion_origin_, other->inclusion_origin_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_IncidentData_ScriptRequestIncident::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.IncidentData.ScriptRequestIncident";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_IncidentData::kIncidentTimeMsecFieldNumber;
|
|
const int ClientIncidentReport_IncidentData::kTrackedPreferenceFieldNumber;
|
|
const int ClientIncidentReport_IncidentData::kBinaryIntegrityFieldNumber;
|
|
const int ClientIncidentReport_IncidentData::kBlacklistLoadFieldNumber;
|
|
const int ClientIncidentReport_IncidentData::kVariationsSeedSignatureFieldNumber;
|
|
const int ClientIncidentReport_IncidentData::kScriptRequestFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_IncidentData::ClientIncidentReport_IncidentData()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.IncidentData)
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
tracked_preference_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident*>(
|
|
::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident::internal_default_instance());
|
|
#else
|
|
tracked_preference_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident*>(&::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
binary_integrity_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_BinaryIntegrityIncident*>(
|
|
::safe_browsing::ClientIncidentReport_IncidentData_BinaryIntegrityIncident::internal_default_instance());
|
|
#else
|
|
binary_integrity_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_BinaryIntegrityIncident*>(&::safe_browsing::ClientIncidentReport_IncidentData_BinaryIntegrityIncident::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
blacklist_load_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_BlacklistLoadIncident*>(
|
|
::safe_browsing::ClientIncidentReport_IncidentData_BlacklistLoadIncident::internal_default_instance());
|
|
#else
|
|
blacklist_load_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_BlacklistLoadIncident*>(&::safe_browsing::ClientIncidentReport_IncidentData_BlacklistLoadIncident::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
variations_seed_signature_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident*>(
|
|
::safe_browsing::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::internal_default_instance());
|
|
#else
|
|
variations_seed_signature_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident*>(&::safe_browsing::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
script_request_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_ScriptRequestIncident*>(
|
|
::safe_browsing::ClientIncidentReport_IncidentData_ScriptRequestIncident::internal_default_instance());
|
|
#else
|
|
script_request_ = const_cast< ::safe_browsing::ClientIncidentReport_IncidentData_ScriptRequestIncident*>(&::safe_browsing::ClientIncidentReport_IncidentData_ScriptRequestIncident::default_instance());
|
|
#endif
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData::ClientIncidentReport_IncidentData(const ClientIncidentReport_IncidentData& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.IncidentData)
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
incident_time_msec_ = GOOGLE_LONGLONG(0);
|
|
tracked_preference_ = NULL;
|
|
binary_integrity_ = NULL;
|
|
blacklist_load_ = NULL;
|
|
variations_seed_signature_ = NULL;
|
|
script_request_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData::~ClientIncidentReport_IncidentData() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.IncidentData)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData::SharedDtor() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete tracked_preference_;
|
|
delete binary_integrity_;
|
|
delete blacklist_load_;
|
|
delete variations_seed_signature_;
|
|
delete script_request_;
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_IncidentData& ClientIncidentReport_IncidentData::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_IncidentData* ClientIncidentReport_IncidentData::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_IncidentData* ClientIncidentReport_IncidentData::New() const {
|
|
return new ClientIncidentReport_IncidentData;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData::Clear() {
|
|
if (_has_bits_[0 / 32] & 63) {
|
|
incident_time_msec_ = GOOGLE_LONGLONG(0);
|
|
if (has_tracked_preference()) {
|
|
if (tracked_preference_ != NULL) tracked_preference_->::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident::Clear();
|
|
}
|
|
if (has_binary_integrity()) {
|
|
if (binary_integrity_ != NULL) binary_integrity_->::safe_browsing::ClientIncidentReport_IncidentData_BinaryIntegrityIncident::Clear();
|
|
}
|
|
if (has_blacklist_load()) {
|
|
if (blacklist_load_ != NULL) blacklist_load_->::safe_browsing::ClientIncidentReport_IncidentData_BlacklistLoadIncident::Clear();
|
|
}
|
|
if (has_variations_seed_signature()) {
|
|
if (variations_seed_signature_ != NULL) variations_seed_signature_->::safe_browsing::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::Clear();
|
|
}
|
|
if (has_script_request()) {
|
|
if (script_request_ != NULL) script_request_->::safe_browsing::ClientIncidentReport_IncidentData_ScriptRequestIncident::Clear();
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_IncidentData::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.IncidentData)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional int64 incident_time_msec = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &incident_time_msec_)));
|
|
set_has_incident_time_msec();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_tracked_preference;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident tracked_preference = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_tracked_preference:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_tracked_preference()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_binary_integrity;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident binary_integrity = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_binary_integrity:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_binary_integrity()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_blacklist_load;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident blacklist_load = 4;
|
|
case 4: {
|
|
if (tag == 34) {
|
|
parse_blacklist_load:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_blacklist_load()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(50)) goto parse_variations_seed_signature;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident variations_seed_signature = 6;
|
|
case 6: {
|
|
if (tag == 50) {
|
|
parse_variations_seed_signature:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_variations_seed_signature()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(58)) goto parse_script_request;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.ScriptRequestIncident script_request = 7;
|
|
case 7: {
|
|
if (tag == 58) {
|
|
parse_script_request:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_script_request()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.IncidentData)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.IncidentData)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.IncidentData)
|
|
// optional int64 incident_time_msec = 1;
|
|
if (has_incident_time_msec()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->incident_time_msec(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident tracked_preference = 2;
|
|
if (has_tracked_preference()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
2, this->tracked_preference(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident binary_integrity = 3;
|
|
if (has_binary_integrity()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
3, this->binary_integrity(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident blacklist_load = 4;
|
|
if (has_blacklist_load()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
4, this->blacklist_load(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident variations_seed_signature = 6;
|
|
if (has_variations_seed_signature()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
6, this->variations_seed_signature(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.ScriptRequestIncident script_request = 7;
|
|
if (has_script_request()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
7, this->script_request(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.IncidentData)
|
|
}
|
|
|
|
int ClientIncidentReport_IncidentData::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional int64 incident_time_msec = 1;
|
|
if (has_incident_time_msec()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->incident_time_msec());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.TrackedPreferenceIncident tracked_preference = 2;
|
|
if (has_tracked_preference()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->tracked_preference());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.BinaryIntegrityIncident binary_integrity = 3;
|
|
if (has_binary_integrity()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->binary_integrity());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.BlacklistLoadIncident blacklist_load = 4;
|
|
if (has_blacklist_load()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->blacklist_load());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.VariationsSeedSignatureIncident variations_seed_signature = 6;
|
|
if (has_variations_seed_signature()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->variations_seed_signature());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.IncidentData.ScriptRequestIncident script_request = 7;
|
|
if (has_script_request()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->script_request());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_IncidentData*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData::MergeFrom(const ClientIncidentReport_IncidentData& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_incident_time_msec()) {
|
|
set_incident_time_msec(from.incident_time_msec());
|
|
}
|
|
if (from.has_tracked_preference()) {
|
|
mutable_tracked_preference()->::safe_browsing::ClientIncidentReport_IncidentData_TrackedPreferenceIncident::MergeFrom(from.tracked_preference());
|
|
}
|
|
if (from.has_binary_integrity()) {
|
|
mutable_binary_integrity()->::safe_browsing::ClientIncidentReport_IncidentData_BinaryIntegrityIncident::MergeFrom(from.binary_integrity());
|
|
}
|
|
if (from.has_blacklist_load()) {
|
|
mutable_blacklist_load()->::safe_browsing::ClientIncidentReport_IncidentData_BlacklistLoadIncident::MergeFrom(from.blacklist_load());
|
|
}
|
|
if (from.has_variations_seed_signature()) {
|
|
mutable_variations_seed_signature()->::safe_browsing::ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident::MergeFrom(from.variations_seed_signature());
|
|
}
|
|
if (from.has_script_request()) {
|
|
mutable_script_request()->::safe_browsing::ClientIncidentReport_IncidentData_ScriptRequestIncident::MergeFrom(from.script_request());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData::CopyFrom(const ClientIncidentReport_IncidentData& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_IncidentData::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_IncidentData::Swap(ClientIncidentReport_IncidentData* other) {
|
|
if (other != this) {
|
|
std::swap(incident_time_msec_, other->incident_time_msec_);
|
|
std::swap(tracked_preference_, other->tracked_preference_);
|
|
std::swap(binary_integrity_, other->binary_integrity_);
|
|
std::swap(blacklist_load_, other->blacklist_load_);
|
|
std::swap(variations_seed_signature_, other->variations_seed_signature_);
|
|
std::swap(script_request_, other->script_request_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_IncidentData::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.IncidentData";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_DownloadDetails::kTokenFieldNumber;
|
|
const int ClientIncidentReport_DownloadDetails::kDownloadFieldNumber;
|
|
const int ClientIncidentReport_DownloadDetails::kDownloadTimeMsecFieldNumber;
|
|
const int ClientIncidentReport_DownloadDetails::kOpenTimeMsecFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_DownloadDetails::ClientIncidentReport_DownloadDetails()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.DownloadDetails)
|
|
}
|
|
|
|
void ClientIncidentReport_DownloadDetails::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
download_ = const_cast< ::safe_browsing::ClientDownloadRequest*>(
|
|
::safe_browsing::ClientDownloadRequest::internal_default_instance());
|
|
#else
|
|
download_ = const_cast< ::safe_browsing::ClientDownloadRequest*>(&::safe_browsing::ClientDownloadRequest::default_instance());
|
|
#endif
|
|
}
|
|
|
|
ClientIncidentReport_DownloadDetails::ClientIncidentReport_DownloadDetails(const ClientIncidentReport_DownloadDetails& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.DownloadDetails)
|
|
}
|
|
|
|
void ClientIncidentReport_DownloadDetails::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
download_ = NULL;
|
|
download_time_msec_ = GOOGLE_LONGLONG(0);
|
|
open_time_msec_ = GOOGLE_LONGLONG(0);
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_DownloadDetails::~ClientIncidentReport_DownloadDetails() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.DownloadDetails)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_DownloadDetails::SharedDtor() {
|
|
if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete token_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete download_;
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_DownloadDetails::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_DownloadDetails& ClientIncidentReport_DownloadDetails::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_DownloadDetails* ClientIncidentReport_DownloadDetails::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_DownloadDetails* ClientIncidentReport_DownloadDetails::New() const {
|
|
return new ClientIncidentReport_DownloadDetails;
|
|
}
|
|
|
|
void ClientIncidentReport_DownloadDetails::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<ClientIncidentReport_DownloadDetails*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 15) {
|
|
ZR_(download_time_msec_, open_time_msec_);
|
|
if (has_token()) {
|
|
if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
token_->clear();
|
|
}
|
|
}
|
|
if (has_download()) {
|
|
if (download_ != NULL) download_->::safe_browsing::ClientDownloadRequest::Clear();
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_DownloadDetails::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.DownloadDetails)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional bytes token = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_token()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_download;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest download = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_download:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_download()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_download_time_msec;
|
|
break;
|
|
}
|
|
|
|
// optional int64 download_time_msec = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_download_time_msec:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &download_time_msec_)));
|
|
set_has_download_time_msec();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_open_time_msec;
|
|
break;
|
|
}
|
|
|
|
// optional int64 open_time_msec = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_open_time_msec:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &open_time_msec_)));
|
|
set_has_open_time_msec();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.DownloadDetails)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.DownloadDetails)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_DownloadDetails::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.DownloadDetails)
|
|
// optional bytes token = 1;
|
|
if (has_token()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
1, this->token(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest download = 2;
|
|
if (has_download()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
2, this->download(), output);
|
|
}
|
|
|
|
// optional int64 download_time_msec = 3;
|
|
if (has_download_time_msec()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->download_time_msec(), output);
|
|
}
|
|
|
|
// optional int64 open_time_msec = 4;
|
|
if (has_open_time_msec()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->open_time_msec(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.DownloadDetails)
|
|
}
|
|
|
|
int ClientIncidentReport_DownloadDetails::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional bytes token = 1;
|
|
if (has_token()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->token());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest download = 2;
|
|
if (has_download()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->download());
|
|
}
|
|
|
|
// optional int64 download_time_msec = 3;
|
|
if (has_download_time_msec()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->download_time_msec());
|
|
}
|
|
|
|
// optional int64 open_time_msec = 4;
|
|
if (has_open_time_msec()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->open_time_msec());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_DownloadDetails::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_DownloadDetails*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_DownloadDetails::MergeFrom(const ClientIncidentReport_DownloadDetails& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_token()) {
|
|
set_token(from.token());
|
|
}
|
|
if (from.has_download()) {
|
|
mutable_download()->::safe_browsing::ClientDownloadRequest::MergeFrom(from.download());
|
|
}
|
|
if (from.has_download_time_msec()) {
|
|
set_download_time_msec(from.download_time_msec());
|
|
}
|
|
if (from.has_open_time_msec()) {
|
|
set_open_time_msec(from.open_time_msec());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_DownloadDetails::CopyFrom(const ClientIncidentReport_DownloadDetails& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_DownloadDetails::IsInitialized() const {
|
|
|
|
if (has_download()) {
|
|
if (!this->download().IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_DownloadDetails::Swap(ClientIncidentReport_DownloadDetails* other) {
|
|
if (other != this) {
|
|
std::swap(token_, other->token_);
|
|
std::swap(download_, other->download_);
|
|
std::swap(download_time_msec_, other->download_time_msec_);
|
|
std::swap(open_time_msec_, other->open_time_msec_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_DownloadDetails::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.DownloadDetails";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_EnvironmentData_OS::kOsNameFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_OS::kOsVersionFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_EnvironmentData_OS::ClientIncidentReport_EnvironmentData_OS()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_OS::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_OS::ClientIncidentReport_EnvironmentData_OS(const ClientIncidentReport_EnvironmentData_OS& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_OS::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
os_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
os_version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_OS::~ClientIncidentReport_EnvironmentData_OS() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_OS::SharedDtor() {
|
|
if (os_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete os_name_;
|
|
}
|
|
if (os_version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete os_version_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_OS::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_EnvironmentData_OS& ClientIncidentReport_EnvironmentData_OS::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_OS* ClientIncidentReport_EnvironmentData_OS::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_EnvironmentData_OS* ClientIncidentReport_EnvironmentData_OS::New() const {
|
|
return new ClientIncidentReport_EnvironmentData_OS;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_OS::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
if (has_os_name()) {
|
|
if (os_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
os_name_->clear();
|
|
}
|
|
}
|
|
if (has_os_version()) {
|
|
if (os_version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
os_version_->clear();
|
|
}
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_OS::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string os_name = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_os_name()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_os_version;
|
|
break;
|
|
}
|
|
|
|
// optional string os_version = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_os_version:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_os_version()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_OS::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
|
|
// optional string os_name = 1;
|
|
if (has_os_name()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->os_name(), output);
|
|
}
|
|
|
|
// optional string os_version = 2;
|
|
if (has_os_version()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->os_version(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.OS)
|
|
}
|
|
|
|
int ClientIncidentReport_EnvironmentData_OS::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string os_name = 1;
|
|
if (has_os_name()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->os_name());
|
|
}
|
|
|
|
// optional string os_version = 2;
|
|
if (has_os_version()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->os_version());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_OS::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_OS*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_OS::MergeFrom(const ClientIncidentReport_EnvironmentData_OS& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_os_name()) {
|
|
set_os_name(from.os_name());
|
|
}
|
|
if (from.has_os_version()) {
|
|
set_os_version(from.os_version());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_OS::CopyFrom(const ClientIncidentReport_EnvironmentData_OS& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_OS::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_OS::Swap(ClientIncidentReport_EnvironmentData_OS* other) {
|
|
if (other != this) {
|
|
std::swap(os_name_, other->os_name_);
|
|
std::swap(os_version_, other->os_version_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_EnvironmentData_OS::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.EnvironmentData.OS";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_EnvironmentData_Machine::kCpuArchitectureFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Machine::kCpuVendorFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Machine::kCpuidFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_EnvironmentData_Machine::ClientIncidentReport_EnvironmentData_Machine()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Machine::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Machine::ClientIncidentReport_EnvironmentData_Machine(const ClientIncidentReport_EnvironmentData_Machine& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Machine::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
cpu_architecture_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
cpu_vendor_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
cpuid_ = 0u;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Machine::~ClientIncidentReport_EnvironmentData_Machine() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Machine::SharedDtor() {
|
|
if (cpu_architecture_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete cpu_architecture_;
|
|
}
|
|
if (cpu_vendor_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete cpu_vendor_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Machine::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_EnvironmentData_Machine& ClientIncidentReport_EnvironmentData_Machine::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Machine* ClientIncidentReport_EnvironmentData_Machine::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_EnvironmentData_Machine* ClientIncidentReport_EnvironmentData_Machine::New() const {
|
|
return new ClientIncidentReport_EnvironmentData_Machine;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Machine::Clear() {
|
|
if (_has_bits_[0 / 32] & 7) {
|
|
if (has_cpu_architecture()) {
|
|
if (cpu_architecture_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
cpu_architecture_->clear();
|
|
}
|
|
}
|
|
if (has_cpu_vendor()) {
|
|
if (cpu_vendor_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
cpu_vendor_->clear();
|
|
}
|
|
}
|
|
cpuid_ = 0u;
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Machine::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string cpu_architecture = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_cpu_architecture()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_cpu_vendor;
|
|
break;
|
|
}
|
|
|
|
// optional string cpu_vendor = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_cpu_vendor:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_cpu_vendor()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_cpuid;
|
|
break;
|
|
}
|
|
|
|
// optional uint32 cpuid = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_cpuid:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &cpuid_)));
|
|
set_has_cpuid();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Machine::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
|
|
// optional string cpu_architecture = 1;
|
|
if (has_cpu_architecture()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->cpu_architecture(), output);
|
|
}
|
|
|
|
// optional string cpu_vendor = 2;
|
|
if (has_cpu_vendor()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->cpu_vendor(), output);
|
|
}
|
|
|
|
// optional uint32 cpuid = 3;
|
|
if (has_cpuid()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->cpuid(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Machine)
|
|
}
|
|
|
|
int ClientIncidentReport_EnvironmentData_Machine::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string cpu_architecture = 1;
|
|
if (has_cpu_architecture()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->cpu_architecture());
|
|
}
|
|
|
|
// optional string cpu_vendor = 2;
|
|
if (has_cpu_vendor()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->cpu_vendor());
|
|
}
|
|
|
|
// optional uint32 cpuid = 3;
|
|
if (has_cpuid()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
|
this->cpuid());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Machine::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Machine*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Machine::MergeFrom(const ClientIncidentReport_EnvironmentData_Machine& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_cpu_architecture()) {
|
|
set_cpu_architecture(from.cpu_architecture());
|
|
}
|
|
if (from.has_cpu_vendor()) {
|
|
set_cpu_vendor(from.cpu_vendor());
|
|
}
|
|
if (from.has_cpuid()) {
|
|
set_cpuid(from.cpuid());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Machine::CopyFrom(const ClientIncidentReport_EnvironmentData_Machine& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Machine::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Machine::Swap(ClientIncidentReport_EnvironmentData_Machine* other) {
|
|
if (other != this) {
|
|
std::swap(cpu_architecture_, other->cpu_architecture_);
|
|
std::swap(cpu_vendor_, other->cpu_vendor_);
|
|
std::swap(cpuid_, other->cpuid_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_EnvironmentData_Machine::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.EnvironmentData.Machine";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process_Channel_IsValid(int value) {
|
|
switch(value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#ifndef _MSC_VER
|
|
const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::CHANNEL_UNKNOWN;
|
|
const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::CHANNEL_CANARY;
|
|
const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::CHANNEL_DEV;
|
|
const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::CHANNEL_BETA;
|
|
const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::CHANNEL_STABLE;
|
|
const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::Channel_MIN;
|
|
const ClientIncidentReport_EnvironmentData_Process_Channel ClientIncidentReport_EnvironmentData_Process::Channel_MAX;
|
|
const int ClientIncidentReport_EnvironmentData_Process::Channel_ARRAYSIZE;
|
|
#endif // _MSC_VER
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_EnvironmentData_Process_Patch::kFunctionFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process_Patch::kTargetDllFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_Patch::ClientIncidentReport_EnvironmentData_Process_Patch()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Patch::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_Patch::ClientIncidentReport_EnvironmentData_Process_Patch(const ClientIncidentReport_EnvironmentData_Process_Patch& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Patch::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
function_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
target_dll_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_Patch::~ClientIncidentReport_EnvironmentData_Process_Patch() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Patch::SharedDtor() {
|
|
if (function_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete function_;
|
|
}
|
|
if (target_dll_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete target_dll_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Patch::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_EnvironmentData_Process_Patch& ClientIncidentReport_EnvironmentData_Process_Patch::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_Patch* ClientIncidentReport_EnvironmentData_Process_Patch::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_Patch* ClientIncidentReport_EnvironmentData_Process_Patch::New() const {
|
|
return new ClientIncidentReport_EnvironmentData_Process_Patch;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Patch::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
if (has_function()) {
|
|
if (function_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
function_->clear();
|
|
}
|
|
}
|
|
if (has_target_dll()) {
|
|
if (target_dll_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
target_dll_->clear();
|
|
}
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process_Patch::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string function = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_function()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_target_dll;
|
|
break;
|
|
}
|
|
|
|
// optional string target_dll = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_target_dll:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_target_dll()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Patch::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
|
|
// optional string function = 1;
|
|
if (has_function()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->function(), output);
|
|
}
|
|
|
|
// optional string target_dll = 2;
|
|
if (has_target_dll()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->target_dll(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch)
|
|
}
|
|
|
|
int ClientIncidentReport_EnvironmentData_Process_Patch::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string function = 1;
|
|
if (has_function()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->function());
|
|
}
|
|
|
|
// optional string target_dll = 2;
|
|
if (has_target_dll()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->target_dll());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Patch::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Process_Patch*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Patch::MergeFrom(const ClientIncidentReport_EnvironmentData_Process_Patch& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_function()) {
|
|
set_function(from.function());
|
|
}
|
|
if (from.has_target_dll()) {
|
|
set_target_dll(from.target_dll());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Patch::CopyFrom(const ClientIncidentReport_EnvironmentData_Process_Patch& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process_Patch::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Patch::Swap(ClientIncidentReport_EnvironmentData_Process_Patch* other) {
|
|
if (other != this) {
|
|
std::swap(function_, other->function_);
|
|
std::swap(target_dll_, other->target_dll_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_EnvironmentData_Process_Patch::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_NetworkProvider::ClientIncidentReport_EnvironmentData_Process_NetworkProvider()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_NetworkProvider::ClientIncidentReport_EnvironmentData_Process_NetworkProvider(const ClientIncidentReport_EnvironmentData_Process_NetworkProvider& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_NetworkProvider::~ClientIncidentReport_EnvironmentData_Process_NetworkProvider() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::SharedDtor() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_EnvironmentData_Process_NetworkProvider& ClientIncidentReport_EnvironmentData_Process_NetworkProvider::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_NetworkProvider* ClientIncidentReport_EnvironmentData_Process_NetworkProvider::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_NetworkProvider* ClientIncidentReport_EnvironmentData_Process_NetworkProvider::New() const {
|
|
return new ClientIncidentReport_EnvironmentData_Process_NetworkProvider;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::Clear() {
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process_NetworkProvider::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
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));
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider)
|
|
}
|
|
|
|
int ClientIncidentReport_EnvironmentData_Process_NetworkProvider::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Process_NetworkProvider*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::MergeFrom(const ClientIncidentReport_EnvironmentData_Process_NetworkProvider& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::CopyFrom(const ClientIncidentReport_EnvironmentData_Process_NetworkProvider& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process_NetworkProvider::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_NetworkProvider::Swap(ClientIncidentReport_EnvironmentData_Process_NetworkProvider* other) {
|
|
if (other != this) {
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_EnvironmentData_Process_NetworkProvider::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process_Dll_Feature_IsValid(int value) {
|
|
switch(value) {
|
|
case 0:
|
|
case 1:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#ifndef _MSC_VER
|
|
const ClientIncidentReport_EnvironmentData_Process_Dll_Feature ClientIncidentReport_EnvironmentData_Process_Dll::UNKNOWN;
|
|
const ClientIncidentReport_EnvironmentData_Process_Dll_Feature ClientIncidentReport_EnvironmentData_Process_Dll::LSP;
|
|
const ClientIncidentReport_EnvironmentData_Process_Dll_Feature ClientIncidentReport_EnvironmentData_Process_Dll::Feature_MIN;
|
|
const ClientIncidentReport_EnvironmentData_Process_Dll_Feature ClientIncidentReport_EnvironmentData_Process_Dll::Feature_MAX;
|
|
const int ClientIncidentReport_EnvironmentData_Process_Dll::Feature_ARRAYSIZE;
|
|
#endif // _MSC_VER
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_EnvironmentData_Process_Dll::kPathFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process_Dll::kBaseAddressFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process_Dll::kLengthFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process_Dll::kFeatureFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process_Dll::kImageHeadersFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_Dll::ClientIncidentReport_EnvironmentData_Process_Dll()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Dll::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(
|
|
::safe_browsing::ClientDownloadRequest_ImageHeaders::internal_default_instance());
|
|
#else
|
|
image_headers_ = const_cast< ::safe_browsing::ClientDownloadRequest_ImageHeaders*>(&::safe_browsing::ClientDownloadRequest_ImageHeaders::default_instance());
|
|
#endif
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_Dll::ClientIncidentReport_EnvironmentData_Process_Dll(const ClientIncidentReport_EnvironmentData_Process_Dll& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Dll::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
path_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
base_address_ = GOOGLE_ULONGLONG(0);
|
|
length_ = 0u;
|
|
image_headers_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_Dll::~ClientIncidentReport_EnvironmentData_Process_Dll() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Dll::SharedDtor() {
|
|
if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete path_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete image_headers_;
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Dll::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_EnvironmentData_Process_Dll& ClientIncidentReport_EnvironmentData_Process_Dll::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_Dll* ClientIncidentReport_EnvironmentData_Process_Dll::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_Dll* ClientIncidentReport_EnvironmentData_Process_Dll::New() const {
|
|
return new ClientIncidentReport_EnvironmentData_Process_Dll;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Dll::Clear() {
|
|
if (_has_bits_[0 / 32] & 23) {
|
|
if (has_path()) {
|
|
if (path_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
path_->clear();
|
|
}
|
|
}
|
|
base_address_ = GOOGLE_ULONGLONG(0);
|
|
length_ = 0u;
|
|
if (has_image_headers()) {
|
|
if (image_headers_ != NULL) image_headers_->::safe_browsing::ClientDownloadRequest_ImageHeaders::Clear();
|
|
}
|
|
}
|
|
feature_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process_Dll::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string path = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_path()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_base_address;
|
|
break;
|
|
}
|
|
|
|
// optional uint64 base_address = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_base_address:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
|
|
input, &base_address_)));
|
|
set_has_base_address();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_length;
|
|
break;
|
|
}
|
|
|
|
// optional uint32 length = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_length:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &length_)));
|
|
set_has_length();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_feature;
|
|
break;
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll.Feature feature = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_feature:
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::safe_browsing::ClientIncidentReport_EnvironmentData_Process_Dll_Feature_IsValid(value)) {
|
|
add_feature(static_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Process_Dll_Feature >(value));
|
|
} else {
|
|
unknown_fields_stream.WriteVarint32(tag);
|
|
unknown_fields_stream.WriteVarint32(value);
|
|
}
|
|
} else if (tag == 34) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline(
|
|
input,
|
|
&::safe_browsing::ClientIncidentReport_EnvironmentData_Process_Dll_Feature_IsValid,
|
|
this->mutable_feature())));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_feature;
|
|
if (input->ExpectTag(42)) goto parse_image_headers;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 5;
|
|
case 5: {
|
|
if (tag == 42) {
|
|
parse_image_headers:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_image_headers()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Dll::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
|
|
// optional string path = 1;
|
|
if (has_path()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->path(), output);
|
|
}
|
|
|
|
// optional uint64 base_address = 2;
|
|
if (has_base_address()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->base_address(), output);
|
|
}
|
|
|
|
// optional uint32 length = 3;
|
|
if (has_length()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->length(), output);
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll.Feature feature = 4;
|
|
for (int i = 0; i < this->feature_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
4, this->feature(i), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 5;
|
|
if (has_image_headers()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
5, this->image_headers(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll)
|
|
}
|
|
|
|
int ClientIncidentReport_EnvironmentData_Process_Dll::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string path = 1;
|
|
if (has_path()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->path());
|
|
}
|
|
|
|
// optional uint64 base_address = 2;
|
|
if (has_base_address()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt64Size(
|
|
this->base_address());
|
|
}
|
|
|
|
// optional uint32 length = 3;
|
|
if (has_length()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
|
this->length());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientDownloadRequest.ImageHeaders image_headers = 5;
|
|
if (has_image_headers()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->image_headers());
|
|
}
|
|
|
|
}
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll.Feature feature = 4;
|
|
{
|
|
int data_size = 0;
|
|
for (int i = 0; i < this->feature_size(); i++) {
|
|
data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
|
|
this->feature(i));
|
|
}
|
|
total_size += 1 * this->feature_size() + data_size;
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Dll::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Process_Dll*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Dll::MergeFrom(const ClientIncidentReport_EnvironmentData_Process_Dll& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
feature_.MergeFrom(from.feature_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_path()) {
|
|
set_path(from.path());
|
|
}
|
|
if (from.has_base_address()) {
|
|
set_base_address(from.base_address());
|
|
}
|
|
if (from.has_length()) {
|
|
set_length(from.length());
|
|
}
|
|
if (from.has_image_headers()) {
|
|
mutable_image_headers()->::safe_browsing::ClientDownloadRequest_ImageHeaders::MergeFrom(from.image_headers());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Dll::CopyFrom(const ClientIncidentReport_EnvironmentData_Process_Dll& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process_Dll::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_Dll::Swap(ClientIncidentReport_EnvironmentData_Process_Dll* other) {
|
|
if (other != this) {
|
|
std::swap(path_, other->path_);
|
|
std::swap(base_address_, other->base_address_);
|
|
std::swap(length_, other->length_);
|
|
feature_.Swap(&other->feature_);
|
|
std::swap(image_headers_, other->image_headers_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_EnvironmentData_Process_Dll::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState_IsValid(int value) {
|
|
switch(value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#ifndef _MSC_VER
|
|
const ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState ClientIncidentReport_EnvironmentData_Process_ModuleState::UNKNOWN;
|
|
const ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState ClientIncidentReport_EnvironmentData_Process_ModuleState::MODULE_STATE_UNKNOWN;
|
|
const ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState ClientIncidentReport_EnvironmentData_Process_ModuleState::MODULE_STATE_UNMODIFIED;
|
|
const ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState ClientIncidentReport_EnvironmentData_Process_ModuleState::MODULE_STATE_MODIFIED;
|
|
const ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState ClientIncidentReport_EnvironmentData_Process_ModuleState::ModifiedState_MIN;
|
|
const ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState ClientIncidentReport_EnvironmentData_Process_ModuleState::ModifiedState_MAX;
|
|
const int ClientIncidentReport_EnvironmentData_Process_ModuleState::ModifiedState_ARRAYSIZE;
|
|
#endif // _MSC_VER
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_EnvironmentData_Process_ModuleState::kNameFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process_ModuleState::kModifiedStateFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process_ModuleState::kModifiedExportFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_ModuleState::ClientIncidentReport_EnvironmentData_Process_ModuleState()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_ModuleState::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_ModuleState::ClientIncidentReport_EnvironmentData_Process_ModuleState(const ClientIncidentReport_EnvironmentData_Process_ModuleState& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_ModuleState::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
modified_state_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_ModuleState::~ClientIncidentReport_EnvironmentData_Process_ModuleState() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_ModuleState::SharedDtor() {
|
|
if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete name_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_ModuleState::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_EnvironmentData_Process_ModuleState& ClientIncidentReport_EnvironmentData_Process_ModuleState::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_ModuleState* ClientIncidentReport_EnvironmentData_Process_ModuleState::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_EnvironmentData_Process_ModuleState* ClientIncidentReport_EnvironmentData_Process_ModuleState::New() const {
|
|
return new ClientIncidentReport_EnvironmentData_Process_ModuleState;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_ModuleState::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
if (has_name()) {
|
|
if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
name_->clear();
|
|
}
|
|
}
|
|
modified_state_ = 0;
|
|
}
|
|
modified_export_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process_ModuleState::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string name = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_name()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_modified_state;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.ModifiedState modified_state = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_modified_state:
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::safe_browsing::ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState_IsValid(value)) {
|
|
set_modified_state(static_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Process_ModuleState_ModifiedState >(value));
|
|
} else {
|
|
unknown_fields_stream.WriteVarint32(tag);
|
|
unknown_fields_stream.WriteVarint32(value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_modified_export;
|
|
break;
|
|
}
|
|
|
|
// repeated string modified_export = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_modified_export:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_modified_export()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_modified_export;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_ModuleState::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
|
|
// optional string name = 1;
|
|
if (has_name()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->name(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.ModifiedState modified_state = 2;
|
|
if (has_modified_state()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
2, this->modified_state(), output);
|
|
}
|
|
|
|
// repeated string modified_export = 3;
|
|
for (int i = 0; i < this->modified_export_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
3, this->modified_export(i), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState)
|
|
}
|
|
|
|
int ClientIncidentReport_EnvironmentData_Process_ModuleState::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string name = 1;
|
|
if (has_name()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->name());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState.ModifiedState modified_state = 2;
|
|
if (has_modified_state()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->modified_state());
|
|
}
|
|
|
|
}
|
|
// repeated string modified_export = 3;
|
|
total_size += 1 * this->modified_export_size();
|
|
for (int i = 0; i < this->modified_export_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->modified_export(i));
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_ModuleState::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Process_ModuleState*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_ModuleState::MergeFrom(const ClientIncidentReport_EnvironmentData_Process_ModuleState& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
modified_export_.MergeFrom(from.modified_export_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_name()) {
|
|
set_name(from.name());
|
|
}
|
|
if (from.has_modified_state()) {
|
|
set_modified_state(from.modified_state());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_ModuleState::CopyFrom(const ClientIncidentReport_EnvironmentData_Process_ModuleState& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process_ModuleState::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process_ModuleState::Swap(ClientIncidentReport_EnvironmentData_Process_ModuleState* other) {
|
|
if (other != this) {
|
|
std::swap(name_, other->name_);
|
|
std::swap(modified_state_, other->modified_state_);
|
|
modified_export_.Swap(&other->modified_export_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_EnvironmentData_Process_ModuleState::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_EnvironmentData_Process::kVersionFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process::kOBSOLETEDllsFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process::kPatchesFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process::kNetworkProvidersFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process::kChromeUpdateChannelFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process::kUptimeMsecFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process::kMetricsConsentFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process::kExtendedConsentFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process::kDllFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process::kBlacklistedDllFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData_Process::kModuleStateFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_EnvironmentData_Process::ClientIncidentReport_EnvironmentData_Process()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process::ClientIncidentReport_EnvironmentData_Process(const ClientIncidentReport_EnvironmentData_Process& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
chrome_update_channel_ = 0;
|
|
uptime_msec_ = GOOGLE_LONGLONG(0);
|
|
metrics_consent_ = false;
|
|
extended_consent_ = false;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process::~ClientIncidentReport_EnvironmentData_Process() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process::SharedDtor() {
|
|
if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete version_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_EnvironmentData_Process& ClientIncidentReport_EnvironmentData_Process::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData_Process* ClientIncidentReport_EnvironmentData_Process::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_EnvironmentData_Process* ClientIncidentReport_EnvironmentData_Process::New() const {
|
|
return new ClientIncidentReport_EnvironmentData_Process;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<ClientIncidentReport_EnvironmentData_Process*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 241) {
|
|
ZR_(uptime_msec_, extended_consent_);
|
|
if (has_version()) {
|
|
if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
version_->clear();
|
|
}
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
obsolete_dlls_.Clear();
|
|
patches_.Clear();
|
|
network_providers_.Clear();
|
|
dll_.Clear();
|
|
blacklisted_dll_.Clear();
|
|
module_state_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional string version = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_version()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_OBSOLETE_dlls;
|
|
break;
|
|
}
|
|
|
|
// repeated string OBSOLETE_dlls = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_OBSOLETE_dlls:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_obsolete_dlls()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_OBSOLETE_dlls;
|
|
if (input->ExpectTag(26)) goto parse_patches;
|
|
break;
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch patches = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_patches:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_patches()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_patches;
|
|
if (input->ExpectTag(34)) goto parse_network_providers;
|
|
break;
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider network_providers = 4;
|
|
case 4: {
|
|
if (tag == 34) {
|
|
parse_network_providers:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_network_providers()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_network_providers;
|
|
if (input->ExpectTag(40)) goto parse_chrome_update_channel;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Channel chrome_update_channel = 5;
|
|
case 5: {
|
|
if (tag == 40) {
|
|
parse_chrome_update_channel:
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::safe_browsing::ClientIncidentReport_EnvironmentData_Process_Channel_IsValid(value)) {
|
|
set_chrome_update_channel(static_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Process_Channel >(value));
|
|
} else {
|
|
unknown_fields_stream.WriteVarint32(tag);
|
|
unknown_fields_stream.WriteVarint32(value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(48)) goto parse_uptime_msec;
|
|
break;
|
|
}
|
|
|
|
// optional int64 uptime_msec = 6;
|
|
case 6: {
|
|
if (tag == 48) {
|
|
parse_uptime_msec:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &uptime_msec_)));
|
|
set_has_uptime_msec();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(56)) goto parse_metrics_consent;
|
|
break;
|
|
}
|
|
|
|
// optional bool metrics_consent = 7;
|
|
case 7: {
|
|
if (tag == 56) {
|
|
parse_metrics_consent:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &metrics_consent_)));
|
|
set_has_metrics_consent();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(64)) goto parse_extended_consent;
|
|
break;
|
|
}
|
|
|
|
// optional bool extended_consent = 8;
|
|
case 8: {
|
|
if (tag == 64) {
|
|
parse_extended_consent:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &extended_consent_)));
|
|
set_has_extended_consent();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(74)) goto parse_dll;
|
|
break;
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll dll = 9;
|
|
case 9: {
|
|
if (tag == 74) {
|
|
parse_dll:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_dll()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(74)) goto parse_dll;
|
|
if (input->ExpectTag(82)) goto parse_blacklisted_dll;
|
|
break;
|
|
}
|
|
|
|
// repeated string blacklisted_dll = 10;
|
|
case 10: {
|
|
if (tag == 82) {
|
|
parse_blacklisted_dll:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_blacklisted_dll()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(82)) goto parse_blacklisted_dll;
|
|
if (input->ExpectTag(90)) goto parse_module_state;
|
|
break;
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState module_state = 11;
|
|
case 11: {
|
|
if (tag == 90) {
|
|
parse_module_state:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_module_state()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(90)) goto parse_module_state;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
|
|
// optional string version = 1;
|
|
if (has_version()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->version(), output);
|
|
}
|
|
|
|
// repeated string OBSOLETE_dlls = 2;
|
|
for (int i = 0; i < this->obsolete_dlls_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
2, this->obsolete_dlls(i), output);
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch patches = 3;
|
|
for (int i = 0; i < this->patches_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
3, this->patches(i), output);
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider network_providers = 4;
|
|
for (int i = 0; i < this->network_providers_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
4, this->network_providers(i), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Channel chrome_update_channel = 5;
|
|
if (has_chrome_update_channel()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
5, this->chrome_update_channel(), output);
|
|
}
|
|
|
|
// optional int64 uptime_msec = 6;
|
|
if (has_uptime_msec()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->uptime_msec(), output);
|
|
}
|
|
|
|
// optional bool metrics_consent = 7;
|
|
if (has_metrics_consent()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBool(7, this->metrics_consent(), output);
|
|
}
|
|
|
|
// optional bool extended_consent = 8;
|
|
if (has_extended_consent()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBool(8, this->extended_consent(), output);
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll dll = 9;
|
|
for (int i = 0; i < this->dll_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
9, this->dll(i), output);
|
|
}
|
|
|
|
// repeated string blacklisted_dll = 10;
|
|
for (int i = 0; i < this->blacklisted_dll_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
10, this->blacklisted_dll(i), output);
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState module_state = 11;
|
|
for (int i = 0; i < this->module_state_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
11, this->module_state(i), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData.Process)
|
|
}
|
|
|
|
int ClientIncidentReport_EnvironmentData_Process::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional string version = 1;
|
|
if (has_version()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->version());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Channel chrome_update_channel = 5;
|
|
if (has_chrome_update_channel()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->chrome_update_channel());
|
|
}
|
|
|
|
// optional int64 uptime_msec = 6;
|
|
if (has_uptime_msec()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->uptime_msec());
|
|
}
|
|
|
|
// optional bool metrics_consent = 7;
|
|
if (has_metrics_consent()) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
// optional bool extended_consent = 8;
|
|
if (has_extended_consent()) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
}
|
|
// repeated string OBSOLETE_dlls = 2;
|
|
total_size += 1 * this->obsolete_dlls_size();
|
|
for (int i = 0; i < this->obsolete_dlls_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->obsolete_dlls(i));
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Patch patches = 3;
|
|
total_size += 1 * this->patches_size();
|
|
for (int i = 0; i < this->patches_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->patches(i));
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.NetworkProvider network_providers = 4;
|
|
total_size += 1 * this->network_providers_size();
|
|
for (int i = 0; i < this->network_providers_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->network_providers(i));
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.Dll dll = 9;
|
|
total_size += 1 * this->dll_size();
|
|
for (int i = 0; i < this->dll_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->dll(i));
|
|
}
|
|
|
|
// repeated string blacklisted_dll = 10;
|
|
total_size += 1 * this->blacklisted_dll_size();
|
|
for (int i = 0; i < this->blacklisted_dll_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->blacklisted_dll(i));
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentReport.EnvironmentData.Process.ModuleState module_state = 11;
|
|
total_size += 1 * this->module_state_size();
|
|
for (int i = 0; i < this->module_state_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->module_state(i));
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData_Process*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process::MergeFrom(const ClientIncidentReport_EnvironmentData_Process& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
obsolete_dlls_.MergeFrom(from.obsolete_dlls_);
|
|
patches_.MergeFrom(from.patches_);
|
|
network_providers_.MergeFrom(from.network_providers_);
|
|
dll_.MergeFrom(from.dll_);
|
|
blacklisted_dll_.MergeFrom(from.blacklisted_dll_);
|
|
module_state_.MergeFrom(from.module_state_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_version()) {
|
|
set_version(from.version());
|
|
}
|
|
if (from.has_chrome_update_channel()) {
|
|
set_chrome_update_channel(from.chrome_update_channel());
|
|
}
|
|
if (from.has_uptime_msec()) {
|
|
set_uptime_msec(from.uptime_msec());
|
|
}
|
|
if (from.has_metrics_consent()) {
|
|
set_metrics_consent(from.metrics_consent());
|
|
}
|
|
if (from.has_extended_consent()) {
|
|
set_extended_consent(from.extended_consent());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process::CopyFrom(const ClientIncidentReport_EnvironmentData_Process& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData_Process::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData_Process::Swap(ClientIncidentReport_EnvironmentData_Process* other) {
|
|
if (other != this) {
|
|
std::swap(version_, other->version_);
|
|
obsolete_dlls_.Swap(&other->obsolete_dlls_);
|
|
patches_.Swap(&other->patches_);
|
|
network_providers_.Swap(&other->network_providers_);
|
|
std::swap(chrome_update_channel_, other->chrome_update_channel_);
|
|
std::swap(uptime_msec_, other->uptime_msec_);
|
|
std::swap(metrics_consent_, other->metrics_consent_);
|
|
std::swap(extended_consent_, other->extended_consent_);
|
|
dll_.Swap(&other->dll_);
|
|
blacklisted_dll_.Swap(&other->blacklisted_dll_);
|
|
module_state_.Swap(&other->module_state_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_EnvironmentData_Process::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.EnvironmentData.Process";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport_EnvironmentData::kOsFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData::kMachineFieldNumber;
|
|
const int ClientIncidentReport_EnvironmentData::kProcessFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport_EnvironmentData::ClientIncidentReport_EnvironmentData()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport.EnvironmentData)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
os_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_OS*>(
|
|
::safe_browsing::ClientIncidentReport_EnvironmentData_OS::internal_default_instance());
|
|
#else
|
|
os_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_OS*>(&::safe_browsing::ClientIncidentReport_EnvironmentData_OS::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
machine_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Machine*>(
|
|
::safe_browsing::ClientIncidentReport_EnvironmentData_Machine::internal_default_instance());
|
|
#else
|
|
machine_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Machine*>(&::safe_browsing::ClientIncidentReport_EnvironmentData_Machine::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
process_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Process*>(
|
|
::safe_browsing::ClientIncidentReport_EnvironmentData_Process::internal_default_instance());
|
|
#else
|
|
process_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData_Process*>(&::safe_browsing::ClientIncidentReport_EnvironmentData_Process::default_instance());
|
|
#endif
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData::ClientIncidentReport_EnvironmentData(const ClientIncidentReport_EnvironmentData& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport.EnvironmentData)
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
os_ = NULL;
|
|
machine_ = NULL;
|
|
process_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData::~ClientIncidentReport_EnvironmentData() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport.EnvironmentData)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData::SharedDtor() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete os_;
|
|
delete machine_;
|
|
delete process_;
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport_EnvironmentData& ClientIncidentReport_EnvironmentData::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport_EnvironmentData* ClientIncidentReport_EnvironmentData::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport_EnvironmentData* ClientIncidentReport_EnvironmentData::New() const {
|
|
return new ClientIncidentReport_EnvironmentData;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData::Clear() {
|
|
if (_has_bits_[0 / 32] & 7) {
|
|
if (has_os()) {
|
|
if (os_ != NULL) os_->::safe_browsing::ClientIncidentReport_EnvironmentData_OS::Clear();
|
|
}
|
|
if (has_machine()) {
|
|
if (machine_ != NULL) machine_->::safe_browsing::ClientIncidentReport_EnvironmentData_Machine::Clear();
|
|
}
|
|
if (has_process()) {
|
|
if (process_ != NULL) process_->::safe_browsing::ClientIncidentReport_EnvironmentData_Process::Clear();
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport.EnvironmentData)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.OS os = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_os()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_machine;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.Machine machine = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_machine:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_machine()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_process;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process process = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_process:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_process()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport.EnvironmentData)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport.EnvironmentData)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport.EnvironmentData)
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.OS os = 1;
|
|
if (has_os()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
1, this->os(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.Machine machine = 2;
|
|
if (has_machine()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
2, this->machine(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process process = 3;
|
|
if (has_process()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
3, this->process(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport.EnvironmentData)
|
|
}
|
|
|
|
int ClientIncidentReport_EnvironmentData::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.OS os = 1;
|
|
if (has_os()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->os());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.Machine machine = 2;
|
|
if (has_machine()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->machine());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData.Process process = 3;
|
|
if (has_process()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->process());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport_EnvironmentData*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData::MergeFrom(const ClientIncidentReport_EnvironmentData& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_os()) {
|
|
mutable_os()->::safe_browsing::ClientIncidentReport_EnvironmentData_OS::MergeFrom(from.os());
|
|
}
|
|
if (from.has_machine()) {
|
|
mutable_machine()->::safe_browsing::ClientIncidentReport_EnvironmentData_Machine::MergeFrom(from.machine());
|
|
}
|
|
if (from.has_process()) {
|
|
mutable_process()->::safe_browsing::ClientIncidentReport_EnvironmentData_Process::MergeFrom(from.process());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData::CopyFrom(const ClientIncidentReport_EnvironmentData& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport_EnvironmentData::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport_EnvironmentData::Swap(ClientIncidentReport_EnvironmentData* other) {
|
|
if (other != this) {
|
|
std::swap(os_, other->os_);
|
|
std::swap(machine_, other->machine_);
|
|
std::swap(process_, other->process_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport_EnvironmentData::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport.EnvironmentData";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentReport::kIncidentFieldNumber;
|
|
const int ClientIncidentReport::kDownloadFieldNumber;
|
|
const int ClientIncidentReport::kEnvironmentFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentReport::ClientIncidentReport()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentReport)
|
|
}
|
|
|
|
void ClientIncidentReport::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
download_ = const_cast< ::safe_browsing::ClientIncidentReport_DownloadDetails*>(
|
|
::safe_browsing::ClientIncidentReport_DownloadDetails::internal_default_instance());
|
|
#else
|
|
download_ = const_cast< ::safe_browsing::ClientIncidentReport_DownloadDetails*>(&::safe_browsing::ClientIncidentReport_DownloadDetails::default_instance());
|
|
#endif
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
environment_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData*>(
|
|
::safe_browsing::ClientIncidentReport_EnvironmentData::internal_default_instance());
|
|
#else
|
|
environment_ = const_cast< ::safe_browsing::ClientIncidentReport_EnvironmentData*>(&::safe_browsing::ClientIncidentReport_EnvironmentData::default_instance());
|
|
#endif
|
|
}
|
|
|
|
ClientIncidentReport::ClientIncidentReport(const ClientIncidentReport& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentReport)
|
|
}
|
|
|
|
void ClientIncidentReport::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
download_ = NULL;
|
|
environment_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentReport::~ClientIncidentReport() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentReport)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentReport::SharedDtor() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete download_;
|
|
delete environment_;
|
|
}
|
|
}
|
|
|
|
void ClientIncidentReport::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentReport& ClientIncidentReport::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentReport* ClientIncidentReport::default_instance_ = NULL;
|
|
|
|
ClientIncidentReport* ClientIncidentReport::New() const {
|
|
return new ClientIncidentReport;
|
|
}
|
|
|
|
void ClientIncidentReport::Clear() {
|
|
if (_has_bits_[0 / 32] & 6) {
|
|
if (has_download()) {
|
|
if (download_ != NULL) download_->::safe_browsing::ClientIncidentReport_DownloadDetails::Clear();
|
|
}
|
|
if (has_environment()) {
|
|
if (environment_ != NULL) environment_->::safe_browsing::ClientIncidentReport_EnvironmentData::Clear();
|
|
}
|
|
}
|
|
incident_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentReport::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentReport)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated .safe_browsing.ClientIncidentReport.IncidentData incident = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
parse_incident:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_incident()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(10)) goto parse_incident;
|
|
if (input->ExpectTag(18)) goto parse_download;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.DownloadDetails download = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_download:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_download()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_environment;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData environment = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_environment:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_environment()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentReport)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentReport)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentReport::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentReport)
|
|
// repeated .safe_browsing.ClientIncidentReport.IncidentData incident = 1;
|
|
for (int i = 0; i < this->incident_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
1, this->incident(i), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.DownloadDetails download = 2;
|
|
if (has_download()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
2, this->download(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData environment = 3;
|
|
if (has_environment()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
3, this->environment(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentReport)
|
|
}
|
|
|
|
int ClientIncidentReport::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
|
|
// optional .safe_browsing.ClientIncidentReport.DownloadDetails download = 2;
|
|
if (has_download()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->download());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.EnvironmentData environment = 3;
|
|
if (has_environment()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->environment());
|
|
}
|
|
|
|
}
|
|
// repeated .safe_browsing.ClientIncidentReport.IncidentData incident = 1;
|
|
total_size += 1 * this->incident_size();
|
|
for (int i = 0; i < this->incident_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->incident(i));
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentReport::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentReport*>(&from));
|
|
}
|
|
|
|
void ClientIncidentReport::MergeFrom(const ClientIncidentReport& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
incident_.MergeFrom(from.incident_);
|
|
if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
|
|
if (from.has_download()) {
|
|
mutable_download()->::safe_browsing::ClientIncidentReport_DownloadDetails::MergeFrom(from.download());
|
|
}
|
|
if (from.has_environment()) {
|
|
mutable_environment()->::safe_browsing::ClientIncidentReport_EnvironmentData::MergeFrom(from.environment());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentReport::CopyFrom(const ClientIncidentReport& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentReport::IsInitialized() const {
|
|
|
|
if (has_download()) {
|
|
if (!this->download().IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentReport::Swap(ClientIncidentReport* other) {
|
|
if (other != this) {
|
|
incident_.Swap(&other->incident_);
|
|
std::swap(download_, other->download_);
|
|
std::swap(environment_, other->environment_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentReport::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentReport";
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentResponse_EnvironmentRequest::kDllIndexFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentResponse_EnvironmentRequest::ClientIncidentResponse_EnvironmentRequest()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
|
|
}
|
|
|
|
void ClientIncidentResponse_EnvironmentRequest::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientIncidentResponse_EnvironmentRequest::ClientIncidentResponse_EnvironmentRequest(const ClientIncidentResponse_EnvironmentRequest& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
|
|
}
|
|
|
|
void ClientIncidentResponse_EnvironmentRequest::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
dll_index_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentResponse_EnvironmentRequest::~ClientIncidentResponse_EnvironmentRequest() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentResponse_EnvironmentRequest::SharedDtor() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientIncidentResponse_EnvironmentRequest::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentResponse_EnvironmentRequest& ClientIncidentResponse_EnvironmentRequest::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentResponse_EnvironmentRequest* ClientIncidentResponse_EnvironmentRequest::default_instance_ = NULL;
|
|
|
|
ClientIncidentResponse_EnvironmentRequest* ClientIncidentResponse_EnvironmentRequest::New() const {
|
|
return new ClientIncidentResponse_EnvironmentRequest;
|
|
}
|
|
|
|
void ClientIncidentResponse_EnvironmentRequest::Clear() {
|
|
dll_index_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentResponse_EnvironmentRequest::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional int32 dll_index = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &dll_index_)));
|
|
set_has_dll_index();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentResponse_EnvironmentRequest::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
|
|
// optional int32 dll_index = 1;
|
|
if (has_dll_index()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->dll_index(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentResponse.EnvironmentRequest)
|
|
}
|
|
|
|
int ClientIncidentResponse_EnvironmentRequest::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional int32 dll_index = 1;
|
|
if (has_dll_index()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->dll_index());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentResponse_EnvironmentRequest::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentResponse_EnvironmentRequest*>(&from));
|
|
}
|
|
|
|
void ClientIncidentResponse_EnvironmentRequest::MergeFrom(const ClientIncidentResponse_EnvironmentRequest& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_dll_index()) {
|
|
set_dll_index(from.dll_index());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentResponse_EnvironmentRequest::CopyFrom(const ClientIncidentResponse_EnvironmentRequest& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentResponse_EnvironmentRequest::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentResponse_EnvironmentRequest::Swap(ClientIncidentResponse_EnvironmentRequest* other) {
|
|
if (other != this) {
|
|
std::swap(dll_index_, other->dll_index_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentResponse_EnvironmentRequest::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentResponse.EnvironmentRequest";
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
#ifndef _MSC_VER
|
|
const int ClientIncidentResponse::kTokenFieldNumber;
|
|
const int ClientIncidentResponse::kDownloadRequestedFieldNumber;
|
|
const int ClientIncidentResponse::kEnvironmentRequestsFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ClientIncidentResponse::ClientIncidentResponse()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.ClientIncidentResponse)
|
|
}
|
|
|
|
void ClientIncidentResponse::InitAsDefaultInstance() {
|
|
}
|
|
|
|
ClientIncidentResponse::ClientIncidentResponse(const ClientIncidentResponse& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.ClientIncidentResponse)
|
|
}
|
|
|
|
void ClientIncidentResponse::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
download_requested_ = false;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ClientIncidentResponse::~ClientIncidentResponse() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.ClientIncidentResponse)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ClientIncidentResponse::SharedDtor() {
|
|
if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete token_;
|
|
}
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
}
|
|
}
|
|
|
|
void ClientIncidentResponse::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ClientIncidentResponse& ClientIncidentResponse::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
ClientIncidentResponse* ClientIncidentResponse::default_instance_ = NULL;
|
|
|
|
ClientIncidentResponse* ClientIncidentResponse::New() const {
|
|
return new ClientIncidentResponse;
|
|
}
|
|
|
|
void ClientIncidentResponse::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
if (has_token()) {
|
|
if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
token_->clear();
|
|
}
|
|
}
|
|
download_requested_ = false;
|
|
}
|
|
environment_requests_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool ClientIncidentResponse::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.ClientIncidentResponse)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional bytes token = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_token()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_download_requested;
|
|
break;
|
|
}
|
|
|
|
// optional bool download_requested = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_download_requested:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &download_requested_)));
|
|
set_has_download_requested();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_environment_requests;
|
|
break;
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentResponse.EnvironmentRequest environment_requests = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_environment_requests:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_environment_requests()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_environment_requests;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.ClientIncidentResponse)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.ClientIncidentResponse)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ClientIncidentResponse::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.ClientIncidentResponse)
|
|
// optional bytes token = 1;
|
|
if (has_token()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
1, this->token(), output);
|
|
}
|
|
|
|
// optional bool download_requested = 2;
|
|
if (has_download_requested()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->download_requested(), output);
|
|
}
|
|
|
|
// repeated .safe_browsing.ClientIncidentResponse.EnvironmentRequest environment_requests = 3;
|
|
for (int i = 0; i < this->environment_requests_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
3, this->environment_requests(i), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.ClientIncidentResponse)
|
|
}
|
|
|
|
int ClientIncidentResponse::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional bytes token = 1;
|
|
if (has_token()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->token());
|
|
}
|
|
|
|
// optional bool download_requested = 2;
|
|
if (has_download_requested()) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
}
|
|
// repeated .safe_browsing.ClientIncidentResponse.EnvironmentRequest environment_requests = 3;
|
|
total_size += 1 * this->environment_requests_size();
|
|
for (int i = 0; i < this->environment_requests_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->environment_requests(i));
|
|
}
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ClientIncidentResponse::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const ClientIncidentResponse*>(&from));
|
|
}
|
|
|
|
void ClientIncidentResponse::MergeFrom(const ClientIncidentResponse& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
environment_requests_.MergeFrom(from.environment_requests_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_token()) {
|
|
set_token(from.token());
|
|
}
|
|
if (from.has_download_requested()) {
|
|
set_download_requested(from.download_requested());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void ClientIncidentResponse::CopyFrom(const ClientIncidentResponse& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ClientIncidentResponse::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void ClientIncidentResponse::Swap(ClientIncidentResponse* other) {
|
|
if (other != this) {
|
|
std::swap(token_, other->token_);
|
|
std::swap(download_requested_, other->download_requested_);
|
|
environment_requests_.Swap(&other->environment_requests_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string ClientIncidentResponse::GetTypeName() const {
|
|
return "safe_browsing.ClientIncidentResponse";
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int DownloadMetadata::kDownloadIdFieldNumber;
|
|
const int DownloadMetadata::kDownloadFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
DownloadMetadata::DownloadMetadata()
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:safe_browsing.DownloadMetadata)
|
|
}
|
|
|
|
void DownloadMetadata::InitAsDefaultInstance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
download_ = const_cast< ::safe_browsing::ClientIncidentReport_DownloadDetails*>(
|
|
::safe_browsing::ClientIncidentReport_DownloadDetails::internal_default_instance());
|
|
#else
|
|
download_ = const_cast< ::safe_browsing::ClientIncidentReport_DownloadDetails*>(&::safe_browsing::ClientIncidentReport_DownloadDetails::default_instance());
|
|
#endif
|
|
}
|
|
|
|
DownloadMetadata::DownloadMetadata(const DownloadMetadata& from)
|
|
: ::google::protobuf::MessageLite() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:safe_browsing.DownloadMetadata)
|
|
}
|
|
|
|
void DownloadMetadata::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
download_id_ = 0u;
|
|
download_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
DownloadMetadata::~DownloadMetadata() {
|
|
// @@protoc_insertion_point(destructor:safe_browsing.DownloadMetadata)
|
|
SharedDtor();
|
|
}
|
|
|
|
void DownloadMetadata::SharedDtor() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
if (this != &default_instance()) {
|
|
#else
|
|
if (this != default_instance_) {
|
|
#endif
|
|
delete download_;
|
|
}
|
|
}
|
|
|
|
void DownloadMetadata::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const DownloadMetadata& DownloadMetadata::default_instance() {
|
|
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
|
|
protobuf_AddDesc_csd_2eproto();
|
|
#else
|
|
if (default_instance_ == NULL) protobuf_AddDesc_csd_2eproto();
|
|
#endif
|
|
return *default_instance_;
|
|
}
|
|
|
|
DownloadMetadata* DownloadMetadata::default_instance_ = NULL;
|
|
|
|
DownloadMetadata* DownloadMetadata::New() const {
|
|
return new DownloadMetadata;
|
|
}
|
|
|
|
void DownloadMetadata::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
download_id_ = 0u;
|
|
if (has_download()) {
|
|
if (download_ != NULL) download_->::safe_browsing::ClientIncidentReport_DownloadDetails::Clear();
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->clear();
|
|
}
|
|
|
|
bool DownloadMetadata::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::StringOutputStream unknown_fields_string(
|
|
mutable_unknown_fields());
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string);
|
|
// @@protoc_insertion_point(parse_start:safe_browsing.DownloadMetadata)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional uint32 download_id = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &download_id_)));
|
|
set_has_download_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_download;
|
|
break;
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.DownloadDetails download = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_download:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_download()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
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:safe_browsing.DownloadMetadata)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:safe_browsing.DownloadMetadata)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void DownloadMetadata::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:safe_browsing.DownloadMetadata)
|
|
// optional uint32 download_id = 1;
|
|
if (has_download_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->download_id(), output);
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.DownloadDetails download = 2;
|
|
if (has_download()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessage(
|
|
2, this->download(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
unknown_fields().size());
|
|
// @@protoc_insertion_point(serialize_end:safe_browsing.DownloadMetadata)
|
|
}
|
|
|
|
int DownloadMetadata::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional uint32 download_id = 1;
|
|
if (has_download_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
|
this->download_id());
|
|
}
|
|
|
|
// optional .safe_browsing.ClientIncidentReport.DownloadDetails download = 2;
|
|
if (has_download()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->download());
|
|
}
|
|
|
|
}
|
|
total_size += unknown_fields().size();
|
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void DownloadMetadata::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const DownloadMetadata*>(&from));
|
|
}
|
|
|
|
void DownloadMetadata::MergeFrom(const DownloadMetadata& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_download_id()) {
|
|
set_download_id(from.download_id());
|
|
}
|
|
if (from.has_download()) {
|
|
mutable_download()->::safe_browsing::ClientIncidentReport_DownloadDetails::MergeFrom(from.download());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->append(from.unknown_fields());
|
|
}
|
|
|
|
void DownloadMetadata::CopyFrom(const DownloadMetadata& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool DownloadMetadata::IsInitialized() const {
|
|
|
|
if (has_download()) {
|
|
if (!this->download().IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void DownloadMetadata::Swap(DownloadMetadata* other) {
|
|
if (other != this) {
|
|
std::swap(download_id_, other->download_id_);
|
|
std::swap(download_, other->download_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.swap(other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::std::string DownloadMetadata::GetTypeName() const {
|
|
return "safe_browsing.DownloadMetadata";
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace safe_browsing
|
|
|
|
// @@protoc_insertion_point(global_scope)
|