- Re-vendored protobuf at v36.0 and regenerated all in-tree gencode. - Excluded the cpp_file_options and json_enumvalue_options gencode that upstream started shipping in the release artifacts; the .proto sources they derive from were already excluded. - Added the two lite-runtime sources our gencode actually reaches, type_id.cc and unknown_field_set_lite.cc, and exported the four headers the built lite sources newly reach. arena_allocation_policy.cc is also new to libprotobuf_lite_srcs but defines nothing, so it stays out. - Bumped the Java/Maven protobuf version to match. Differential Revision: https://phabricator.services.mozilla.com/D320755
6641 lines
285 KiB
C++
6641 lines
285 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// NO CHECKED-IN PROTOBUF GENCODE
|
|
// source: analysis.proto
|
|
// Protobuf C++ Version: 7.36.0
|
|
|
|
#include "analysis.pb.h"
|
|
|
|
#include <algorithm>
|
|
#include <type_traits>
|
|
#include "google/protobuf/io/coded_stream.h"
|
|
#include "google/protobuf/generated_message_tctable_impl.h"
|
|
#include "google/protobuf/internal_visibility.h"
|
|
#include "google/protobuf/extension_set.h"
|
|
#include "google/protobuf/generated_message_util.h"
|
|
#include "google/protobuf/wire_format_lite.h"
|
|
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
// Must be included last.
|
|
#include "google/protobuf/port_def.inc"
|
|
PROTOBUF_PRAGMA_INIT_SEG
|
|
namespace _pb = ::google::protobuf;
|
|
namespace _pbi = ::google::protobuf::internal;
|
|
namespace _fl = ::google::protobuf::internal::field_layout;
|
|
namespace content_analysis {
|
|
namespace sdk {
|
|
class ContentMetaData_PrintMetadata::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ContentMetaData_PrintMetadata>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ContentMetaData_PrintMetadata, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr ContentMetaData_PrintMetadata::ParseTableT_ ContentMetaData_PrintMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ContentMetaData_PrintMetadata, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
2, 8, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967292, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
2, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(ParseTableT_, aux_entries),
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentMetaData_PrintMetadata>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional .content_analysis.sdk.ContentMetaData.PrintMetadata.PrinterType printer_type = 2;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{16, 1, 2,
|
|
PROTOBUF_FIELD_OFFSET(ContentMetaData_PrintMetadata, _impl_.printer_type_)}},
|
|
// optional string printer_name = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentMetaData_PrintMetadata, _impl_.printer_name_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string printer_name = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ContentMetaData_PrintMetadata, _impl_.printer_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .content_analysis.sdk.ContentMetaData.PrintMetadata.PrinterType printer_type = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ContentMetaData_PrintMetadata, _impl_.printer_type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
}},
|
|
{{
|
|
{0, 2},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ContentMetaData_PrintMetadata::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: printer_name_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
printer_type_{static_cast< ::content_analysis::sdk::ContentMetaData_PrintMetadata_PrinterType >(0)} {}
|
|
|
|
template <typename>
|
|
constexpr ContentMetaData_PrintMetadata::ContentMetaData_PrintMetadata(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ContentMetaData_PrintMetadata::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ContentMetaData_PrintMetadata(arena);
|
|
}
|
|
constexpr auto ContentMetaData_PrintMetadata::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ContentMetaData_PrintMetadata), alignof(ContentMetaData_PrintMetadata));
|
|
}
|
|
constexpr auto ContentMetaData_PrintMetadata::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
nullptr, // IsInitialized
|
|
&ContentMetaData_PrintMetadata::MergeImpl,
|
|
Super_::GetNewImpl<ContentMetaData_PrintMetadata>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ContentMetaData_PrintMetadata::SharedDtor,
|
|
Super_::GetClearImpl<ContentMetaData_PrintMetadata>(), &ContentMetaData_PrintMetadata::ByteSizeLong,
|
|
&ContentMetaData_PrintMetadata::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ContentMetaData_PrintMetadata, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ContentMetaData.PrintMetadata",
|
|
};
|
|
}
|
|
struct ContentMetaData_PrintMetadataGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ContentMetaData_PrintMetadataGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ContentMetaData_PrintMetadata_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ContentMetaData_PrintMetadata::InternalGenerateClassData_(
|
|
_default, &ContentMetaData_PrintMetadata_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ContentMetaData_PrintMetadata>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ContentMetaData_PrintMetadataGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ContentMetaData_PrintMetadata _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ContentMetaData_PrintMetadata>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ContentMetaData_PrintMetadataGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContentMetaData_PrintMetadataGlobalsTypeInternal ContentMetaData_PrintMetadata_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ContentMetaData_PrintMetadata_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ContentMetaData_PrintMetadata_globals_.GetClassData();
|
|
#else
|
|
return ContentMetaData_PrintMetadata_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ContentAnalysisResponse_Result_TriggeredRule::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ContentAnalysisResponse_Result_TriggeredRule>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result_TriggeredRule, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr ContentAnalysisResponse_Result_TriggeredRule::ParseTableT_ ContentAnalysisResponse_Result_TriggeredRule::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result_TriggeredRule, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
3, 24, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967288, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
3, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(ParseTableT_, aux_entries),
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisResponse_Result_TriggeredRule>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional .content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule.Action action = 1;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{8, 2, 3,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result_TriggeredRule, _impl_.action_)}},
|
|
// optional string rule_name = 2;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{18, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result_TriggeredRule, _impl_.rule_name_)}},
|
|
// optional string rule_id = 3;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{26, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result_TriggeredRule, _impl_.rule_id_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule.Action action = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result_TriggeredRule, _impl_.action_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional string rule_name = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result_TriggeredRule, _impl_.rule_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional string rule_id = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result_TriggeredRule, _impl_.rule_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
{{
|
|
{0, 3},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ContentAnalysisResponse_Result_TriggeredRule::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: rule_name_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
rule_id_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
action_{static_cast< ::content_analysis::sdk::ContentAnalysisResponse_Result_TriggeredRule_Action >(0)} {}
|
|
|
|
template <typename>
|
|
constexpr ContentAnalysisResponse_Result_TriggeredRule::ContentAnalysisResponse_Result_TriggeredRule(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ContentAnalysisResponse_Result_TriggeredRule::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ContentAnalysisResponse_Result_TriggeredRule(arena);
|
|
}
|
|
constexpr auto ContentAnalysisResponse_Result_TriggeredRule::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ContentAnalysisResponse_Result_TriggeredRule), alignof(ContentAnalysisResponse_Result_TriggeredRule));
|
|
}
|
|
constexpr auto ContentAnalysisResponse_Result_TriggeredRule::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
nullptr, // IsInitialized
|
|
&ContentAnalysisResponse_Result_TriggeredRule::MergeImpl,
|
|
Super_::GetNewImpl<ContentAnalysisResponse_Result_TriggeredRule>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ContentAnalysisResponse_Result_TriggeredRule::SharedDtor,
|
|
Super_::GetClearImpl<ContentAnalysisResponse_Result_TriggeredRule>(), &ContentAnalysisResponse_Result_TriggeredRule::ByteSizeLong,
|
|
&ContentAnalysisResponse_Result_TriggeredRule::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result_TriggeredRule, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule",
|
|
};
|
|
}
|
|
struct ContentAnalysisResponse_Result_TriggeredRuleGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ContentAnalysisResponse_Result_TriggeredRuleGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ContentAnalysisResponse_Result_TriggeredRule_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ContentAnalysisResponse_Result_TriggeredRule::InternalGenerateClassData_(
|
|
_default, &ContentAnalysisResponse_Result_TriggeredRule_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisResponse_Result_TriggeredRule>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ContentAnalysisResponse_Result_TriggeredRuleGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ContentAnalysisResponse_Result_TriggeredRule _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisResponse_Result_TriggeredRule>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result_TriggeredRuleGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContentAnalysisResponse_Result_TriggeredRuleGlobalsTypeInternal ContentAnalysisResponse_Result_TriggeredRule_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ContentAnalysisResponse_Result_TriggeredRule_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ContentAnalysisResponse_Result_TriggeredRule_globals_.GetClassData();
|
|
#else
|
|
return ContentAnalysisResponse_Result_TriggeredRule_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ContentAnalysisRequest_PrintData::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ContentAnalysisRequest_PrintData>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest_PrintData, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr ContentAnalysisRequest_PrintData::ParseTableT_ ContentAnalysisRequest_PrintData::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest_PrintData, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
2, 8, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967292, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
2, // num_field_entries
|
|
0, // num_aux_entries
|
|
offsetof(ParseTableT_, field_names), // no aux_entries
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisRequest_PrintData>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional int64 size = 2;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{16, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest_PrintData, _impl_.size_)}},
|
|
// optional int64 handle = 1;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{8, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest_PrintData, _impl_.handle_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional int64 handle = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest_PrintData, _impl_.handle_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional int64 size = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest_PrintData, _impl_.size_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ContentAnalysisRequest_PrintData::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: handle_{::int64_t{0}},
|
|
size_{::int64_t{0}} {}
|
|
|
|
template <typename>
|
|
constexpr ContentAnalysisRequest_PrintData::ContentAnalysisRequest_PrintData(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ContentAnalysisRequest_PrintData::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ContentAnalysisRequest_PrintData(arena);
|
|
}
|
|
constexpr auto ContentAnalysisRequest_PrintData::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ContentAnalysisRequest_PrintData), alignof(ContentAnalysisRequest_PrintData));
|
|
}
|
|
constexpr auto ContentAnalysisRequest_PrintData::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
nullptr, // IsInitialized
|
|
&ContentAnalysisRequest_PrintData::MergeImpl,
|
|
Super_::GetNewImpl<ContentAnalysisRequest_PrintData>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ContentAnalysisRequest_PrintData::SharedDtor,
|
|
Super_::GetClearImpl<ContentAnalysisRequest_PrintData>(), &ContentAnalysisRequest_PrintData::ByteSizeLong,
|
|
&ContentAnalysisRequest_PrintData::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest_PrintData, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ContentAnalysisRequest.PrintData",
|
|
};
|
|
}
|
|
struct ContentAnalysisRequest_PrintDataGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ContentAnalysisRequest_PrintDataGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ContentAnalysisRequest_PrintData_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ContentAnalysisRequest_PrintData::InternalGenerateClassData_(
|
|
_default, &ContentAnalysisRequest_PrintData_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisRequest_PrintData>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ContentAnalysisRequest_PrintDataGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ContentAnalysisRequest_PrintData _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisRequest_PrintData>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest_PrintDataGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContentAnalysisRequest_PrintDataGlobalsTypeInternal ContentAnalysisRequest_PrintData_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ContentAnalysisRequest_PrintData_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ContentAnalysisRequest_PrintData_globals_.GetClassData();
|
|
#else
|
|
return ContentAnalysisRequest_PrintData_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ContentAnalysisCancelRequests::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ContentAnalysisCancelRequests>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ContentAnalysisCancelRequests, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr ContentAnalysisCancelRequests::ParseTableT_ ContentAnalysisCancelRequests::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisCancelRequests, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
1, 0, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967294, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
1, // num_field_entries
|
|
0, // num_aux_entries
|
|
offsetof(ParseTableT_, field_names), // no aux_entries
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisCancelRequests>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional string user_action_id = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisCancelRequests, _impl_.user_action_id_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string user_action_id = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisCancelRequests, _impl_.user_action_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ContentAnalysisCancelRequests::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: user_action_id_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()) {}
|
|
|
|
template <typename>
|
|
constexpr ContentAnalysisCancelRequests::ContentAnalysisCancelRequests(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ContentAnalysisCancelRequests::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ContentAnalysisCancelRequests(arena);
|
|
}
|
|
constexpr auto ContentAnalysisCancelRequests::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ContentAnalysisCancelRequests), alignof(ContentAnalysisCancelRequests));
|
|
}
|
|
constexpr auto ContentAnalysisCancelRequests::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
nullptr, // IsInitialized
|
|
&ContentAnalysisCancelRequests::MergeImpl,
|
|
Super_::GetNewImpl<ContentAnalysisCancelRequests>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ContentAnalysisCancelRequests::SharedDtor,
|
|
Super_::GetClearImpl<ContentAnalysisCancelRequests>(), &ContentAnalysisCancelRequests::ByteSizeLong,
|
|
&ContentAnalysisCancelRequests::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisCancelRequests, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ContentAnalysisCancelRequests",
|
|
};
|
|
}
|
|
struct ContentAnalysisCancelRequestsGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ContentAnalysisCancelRequestsGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ContentAnalysisCancelRequests_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ContentAnalysisCancelRequests::InternalGenerateClassData_(
|
|
_default, &ContentAnalysisCancelRequests_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisCancelRequests>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ContentAnalysisCancelRequestsGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ContentAnalysisCancelRequests _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisCancelRequests>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ContentAnalysisCancelRequestsGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContentAnalysisCancelRequestsGlobalsTypeInternal ContentAnalysisCancelRequests_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ContentAnalysisCancelRequests_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ContentAnalysisCancelRequests_globals_.GetClassData();
|
|
#else
|
|
return ContentAnalysisCancelRequests_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ContentAnalysisAcknowledgement::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ContentAnalysisAcknowledgement>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ContentAnalysisAcknowledgement, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr ContentAnalysisAcknowledgement::ParseTableT_ ContentAnalysisAcknowledgement::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisAcknowledgement, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
3, 24, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967288, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
3, // num_field_entries
|
|
2, // num_aux_entries
|
|
offsetof(ParseTableT_, aux_entries),
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisAcknowledgement>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional string request_token = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisAcknowledgement, _impl_.request_token_)}},
|
|
// optional .content_analysis.sdk.ContentAnalysisAcknowledgement.Status status = 2;
|
|
{::_pbi::TcParser::FastEr1S1,
|
|
{16, 2, 3,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisAcknowledgement, _impl_.status_)}},
|
|
// optional .content_analysis.sdk.ContentAnalysisAcknowledgement.FinalAction final_action = 3;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{24, 1, 4,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisAcknowledgement, _impl_.final_action_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string request_token = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisAcknowledgement, _impl_.request_token_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .content_analysis.sdk.ContentAnalysisAcknowledgement.Status status = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisAcknowledgement, _impl_.status_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .content_analysis.sdk.ContentAnalysisAcknowledgement.FinalAction final_action = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisAcknowledgement, _impl_.final_action_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
}},
|
|
{{
|
|
{1, 3},
|
|
{0, 4},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ContentAnalysisAcknowledgement::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: request_token_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
final_action_{static_cast< ::content_analysis::sdk::ContentAnalysisAcknowledgement_FinalAction >(0)},
|
|
status_{static_cast< ::content_analysis::sdk::ContentAnalysisAcknowledgement_Status >(1)} {}
|
|
|
|
template <typename>
|
|
constexpr ContentAnalysisAcknowledgement::ContentAnalysisAcknowledgement(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ContentAnalysisAcknowledgement::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ContentAnalysisAcknowledgement(arena);
|
|
}
|
|
constexpr auto ContentAnalysisAcknowledgement::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ContentAnalysisAcknowledgement), alignof(ContentAnalysisAcknowledgement));
|
|
}
|
|
constexpr auto ContentAnalysisAcknowledgement::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
nullptr, // IsInitialized
|
|
&ContentAnalysisAcknowledgement::MergeImpl,
|
|
Super_::GetNewImpl<ContentAnalysisAcknowledgement>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ContentAnalysisAcknowledgement::SharedDtor,
|
|
Super_::GetClearImpl<ContentAnalysisAcknowledgement>(), &ContentAnalysisAcknowledgement::ByteSizeLong,
|
|
&ContentAnalysisAcknowledgement::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisAcknowledgement, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ContentAnalysisAcknowledgement",
|
|
};
|
|
}
|
|
struct ContentAnalysisAcknowledgementGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ContentAnalysisAcknowledgementGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ContentAnalysisAcknowledgement_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ContentAnalysisAcknowledgement::InternalGenerateClassData_(
|
|
_default, &ContentAnalysisAcknowledgement_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisAcknowledgement>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ContentAnalysisAcknowledgementGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ContentAnalysisAcknowledgement _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisAcknowledgement>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ContentAnalysisAcknowledgementGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContentAnalysisAcknowledgementGlobalsTypeInternal ContentAnalysisAcknowledgement_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ContentAnalysisAcknowledgement_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ContentAnalysisAcknowledgement_globals_.GetClassData();
|
|
#else
|
|
return ContentAnalysisAcknowledgement_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ClientMetadata_Browser::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ClientMetadata_Browser>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ClientMetadata_Browser, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr ClientMetadata_Browser::ParseTableT_ ClientMetadata_Browser::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ClientMetadata_Browser, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
4, 0, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967287, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
1, // num_field_entries
|
|
0, // num_aux_entries
|
|
offsetof(ParseTableT_, field_names), // no aux_entries
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ClientMetadata_Browser>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional string machine_user = 4;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{34, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ClientMetadata_Browser, _impl_.machine_user_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string machine_user = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ClientMetadata_Browser, _impl_.machine_user_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ClientMetadata_Browser::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: machine_user_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()) {}
|
|
|
|
template <typename>
|
|
constexpr ClientMetadata_Browser::ClientMetadata_Browser(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ClientMetadata_Browser::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ClientMetadata_Browser(arena);
|
|
}
|
|
constexpr auto ClientMetadata_Browser::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ClientMetadata_Browser), alignof(ClientMetadata_Browser));
|
|
}
|
|
constexpr auto ClientMetadata_Browser::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
nullptr, // IsInitialized
|
|
&ClientMetadata_Browser::MergeImpl,
|
|
Super_::GetNewImpl<ClientMetadata_Browser>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ClientMetadata_Browser::SharedDtor,
|
|
Super_::GetClearImpl<ClientMetadata_Browser>(), &ClientMetadata_Browser::ByteSizeLong,
|
|
&ClientMetadata_Browser::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ClientMetadata_Browser, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ClientMetadata.Browser",
|
|
};
|
|
}
|
|
struct ClientMetadata_BrowserGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ClientMetadata_BrowserGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ClientMetadata_Browser_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ClientMetadata_Browser::InternalGenerateClassData_(
|
|
_default, &ClientMetadata_Browser_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ClientMetadata_Browser>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ClientMetadata_BrowserGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ClientMetadata_Browser _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ClientMetadata_Browser>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ClientMetadata_BrowserGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ClientMetadata_BrowserGlobalsTypeInternal ClientMetadata_Browser_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ClientMetadata_Browser_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ClientMetadata_Browser_globals_.GetClassData();
|
|
#else
|
|
return ClientMetadata_Browser_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ClientDownloadRequest_Resource::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ClientDownloadRequest_Resource>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ClientDownloadRequest_Resource, _impl_._has_bits_);
|
|
static bool MissingRequiredFields(const HasBits& has_bits) {
|
|
return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0;
|
|
}
|
|
};
|
|
|
|
constexpr ClientDownloadRequest_Resource::ParseTableT_ ClientDownloadRequest_Resource::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ClientDownloadRequest_Resource, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
2, 8, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967292, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
2, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(ParseTableT_, aux_entries),
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ClientDownloadRequest_Resource>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// required .content_analysis.sdk.ClientDownloadRequest.ResourceType type = 2;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{16, 1, 5,
|
|
PROTOBUF_FIELD_OFFSET(ClientDownloadRequest_Resource, _impl_.type_)}},
|
|
// required string url = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ClientDownloadRequest_Resource, _impl_.url_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// required string url = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ClientDownloadRequest_Resource, _impl_.url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// required .content_analysis.sdk.ClientDownloadRequest.ResourceType type = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ClientDownloadRequest_Resource, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
}},
|
|
{{
|
|
{0, 5},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ClientDownloadRequest_Resource::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: url_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
type_{static_cast< ::content_analysis::sdk::ClientDownloadRequest_ResourceType >(0)} {}
|
|
|
|
template <typename>
|
|
constexpr ClientDownloadRequest_Resource::ClientDownloadRequest_Resource(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ClientDownloadRequest_Resource::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ClientDownloadRequest_Resource(arena);
|
|
}
|
|
constexpr auto ClientDownloadRequest_Resource::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ClientDownloadRequest_Resource), alignof(ClientDownloadRequest_Resource));
|
|
}
|
|
constexpr auto ClientDownloadRequest_Resource::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
ClientDownloadRequest_Resource::IsInitializedImpl,
|
|
&ClientDownloadRequest_Resource::MergeImpl,
|
|
Super_::GetNewImpl<ClientDownloadRequest_Resource>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ClientDownloadRequest_Resource::SharedDtor,
|
|
Super_::GetClearImpl<ClientDownloadRequest_Resource>(), &ClientDownloadRequest_Resource::ByteSizeLong,
|
|
&ClientDownloadRequest_Resource::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ClientDownloadRequest_Resource, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ClientDownloadRequest.Resource",
|
|
};
|
|
}
|
|
struct ClientDownloadRequest_ResourceGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ClientDownloadRequest_ResourceGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ClientDownloadRequest_Resource_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ClientDownloadRequest_Resource::InternalGenerateClassData_(
|
|
_default, &ClientDownloadRequest_Resource_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ClientDownloadRequest_Resource>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ClientDownloadRequest_ResourceGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ClientDownloadRequest_Resource _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ClientDownloadRequest_Resource>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ClientDownloadRequest_ResourceGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ClientDownloadRequest_ResourceGlobalsTypeInternal ClientDownloadRequest_Resource_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ClientDownloadRequest_Resource_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ClientDownloadRequest_Resource_globals_.GetClassData();
|
|
#else
|
|
return ClientDownloadRequest_Resource_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ContentAnalysisResponse_Result::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ContentAnalysisResponse_Result>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr ContentAnalysisResponse_Result::ParseTableT_ ContentAnalysisResponse_Result::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
3, 24, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967288, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
3, // num_field_entries
|
|
2, // num_aux_entries
|
|
offsetof(ParseTableT_, aux_entries),
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisResponse_Result>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional string tag = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result, _impl_.tag_)}},
|
|
// optional .content_analysis.sdk.ContentAnalysisResponse.Result.Status status = 2;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{16, 2, 2,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result, _impl_.status_)}},
|
|
// repeated .content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule triggered_rules = 3;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{26, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result, _impl_.triggered_rules_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string tag = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result, _impl_.tag_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .content_analysis.sdk.ContentAnalysisResponse.Result.Status status = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result, _impl_.status_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// repeated .content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule triggered_rules = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result, _impl_.triggered_rules_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisResponse_Result_TriggeredRule>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ContentAnalysisResponse_Result_TriggeredRule_globals_},
|
|
#endif
|
|
{0, 2},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ContentAnalysisResponse_Result::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: triggered_rules_ { visibility, ::_pbi::InternalMetadataOffset::Build<
|
|
::content_analysis::sdk::ContentAnalysisResponse_Result,
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ContentAnalysisResponse_Result, _impl_.triggered_rules_)>()
|
|
}
|
|
,
|
|
tag_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
status_{static_cast< ::content_analysis::sdk::ContentAnalysisResponse_Result_Status >(0)} {}
|
|
|
|
template <typename>
|
|
constexpr ContentAnalysisResponse_Result::ContentAnalysisResponse_Result(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ContentAnalysisResponse_Result::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ContentAnalysisResponse_Result(arena);
|
|
}
|
|
constexpr auto ContentAnalysisResponse_Result::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ContentAnalysisResponse_Result), alignof(ContentAnalysisResponse_Result));
|
|
}
|
|
constexpr auto ContentAnalysisResponse_Result::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
nullptr, // IsInitialized
|
|
&ContentAnalysisResponse_Result::MergeImpl,
|
|
Super_::GetNewImpl<ContentAnalysisResponse_Result>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ContentAnalysisResponse_Result::SharedDtor,
|
|
Super_::GetClearImpl<ContentAnalysisResponse_Result>(), &ContentAnalysisResponse_Result::ByteSizeLong,
|
|
&ContentAnalysisResponse_Result::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_Result, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ContentAnalysisResponse.Result",
|
|
};
|
|
}
|
|
struct ContentAnalysisResponse_ResultGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ContentAnalysisResponse_ResultGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ContentAnalysisResponse_Result_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ContentAnalysisResponse_Result::InternalGenerateClassData_(
|
|
_default, &ContentAnalysisResponse_Result_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisResponse_Result>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ContentAnalysisResponse_ResultGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ContentAnalysisResponse_Result _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisResponse_Result>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse_ResultGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContentAnalysisResponse_ResultGlobalsTypeInternal ContentAnalysisResponse_Result_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ContentAnalysisResponse_Result_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ContentAnalysisResponse_Result_globals_.GetClassData();
|
|
#else
|
|
return ContentAnalysisResponse_Result_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ClientMetadata::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ClientMetadata>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ClientMetadata, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr ClientMetadata::ParseTableT_ ClientMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ClientMetadata, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
1, 0, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967294, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
1, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(ParseTableT_, aux_entries),
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ClientMetadata>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional .content_analysis.sdk.ClientMetadata.Browser browser = 1;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ClientMetadata, _impl_.browser_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .content_analysis.sdk.ClientMetadata.Browser browser = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ClientMetadata, _impl_.browser_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ClientMetadata_Browser>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ClientMetadata_Browser_globals_},
|
|
#endif
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ClientMetadata::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: browser_{nullptr} {}
|
|
|
|
template <typename>
|
|
constexpr ClientMetadata::ClientMetadata(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ClientMetadata::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ClientMetadata(arena);
|
|
}
|
|
constexpr auto ClientMetadata::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ClientMetadata), alignof(ClientMetadata));
|
|
}
|
|
constexpr auto ClientMetadata::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
nullptr, // IsInitialized
|
|
&ClientMetadata::MergeImpl,
|
|
Super_::GetNewImpl<ClientMetadata>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ClientMetadata::SharedDtor,
|
|
Super_::GetClearImpl<ClientMetadata>(), &ClientMetadata::ByteSizeLong,
|
|
&ClientMetadata::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ClientMetadata, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ClientMetadata",
|
|
};
|
|
}
|
|
struct ClientMetadataGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ClientMetadataGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ClientMetadata_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ClientMetadata::InternalGenerateClassData_(
|
|
_default, &ClientMetadata_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ClientMetadata>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ClientMetadataGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ClientMetadata _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ClientMetadata>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ClientMetadataGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ClientMetadataGlobalsTypeInternal ClientMetadata_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ClientMetadata_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ClientMetadata_globals_.GetClassData();
|
|
#else
|
|
return ClientMetadata_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ClientDownloadRequest::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ClientDownloadRequest>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ClientDownloadRequest, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr ClientDownloadRequest::ParseTableT_ ClientDownloadRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ClientDownloadRequest, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
4, 0, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967287, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
1, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(ParseTableT_, aux_entries),
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ClientDownloadRequest>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// repeated .content_analysis.sdk.ClientDownloadRequest.Resource resources = 4;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{34, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ClientDownloadRequest, _impl_.resources_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// repeated .content_analysis.sdk.ClientDownloadRequest.Resource resources = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ClientDownloadRequest, _impl_.resources_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ClientDownloadRequest_Resource>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ClientDownloadRequest_Resource_globals_},
|
|
#endif
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ClientDownloadRequest::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: resources_ { visibility, ::_pbi::InternalMetadataOffset::Build<
|
|
::content_analysis::sdk::ClientDownloadRequest,
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ClientDownloadRequest, _impl_.resources_)>()
|
|
}
|
|
{}
|
|
|
|
template <typename>
|
|
constexpr ClientDownloadRequest::ClientDownloadRequest(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ClientDownloadRequest::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ClientDownloadRequest(arena);
|
|
}
|
|
constexpr auto ClientDownloadRequest::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ClientDownloadRequest), alignof(ClientDownloadRequest));
|
|
}
|
|
constexpr auto ClientDownloadRequest::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
ClientDownloadRequest::IsInitializedImpl,
|
|
&ClientDownloadRequest::MergeImpl,
|
|
Super_::GetNewImpl<ClientDownloadRequest>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ClientDownloadRequest::SharedDtor,
|
|
Super_::GetClearImpl<ClientDownloadRequest>(), &ClientDownloadRequest::ByteSizeLong,
|
|
&ClientDownloadRequest::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ClientDownloadRequest, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ClientDownloadRequest",
|
|
};
|
|
}
|
|
struct ClientDownloadRequestGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ClientDownloadRequestGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ClientDownloadRequest_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ClientDownloadRequest::InternalGenerateClassData_(
|
|
_default, &ClientDownloadRequest_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ClientDownloadRequest>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ClientDownloadRequestGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ClientDownloadRequest _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ClientDownloadRequest>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ClientDownloadRequestGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ClientDownloadRequestGlobalsTypeInternal ClientDownloadRequest_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ClientDownloadRequest_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ClientDownloadRequest_globals_.GetClassData();
|
|
#else
|
|
return ClientDownloadRequest_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ContentMetaData::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ContentMetaData>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr ContentMetaData::ParseTableT_ ContentMetaData::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
11, 56, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294965984, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
7, // num_field_entries
|
|
2, // num_aux_entries
|
|
offsetof(ParseTableT_, aux_entries),
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentMetaData>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional string url = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.url_)}},
|
|
// optional string filename = 2;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{18, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.filename_)}},
|
|
// optional string digest = 3;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{26, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.digest_)}},
|
|
// optional .content_analysis.sdk.ClientDownloadRequest csd = 4;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{34, 5, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.csd_)}},
|
|
// optional string email = 5;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{42, 3, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.email_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string url = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.url_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional string filename = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.filename_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional string digest = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.digest_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .content_analysis.sdk.ClientDownloadRequest csd = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.csd_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional string email = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.email_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional string tab_title = 9;
|
|
{PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.tab_title_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .content_analysis.sdk.ContentMetaData.PrintMetadata print_metadata = 11;
|
|
{PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.print_metadata_), _Internal::kHasBitsOffset + 6, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ClientDownloadRequest>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ClientDownloadRequest_globals_},
|
|
#endif
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentMetaData_PrintMetadata>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ContentMetaData_PrintMetadata_globals_},
|
|
#endif
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ContentMetaData::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: url_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
filename_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
digest_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
email_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
tab_title_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
csd_{nullptr},
|
|
print_metadata_{nullptr} {}
|
|
|
|
template <typename>
|
|
constexpr ContentMetaData::ContentMetaData(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ContentMetaData::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ContentMetaData(arena);
|
|
}
|
|
constexpr auto ContentMetaData::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ContentMetaData), alignof(ContentMetaData));
|
|
}
|
|
constexpr auto ContentMetaData::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
ContentMetaData::IsInitializedImpl,
|
|
&ContentMetaData::MergeImpl,
|
|
Super_::GetNewImpl<ContentMetaData>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ContentMetaData::SharedDtor,
|
|
Super_::GetClearImpl<ContentMetaData>(), &ContentMetaData::ByteSizeLong,
|
|
&ContentMetaData::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ContentMetaData",
|
|
};
|
|
}
|
|
struct ContentMetaDataGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ContentMetaDataGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ContentMetaData_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ContentMetaData::InternalGenerateClassData_(
|
|
_default, &ContentMetaData_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ContentMetaData>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ContentMetaDataGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ContentMetaData _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ContentMetaData>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ContentMetaDataGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContentMetaDataGlobalsTypeInternal ContentMetaData_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ContentMetaData_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ContentMetaData_globals_.GetClassData();
|
|
#else
|
|
return ContentMetaData_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ContentAnalysisResponse::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ContentAnalysisResponse>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr ContentAnalysisResponse::ParseTableT_ ContentAnalysisResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
4, 8, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967286, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
2, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(ParseTableT_, aux_entries),
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisResponse>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// repeated .content_analysis.sdk.ContentAnalysisResponse.Result results = 4;
|
|
{::_pbi::TcParser::FastMtR1,
|
|
{34, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse, _impl_.results_)}},
|
|
// optional string request_token = 1;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{10, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse, _impl_.request_token_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string request_token = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse, _impl_.request_token_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// repeated .content_analysis.sdk.ContentAnalysisResponse.Result results = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse, _impl_.results_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisResponse_Result>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ContentAnalysisResponse_Result_globals_},
|
|
#endif
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ContentAnalysisResponse::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: results_ { visibility, ::_pbi::InternalMetadataOffset::Build<
|
|
::content_analysis::sdk::ContentAnalysisResponse,
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ContentAnalysisResponse, _impl_.results_)>()
|
|
}
|
|
,
|
|
request_token_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()) {}
|
|
|
|
template <typename>
|
|
constexpr ContentAnalysisResponse::ContentAnalysisResponse(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ContentAnalysisResponse::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ContentAnalysisResponse(arena);
|
|
}
|
|
constexpr auto ContentAnalysisResponse::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ContentAnalysisResponse), alignof(ContentAnalysisResponse));
|
|
}
|
|
constexpr auto ContentAnalysisResponse::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
nullptr, // IsInitialized
|
|
&ContentAnalysisResponse::MergeImpl,
|
|
Super_::GetNewImpl<ContentAnalysisResponse>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ContentAnalysisResponse::SharedDtor,
|
|
Super_::GetClearImpl<ContentAnalysisResponse>(), &ContentAnalysisResponse::ByteSizeLong,
|
|
&ContentAnalysisResponse::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisResponse, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ContentAnalysisResponse",
|
|
};
|
|
}
|
|
struct ContentAnalysisResponseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ContentAnalysisResponseGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ContentAnalysisResponse_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ContentAnalysisResponse::InternalGenerateClassData_(
|
|
_default, &ContentAnalysisResponse_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisResponse>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ContentAnalysisResponseGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ContentAnalysisResponse _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisResponse>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ContentAnalysisResponseGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContentAnalysisResponseGlobalsTypeInternal ContentAnalysisResponse_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ContentAnalysisResponse_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ContentAnalysisResponse_globals_.GetClassData();
|
|
#else
|
|
return ContentAnalysisResponse_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ContentAnalysisRequest::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ContentAnalysisRequest>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_._has_bits_);
|
|
static constexpr ::int32_t kOneofCaseOffset =
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ContentAnalysisRequest, _impl_._oneof_case_);
|
|
};
|
|
|
|
constexpr ContentAnalysisRequest::ParseTableT_ ContentAnalysisRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
19, 120, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294443247, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
12, // num_field_entries
|
|
5, // num_aux_entries
|
|
offsetof(ParseTableT_, aux_entries),
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisRequest>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional string user_action_id = 16;
|
|
{::_pbi::TcParser::FastBS2,
|
|
{386, 2, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.user_action_id_)}},
|
|
// optional int64 user_action_requests_count = 17;
|
|
{::_pbi::TcParser::FastV64S2,
|
|
{392, 8, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.user_action_requests_count_)}},
|
|
// .content_analysis.sdk.ContentAnalysisRequest.PrintData print_data = 18;
|
|
{::_pbi::TcParser::FastMiniParse2,
|
|
{402, ::uint8_t{6},
|
|
::uint32_t{
|
|
PROTOBUF_FIELD_OFFSET(ParseTableT_, field_entries) +
|
|
sizeof(_pbi::TcParseTableBase::FieldEntry) * 10}}},
|
|
// optional .content_analysis.sdk.ContentAnalysisRequest.Reason reason = 19;
|
|
{::_pbi::TcParser::FastEr0S2,
|
|
{408, 6, 8,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.reason_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional string request_token = 5;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{42, 1, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.request_token_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional .content_analysis.sdk.AnalysisConnector analysis_connector = 9;
|
|
{::_pbi::TcParser::FastEr0S1,
|
|
{72, 5, 6,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.analysis_connector_)}},
|
|
// optional .content_analysis.sdk.ContentMetaData request_data = 10;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{82, 3, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.request_data_)}},
|
|
// repeated string tags = 11;
|
|
{::_pbi::TcParser::FastBR1,
|
|
{90, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.tags_)}},
|
|
// optional .content_analysis.sdk.ClientMetadata client_metadata = 12;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{98, 4, 1,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.client_metadata_)}},
|
|
// string text_content = 13;
|
|
{::_pbi::TcParser::FastMiniParse1,
|
|
{106, ::uint8_t{5},
|
|
::uint32_t{
|
|
PROTOBUF_FIELD_OFFSET(ParseTableT_, field_entries) +
|
|
sizeof(_pbi::TcParseTableBase::FieldEntry) * 5}}},
|
|
// string file_path = 14;
|
|
{::_pbi::TcParser::FastMiniParse1,
|
|
{114, ::uint8_t{5},
|
|
::uint32_t{
|
|
PROTOBUF_FIELD_OFFSET(ParseTableT_, field_entries) +
|
|
sizeof(_pbi::TcParseTableBase::FieldEntry) * 6}}},
|
|
// optional int64 expires_at = 15;
|
|
{::_pbi::TcParser::FastV64S1,
|
|
{120, 7, 0,
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.expires_at_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional string request_token = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.request_token_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional .content_analysis.sdk.AnalysisConnector analysis_connector = 9;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.analysis_connector_), _Internal::kHasBitsOffset + 5, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
// optional .content_analysis.sdk.ContentMetaData request_data = 10;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.request_data_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// repeated string tags = 11;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.tags_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)},
|
|
// optional .content_analysis.sdk.ClientMetadata client_metadata = 12;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.client_metadata_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// string text_content = 13;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.content_data_.text_content_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// string file_path = 14;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.content_data_.file_path_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional int64 expires_at = 15;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.expires_at_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// optional string user_action_id = 16;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.user_action_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// optional int64 user_action_requests_count = 17;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.user_action_requests_count_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
|
|
// .content_analysis.sdk.ContentAnalysisRequest.PrintData print_data = 18;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.content_data_.print_data_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .content_analysis.sdk.ContentAnalysisRequest.Reason reason = 19;
|
|
{PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.reason_), _Internal::kHasBitsOffset + 6, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
|
|
}},
|
|
{{
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentMetaData>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ContentMetaData_globals_},
|
|
#endif
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ClientMetadata>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ClientMetadata_globals_},
|
|
#endif
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisRequest_PrintData>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ContentAnalysisRequest_PrintData_globals_},
|
|
#endif
|
|
{0, 6},
|
|
{0, 8},
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ContentAnalysisRequest::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: tags_ { visibility, ::_pbi::InternalMetadataOffset::Build<
|
|
::content_analysis::sdk::ContentAnalysisRequest,
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ContentAnalysisRequest, _impl_.tags_)>()
|
|
}
|
|
,
|
|
request_token_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
user_action_id_(
|
|
&::google::protobuf::internal::fixed_address_empty_string,
|
|
::_pbi::ConstantInitialized()),
|
|
request_data_{nullptr},
|
|
client_metadata_{nullptr},
|
|
analysis_connector_{static_cast< ::content_analysis::sdk::AnalysisConnector >(0)},
|
|
reason_{static_cast< ::content_analysis::sdk::ContentAnalysisRequest_Reason >(0)},
|
|
expires_at_{::int64_t{0}},
|
|
user_action_requests_count_{::int64_t{0}},
|
|
content_data_{},
|
|
_oneof_case_{} {}
|
|
|
|
template <typename>
|
|
constexpr ContentAnalysisRequest::ContentAnalysisRequest(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ContentAnalysisRequest::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ContentAnalysisRequest(arena);
|
|
}
|
|
constexpr auto ContentAnalysisRequest::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ContentAnalysisRequest), alignof(ContentAnalysisRequest));
|
|
}
|
|
constexpr auto ContentAnalysisRequest::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
ContentAnalysisRequest::IsInitializedImpl,
|
|
&ContentAnalysisRequest::MergeImpl,
|
|
Super_::GetNewImpl<ContentAnalysisRequest>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ContentAnalysisRequest::SharedDtor,
|
|
Super_::GetClearImpl<ContentAnalysisRequest>(), &ContentAnalysisRequest::ByteSizeLong,
|
|
&ContentAnalysisRequest::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ContentAnalysisRequest",
|
|
};
|
|
}
|
|
struct ContentAnalysisRequestGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ContentAnalysisRequestGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ContentAnalysisRequest_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ContentAnalysisRequest::InternalGenerateClassData_(
|
|
_default, &ContentAnalysisRequest_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisRequest>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ContentAnalysisRequestGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ContentAnalysisRequest _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ContentAnalysisRequest>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ContentAnalysisRequestGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContentAnalysisRequestGlobalsTypeInternal ContentAnalysisRequest_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ContentAnalysisRequest_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ContentAnalysisRequest_globals_.GetClassData();
|
|
#else
|
|
return ContentAnalysisRequest_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class AgentToChrome::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<AgentToChrome>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(AgentToChrome, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr AgentToChrome::ParseTableT_ AgentToChrome::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(AgentToChrome, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
1, 0, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967294, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
1, // num_field_entries
|
|
1, // num_aux_entries
|
|
offsetof(ParseTableT_, aux_entries),
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::AgentToChrome>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
// optional .content_analysis.sdk.ContentAnalysisResponse response = 1;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(AgentToChrome, _impl_.response_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .content_analysis.sdk.ContentAnalysisResponse response = 1;
|
|
{PROTOBUF_FIELD_OFFSET(AgentToChrome, _impl_.response_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisResponse>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ContentAnalysisResponse_globals_},
|
|
#endif
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr AgentToChrome::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: response_{nullptr} {}
|
|
|
|
template <typename>
|
|
constexpr AgentToChrome::AgentToChrome(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL AgentToChrome::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) AgentToChrome(arena);
|
|
}
|
|
constexpr auto AgentToChrome::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AgentToChrome), alignof(AgentToChrome));
|
|
}
|
|
constexpr auto AgentToChrome::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
nullptr, // IsInitialized
|
|
&AgentToChrome::MergeImpl,
|
|
Super_::GetNewImpl<AgentToChrome>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&AgentToChrome::SharedDtor,
|
|
Super_::GetClearImpl<AgentToChrome>(), &AgentToChrome::ByteSizeLong,
|
|
&AgentToChrome::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(AgentToChrome, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.AgentToChrome",
|
|
};
|
|
}
|
|
struct AgentToChromeGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr AgentToChromeGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
AgentToChrome_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(AgentToChrome::InternalGenerateClassData_(
|
|
_default, &AgentToChrome_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<AgentToChrome>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~AgentToChromeGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) AgentToChrome _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<AgentToChrome>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(AgentToChromeGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST AgentToChromeGlobalsTypeInternal AgentToChrome_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* AgentToChrome_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return AgentToChrome_globals_.GetClassData();
|
|
#else
|
|
return AgentToChrome_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
class ChromeToAgent::_Internal {
|
|
public:
|
|
using HasBits = decltype(::std::declval<ChromeToAgent>()._impl_._has_bits_);
|
|
static constexpr ::int32_t kHasBitsOffset =
|
|
8 * PROTOBUF_FIELD_OFFSET(ChromeToAgent, _impl_._has_bits_);
|
|
};
|
|
|
|
constexpr ChromeToAgent::ParseTableT_ ChromeToAgent::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
|
|
return ParseTableT_{
|
|
{
|
|
PROTOBUF_FIELD_OFFSET(ChromeToAgent, _impl_._has_bits_),
|
|
0, // no _extensions_
|
|
3, 24, // max_field_number, fast_idx_mask
|
|
offsetof(ParseTableT_, field_lookup_table),
|
|
4294967288, // skipmap
|
|
offsetof(ParseTableT_, field_entries),
|
|
3, // num_field_entries
|
|
3, // num_aux_entries
|
|
offsetof(ParseTableT_, aux_entries),
|
|
class_data,
|
|
nullptr, // post_loop_handler
|
|
::_pbi::TcParser::MpUnknownFields, // fallback
|
|
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
|
|
::_pbi::TcParser::GetTable<::content_analysis::sdk::ChromeToAgent>(), // to_prefetch
|
|
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// optional .content_analysis.sdk.ContentAnalysisRequest request = 1;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{10, 0, 0,
|
|
PROTOBUF_FIELD_OFFSET(ChromeToAgent, _impl_.request_)}},
|
|
// optional .content_analysis.sdk.ContentAnalysisAcknowledgement ack = 2;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{18, 1, 1,
|
|
PROTOBUF_FIELD_OFFSET(ChromeToAgent, _impl_.ack_)}},
|
|
// optional .content_analysis.sdk.ContentAnalysisCancelRequests cancel = 3;
|
|
{::_pbi::TcParser::FastMtS1,
|
|
{26, 2, 2,
|
|
PROTOBUF_FIELD_OFFSET(ChromeToAgent, _impl_.cancel_)}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// optional .content_analysis.sdk.ContentAnalysisRequest request = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ChromeToAgent, _impl_.request_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .content_analysis.sdk.ContentAnalysisAcknowledgement ack = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ChromeToAgent, _impl_.ack_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
// optional .content_analysis.sdk.ContentAnalysisCancelRequests cancel = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ChromeToAgent, _impl_.cancel_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
|
}},
|
|
{{
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisRequest>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ContentAnalysisRequest_globals_},
|
|
#endif
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisAcknowledgement>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ContentAnalysisAcknowledgement_globals_},
|
|
#endif
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
{::_pbi::TcParser::GetTable<::content_analysis::sdk::ContentAnalysisCancelRequests>()},
|
|
#else
|
|
{::_pbi::FieldAuxMessageGlobals(), &::content_analysis::sdk::ContentAnalysisCancelRequests_globals_},
|
|
#endif
|
|
}},
|
|
{{
|
|
}},
|
|
};
|
|
}
|
|
|
|
|
|
inline constexpr ChromeToAgent::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
::_pbi::ConstantInitialized) noexcept
|
|
: request_{nullptr},
|
|
ack_{nullptr},
|
|
cancel_{nullptr} {}
|
|
|
|
template <typename>
|
|
constexpr ChromeToAgent::ChromeToAgent(::_pbi::ConstantInitialized,
|
|
const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
|
|
: Super_(
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
class_data
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
),
|
|
_impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
|
|
}
|
|
inline void* PROTOBUF_NONNULL ChromeToAgent::PlacementNew_(
|
|
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
|
|
return ::new (mem) ChromeToAgent(arena);
|
|
}
|
|
constexpr auto ChromeToAgent::InternalNewImpl_() {
|
|
return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ChromeToAgent), alignof(ChromeToAgent));
|
|
}
|
|
constexpr auto ChromeToAgent::InternalGenerateClassData_(
|
|
const MessageLite& prototype,
|
|
const ::google::protobuf::internal::TcParseTableBase* tc_table) {
|
|
return ::google::protobuf::internal::ClassDataLite{
|
|
{
|
|
&prototype,
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
&_table_.header,
|
|
#else
|
|
tc_table,
|
|
#endif
|
|
ChromeToAgent::IsInitializedImpl,
|
|
&ChromeToAgent::MergeImpl,
|
|
Super_::GetNewImpl<ChromeToAgent>(),
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
&ChromeToAgent::SharedDtor,
|
|
Super_::GetClearImpl<ChromeToAgent>(), &ChromeToAgent::ByteSizeLong,
|
|
&ChromeToAgent::_InternalSerialize,
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
PROTOBUF_FIELD_OFFSET(ChromeToAgent, _impl_._cached_size_),
|
|
true,
|
|
},
|
|
"content_analysis.sdk.ChromeToAgent",
|
|
};
|
|
}
|
|
struct ChromeToAgentGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
|
|
constexpr ChromeToAgentGlobalsTypeInternal()
|
|
:
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
_default(::_pbi::ConstantInitialized{},
|
|
ChromeToAgent_class_data_.base())
|
|
#else // !PROTOBUF_MESSAGE_GLOBALS
|
|
MessageGlobalsBase(ChromeToAgent::InternalGenerateClassData_(
|
|
_default, &ChromeToAgent_globals_._table.header)),
|
|
_default(::_pbi::ConstantInitialized{}, GetClassData()),
|
|
_table(::_pbi::PrivateAccess::GenerateParseTable<ChromeToAgent>(
|
|
GetClassData()))
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
{
|
|
}
|
|
~ChromeToAgentGlobalsTypeInternal() {}
|
|
union {
|
|
alignas(::_pbi::kMaxMessageAlignment) ChromeToAgent _default;
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
decltype(::_pbi::PrivateAccess::GenerateParseTable<ChromeToAgent>(
|
|
::std::declval<const ::_pbi::ClassData*>())) _table;
|
|
#endif
|
|
};
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
static_assert(PROTOBUF_FIELD_OFFSET(ChromeToAgentGlobalsTypeInternal, _default) ==
|
|
::_pbi::MessageGlobalsBase::OffsetToDefault());
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ChromeToAgentGlobalsTypeInternal ChromeToAgent_globals_
|
|
PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
namespace {
|
|
const ::_pbi::ClassData* ChromeToAgent_get_class_data() {
|
|
#ifdef PROTOBUF_MESSAGE_GLOBALS
|
|
return ChromeToAgent_globals_.GetClassData();
|
|
#else
|
|
return ChromeToAgent_class_data_.base();
|
|
#endif // PROTOBUF_MESSAGE_GLOBALS
|
|
}
|
|
} // namespace
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
} // namespace sdk
|
|
} // namespace content_analysis
|
|
namespace content_analysis {
|
|
namespace sdk {
|
|
PROTOBUF_CONSTINIT const uint32_t ContentMetaData_PrintMetadata_PrinterType_internal_data_[] = {
|
|
196608u, 0u, };
|
|
static const char ContentMetaData_PrintMetadata_PrinterType_names[] = {
|
|
"CLOUD"
|
|
"LOCAL"
|
|
"UNKNOWN"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry ContentMetaData_PrintMetadata_PrinterType_entries[] = {
|
|
{{&ContentMetaData_PrintMetadata_PrinterType_names[0], 5}, 1},
|
|
{{&ContentMetaData_PrintMetadata_PrinterType_names[5], 5}, 2},
|
|
{{&ContentMetaData_PrintMetadata_PrinterType_names[10], 7}, 0},
|
|
};
|
|
|
|
static const int ContentMetaData_PrintMetadata_PrinterType_entries_by_number[] = {
|
|
2, // 0 -> UNKNOWN
|
|
0, // 1 -> CLOUD
|
|
1, // 2 -> LOCAL
|
|
};
|
|
|
|
[[nodiscard]] bool ContentMetaData_PrintMetadata_PrinterType_Parse(::absl::string_view name,
|
|
ContentMetaData_PrintMetadata_PrinterType* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
ContentMetaData_PrintMetadata_PrinterType_entries, 3, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<ContentMetaData_PrintMetadata_PrinterType>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
ContentMetaData_PrintMetadata_PrinterType_strings[3] = {};
|
|
|
|
[[nodiscard]] const ::std::string& ContentMetaData_PrintMetadata_PrinterType_Name(ContentMetaData_PrintMetadata_PrinterType value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
ContentMetaData_PrintMetadata_PrinterType_entries, ContentMetaData_PrintMetadata_PrinterType_entries_by_number, 3,
|
|
ContentMetaData_PrintMetadata_PrinterType_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(ContentMetaData_PrintMetadata_PrinterType_entries,
|
|
ContentMetaData_PrintMetadata_PrinterType_entries_by_number,
|
|
3, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ContentMetaData_PrintMetadata_PrinterType_strings[idx].get();
|
|
}
|
|
PROTOBUF_CONSTINIT const uint32_t ClientDownloadRequest_ResourceType_internal_data_[] = {
|
|
393216u, 0u, };
|
|
static const char ClientDownloadRequest_ResourceType_names[] = {
|
|
"DOWNLOAD_REDIRECT"
|
|
"DOWNLOAD_URL"
|
|
"PPAPI_DOCUMENT"
|
|
"PPAPI_PLUGIN"
|
|
"TAB_REDIRECT"
|
|
"TAB_URL"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry ClientDownloadRequest_ResourceType_entries[] = {
|
|
{{&ClientDownloadRequest_ResourceType_names[0], 17}, 1},
|
|
{{&ClientDownloadRequest_ResourceType_names[17], 12}, 0},
|
|
{{&ClientDownloadRequest_ResourceType_names[29], 14}, 4},
|
|
{{&ClientDownloadRequest_ResourceType_names[43], 12}, 5},
|
|
{{&ClientDownloadRequest_ResourceType_names[55], 12}, 3},
|
|
{{&ClientDownloadRequest_ResourceType_names[67], 7}, 2},
|
|
};
|
|
|
|
static const int ClientDownloadRequest_ResourceType_entries_by_number[] = {
|
|
1, // 0 -> DOWNLOAD_URL
|
|
0, // 1 -> DOWNLOAD_REDIRECT
|
|
5, // 2 -> TAB_URL
|
|
4, // 3 -> TAB_REDIRECT
|
|
2, // 4 -> PPAPI_DOCUMENT
|
|
3, // 5 -> PPAPI_PLUGIN
|
|
};
|
|
|
|
[[nodiscard]] bool ClientDownloadRequest_ResourceType_Parse(::absl::string_view name,
|
|
ClientDownloadRequest_ResourceType* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
ClientDownloadRequest_ResourceType_entries, 6, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<ClientDownloadRequest_ResourceType>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
ClientDownloadRequest_ResourceType_strings[6] = {};
|
|
|
|
[[nodiscard]] const ::std::string& ClientDownloadRequest_ResourceType_Name(ClientDownloadRequest_ResourceType value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
ClientDownloadRequest_ResourceType_entries, ClientDownloadRequest_ResourceType_entries_by_number, 6,
|
|
ClientDownloadRequest_ResourceType_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(ClientDownloadRequest_ResourceType_entries,
|
|
ClientDownloadRequest_ResourceType_entries_by_number,
|
|
6, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ClientDownloadRequest_ResourceType_strings[idx].get();
|
|
}
|
|
PROTOBUF_CONSTINIT const uint32_t ContentAnalysisRequest_Reason_internal_data_[] = {
|
|
589824u, 0u, };
|
|
static const char ContentAnalysisRequest_Reason_names[] = {
|
|
"CLIPBOARD_COPY"
|
|
"CLIPBOARD_PASTE"
|
|
"DRAG_AND_DROP"
|
|
"FILE_PICKER_DIALOG"
|
|
"NORMAL_DOWNLOAD"
|
|
"PRINT_PREVIEW_PRINT"
|
|
"SAVE_AS_DOWNLOAD"
|
|
"SYSTEM_DIALOG_PRINT"
|
|
"UNKNOWN"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry ContentAnalysisRequest_Reason_entries[] = {
|
|
{{&ContentAnalysisRequest_Reason_names[0], 14}, 8},
|
|
{{&ContentAnalysisRequest_Reason_names[14], 15}, 1},
|
|
{{&ContentAnalysisRequest_Reason_names[29], 13}, 2},
|
|
{{&ContentAnalysisRequest_Reason_names[42], 18}, 3},
|
|
{{&ContentAnalysisRequest_Reason_names[60], 15}, 6},
|
|
{{&ContentAnalysisRequest_Reason_names[75], 19}, 4},
|
|
{{&ContentAnalysisRequest_Reason_names[94], 16}, 7},
|
|
{{&ContentAnalysisRequest_Reason_names[110], 19}, 5},
|
|
{{&ContentAnalysisRequest_Reason_names[129], 7}, 0},
|
|
};
|
|
|
|
static const int ContentAnalysisRequest_Reason_entries_by_number[] = {
|
|
8, // 0 -> UNKNOWN
|
|
1, // 1 -> CLIPBOARD_PASTE
|
|
2, // 2 -> DRAG_AND_DROP
|
|
3, // 3 -> FILE_PICKER_DIALOG
|
|
5, // 4 -> PRINT_PREVIEW_PRINT
|
|
7, // 5 -> SYSTEM_DIALOG_PRINT
|
|
4, // 6 -> NORMAL_DOWNLOAD
|
|
6, // 7 -> SAVE_AS_DOWNLOAD
|
|
0, // 8 -> CLIPBOARD_COPY
|
|
};
|
|
|
|
[[nodiscard]] bool ContentAnalysisRequest_Reason_Parse(::absl::string_view name,
|
|
ContentAnalysisRequest_Reason* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
ContentAnalysisRequest_Reason_entries, 9, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<ContentAnalysisRequest_Reason>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
ContentAnalysisRequest_Reason_strings[9] = {};
|
|
|
|
[[nodiscard]] const ::std::string& ContentAnalysisRequest_Reason_Name(ContentAnalysisRequest_Reason value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
ContentAnalysisRequest_Reason_entries, ContentAnalysisRequest_Reason_entries_by_number, 9,
|
|
ContentAnalysisRequest_Reason_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(ContentAnalysisRequest_Reason_entries,
|
|
ContentAnalysisRequest_Reason_entries_by_number,
|
|
9, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ContentAnalysisRequest_Reason_strings[idx].get();
|
|
}
|
|
PROTOBUF_CONSTINIT const uint32_t ContentAnalysisResponse_Result_TriggeredRule_Action_internal_data_[] = {
|
|
262144u, 0u, };
|
|
static const char ContentAnalysisResponse_Result_TriggeredRule_Action_names[] = {
|
|
"ACTION_UNSPECIFIED"
|
|
"BLOCK"
|
|
"REPORT_ONLY"
|
|
"WARN"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry ContentAnalysisResponse_Result_TriggeredRule_Action_entries[] = {
|
|
{{&ContentAnalysisResponse_Result_TriggeredRule_Action_names[0], 18}, 0},
|
|
{{&ContentAnalysisResponse_Result_TriggeredRule_Action_names[18], 5}, 3},
|
|
{{&ContentAnalysisResponse_Result_TriggeredRule_Action_names[23], 11}, 1},
|
|
{{&ContentAnalysisResponse_Result_TriggeredRule_Action_names[34], 4}, 2},
|
|
};
|
|
|
|
static const int ContentAnalysisResponse_Result_TriggeredRule_Action_entries_by_number[] = {
|
|
0, // 0 -> ACTION_UNSPECIFIED
|
|
2, // 1 -> REPORT_ONLY
|
|
3, // 2 -> WARN
|
|
1, // 3 -> BLOCK
|
|
};
|
|
|
|
[[nodiscard]] bool ContentAnalysisResponse_Result_TriggeredRule_Action_Parse(::absl::string_view name,
|
|
ContentAnalysisResponse_Result_TriggeredRule_Action* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
ContentAnalysisResponse_Result_TriggeredRule_Action_entries, 4, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<ContentAnalysisResponse_Result_TriggeredRule_Action>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
ContentAnalysisResponse_Result_TriggeredRule_Action_strings[4] = {};
|
|
|
|
[[nodiscard]] const ::std::string& ContentAnalysisResponse_Result_TriggeredRule_Action_Name(ContentAnalysisResponse_Result_TriggeredRule_Action value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
ContentAnalysisResponse_Result_TriggeredRule_Action_entries, ContentAnalysisResponse_Result_TriggeredRule_Action_entries_by_number, 4,
|
|
ContentAnalysisResponse_Result_TriggeredRule_Action_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(ContentAnalysisResponse_Result_TriggeredRule_Action_entries,
|
|
ContentAnalysisResponse_Result_TriggeredRule_Action_entries_by_number,
|
|
4, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ContentAnalysisResponse_Result_TriggeredRule_Action_strings[idx].get();
|
|
}
|
|
PROTOBUF_CONSTINIT const uint32_t ContentAnalysisResponse_Result_Status_internal_data_[] = {
|
|
196608u, 0u, };
|
|
static const char ContentAnalysisResponse_Result_Status_names[] = {
|
|
"FAILURE"
|
|
"STATUS_UNKNOWN"
|
|
"SUCCESS"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry ContentAnalysisResponse_Result_Status_entries[] = {
|
|
{{&ContentAnalysisResponse_Result_Status_names[0], 7}, 2},
|
|
{{&ContentAnalysisResponse_Result_Status_names[7], 14}, 0},
|
|
{{&ContentAnalysisResponse_Result_Status_names[21], 7}, 1},
|
|
};
|
|
|
|
static const int ContentAnalysisResponse_Result_Status_entries_by_number[] = {
|
|
1, // 0 -> STATUS_UNKNOWN
|
|
2, // 1 -> SUCCESS
|
|
0, // 2 -> FAILURE
|
|
};
|
|
|
|
[[nodiscard]] bool ContentAnalysisResponse_Result_Status_Parse(::absl::string_view name,
|
|
ContentAnalysisResponse_Result_Status* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
ContentAnalysisResponse_Result_Status_entries, 3, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<ContentAnalysisResponse_Result_Status>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
ContentAnalysisResponse_Result_Status_strings[3] = {};
|
|
|
|
[[nodiscard]] const ::std::string& ContentAnalysisResponse_Result_Status_Name(ContentAnalysisResponse_Result_Status value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
ContentAnalysisResponse_Result_Status_entries, ContentAnalysisResponse_Result_Status_entries_by_number, 3,
|
|
ContentAnalysisResponse_Result_Status_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(ContentAnalysisResponse_Result_Status_entries,
|
|
ContentAnalysisResponse_Result_Status_entries_by_number,
|
|
3, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ContentAnalysisResponse_Result_Status_strings[idx].get();
|
|
}
|
|
PROTOBUF_CONSTINIT const uint32_t ContentAnalysisAcknowledgement_Status_internal_data_[] = {
|
|
196609u, 0u, };
|
|
static const char ContentAnalysisAcknowledgement_Status_names[] = {
|
|
"INVALID_RESPONSE"
|
|
"SUCCESS"
|
|
"TOO_LATE"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry ContentAnalysisAcknowledgement_Status_entries[] = {
|
|
{{&ContentAnalysisAcknowledgement_Status_names[0], 16}, 2},
|
|
{{&ContentAnalysisAcknowledgement_Status_names[16], 7}, 1},
|
|
{{&ContentAnalysisAcknowledgement_Status_names[23], 8}, 3},
|
|
};
|
|
|
|
static const int ContentAnalysisAcknowledgement_Status_entries_by_number[] = {
|
|
1, // 1 -> SUCCESS
|
|
0, // 2 -> INVALID_RESPONSE
|
|
2, // 3 -> TOO_LATE
|
|
};
|
|
|
|
[[nodiscard]] bool ContentAnalysisAcknowledgement_Status_Parse(::absl::string_view name,
|
|
ContentAnalysisAcknowledgement_Status* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
ContentAnalysisAcknowledgement_Status_entries, 3, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<ContentAnalysisAcknowledgement_Status>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
ContentAnalysisAcknowledgement_Status_strings[3] = {};
|
|
|
|
[[nodiscard]] const ::std::string& ContentAnalysisAcknowledgement_Status_Name(ContentAnalysisAcknowledgement_Status value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
ContentAnalysisAcknowledgement_Status_entries, ContentAnalysisAcknowledgement_Status_entries_by_number, 3,
|
|
ContentAnalysisAcknowledgement_Status_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(ContentAnalysisAcknowledgement_Status_entries,
|
|
ContentAnalysisAcknowledgement_Status_entries_by_number,
|
|
3, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ContentAnalysisAcknowledgement_Status_strings[idx].get();
|
|
}
|
|
PROTOBUF_CONSTINIT const uint32_t ContentAnalysisAcknowledgement_FinalAction_internal_data_[] = {
|
|
327680u, 0u, };
|
|
static const char ContentAnalysisAcknowledgement_FinalAction_names[] = {
|
|
"ACTION_UNSPECIFIED"
|
|
"ALLOW"
|
|
"BLOCK"
|
|
"REPORT_ONLY"
|
|
"WARN"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry ContentAnalysisAcknowledgement_FinalAction_entries[] = {
|
|
{{&ContentAnalysisAcknowledgement_FinalAction_names[0], 18}, 0},
|
|
{{&ContentAnalysisAcknowledgement_FinalAction_names[18], 5}, 1},
|
|
{{&ContentAnalysisAcknowledgement_FinalAction_names[23], 5}, 4},
|
|
{{&ContentAnalysisAcknowledgement_FinalAction_names[28], 11}, 2},
|
|
{{&ContentAnalysisAcknowledgement_FinalAction_names[39], 4}, 3},
|
|
};
|
|
|
|
static const int ContentAnalysisAcknowledgement_FinalAction_entries_by_number[] = {
|
|
0, // 0 -> ACTION_UNSPECIFIED
|
|
1, // 1 -> ALLOW
|
|
3, // 2 -> REPORT_ONLY
|
|
4, // 3 -> WARN
|
|
2, // 4 -> BLOCK
|
|
};
|
|
|
|
[[nodiscard]] bool ContentAnalysisAcknowledgement_FinalAction_Parse(::absl::string_view name,
|
|
ContentAnalysisAcknowledgement_FinalAction* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
ContentAnalysisAcknowledgement_FinalAction_entries, 5, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<ContentAnalysisAcknowledgement_FinalAction>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
ContentAnalysisAcknowledgement_FinalAction_strings[5] = {};
|
|
|
|
[[nodiscard]] const ::std::string& ContentAnalysisAcknowledgement_FinalAction_Name(ContentAnalysisAcknowledgement_FinalAction value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
ContentAnalysisAcknowledgement_FinalAction_entries, ContentAnalysisAcknowledgement_FinalAction_entries_by_number, 5,
|
|
ContentAnalysisAcknowledgement_FinalAction_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(ContentAnalysisAcknowledgement_FinalAction_entries,
|
|
ContentAnalysisAcknowledgement_FinalAction_entries_by_number,
|
|
5, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ContentAnalysisAcknowledgement_FinalAction_strings[idx].get();
|
|
}
|
|
PROTOBUF_CONSTINIT const uint32_t AnalysisConnector_internal_data_[] = {
|
|
458752u, 0u, };
|
|
static const char AnalysisConnector_names[] = {
|
|
"ANALYSIS_CONNECTOR_UNSPECIFIED"
|
|
"BULK_DATA_ENTRY"
|
|
"DATA_COPIED"
|
|
"FILE_ATTACHED"
|
|
"FILE_DOWNLOADED"
|
|
"FILE_TRANSFER"
|
|
"PRINT"
|
|
};
|
|
|
|
static const ::google::protobuf::internal::EnumEntry AnalysisConnector_entries[] = {
|
|
{{&AnalysisConnector_names[0], 30}, 0},
|
|
{{&AnalysisConnector_names[30], 15}, 3},
|
|
{{&AnalysisConnector_names[45], 11}, 6},
|
|
{{&AnalysisConnector_names[56], 13}, 2},
|
|
{{&AnalysisConnector_names[69], 15}, 1},
|
|
{{&AnalysisConnector_names[84], 13}, 5},
|
|
{{&AnalysisConnector_names[97], 5}, 4},
|
|
};
|
|
|
|
static const int AnalysisConnector_entries_by_number[] = {
|
|
0, // 0 -> ANALYSIS_CONNECTOR_UNSPECIFIED
|
|
4, // 1 -> FILE_DOWNLOADED
|
|
3, // 2 -> FILE_ATTACHED
|
|
1, // 3 -> BULK_DATA_ENTRY
|
|
6, // 4 -> PRINT
|
|
5, // 5 -> FILE_TRANSFER
|
|
2, // 6 -> DATA_COPIED
|
|
};
|
|
|
|
[[nodiscard]] bool AnalysisConnector_Parse(::absl::string_view name,
|
|
AnalysisConnector* PROTOBUF_NONNULL value) {
|
|
int int_value;
|
|
bool success = ::google::protobuf::internal::LookUpEnumValue(
|
|
AnalysisConnector_entries, 7, name, &int_value);
|
|
if (success) {
|
|
*value = static_cast<AnalysisConnector>(int_value);
|
|
}
|
|
return success;
|
|
}
|
|
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
|
|
AnalysisConnector_strings[7] = {};
|
|
|
|
[[nodiscard]] const ::std::string& AnalysisConnector_Name(AnalysisConnector value) {
|
|
static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
|
|
AnalysisConnector_entries, AnalysisConnector_entries_by_number, 7,
|
|
AnalysisConnector_strings);
|
|
(void)kDummy;
|
|
|
|
int idx = ::google::protobuf::internal::LookUpEnumName(AnalysisConnector_entries,
|
|
AnalysisConnector_entries_by_number,
|
|
7, value);
|
|
return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : AnalysisConnector_strings[idx].get();
|
|
}
|
|
// ===================================================================
|
|
|
|
ContentMetaData_PrintMetadata::ContentMetaData_PrintMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentMetaData_PrintMetadata_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ContentMetaData.PrintMetadata)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentMetaData_PrintMetadata::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ContentMetaData_PrintMetadata& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
printer_name_(arena, from.printer_name_) {}
|
|
|
|
ContentMetaData_PrintMetadata::ContentMetaData_PrintMetadata(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ContentMetaData_PrintMetadata& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentMetaData_PrintMetadata_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ContentMetaData_PrintMetadata* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
_impl_.printer_type_ = from._impl_.printer_type_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ContentMetaData.PrintMetadata)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentMetaData_PrintMetadata::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: printer_name_(arena) {}
|
|
|
|
inline void ContentMetaData_PrintMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.printer_type_ = {};
|
|
}
|
|
ContentMetaData_PrintMetadata::~ContentMetaData_PrintMetadata() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ContentMetaData.PrintMetadata)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ContentMetaData_PrintMetadata::SharedDtor(MessageLite& self) {
|
|
ContentMetaData_PrintMetadata& this_ = static_cast<ContentMetaData_PrintMetadata&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.printer_name_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ContentMetaData_PrintMetadata_class_data_ =
|
|
ContentMetaData_PrintMetadata::InternalGenerateClassData_(ContentMetaData_PrintMetadata_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentMetaData_PrintMetadata::GetClassData() const {
|
|
return ContentMetaData_PrintMetadata_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentMetaData_PrintMetadata::GetClassData() const {
|
|
return ContentMetaData_PrintMetadata_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ContentMetaData_PrintMetadata::ParseTableT_
|
|
ContentMetaData_PrintMetadata::_table_ =
|
|
ContentMetaData_PrintMetadata::InternalGenerateParseTable_(ContentMetaData_PrintMetadata_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ContentMetaData_PrintMetadata::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ContentMetaData.PrintMetadata)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
this_._impl_.printer_name_.ClearNonDefaultToEmpty();
|
|
}
|
|
this_._impl_.printer_type_ = 0;
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ContentMetaData_PrintMetadata::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ContentMetaData_PrintMetadata& this_ = static_cast<const ContentMetaData_PrintMetadata&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ContentMetaData_PrintMetadata::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ContentMetaData_PrintMetadata& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ContentMetaData.PrintMetadata)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string printer_name = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_printer_name();
|
|
target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// optional .content_analysis.sdk.ContentMetaData.PrintMetadata.PrinterType printer_type = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_printer_type(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ContentMetaData.PrintMetadata)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ContentMetaData_PrintMetadata::ByteSizeLong(const MessageLite& base) {
|
|
const ContentMetaData_PrintMetadata& this_ = static_cast<const ContentMetaData_PrintMetadata&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ContentMetaData_PrintMetadata::ByteSizeLong() const {
|
|
const ContentMetaData_PrintMetadata& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ContentMetaData.PrintMetadata)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
// optional string printer_name = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_printer_name());
|
|
}
|
|
// optional .content_analysis.sdk.ContentMetaData.PrintMetadata.PrinterType printer_type = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_printer_type());
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ContentMetaData_PrintMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ContentMetaData_PrintMetadata*>(&to_msg);
|
|
auto& from = static_cast<const ContentMetaData_PrintMetadata&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ContentMetaData.PrintMetadata)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_set_printer_name(from._internal_printer_name());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.printer_type_ = from._impl_.printer_type_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ContentMetaData_PrintMetadata::CopyFrom(const ContentMetaData_PrintMetadata& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ContentMetaData.PrintMetadata)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ContentMetaData_PrintMetadata::InternalSwap(ContentMetaData_PrintMetadata* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
auto* arena = GetArena();
|
|
ABSL_DCHECK_EQ(arena, other->GetArena());
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.printer_name_, &other->_impl_.printer_name_, arena);
|
|
swap(_impl_.printer_type_, other->_impl_.printer_type_);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ContentMetaData::ContentMetaData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentMetaData_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ContentMetaData)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentMetaData::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ContentMetaData& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
url_(arena, from.url_),
|
|
filename_(arena, from.filename_),
|
|
digest_(arena, from.digest_),
|
|
email_(arena, from.email_),
|
|
tab_title_(arena, from.tab_title_) {}
|
|
|
|
ContentMetaData::ContentMetaData(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ContentMetaData& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentMetaData_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ContentMetaData* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
::uint32_t cached_has_bits = _impl_._has_bits_[0];
|
|
_impl_.csd_ = (CheckHasBit(cached_has_bits, 0x00000020U))
|
|
? Super_::CopyConstruct(arena, *from._impl_.csd_)
|
|
: nullptr;
|
|
_impl_.print_metadata_ = (CheckHasBit(cached_has_bits, 0x00000040U))
|
|
? Super_::CopyConstruct(arena, *from._impl_.print_metadata_)
|
|
: nullptr;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ContentMetaData)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentMetaData::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: url_(arena),
|
|
filename_(arena),
|
|
digest_(arena),
|
|
email_(arena),
|
|
tab_title_(arena) {}
|
|
|
|
inline void ContentMetaData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, csd_),
|
|
0,
|
|
offsetof(Impl_, print_metadata_) -
|
|
offsetof(Impl_, csd_) +
|
|
sizeof(Impl_::print_metadata_));
|
|
}
|
|
ContentMetaData::~ContentMetaData() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ContentMetaData)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ContentMetaData::SharedDtor(MessageLite& self) {
|
|
ContentMetaData& this_ = static_cast<ContentMetaData&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.url_.Destroy();
|
|
this_._impl_.filename_.Destroy();
|
|
this_._impl_.digest_.Destroy();
|
|
this_._impl_.email_.Destroy();
|
|
this_._impl_.tab_title_.Destroy();
|
|
delete this_._impl_.csd_;
|
|
delete this_._impl_.print_metadata_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ContentMetaData_class_data_ =
|
|
ContentMetaData::InternalGenerateClassData_(ContentMetaData_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentMetaData::GetClassData() const {
|
|
return ContentMetaData_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentMetaData::GetClassData() const {
|
|
return ContentMetaData_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ContentMetaData::ParseTableT_
|
|
ContentMetaData::_table_ =
|
|
ContentMetaData::InternalGenerateParseTable_(ContentMetaData_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ContentMetaData::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ContentMetaData)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
this_._impl_.url_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
this_._impl_.filename_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
this_._impl_.digest_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
this_._impl_.email_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
this_._impl_.tab_title_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
ABSL_DCHECK(this_._impl_.csd_ != nullptr);
|
|
this_._impl_.csd_->Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
ABSL_DCHECK(this_._impl_.print_metadata_ != nullptr);
|
|
this_._impl_.print_metadata_->Clear();
|
|
}
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ContentMetaData::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ContentMetaData& this_ = static_cast<const ContentMetaData&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ContentMetaData::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ContentMetaData& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ContentMetaData)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string url = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_url();
|
|
target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// optional string filename = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_filename();
|
|
target = stream->WriteStringMaybeAliased(2, _s, target);
|
|
}
|
|
|
|
// optional string digest = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
const ::std::string& _s = this_._internal_digest();
|
|
target = stream->WriteStringMaybeAliased(3, _s, target);
|
|
}
|
|
|
|
// optional .content_analysis.sdk.ClientDownloadRequest csd = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
4, *this_._impl_.csd_, this_._impl_.csd_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional string email = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
const ::std::string& _s = this_._internal_email();
|
|
target = stream->WriteStringMaybeAliased(5, _s, target);
|
|
}
|
|
|
|
// optional string tab_title = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
const ::std::string& _s = this_._internal_tab_title();
|
|
target = stream->WriteStringMaybeAliased(9, _s, target);
|
|
}
|
|
|
|
// optional .content_analysis.sdk.ContentMetaData.PrintMetadata print_metadata = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
11, *this_._impl_.print_metadata_, this_._impl_.print_metadata_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ContentMetaData)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ContentMetaData::ByteSizeLong(const MessageLite& base) {
|
|
const ContentMetaData& this_ = static_cast<const ContentMetaData&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ContentMetaData::ByteSizeLong() const {
|
|
const ContentMetaData& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ContentMetaData)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
|
|
// optional string url = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_url());
|
|
}
|
|
// optional string filename = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_filename());
|
|
}
|
|
// optional string digest = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_digest());
|
|
}
|
|
// optional string email = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_email());
|
|
}
|
|
// optional string tab_title = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_tab_title());
|
|
}
|
|
// optional .content_analysis.sdk.ClientDownloadRequest csd = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.csd_);
|
|
}
|
|
// optional .content_analysis.sdk.ContentMetaData.PrintMetadata print_metadata = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.print_metadata_);
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ContentMetaData::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ContentMetaData*>(&to_msg);
|
|
auto& from = static_cast<const ContentMetaData&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ContentMetaData)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_set_url(from._internal_url());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_filename(from._internal_filename());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_internal_set_digest(from._internal_digest());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
_this->_internal_set_email(from._internal_email());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
_this->_internal_set_tab_title(from._internal_tab_title());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
ABSL_DCHECK(from._impl_.csd_ != nullptr);
|
|
if (_this->_impl_.csd_ == nullptr) {
|
|
_this->_impl_.csd_ = Super_::CopyConstruct(arena, *from._impl_.csd_);
|
|
} else {
|
|
_this->_impl_.csd_->MergeFrom(*from._impl_.csd_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
ABSL_DCHECK(from._impl_.print_metadata_ != nullptr);
|
|
if (_this->_impl_.print_metadata_ == nullptr) {
|
|
_this->_impl_.print_metadata_ = Super_::CopyConstruct(arena, *from._impl_.print_metadata_);
|
|
} else {
|
|
_this->_impl_.print_metadata_->MergeFrom(*from._impl_.print_metadata_);
|
|
}
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ContentMetaData::CopyFrom(const ContentMetaData& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ContentMetaData)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE bool ContentMetaData::IsInitializedImpl(
|
|
const MessageLite& msg) {
|
|
auto& this_ = static_cast<const ContentMetaData&>(msg);
|
|
if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000020U)) {
|
|
if (!this_._impl_.csd_->IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void ContentMetaData::InternalSwap(ContentMetaData* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
auto* arena = GetArena();
|
|
ABSL_DCHECK_EQ(arena, other->GetArena());
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.filename_, &other->_impl_.filename_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.digest_, &other->_impl_.digest_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tab_title_, &other->_impl_.tab_title_, arena);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.print_metadata_)
|
|
+ sizeof(ContentMetaData::_impl_.print_metadata_)
|
|
- PROTOBUF_FIELD_OFFSET(ContentMetaData, _impl_.csd_)>(
|
|
reinterpret_cast<char*>(&_impl_.csd_),
|
|
reinterpret_cast<char*>(&other->_impl_.csd_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ClientMetadata_Browser::ClientMetadata_Browser(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ClientMetadata_Browser_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ClientMetadata.Browser)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ClientMetadata_Browser::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ClientMetadata_Browser& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
machine_user_(arena, from.machine_user_) {}
|
|
|
|
ClientMetadata_Browser::ClientMetadata_Browser(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ClientMetadata_Browser& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ClientMetadata_Browser_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ClientMetadata_Browser* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ClientMetadata.Browser)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ClientMetadata_Browser::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: machine_user_(arena) {}
|
|
|
|
inline void ClientMetadata_Browser::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
}
|
|
ClientMetadata_Browser::~ClientMetadata_Browser() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ClientMetadata.Browser)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ClientMetadata_Browser::SharedDtor(MessageLite& self) {
|
|
ClientMetadata_Browser& this_ = static_cast<ClientMetadata_Browser&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.machine_user_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ClientMetadata_Browser_class_data_ =
|
|
ClientMetadata_Browser::InternalGenerateClassData_(ClientMetadata_Browser_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ClientMetadata_Browser::GetClassData() const {
|
|
return ClientMetadata_Browser_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ClientMetadata_Browser::GetClassData() const {
|
|
return ClientMetadata_Browser_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ClientMetadata_Browser::ParseTableT_
|
|
ClientMetadata_Browser::_table_ =
|
|
ClientMetadata_Browser::InternalGenerateParseTable_(ClientMetadata_Browser_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ClientMetadata_Browser::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ClientMetadata.Browser)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
this_._impl_.machine_user_.ClearNonDefaultToEmpty();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ClientMetadata_Browser::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ClientMetadata_Browser& this_ = static_cast<const ClientMetadata_Browser&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ClientMetadata_Browser::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ClientMetadata_Browser& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ClientMetadata.Browser)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string machine_user = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_machine_user();
|
|
target = stream->WriteStringMaybeAliased(4, _s, target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ClientMetadata.Browser)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ClientMetadata_Browser::ByteSizeLong(const MessageLite& base) {
|
|
const ClientMetadata_Browser& this_ = static_cast<const ClientMetadata_Browser&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ClientMetadata_Browser::ByteSizeLong() const {
|
|
const ClientMetadata_Browser& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ClientMetadata.Browser)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
{
|
|
// optional string machine_user = 4;
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_machine_user());
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ClientMetadata_Browser::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ClientMetadata_Browser*>(&to_msg);
|
|
auto& from = static_cast<const ClientMetadata_Browser&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ClientMetadata.Browser)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_set_machine_user(from._internal_machine_user());
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ClientMetadata_Browser::CopyFrom(const ClientMetadata_Browser& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ClientMetadata.Browser)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ClientMetadata_Browser::InternalSwap(ClientMetadata_Browser* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
auto* arena = GetArena();
|
|
ABSL_DCHECK_EQ(arena, other->GetArena());
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machine_user_, &other->_impl_.machine_user_, arena);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ClientMetadata::ClientMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ClientMetadata_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ClientMetadata)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ClientMetadata::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ClientMetadata& from_msg)
|
|
: _has_bits_{from._has_bits_} {}
|
|
|
|
ClientMetadata::ClientMetadata(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ClientMetadata& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ClientMetadata_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ClientMetadata* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
::uint32_t cached_has_bits = _impl_._has_bits_[0];
|
|
_impl_.browser_ = (CheckHasBit(cached_has_bits, 0x00000001U))
|
|
? Super_::CopyConstruct(arena, *from._impl_.browser_)
|
|
: nullptr;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ClientMetadata)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ClientMetadata::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
{}
|
|
|
|
inline void ClientMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.browser_ = {};
|
|
}
|
|
ClientMetadata::~ClientMetadata() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ClientMetadata)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ClientMetadata::SharedDtor(MessageLite& self) {
|
|
ClientMetadata& this_ = static_cast<ClientMetadata&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
delete this_._impl_.browser_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ClientMetadata_class_data_ =
|
|
ClientMetadata::InternalGenerateClassData_(ClientMetadata_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ClientMetadata::GetClassData() const {
|
|
return ClientMetadata_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ClientMetadata::GetClassData() const {
|
|
return ClientMetadata_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ClientMetadata::ParseTableT_
|
|
ClientMetadata::_table_ =
|
|
ClientMetadata::InternalGenerateParseTable_(ClientMetadata_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ClientMetadata::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ClientMetadata)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
ABSL_DCHECK(this_._impl_.browser_ != nullptr);
|
|
this_._impl_.browser_->Clear();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ClientMetadata::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ClientMetadata& this_ = static_cast<const ClientMetadata&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ClientMetadata::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ClientMetadata& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ClientMetadata)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .content_analysis.sdk.ClientMetadata.Browser browser = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
1, *this_._impl_.browser_, this_._impl_.browser_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ClientMetadata)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ClientMetadata::ByteSizeLong(const MessageLite& base) {
|
|
const ClientMetadata& this_ = static_cast<const ClientMetadata&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ClientMetadata::ByteSizeLong() const {
|
|
const ClientMetadata& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ClientMetadata)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
{
|
|
// optional .content_analysis.sdk.ClientMetadata.Browser browser = 1;
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.browser_);
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ClientMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ClientMetadata*>(&to_msg);
|
|
auto& from = static_cast<const ClientMetadata&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ClientMetadata)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
ABSL_DCHECK(from._impl_.browser_ != nullptr);
|
|
if (_this->_impl_.browser_ == nullptr) {
|
|
_this->_impl_.browser_ = Super_::CopyConstruct(arena, *from._impl_.browser_);
|
|
} else {
|
|
_this->_impl_.browser_->MergeFrom(*from._impl_.browser_);
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ClientMetadata::CopyFrom(const ClientMetadata& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ClientMetadata)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ClientMetadata::InternalSwap(ClientMetadata* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
swap(_impl_.browser_, other->_impl_.browser_);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ClientDownloadRequest_Resource::ClientDownloadRequest_Resource(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ClientDownloadRequest_Resource_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ClientDownloadRequest.Resource)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ClientDownloadRequest_Resource::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ClientDownloadRequest_Resource& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
url_(arena, from.url_) {}
|
|
|
|
ClientDownloadRequest_Resource::ClientDownloadRequest_Resource(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ClientDownloadRequest_Resource& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ClientDownloadRequest_Resource_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ClientDownloadRequest_Resource* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
_impl_.type_ = from._impl_.type_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ClientDownloadRequest.Resource)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ClientDownloadRequest_Resource::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: url_(arena) {}
|
|
|
|
inline void ClientDownloadRequest_Resource::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.type_ = {};
|
|
}
|
|
ClientDownloadRequest_Resource::~ClientDownloadRequest_Resource() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ClientDownloadRequest.Resource)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ClientDownloadRequest_Resource::SharedDtor(MessageLite& self) {
|
|
ClientDownloadRequest_Resource& this_ = static_cast<ClientDownloadRequest_Resource&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.url_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ClientDownloadRequest_Resource_class_data_ =
|
|
ClientDownloadRequest_Resource::InternalGenerateClassData_(ClientDownloadRequest_Resource_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ClientDownloadRequest_Resource::GetClassData() const {
|
|
return ClientDownloadRequest_Resource_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ClientDownloadRequest_Resource::GetClassData() const {
|
|
return ClientDownloadRequest_Resource_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ClientDownloadRequest_Resource::ParseTableT_
|
|
ClientDownloadRequest_Resource::_table_ =
|
|
ClientDownloadRequest_Resource::InternalGenerateParseTable_(ClientDownloadRequest_Resource_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ClientDownloadRequest_Resource::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ClientDownloadRequest.Resource)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
this_._impl_.url_.ClearNonDefaultToEmpty();
|
|
}
|
|
this_._impl_.type_ = 0;
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ClientDownloadRequest_Resource::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ClientDownloadRequest_Resource& this_ = static_cast<const ClientDownloadRequest_Resource&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ClientDownloadRequest_Resource::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ClientDownloadRequest_Resource& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ClientDownloadRequest.Resource)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// required string url = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_url();
|
|
target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// required .content_analysis.sdk.ClientDownloadRequest.ResourceType type = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_type(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ClientDownloadRequest.Resource)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ClientDownloadRequest_Resource::ByteSizeLong(const MessageLite& base) {
|
|
const ClientDownloadRequest_Resource& this_ = static_cast<const ClientDownloadRequest_Resource&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ClientDownloadRequest_Resource::ByteSizeLong() const {
|
|
const ClientDownloadRequest_Resource& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ClientDownloadRequest.Resource)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
// required string url = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_url());
|
|
}
|
|
// required .content_analysis.sdk.ClientDownloadRequest.ResourceType type = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_type());
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ClientDownloadRequest_Resource*>(&to_msg);
|
|
auto& from = static_cast<const ClientDownloadRequest_Resource&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ClientDownloadRequest.Resource)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_set_url(from._internal_url());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.type_ = from._impl_.type_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::CopyFrom(const ClientDownloadRequest_Resource& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ClientDownloadRequest.Resource)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE bool ClientDownloadRequest_Resource::IsInitializedImpl(
|
|
const MessageLite& msg) {
|
|
auto& this_ = static_cast<const ClientDownloadRequest_Resource&>(msg);
|
|
if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadRequest_Resource::InternalSwap(ClientDownloadRequest_Resource* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
auto* arena = GetArena();
|
|
ABSL_DCHECK_EQ(arena, other->GetArena());
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena);
|
|
swap(_impl_.type_, other->_impl_.type_);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ClientDownloadRequest::ClientDownloadRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ClientDownloadRequest_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ClientDownloadRequest)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ClientDownloadRequest::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ClientDownloadRequest& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
resources_ {
|
|
visibility, ::_pbi::InternalMetadataOffset::Build<
|
|
::content_analysis::sdk::ClientDownloadRequest,
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ClientDownloadRequest, _impl_.resources_)>()
|
|
, arena, from.resources_
|
|
}
|
|
{}
|
|
|
|
ClientDownloadRequest::ClientDownloadRequest(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ClientDownloadRequest& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ClientDownloadRequest_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ClientDownloadRequest* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ClientDownloadRequest)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ClientDownloadRequest::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: resources_ { visibility, ::_pbi::InternalMetadataOffset::Build<
|
|
::content_analysis::sdk::ClientDownloadRequest,
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ClientDownloadRequest, _impl_.resources_)>()
|
|
}
|
|
{}
|
|
|
|
inline void ClientDownloadRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
}
|
|
ClientDownloadRequest::~ClientDownloadRequest() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ClientDownloadRequest)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ClientDownloadRequest::SharedDtor(MessageLite& self) {
|
|
ClientDownloadRequest& this_ = static_cast<ClientDownloadRequest&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ClientDownloadRequest_class_data_ =
|
|
ClientDownloadRequest::InternalGenerateClassData_(ClientDownloadRequest_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ClientDownloadRequest::GetClassData() const {
|
|
return ClientDownloadRequest_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ClientDownloadRequest::GetClassData() const {
|
|
return ClientDownloadRequest_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ClientDownloadRequest::ParseTableT_
|
|
ClientDownloadRequest::_table_ =
|
|
ClientDownloadRequest::InternalGenerateParseTable_(ClientDownloadRequest_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ClientDownloadRequest::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ClientDownloadRequest)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_impl_.resources_.Clear();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ClientDownloadRequest::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ClientDownloadRequest& this_ = static_cast<const ClientDownloadRequest&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ClientDownloadRequest::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ClientDownloadRequest& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ClientDownloadRequest)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// repeated .content_analysis.sdk.ClientDownloadRequest.Resource resources = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_resources_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_resources().Get(i);
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
4, repfield, repfield.GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ClientDownloadRequest)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ClientDownloadRequest::ByteSizeLong(const MessageLite& base) {
|
|
const ClientDownloadRequest& this_ = static_cast<const ClientDownloadRequest&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ClientDownloadRequest::ByteSizeLong() const {
|
|
const ClientDownloadRequest& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ClientDownloadRequest)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
{
|
|
// repeated .content_analysis.sdk.ClientDownloadRequest.Resource resources = 4;
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1UL * this_._internal_resources_size();
|
|
for (const auto& msg : this_._internal_resources()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ClientDownloadRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ClientDownloadRequest*>(&to_msg);
|
|
auto& from = static_cast<const ClientDownloadRequest&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ClientDownloadRequest)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_mutable_resources()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_resources());
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ClientDownloadRequest::CopyFrom(const ClientDownloadRequest& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ClientDownloadRequest)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE bool ClientDownloadRequest::IsInitializedImpl(
|
|
const MessageLite& msg) {
|
|
auto& this_ = static_cast<const ClientDownloadRequest&>(msg);
|
|
if (!::google::protobuf::internal::AllAreInitialized(this_._internal_resources()))
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
void ClientDownloadRequest::InternalSwap(ClientDownloadRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
_impl_.resources_.InternalSwap(&other->_impl_.resources_);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ContentAnalysisRequest_PrintData::ContentAnalysisRequest_PrintData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisRequest_PrintData_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ContentAnalysisRequest.PrintData)
|
|
}
|
|
ContentAnalysisRequest_PrintData::ContentAnalysisRequest_PrintData(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ContentAnalysisRequest_PrintData& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisRequest_PrintData_get_class_data()),
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena),
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
_impl_(from._impl_) {
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisRequest_PrintData::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
{}
|
|
|
|
inline void ContentAnalysisRequest_PrintData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, handle_),
|
|
0,
|
|
offsetof(Impl_, size_) -
|
|
offsetof(Impl_, handle_) +
|
|
sizeof(Impl_::size_));
|
|
}
|
|
ContentAnalysisRequest_PrintData::~ContentAnalysisRequest_PrintData() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ContentAnalysisRequest.PrintData)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ContentAnalysisRequest_PrintData::SharedDtor(MessageLite& self) {
|
|
ContentAnalysisRequest_PrintData& this_ = static_cast<ContentAnalysisRequest_PrintData&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ContentAnalysisRequest_PrintData_class_data_ =
|
|
ContentAnalysisRequest_PrintData::InternalGenerateClassData_(ContentAnalysisRequest_PrintData_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisRequest_PrintData::GetClassData() const {
|
|
return ContentAnalysisRequest_PrintData_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisRequest_PrintData::GetClassData() const {
|
|
return ContentAnalysisRequest_PrintData_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ContentAnalysisRequest_PrintData::ParseTableT_
|
|
ContentAnalysisRequest_PrintData::_table_ =
|
|
ContentAnalysisRequest_PrintData::InternalGenerateParseTable_(ContentAnalysisRequest_PrintData_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ContentAnalysisRequest_PrintData::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ContentAnalysisRequest.PrintData)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
::memset(&this_._impl_.handle_, 0,
|
|
static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&this_._impl_.size_) -
|
|
reinterpret_cast<char*>(&this_._impl_.handle_)) +
|
|
sizeof(_impl_.size_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisRequest_PrintData::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ContentAnalysisRequest_PrintData& this_ = static_cast<const ContentAnalysisRequest_PrintData&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisRequest_PrintData::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ContentAnalysisRequest_PrintData& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ContentAnalysisRequest.PrintData)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional int64 handle = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
|
|
stream, this_._internal_handle(), target);
|
|
}
|
|
|
|
// optional int64 size = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
|
|
stream, this_._internal_size(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ContentAnalysisRequest.PrintData)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ContentAnalysisRequest_PrintData::ByteSizeLong(const MessageLite& base) {
|
|
const ContentAnalysisRequest_PrintData& this_ = static_cast<const ContentAnalysisRequest_PrintData&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ContentAnalysisRequest_PrintData::ByteSizeLong() const {
|
|
const ContentAnalysisRequest_PrintData& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ContentAnalysisRequest.PrintData)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
// optional int64 handle = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_handle());
|
|
}
|
|
// optional int64 size = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_size());
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ContentAnalysisRequest_PrintData::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ContentAnalysisRequest_PrintData*>(&to_msg);
|
|
auto& from = static_cast<const ContentAnalysisRequest_PrintData&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ContentAnalysisRequest.PrintData)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_impl_.handle_ = from._impl_.handle_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.size_ = from._impl_.size_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ContentAnalysisRequest_PrintData::CopyFrom(const ContentAnalysisRequest_PrintData& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ContentAnalysisRequest.PrintData)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ContentAnalysisRequest_PrintData::InternalSwap(ContentAnalysisRequest_PrintData* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest_PrintData, _impl_.size_)
|
|
+ sizeof(ContentAnalysisRequest_PrintData::_impl_.size_)
|
|
- PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest_PrintData, _impl_.handle_)>(
|
|
reinterpret_cast<char*>(&_impl_.handle_),
|
|
reinterpret_cast<char*>(&other->_impl_.handle_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
void ContentAnalysisRequest::set_allocated_print_data(::content_analysis::sdk::ContentAnalysisRequest_PrintData* PROTOBUF_NULLABLE print_data) {
|
|
::google::protobuf::Arena* message_arena = GetArena();
|
|
clear_content_data();
|
|
if (print_data) {
|
|
::google::protobuf::Arena* submessage_arena = print_data->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
print_data = ::google::protobuf::internal::GetOwnedMessage(message_arena, print_data, submessage_arena);
|
|
}
|
|
set_has_print_data();
|
|
_impl_.content_data_.print_data_ = print_data;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:content_analysis.sdk.ContentAnalysisRequest.print_data)
|
|
}
|
|
ContentAnalysisRequest::ContentAnalysisRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisRequest_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ContentAnalysisRequest)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisRequest::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ContentAnalysisRequest& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
tags_ {
|
|
visibility, ::_pbi::InternalMetadataOffset::Build<
|
|
::content_analysis::sdk::ContentAnalysisRequest,
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ContentAnalysisRequest, _impl_.tags_)>()
|
|
, arena, from.tags_
|
|
}
|
|
,
|
|
request_token_(arena, from.request_token_),
|
|
user_action_id_(arena, from.user_action_id_),
|
|
content_data_{},
|
|
_oneof_case_{from._oneof_case_[0]} {}
|
|
|
|
ContentAnalysisRequest::ContentAnalysisRequest(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ContentAnalysisRequest& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisRequest_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ContentAnalysisRequest* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
::uint32_t cached_has_bits = _impl_._has_bits_[0];
|
|
_impl_.request_data_ = (CheckHasBit(cached_has_bits, 0x00000008U))
|
|
? Super_::CopyConstruct(arena, *from._impl_.request_data_)
|
|
: nullptr;
|
|
_impl_.client_metadata_ = (CheckHasBit(cached_has_bits, 0x00000010U))
|
|
? Super_::CopyConstruct(arena, *from._impl_.client_metadata_)
|
|
: nullptr;
|
|
::memcpy(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, analysis_connector_),
|
|
reinterpret_cast<const char*>(&from._impl_) +
|
|
offsetof(Impl_, analysis_connector_),
|
|
offsetof(Impl_, user_action_requests_count_) -
|
|
offsetof(Impl_, analysis_connector_) +
|
|
sizeof(Impl_::user_action_requests_count_));
|
|
switch (content_data_case()) {
|
|
case CONTENT_DATA_NOT_SET:
|
|
break;
|
|
case kTextContent:
|
|
new (&_impl_.content_data_.text_content_) decltype(_impl_.content_data_.text_content_){arena, from._impl_.content_data_.text_content_};
|
|
break;
|
|
case kFilePath:
|
|
new (&_impl_.content_data_.file_path_) decltype(_impl_.content_data_.file_path_){arena, from._impl_.content_data_.file_path_};
|
|
break;
|
|
case kPrintData:
|
|
_impl_.content_data_.print_data_ = Super_::CopyConstruct(arena, *from._impl_.content_data_.print_data_);
|
|
break;
|
|
}
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ContentAnalysisRequest)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisRequest::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: tags_ { visibility, ::_pbi::InternalMetadataOffset::Build<
|
|
::content_analysis::sdk::ContentAnalysisRequest,
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ContentAnalysisRequest, _impl_.tags_)>()
|
|
}
|
|
,
|
|
request_token_(arena),
|
|
user_action_id_(arena),
|
|
content_data_{},
|
|
_oneof_case_{} {}
|
|
|
|
inline void ContentAnalysisRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, request_data_),
|
|
0,
|
|
offsetof(Impl_, user_action_requests_count_) -
|
|
offsetof(Impl_, request_data_) +
|
|
sizeof(Impl_::user_action_requests_count_));
|
|
}
|
|
ContentAnalysisRequest::~ContentAnalysisRequest() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ContentAnalysisRequest)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ContentAnalysisRequest::SharedDtor(MessageLite& self) {
|
|
ContentAnalysisRequest& this_ = static_cast<ContentAnalysisRequest&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.request_token_.Destroy();
|
|
this_._impl_.user_action_id_.Destroy();
|
|
delete this_._impl_.request_data_;
|
|
delete this_._impl_.client_metadata_;
|
|
if (this_.has_content_data()) {
|
|
this_.clear_content_data();
|
|
}
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
void ContentAnalysisRequest::clear_content_data() {
|
|
// @@protoc_insertion_point(one_of_clear_start:content_analysis.sdk.ContentAnalysisRequest)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
switch (content_data_case()) {
|
|
case kTextContent: {
|
|
_impl_.content_data_.text_content_.Destroy();
|
|
break;
|
|
}
|
|
case kFilePath: {
|
|
_impl_.content_data_.file_path_.Destroy();
|
|
break;
|
|
}
|
|
case kPrintData: {
|
|
if (GetArena() == nullptr) {
|
|
delete _impl_.content_data_.print_data_;
|
|
} else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
|
|
if (_impl_.content_data_.print_data_ != nullptr) {
|
|
_impl_.content_data_.print_data_->Clear();
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
case CONTENT_DATA_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
_impl_._oneof_case_[0] = CONTENT_DATA_NOT_SET;
|
|
}
|
|
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ContentAnalysisRequest_class_data_ =
|
|
ContentAnalysisRequest::InternalGenerateClassData_(ContentAnalysisRequest_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisRequest::GetClassData() const {
|
|
return ContentAnalysisRequest_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisRequest::GetClassData() const {
|
|
return ContentAnalysisRequest_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ContentAnalysisRequest::ParseTableT_
|
|
ContentAnalysisRequest::_table_ =
|
|
ContentAnalysisRequest::InternalGenerateParseTable_(ContentAnalysisRequest_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ContentAnalysisRequest::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ContentAnalysisRequest)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_impl_.tags_.Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
this_._impl_.request_token_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
this_._impl_.user_action_id_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
ABSL_DCHECK(this_._impl_.request_data_ != nullptr);
|
|
this_._impl_.request_data_->Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
ABSL_DCHECK(this_._impl_.client_metadata_ != nullptr);
|
|
this_._impl_.client_metadata_->Clear();
|
|
}
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000e0U)) {
|
|
::memset(&this_._impl_.analysis_connector_, 0,
|
|
static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&this_._impl_.expires_at_) -
|
|
reinterpret_cast<char*>(&this_._impl_.analysis_connector_)) +
|
|
sizeof(_impl_.expires_at_));
|
|
}
|
|
this_._impl_.user_action_requests_count_ = ::int64_t{0};
|
|
clear_content_data();
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisRequest::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ContentAnalysisRequest& this_ = static_cast<const ContentAnalysisRequest&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisRequest::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ContentAnalysisRequest& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ContentAnalysisRequest)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string request_token = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_request_token();
|
|
target = stream->WriteStringMaybeAliased(5, _s, target);
|
|
}
|
|
|
|
// optional .content_analysis.sdk.AnalysisConnector analysis_connector = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
9, this_._internal_analysis_connector(), target);
|
|
}
|
|
|
|
// optional .content_analysis.sdk.ContentMetaData request_data = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
10, *this_._impl_.request_data_, this_._impl_.request_data_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// repeated string tags = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
for (int i = 0, n = this_._internal_tags_size(); i < n; ++i) {
|
|
const auto& s = this_._internal_tags().Get(i);
|
|
target = stream->WriteString(11, s, target);
|
|
}
|
|
}
|
|
|
|
// optional .content_analysis.sdk.ClientMetadata client_metadata = 12;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
12, *this_._impl_.client_metadata_, this_._impl_.client_metadata_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
switch (this_.content_data_case()) {
|
|
case kTextContent: {
|
|
const ::std::string& _s = this_._internal_text_content();
|
|
target = stream->WriteStringMaybeAliased(13, _s, target);
|
|
break;
|
|
}
|
|
case kFilePath: {
|
|
const ::std::string& _s = this_._internal_file_path();
|
|
target = stream->WriteStringMaybeAliased(14, _s, target);
|
|
break;
|
|
}
|
|
default:
|
|
break;
|
|
}
|
|
// optional int64 expires_at = 15;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<15>(
|
|
stream, this_._internal_expires_at(), target);
|
|
}
|
|
|
|
// optional string user_action_id = 16;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
const ::std::string& _s = this_._internal_user_action_id();
|
|
target = stream->WriteStringMaybeAliased(16, _s, target);
|
|
}
|
|
|
|
// optional int64 user_action_requests_count = 17;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteInt64ToArray(
|
|
17, this_._internal_user_action_requests_count(), target);
|
|
}
|
|
|
|
// .content_analysis.sdk.ContentAnalysisRequest.PrintData print_data = 18;
|
|
if (this_.content_data_case() == kPrintData) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
18, *this_._impl_.content_data_.print_data_, this_._impl_.content_data_.print_data_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .content_analysis.sdk.ContentAnalysisRequest.Reason reason = 19;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
19, this_._internal_reason(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ContentAnalysisRequest)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ContentAnalysisRequest::ByteSizeLong(const MessageLite& base) {
|
|
const ContentAnalysisRequest& this_ = static_cast<const ContentAnalysisRequest&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ContentAnalysisRequest::ByteSizeLong() const {
|
|
const ContentAnalysisRequest& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ContentAnalysisRequest)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
|
|
// repeated string tags = 11;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size +=
|
|
1 * ::google::protobuf::internal::FromIntSize(this_._internal_tags().size());
|
|
for (int i = 0, n = this_._internal_tags().size(); i < n; ++i) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_tags().Get(i));
|
|
}
|
|
}
|
|
// optional string request_token = 5;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_request_token());
|
|
}
|
|
// optional string user_action_id = 16;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_user_action_id());
|
|
}
|
|
// optional .content_analysis.sdk.ContentMetaData request_data = 10;
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_data_);
|
|
}
|
|
// optional .content_analysis.sdk.ClientMetadata client_metadata = 12;
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.client_metadata_);
|
|
}
|
|
// optional .content_analysis.sdk.AnalysisConnector analysis_connector = 9;
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_analysis_connector());
|
|
}
|
|
// optional .content_analysis.sdk.ContentAnalysisRequest.Reason reason = 19;
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
total_size += 2 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_reason());
|
|
}
|
|
// optional int64 expires_at = 15;
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
|
|
this_._internal_expires_at());
|
|
}
|
|
}
|
|
{
|
|
// optional int64 user_action_requests_count = 17;
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
|
|
this_._internal_user_action_requests_count());
|
|
}
|
|
}
|
|
switch (this_.content_data_case()) {
|
|
// string text_content = 13;
|
|
case kTextContent: {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_text_content());
|
|
break;
|
|
}
|
|
// string file_path = 14;
|
|
case kFilePath: {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_file_path());
|
|
break;
|
|
}
|
|
// .content_analysis.sdk.ContentAnalysisRequest.PrintData print_data = 18;
|
|
case kPrintData: {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.content_data_.print_data_);
|
|
break;
|
|
}
|
|
case CONTENT_DATA_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ContentAnalysisRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ContentAnalysisRequest*>(&to_msg);
|
|
auto& from = static_cast<const ContentAnalysisRequest&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ContentAnalysisRequest)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_mutable_tags()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_tags());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_request_token(from._internal_request_token());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_internal_set_user_action_id(from._internal_user_action_id());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000008U)) {
|
|
ABSL_DCHECK(from._impl_.request_data_ != nullptr);
|
|
if (_this->_impl_.request_data_ == nullptr) {
|
|
_this->_impl_.request_data_ = Super_::CopyConstruct(arena, *from._impl_.request_data_);
|
|
} else {
|
|
_this->_impl_.request_data_->MergeFrom(*from._impl_.request_data_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000010U)) {
|
|
ABSL_DCHECK(from._impl_.client_metadata_ != nullptr);
|
|
if (_this->_impl_.client_metadata_ == nullptr) {
|
|
_this->_impl_.client_metadata_ = Super_::CopyConstruct(arena, *from._impl_.client_metadata_);
|
|
} else {
|
|
_this->_impl_.client_metadata_->MergeFrom(*from._impl_.client_metadata_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000020U)) {
|
|
_this->_impl_.analysis_connector_ = from._impl_.analysis_connector_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000040U)) {
|
|
_this->_impl_.reason_ = from._impl_.reason_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000080U)) {
|
|
_this->_impl_.expires_at_ = from._impl_.expires_at_;
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000100U)) {
|
|
_this->_impl_.user_action_requests_count_ = from._impl_.user_action_requests_count_;
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
if (const uint32_t oneof_from_case =
|
|
from._impl_._oneof_case_[0]) {
|
|
const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
|
|
const bool oneof_needs_init = oneof_to_case != oneof_from_case;
|
|
if (oneof_needs_init) {
|
|
if (oneof_to_case != 0) {
|
|
_this->clear_content_data();
|
|
}
|
|
_this->_impl_._oneof_case_[0] = oneof_from_case;
|
|
}
|
|
|
|
switch (oneof_from_case) {
|
|
case kTextContent: {
|
|
if (oneof_needs_init) {
|
|
_this->_impl_.content_data_.text_content_.InitDefault();
|
|
}
|
|
_this->_impl_.content_data_.text_content_.Set(from._internal_text_content(), arena);
|
|
break;
|
|
}
|
|
case kFilePath: {
|
|
if (oneof_needs_init) {
|
|
_this->_impl_.content_data_.file_path_.InitDefault();
|
|
}
|
|
_this->_impl_.content_data_.file_path_.Set(from._internal_file_path(), arena);
|
|
break;
|
|
}
|
|
case kPrintData: {
|
|
if (oneof_needs_init) {
|
|
_this->_impl_.content_data_.print_data_ = Super_::CopyConstruct(arena, *from._impl_.content_data_.print_data_);
|
|
} else {
|
|
_this->_impl_.content_data_.print_data_->MergeFrom(*from._impl_.content_data_.print_data_);
|
|
}
|
|
break;
|
|
}
|
|
case CONTENT_DATA_NOT_SET:
|
|
break;
|
|
}
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ContentAnalysisRequest::CopyFrom(const ContentAnalysisRequest& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ContentAnalysisRequest)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE bool ContentAnalysisRequest::IsInitializedImpl(
|
|
const MessageLite& msg) {
|
|
auto& this_ = static_cast<const ContentAnalysisRequest&>(msg);
|
|
if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000008U)) {
|
|
if (!this_._impl_.request_data_->IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void ContentAnalysisRequest::InternalSwap(ContentAnalysisRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
auto* arena = GetArena();
|
|
ABSL_DCHECK_EQ(arena, other->GetArena());
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
_impl_.tags_.InternalSwap(&other->_impl_.tags_);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.request_token_, &other->_impl_.request_token_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_action_id_, &other->_impl_.user_action_id_, arena);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.user_action_requests_count_)
|
|
+ sizeof(ContentAnalysisRequest::_impl_.user_action_requests_count_)
|
|
- PROTOBUF_FIELD_OFFSET(ContentAnalysisRequest, _impl_.request_data_)>(
|
|
reinterpret_cast<char*>(&_impl_.request_data_),
|
|
reinterpret_cast<char*>(&other->_impl_.request_data_));
|
|
swap(_impl_.content_data_, other->_impl_.content_data_);
|
|
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ContentAnalysisResponse_Result_TriggeredRule::ContentAnalysisResponse_Result_TriggeredRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisResponse_Result_TriggeredRule_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisResponse_Result_TriggeredRule::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ContentAnalysisResponse_Result_TriggeredRule& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
rule_name_(arena, from.rule_name_),
|
|
rule_id_(arena, from.rule_id_) {}
|
|
|
|
ContentAnalysisResponse_Result_TriggeredRule::ContentAnalysisResponse_Result_TriggeredRule(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ContentAnalysisResponse_Result_TriggeredRule& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisResponse_Result_TriggeredRule_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ContentAnalysisResponse_Result_TriggeredRule* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
_impl_.action_ = from._impl_.action_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisResponse_Result_TriggeredRule::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: rule_name_(arena),
|
|
rule_id_(arena) {}
|
|
|
|
inline void ContentAnalysisResponse_Result_TriggeredRule::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.action_ = {};
|
|
}
|
|
ContentAnalysisResponse_Result_TriggeredRule::~ContentAnalysisResponse_Result_TriggeredRule() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ContentAnalysisResponse_Result_TriggeredRule::SharedDtor(MessageLite& self) {
|
|
ContentAnalysisResponse_Result_TriggeredRule& this_ = static_cast<ContentAnalysisResponse_Result_TriggeredRule&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.rule_name_.Destroy();
|
|
this_._impl_.rule_id_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ContentAnalysisResponse_Result_TriggeredRule_class_data_ =
|
|
ContentAnalysisResponse_Result_TriggeredRule::InternalGenerateClassData_(ContentAnalysisResponse_Result_TriggeredRule_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisResponse_Result_TriggeredRule::GetClassData() const {
|
|
return ContentAnalysisResponse_Result_TriggeredRule_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisResponse_Result_TriggeredRule::GetClassData() const {
|
|
return ContentAnalysisResponse_Result_TriggeredRule_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ContentAnalysisResponse_Result_TriggeredRule::ParseTableT_
|
|
ContentAnalysisResponse_Result_TriggeredRule::_table_ =
|
|
ContentAnalysisResponse_Result_TriggeredRule::InternalGenerateParseTable_(ContentAnalysisResponse_Result_TriggeredRule_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ContentAnalysisResponse_Result_TriggeredRule::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
this_._impl_.rule_name_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
this_._impl_.rule_id_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
this_._impl_.action_ = 0;
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisResponse_Result_TriggeredRule::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ContentAnalysisResponse_Result_TriggeredRule& this_ = static_cast<const ContentAnalysisResponse_Result_TriggeredRule&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisResponse_Result_TriggeredRule::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ContentAnalysisResponse_Result_TriggeredRule& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule.Action action = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this_._internal_action(), target);
|
|
}
|
|
|
|
// optional string rule_name = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_rule_name();
|
|
target = stream->WriteStringMaybeAliased(2, _s, target);
|
|
}
|
|
|
|
// optional string rule_id = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_rule_id();
|
|
target = stream->WriteStringMaybeAliased(3, _s, target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ContentAnalysisResponse_Result_TriggeredRule::ByteSizeLong(const MessageLite& base) {
|
|
const ContentAnalysisResponse_Result_TriggeredRule& this_ = static_cast<const ContentAnalysisResponse_Result_TriggeredRule&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ContentAnalysisResponse_Result_TriggeredRule::ByteSizeLong() const {
|
|
const ContentAnalysisResponse_Result_TriggeredRule& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
|
|
// optional string rule_name = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_rule_name());
|
|
}
|
|
// optional string rule_id = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_rule_id());
|
|
}
|
|
// optional .content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule.Action action = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_action());
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ContentAnalysisResponse_Result_TriggeredRule::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ContentAnalysisResponse_Result_TriggeredRule*>(&to_msg);
|
|
auto& from = static_cast<const ContentAnalysisResponse_Result_TriggeredRule&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_set_rule_name(from._internal_rule_name());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_rule_id(from._internal_rule_id());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.action_ = from._impl_.action_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ContentAnalysisResponse_Result_TriggeredRule::CopyFrom(const ContentAnalysisResponse_Result_TriggeredRule& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ContentAnalysisResponse_Result_TriggeredRule::InternalSwap(ContentAnalysisResponse_Result_TriggeredRule* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
auto* arena = GetArena();
|
|
ABSL_DCHECK_EQ(arena, other->GetArena());
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rule_name_, &other->_impl_.rule_name_, arena);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rule_id_, &other->_impl_.rule_id_, arena);
|
|
swap(_impl_.action_, other->_impl_.action_);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ContentAnalysisResponse_Result::ContentAnalysisResponse_Result(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisResponse_Result_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ContentAnalysisResponse.Result)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisResponse_Result::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ContentAnalysisResponse_Result& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
triggered_rules_ {
|
|
visibility, ::_pbi::InternalMetadataOffset::Build<
|
|
::content_analysis::sdk::ContentAnalysisResponse_Result,
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ContentAnalysisResponse_Result, _impl_.triggered_rules_)>()
|
|
, arena, from.triggered_rules_
|
|
}
|
|
,
|
|
tag_(arena, from.tag_) {}
|
|
|
|
ContentAnalysisResponse_Result::ContentAnalysisResponse_Result(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ContentAnalysisResponse_Result& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisResponse_Result_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ContentAnalysisResponse_Result* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
_impl_.status_ = from._impl_.status_;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ContentAnalysisResponse.Result)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisResponse_Result::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: triggered_rules_ { visibility, ::_pbi::InternalMetadataOffset::Build<
|
|
::content_analysis::sdk::ContentAnalysisResponse_Result,
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ContentAnalysisResponse_Result, _impl_.triggered_rules_)>()
|
|
}
|
|
,
|
|
tag_(arena) {}
|
|
|
|
inline void ContentAnalysisResponse_Result::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.status_ = {};
|
|
}
|
|
ContentAnalysisResponse_Result::~ContentAnalysisResponse_Result() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ContentAnalysisResponse.Result)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ContentAnalysisResponse_Result::SharedDtor(MessageLite& self) {
|
|
ContentAnalysisResponse_Result& this_ = static_cast<ContentAnalysisResponse_Result&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.tag_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ContentAnalysisResponse_Result_class_data_ =
|
|
ContentAnalysisResponse_Result::InternalGenerateClassData_(ContentAnalysisResponse_Result_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisResponse_Result::GetClassData() const {
|
|
return ContentAnalysisResponse_Result_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisResponse_Result::GetClassData() const {
|
|
return ContentAnalysisResponse_Result_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ContentAnalysisResponse_Result::ParseTableT_
|
|
ContentAnalysisResponse_Result::_table_ =
|
|
ContentAnalysisResponse_Result::InternalGenerateParseTable_(ContentAnalysisResponse_Result_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ContentAnalysisResponse_Result::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ContentAnalysisResponse.Result)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_impl_.triggered_rules_.Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
this_._impl_.tag_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
this_._impl_.status_ = 0;
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisResponse_Result::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ContentAnalysisResponse_Result& this_ = static_cast<const ContentAnalysisResponse_Result&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisResponse_Result::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ContentAnalysisResponse_Result& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ContentAnalysisResponse.Result)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string tag = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_tag();
|
|
target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// optional .content_analysis.sdk.ContentAnalysisResponse.Result.Status status = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_status(), target);
|
|
}
|
|
|
|
// repeated .content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule triggered_rules = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_triggered_rules_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_triggered_rules().Get(i);
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
3, repfield, repfield.GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ContentAnalysisResponse.Result)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ContentAnalysisResponse_Result::ByteSizeLong(const MessageLite& base) {
|
|
const ContentAnalysisResponse_Result& this_ = static_cast<const ContentAnalysisResponse_Result&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ContentAnalysisResponse_Result::ByteSizeLong() const {
|
|
const ContentAnalysisResponse_Result& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ContentAnalysisResponse.Result)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
|
|
// repeated .content_analysis.sdk.ContentAnalysisResponse.Result.TriggeredRule triggered_rules = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1UL * this_._internal_triggered_rules_size();
|
|
for (const auto& msg : this_._internal_triggered_rules()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// optional string tag = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_tag());
|
|
}
|
|
// optional .content_analysis.sdk.ContentAnalysisResponse.Result.Status status = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ContentAnalysisResponse_Result::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ContentAnalysisResponse_Result*>(&to_msg);
|
|
auto& from = static_cast<const ContentAnalysisResponse_Result&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ContentAnalysisResponse.Result)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_mutable_triggered_rules()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_triggered_rules());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_tag(from._internal_tag());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.status_ = from._impl_.status_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ContentAnalysisResponse_Result::CopyFrom(const ContentAnalysisResponse_Result& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ContentAnalysisResponse.Result)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ContentAnalysisResponse_Result::InternalSwap(ContentAnalysisResponse_Result* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
auto* arena = GetArena();
|
|
ABSL_DCHECK_EQ(arena, other->GetArena());
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
_impl_.triggered_rules_.InternalSwap(&other->_impl_.triggered_rules_);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tag_, &other->_impl_.tag_, arena);
|
|
swap(_impl_.status_, other->_impl_.status_);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ContentAnalysisResponse::ContentAnalysisResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisResponse_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ContentAnalysisResponse)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisResponse::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ContentAnalysisResponse& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
results_ {
|
|
visibility, ::_pbi::InternalMetadataOffset::Build<
|
|
::content_analysis::sdk::ContentAnalysisResponse,
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ContentAnalysisResponse, _impl_.results_)>()
|
|
, arena, from.results_
|
|
}
|
|
,
|
|
request_token_(arena, from.request_token_) {}
|
|
|
|
ContentAnalysisResponse::ContentAnalysisResponse(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ContentAnalysisResponse& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisResponse_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ContentAnalysisResponse* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ContentAnalysisResponse)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisResponse::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: results_ { visibility, ::_pbi::InternalMetadataOffset::Build<
|
|
::content_analysis::sdk::ContentAnalysisResponse,
|
|
PROTOBUF_FIELD_OFFSET(::content_analysis::sdk::ContentAnalysisResponse, _impl_.results_)>()
|
|
}
|
|
,
|
|
request_token_(arena) {}
|
|
|
|
inline void ContentAnalysisResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
}
|
|
ContentAnalysisResponse::~ContentAnalysisResponse() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ContentAnalysisResponse)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ContentAnalysisResponse::SharedDtor(MessageLite& self) {
|
|
ContentAnalysisResponse& this_ = static_cast<ContentAnalysisResponse&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.request_token_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ContentAnalysisResponse_class_data_ =
|
|
ContentAnalysisResponse::InternalGenerateClassData_(ContentAnalysisResponse_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisResponse::GetClassData() const {
|
|
return ContentAnalysisResponse_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisResponse::GetClassData() const {
|
|
return ContentAnalysisResponse_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ContentAnalysisResponse::ParseTableT_
|
|
ContentAnalysisResponse::_table_ =
|
|
ContentAnalysisResponse::InternalGenerateParseTable_(ContentAnalysisResponse_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ContentAnalysisResponse::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ContentAnalysisResponse)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_impl_.results_.Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
this_._impl_.request_token_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisResponse::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ContentAnalysisResponse& this_ = static_cast<const ContentAnalysisResponse&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisResponse::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ContentAnalysisResponse& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ContentAnalysisResponse)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string request_token = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
const ::std::string& _s = this_._internal_request_token();
|
|
target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// repeated .content_analysis.sdk.ContentAnalysisResponse.Result results = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
for (unsigned i = 0, n = static_cast<unsigned>(
|
|
this_._internal_results_size());
|
|
i < n; i++) {
|
|
const auto& repfield = this_._internal_results().Get(i);
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
4, repfield, repfield.GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ContentAnalysisResponse)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ContentAnalysisResponse::ByteSizeLong(const MessageLite& base) {
|
|
const ContentAnalysisResponse& this_ = static_cast<const ContentAnalysisResponse&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ContentAnalysisResponse::ByteSizeLong() const {
|
|
const ContentAnalysisResponse& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ContentAnalysisResponse)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
// repeated .content_analysis.sdk.ContentAnalysisResponse.Result results = 4;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1UL * this_._internal_results_size();
|
|
for (const auto& msg : this_._internal_results()) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
|
}
|
|
}
|
|
// optional string request_token = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_request_token());
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ContentAnalysisResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ContentAnalysisResponse*>(&to_msg);
|
|
auto& from = static_cast<const ContentAnalysisResponse&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ContentAnalysisResponse)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_mutable_results()->InternalMergeFromWithArena(
|
|
::google::protobuf::MessageLite::internal_visibility(), arena,
|
|
from._internal_results());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_internal_set_request_token(from._internal_request_token());
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ContentAnalysisResponse::CopyFrom(const ContentAnalysisResponse& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ContentAnalysisResponse)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ContentAnalysisResponse::InternalSwap(ContentAnalysisResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
auto* arena = GetArena();
|
|
ABSL_DCHECK_EQ(arena, other->GetArena());
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
_impl_.results_.InternalSwap(&other->_impl_.results_);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.request_token_, &other->_impl_.request_token_, arena);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ContentAnalysisAcknowledgement::ContentAnalysisAcknowledgement(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisAcknowledgement_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ContentAnalysisAcknowledgement)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisAcknowledgement::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ContentAnalysisAcknowledgement& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
request_token_(arena, from.request_token_) {}
|
|
|
|
ContentAnalysisAcknowledgement::ContentAnalysisAcknowledgement(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ContentAnalysisAcknowledgement& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisAcknowledgement_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ContentAnalysisAcknowledgement* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
::memcpy(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, final_action_),
|
|
reinterpret_cast<const char*>(&from._impl_) +
|
|
offsetof(Impl_, final_action_),
|
|
offsetof(Impl_, status_) -
|
|
offsetof(Impl_, final_action_) +
|
|
sizeof(Impl_::status_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ContentAnalysisAcknowledgement)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisAcknowledgement::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: request_token_(arena),
|
|
status_{static_cast< ::content_analysis::sdk::ContentAnalysisAcknowledgement_Status >(1)} {}
|
|
|
|
inline void ContentAnalysisAcknowledgement::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.final_action_ = {};
|
|
}
|
|
ContentAnalysisAcknowledgement::~ContentAnalysisAcknowledgement() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ContentAnalysisAcknowledgement)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ContentAnalysisAcknowledgement::SharedDtor(MessageLite& self) {
|
|
ContentAnalysisAcknowledgement& this_ = static_cast<ContentAnalysisAcknowledgement&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.request_token_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ContentAnalysisAcknowledgement_class_data_ =
|
|
ContentAnalysisAcknowledgement::InternalGenerateClassData_(ContentAnalysisAcknowledgement_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisAcknowledgement::GetClassData() const {
|
|
return ContentAnalysisAcknowledgement_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisAcknowledgement::GetClassData() const {
|
|
return ContentAnalysisAcknowledgement_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ContentAnalysisAcknowledgement::ParseTableT_
|
|
ContentAnalysisAcknowledgement::_table_ =
|
|
ContentAnalysisAcknowledgement::InternalGenerateParseTable_(ContentAnalysisAcknowledgement_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ContentAnalysisAcknowledgement::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ContentAnalysisAcknowledgement)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
this_._impl_.request_token_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
|
|
this_._impl_.final_action_ = 0;
|
|
this_._impl_.status_ = 1;
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisAcknowledgement::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ContentAnalysisAcknowledgement& this_ = static_cast<const ContentAnalysisAcknowledgement&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisAcknowledgement::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ContentAnalysisAcknowledgement& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ContentAnalysisAcknowledgement)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string request_token = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_request_token();
|
|
target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
// optional .content_analysis.sdk.ContentAnalysisAcknowledgement.Status status = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
2, this_._internal_status(), target);
|
|
}
|
|
|
|
// optional .content_analysis.sdk.ContentAnalysisAcknowledgement.FinalAction final_action = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
3, this_._internal_final_action(), target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ContentAnalysisAcknowledgement)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ContentAnalysisAcknowledgement::ByteSizeLong(const MessageLite& base) {
|
|
const ContentAnalysisAcknowledgement& this_ = static_cast<const ContentAnalysisAcknowledgement&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ContentAnalysisAcknowledgement::ByteSizeLong() const {
|
|
const ContentAnalysisAcknowledgement& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ContentAnalysisAcknowledgement)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
|
|
// optional string request_token = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_request_token());
|
|
}
|
|
// optional .content_analysis.sdk.ContentAnalysisAcknowledgement.FinalAction final_action = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_final_action());
|
|
}
|
|
// optional .content_analysis.sdk.ContentAnalysisAcknowledgement.Status status = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this_._internal_status());
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ContentAnalysisAcknowledgement::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ContentAnalysisAcknowledgement*>(&to_msg);
|
|
auto& from = static_cast<const ContentAnalysisAcknowledgement&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ContentAnalysisAcknowledgement)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_set_request_token(from._internal_request_token());
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
_this->_impl_.final_action_ = from._impl_.final_action_;
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
_this->_impl_.status_ = from._impl_.status_;
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ContentAnalysisAcknowledgement::CopyFrom(const ContentAnalysisAcknowledgement& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ContentAnalysisAcknowledgement)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ContentAnalysisAcknowledgement::InternalSwap(ContentAnalysisAcknowledgement* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
auto* arena = GetArena();
|
|
ABSL_DCHECK_EQ(arena, other->GetArena());
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.request_token_, &other->_impl_.request_token_, arena);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ContentAnalysisAcknowledgement, _impl_.status_)
|
|
+ sizeof(ContentAnalysisAcknowledgement::_impl_.status_)
|
|
- PROTOBUF_FIELD_OFFSET(ContentAnalysisAcknowledgement, _impl_.final_action_)>(
|
|
reinterpret_cast<char*>(&_impl_.final_action_),
|
|
reinterpret_cast<char*>(&other->_impl_.final_action_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ContentAnalysisCancelRequests::ContentAnalysisCancelRequests(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisCancelRequests_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ContentAnalysisCancelRequests)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisCancelRequests::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ContentAnalysisCancelRequests& from_msg)
|
|
: _has_bits_{from._has_bits_},
|
|
user_action_id_(arena, from.user_action_id_) {}
|
|
|
|
ContentAnalysisCancelRequests::ContentAnalysisCancelRequests(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ContentAnalysisCancelRequests& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ContentAnalysisCancelRequests_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ContentAnalysisCancelRequests* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ContentAnalysisCancelRequests)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ContentAnalysisCancelRequests::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
: user_action_id_(arena) {}
|
|
|
|
inline void ContentAnalysisCancelRequests::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
}
|
|
ContentAnalysisCancelRequests::~ContentAnalysisCancelRequests() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ContentAnalysisCancelRequests)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ContentAnalysisCancelRequests::SharedDtor(MessageLite& self) {
|
|
ContentAnalysisCancelRequests& this_ = static_cast<ContentAnalysisCancelRequests&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
this_._impl_.user_action_id_.Destroy();
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ContentAnalysisCancelRequests_class_data_ =
|
|
ContentAnalysisCancelRequests::InternalGenerateClassData_(ContentAnalysisCancelRequests_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisCancelRequests::GetClassData() const {
|
|
return ContentAnalysisCancelRequests_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ContentAnalysisCancelRequests::GetClassData() const {
|
|
return ContentAnalysisCancelRequests_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ContentAnalysisCancelRequests::ParseTableT_
|
|
ContentAnalysisCancelRequests::_table_ =
|
|
ContentAnalysisCancelRequests::InternalGenerateParseTable_(ContentAnalysisCancelRequests_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ContentAnalysisCancelRequests::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ContentAnalysisCancelRequests)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
this_._impl_.user_action_id_.ClearNonDefaultToEmpty();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisCancelRequests::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ContentAnalysisCancelRequests& this_ = static_cast<const ContentAnalysisCancelRequests&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ContentAnalysisCancelRequests::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ContentAnalysisCancelRequests& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ContentAnalysisCancelRequests)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional string user_action_id = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
const ::std::string& _s = this_._internal_user_action_id();
|
|
target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ContentAnalysisCancelRequests)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ContentAnalysisCancelRequests::ByteSizeLong(const MessageLite& base) {
|
|
const ContentAnalysisCancelRequests& this_ = static_cast<const ContentAnalysisCancelRequests&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ContentAnalysisCancelRequests::ByteSizeLong() const {
|
|
const ContentAnalysisCancelRequests& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ContentAnalysisCancelRequests)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
{
|
|
// optional string user_action_id = 1;
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this_._internal_user_action_id());
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ContentAnalysisCancelRequests::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ContentAnalysisCancelRequests*>(&to_msg);
|
|
auto& from = static_cast<const ContentAnalysisCancelRequests&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ContentAnalysisCancelRequests)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
_this->_internal_set_user_action_id(from._internal_user_action_id());
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ContentAnalysisCancelRequests::CopyFrom(const ContentAnalysisCancelRequests& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ContentAnalysisCancelRequests)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void ContentAnalysisCancelRequests::InternalSwap(ContentAnalysisCancelRequests* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
auto* arena = GetArena();
|
|
ABSL_DCHECK_EQ(arena, other->GetArena());
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_action_id_, &other->_impl_.user_action_id_, arena);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
ChromeToAgent::ChromeToAgent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ChromeToAgent_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.ChromeToAgent)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ChromeToAgent::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::ChromeToAgent& from_msg)
|
|
: _has_bits_{from._has_bits_} {}
|
|
|
|
ChromeToAgent::ChromeToAgent(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const ChromeToAgent& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, ChromeToAgent_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
ChromeToAgent* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
::uint32_t cached_has_bits = _impl_._has_bits_[0];
|
|
_impl_.request_ = (CheckHasBit(cached_has_bits, 0x00000001U))
|
|
? Super_::CopyConstruct(arena, *from._impl_.request_)
|
|
: nullptr;
|
|
_impl_.ack_ = (CheckHasBit(cached_has_bits, 0x00000002U))
|
|
? Super_::CopyConstruct(arena, *from._impl_.ack_)
|
|
: nullptr;
|
|
_impl_.cancel_ = (CheckHasBit(cached_has_bits, 0x00000004U))
|
|
? Super_::CopyConstruct(arena, *from._impl_.cancel_)
|
|
: nullptr;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.ChromeToAgent)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE ChromeToAgent::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
{}
|
|
|
|
inline void ChromeToAgent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
::memset(reinterpret_cast<char*>(&_impl_) +
|
|
offsetof(Impl_, request_),
|
|
0,
|
|
offsetof(Impl_, cancel_) -
|
|
offsetof(Impl_, request_) +
|
|
sizeof(Impl_::cancel_));
|
|
}
|
|
ChromeToAgent::~ChromeToAgent() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.ChromeToAgent)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void ChromeToAgent::SharedDtor(MessageLite& self) {
|
|
ChromeToAgent& this_ = static_cast<ChromeToAgent&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
delete this_._impl_.request_;
|
|
delete this_._impl_.ack_;
|
|
delete this_._impl_.cancel_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite ChromeToAgent_class_data_ =
|
|
ChromeToAgent::InternalGenerateClassData_(ChromeToAgent_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ChromeToAgent::GetClassData() const {
|
|
return ChromeToAgent_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
ChromeToAgent::GetClassData() const {
|
|
return ChromeToAgent_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ChromeToAgent::ParseTableT_
|
|
ChromeToAgent::_table_ =
|
|
ChromeToAgent::InternalGenerateParseTable_(ChromeToAgent_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void ChromeToAgent::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.ChromeToAgent)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
ABSL_DCHECK(this_._impl_.request_ != nullptr);
|
|
this_._impl_.request_->Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
ABSL_DCHECK(this_._impl_.ack_ != nullptr);
|
|
this_._impl_.ack_->Clear();
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
ABSL_DCHECK(this_._impl_.cancel_ != nullptr);
|
|
this_._impl_.cancel_->Clear();
|
|
}
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL ChromeToAgent::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const ChromeToAgent& this_ = static_cast<const ChromeToAgent&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL ChromeToAgent::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const ChromeToAgent& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.ChromeToAgent)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .content_analysis.sdk.ContentAnalysisRequest request = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
1, *this_._impl_.request_, this_._impl_.request_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .content_analysis.sdk.ContentAnalysisAcknowledgement ack = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
2, *this_._impl_.ack_, this_._impl_.ack_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
// optional .content_analysis.sdk.ContentAnalysisCancelRequests cancel = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
3, *this_._impl_.cancel_, this_._impl_.cancel_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.ChromeToAgent)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t ChromeToAgent::ByteSizeLong(const MessageLite& base) {
|
|
const ChromeToAgent& this_ = static_cast<const ChromeToAgent&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t ChromeToAgent::ByteSizeLong() const {
|
|
const ChromeToAgent& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.ChromeToAgent)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
::_pbi::Prefetch5LinesFrom7Lines(&this_);
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
|
|
// optional .content_analysis.sdk.ContentAnalysisRequest request = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_);
|
|
}
|
|
// optional .content_analysis.sdk.ContentAnalysisAcknowledgement ack = 2;
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.ack_);
|
|
}
|
|
// optional .content_analysis.sdk.ContentAnalysisCancelRequests cancel = 3;
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.cancel_);
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void ChromeToAgent::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<ChromeToAgent*>(&to_msg);
|
|
auto& from = static_cast<const ChromeToAgent&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.ChromeToAgent)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
ABSL_DCHECK(from._impl_.request_ != nullptr);
|
|
if (_this->_impl_.request_ == nullptr) {
|
|
_this->_impl_.request_ = Super_::CopyConstruct(arena, *from._impl_.request_);
|
|
} else {
|
|
_this->_impl_.request_->MergeFrom(*from._impl_.request_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000002U)) {
|
|
ABSL_DCHECK(from._impl_.ack_ != nullptr);
|
|
if (_this->_impl_.ack_ == nullptr) {
|
|
_this->_impl_.ack_ = Super_::CopyConstruct(arena, *from._impl_.ack_);
|
|
} else {
|
|
_this->_impl_.ack_->MergeFrom(*from._impl_.ack_);
|
|
}
|
|
}
|
|
if (CheckHasBit(cached_has_bits, 0x00000004U)) {
|
|
ABSL_DCHECK(from._impl_.cancel_ != nullptr);
|
|
if (_this->_impl_.cancel_ == nullptr) {
|
|
_this->_impl_.cancel_ = Super_::CopyConstruct(arena, *from._impl_.cancel_);
|
|
} else {
|
|
_this->_impl_.cancel_->MergeFrom(*from._impl_.cancel_);
|
|
}
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void ChromeToAgent::CopyFrom(const ChromeToAgent& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.ChromeToAgent)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
PROTOBUF_NOINLINE bool ChromeToAgent::IsInitializedImpl(
|
|
const MessageLite& msg) {
|
|
auto& this_ = static_cast<const ChromeToAgent&>(msg);
|
|
if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000001U)) {
|
|
if (!this_._impl_.request_->IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void ChromeToAgent::InternalSwap(ChromeToAgent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
::google::protobuf::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(ChromeToAgent, _impl_.cancel_)
|
|
+ sizeof(ChromeToAgent::_impl_.cancel_)
|
|
- PROTOBUF_FIELD_OFFSET(ChromeToAgent, _impl_.request_)>(
|
|
reinterpret_cast<char*>(&_impl_.request_),
|
|
reinterpret_cast<char*>(&other->_impl_.request_));
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
AgentToChrome::AgentToChrome(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, AgentToChrome_get_class_data()) {
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
SharedCtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:content_analysis.sdk.AgentToChrome)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE AgentToChrome::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
|
|
[[maybe_unused]] const ::content_analysis::sdk::AgentToChrome& from_msg)
|
|
: _has_bits_{from._has_bits_} {}
|
|
|
|
AgentToChrome::AgentToChrome(
|
|
::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
|
|
const AgentToChrome& from)
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
: Super_(arena, AgentToChrome_get_class_data()) {
|
|
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
: Super_(arena) {
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
AgentToChrome* const _this = this;
|
|
(void)_this;
|
|
_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
|
|
::uint32_t cached_has_bits = _impl_._has_bits_[0];
|
|
_impl_.response_ = (CheckHasBit(cached_has_bits, 0x00000001U))
|
|
? Super_::CopyConstruct(arena, *from._impl_.response_)
|
|
: nullptr;
|
|
|
|
// @@protoc_insertion_point(copy_constructor:content_analysis.sdk.AgentToChrome)
|
|
}
|
|
PROTOBUF_NDEBUG_INLINE AgentToChrome::Impl_::Impl_(
|
|
[[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
|
|
[[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
|
|
{}
|
|
|
|
inline void AgentToChrome::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
|
|
new (&_impl_) Impl_(internal_visibility(), arena);
|
|
_impl_.response_ = {};
|
|
}
|
|
AgentToChrome::~AgentToChrome() {
|
|
// @@protoc_insertion_point(destructor:content_analysis.sdk.AgentToChrome)
|
|
SharedDtor(*this);
|
|
}
|
|
inline void AgentToChrome::SharedDtor(MessageLite& self) {
|
|
AgentToChrome& this_ = static_cast<AgentToChrome&>(self);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
this_._internal_metadata_.Delete<::std::string>();
|
|
ABSL_DCHECK(this_.GetArena() == nullptr);
|
|
delete this_._impl_.response_;
|
|
this_._impl_.~Impl_();
|
|
}
|
|
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
|
const ::google::protobuf::internal::ClassDataLite AgentToChrome_class_data_ =
|
|
AgentToChrome::InternalGenerateClassData_(AgentToChrome_globals_._default);
|
|
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
AgentToChrome::GetClassData() const {
|
|
return AgentToChrome_class_data_.base();
|
|
}
|
|
#else
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
|
|
AgentToChrome::GetClassData() const {
|
|
return AgentToChrome_globals_.GetClassData();
|
|
}
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
#ifndef PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_CONSTINIT
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const AgentToChrome::ParseTableT_
|
|
AgentToChrome::_table_ =
|
|
AgentToChrome::InternalGenerateParseTable_(AgentToChrome_class_data_.base());
|
|
#endif // !PROTOBUF_MESSAGE_GLOBALS
|
|
PROTOBUF_NOINLINE void AgentToChrome::Clear() {
|
|
auto& this_ [[maybe_unused]] = *this;
|
|
// @@protoc_insertion_point(message_clear_start:content_analysis.sdk.AgentToChrome)
|
|
::google::protobuf::internal::TSanWrite(&_impl_);
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
ABSL_DCHECK(this_._impl_.response_ != nullptr);
|
|
this_._impl_.response_->Clear();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::std::string>();
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::uint8_t* PROTOBUF_NONNULL AgentToChrome::_InternalSerialize(
|
|
const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
|
|
const AgentToChrome& this_ = static_cast<const AgentToChrome&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::uint8_t* PROTOBUF_NONNULL AgentToChrome::_InternalSerialize(
|
|
::uint8_t* PROTOBUF_NONNULL target,
|
|
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
|
|
const AgentToChrome& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
this_.CheckHasBitConsistency();
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_start:content_analysis.sdk.AgentToChrome)
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
// optional .content_analysis.sdk.ContentAnalysisResponse response = 1;
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
|
|
1, *this_._impl_.response_, this_._impl_.response_->GetCachedSize(), target,
|
|
stream);
|
|
}
|
|
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
target = stream->WriteRaw(
|
|
this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
|
|
static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:content_analysis.sdk.AgentToChrome)
|
|
return target;
|
|
}
|
|
|
|
#if defined(PROTOBUF_CUSTOM_VTABLE)
|
|
::size_t AgentToChrome::ByteSizeLong(const MessageLite& base) {
|
|
const AgentToChrome& this_ = static_cast<const AgentToChrome&>(base);
|
|
#else // PROTOBUF_CUSTOM_VTABLE
|
|
::size_t AgentToChrome::ByteSizeLong() const {
|
|
const AgentToChrome& this_ = *this;
|
|
#endif // PROTOBUF_CUSTOM_VTABLE
|
|
// @@protoc_insertion_point(message_byte_size_start:content_analysis.sdk.AgentToChrome)
|
|
::size_t total_size = 0;
|
|
|
|
::uint32_t cached_has_bits [[maybe_unused]] = 0;
|
|
|
|
{
|
|
// optional .content_analysis.sdk.ContentAnalysisResponse response = 1;
|
|
cached_has_bits = this_._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_);
|
|
}
|
|
}
|
|
if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
|
|
total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
|
|
}
|
|
this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
|
|
return total_size;
|
|
}
|
|
|
|
void AgentToChrome::MergeImpl(::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg) {
|
|
auto* const _this = static_cast<AgentToChrome*>(&to_msg);
|
|
auto& from = static_cast<const AgentToChrome&>(from_msg);
|
|
if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
|
|
from.CheckHasBitConsistency();
|
|
}
|
|
::google::protobuf::Arena* arena = _this->GetArena();
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:content_analysis.sdk.AgentToChrome)
|
|
ABSL_DCHECK_NE(&from, _this);
|
|
::uint32_t cached_has_bits = 0;
|
|
(void)cached_has_bits;
|
|
|
|
cached_has_bits = from._impl_._has_bits_[0];
|
|
if (CheckHasBit(cached_has_bits, 0x00000001U)) {
|
|
ABSL_DCHECK(from._impl_.response_ != nullptr);
|
|
if (_this->_impl_.response_ == nullptr) {
|
|
_this->_impl_.response_ = Super_::CopyConstruct(arena, *from._impl_.response_);
|
|
} else {
|
|
_this->_impl_.response_->MergeFrom(*from._impl_.response_);
|
|
}
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
_this->_internal_metadata_.MergeFrom<::std::string>(
|
|
from._internal_metadata_);
|
|
}
|
|
|
|
void AgentToChrome::CopyFrom(const AgentToChrome& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:content_analysis.sdk.AgentToChrome)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
|
|
void AgentToChrome::InternalSwap(AgentToChrome* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
|
|
using ::std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
swap(_impl_.response_, other->_impl_.response_);
|
|
}
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace sdk
|
|
} // namespace content_analysis
|
|
namespace google {
|
|
namespace protobuf {
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include "google/protobuf/port_undef.inc"
|