Android build for ungoogled-chromium. https://uc.droidware.info
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1186 lines
49 KiB

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: download_file_types.proto
#ifndef PROTOBUF_INCLUDED_download_5ffile_5ftypes_2eproto
#define PROTOBUF_INCLUDED_download_5ffile_5ftypes_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3005000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/message_lite.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_util.h>
// @@protoc_insertion_point(includes)
#define PROTOBUF_INTERNAL_EXPORT_protobuf_download_5ffile_5ftypes_2eproto
namespace protobuf_download_5ffile_5ftypes_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
static const ::google::protobuf::internal::ParseTableField entries[];
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
static const ::google::protobuf::internal::ParseTable schema[3];
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
static const ::google::protobuf::internal::SerializationTable serialization_table[];
static const ::google::protobuf::uint32 offsets[];
};
} // namespace protobuf_download_5ffile_5ftypes_2eproto
namespace safe_browsing {
class DownloadFileType;
class DownloadFileTypeDefaultTypeInternal;
extern DownloadFileTypeDefaultTypeInternal _DownloadFileType_default_instance_;
class DownloadFileTypeConfig;
class DownloadFileTypeConfigDefaultTypeInternal;
extern DownloadFileTypeConfigDefaultTypeInternal _DownloadFileTypeConfig_default_instance_;
class DownloadFileType_PlatformSettings;
class DownloadFileType_PlatformSettingsDefaultTypeInternal;
extern DownloadFileType_PlatformSettingsDefaultTypeInternal _DownloadFileType_PlatformSettings_default_instance_;
} // namespace safe_browsing
namespace google {
namespace protobuf {
template<> ::safe_browsing::DownloadFileType* Arena::CreateMaybeMessage<::safe_browsing::DownloadFileType>(Arena*);
template<> ::safe_browsing::DownloadFileTypeConfig* Arena::CreateMaybeMessage<::safe_browsing::DownloadFileTypeConfig>(Arena*);
template<> ::safe_browsing::DownloadFileType_PlatformSettings* Arena::CreateMaybeMessage<::safe_browsing::DownloadFileType_PlatformSettings>(Arena*);
} // namespace protobuf
} // namespace google
namespace safe_browsing {
enum DownloadFileType_PingSetting {
DownloadFileType_PingSetting_SAMPLED_PING = 0,
DownloadFileType_PingSetting_NO_PING = 1,
DownloadFileType_PingSetting_FULL_PING = 2
};
bool DownloadFileType_PingSetting_IsValid(int value);
const DownloadFileType_PingSetting DownloadFileType_PingSetting_PingSetting_MIN = DownloadFileType_PingSetting_SAMPLED_PING;
const DownloadFileType_PingSetting DownloadFileType_PingSetting_PingSetting_MAX = DownloadFileType_PingSetting_FULL_PING;
const int DownloadFileType_PingSetting_PingSetting_ARRAYSIZE = DownloadFileType_PingSetting_PingSetting_MAX + 1;
enum DownloadFileType_DangerLevel {
DownloadFileType_DangerLevel_NOT_DANGEROUS = 0,
DownloadFileType_DangerLevel_ALLOW_ON_USER_GESTURE = 1,
DownloadFileType_DangerLevel_DANGEROUS = 2
};
bool DownloadFileType_DangerLevel_IsValid(int value);
const DownloadFileType_DangerLevel DownloadFileType_DangerLevel_DangerLevel_MIN = DownloadFileType_DangerLevel_NOT_DANGEROUS;
const DownloadFileType_DangerLevel DownloadFileType_DangerLevel_DangerLevel_MAX = DownloadFileType_DangerLevel_DANGEROUS;
const int DownloadFileType_DangerLevel_DangerLevel_ARRAYSIZE = DownloadFileType_DangerLevel_DangerLevel_MAX + 1;
enum DownloadFileType_AutoOpenHint {
DownloadFileType_AutoOpenHint_DISALLOW_AUTO_OPEN = 0,
DownloadFileType_AutoOpenHint_ALLOW_AUTO_OPEN = 1
};
bool DownloadFileType_AutoOpenHint_IsValid(int value);
const DownloadFileType_AutoOpenHint DownloadFileType_AutoOpenHint_AutoOpenHint_MIN = DownloadFileType_AutoOpenHint_DISALLOW_AUTO_OPEN;
const DownloadFileType_AutoOpenHint DownloadFileType_AutoOpenHint_AutoOpenHint_MAX = DownloadFileType_AutoOpenHint_ALLOW_AUTO_OPEN;
const int DownloadFileType_AutoOpenHint_AutoOpenHint_ARRAYSIZE = DownloadFileType_AutoOpenHint_AutoOpenHint_MAX + 1;
enum DownloadFileType_PlatformType {
DownloadFileType_PlatformType_PLATFORM_ANY = 0,
DownloadFileType_PlatformType_PLATFORM_ANDROID = 1,
DownloadFileType_PlatformType_PLATFORM_CHROME_OS = 2,
DownloadFileType_PlatformType_PLATFORM_LINUX = 3,
DownloadFileType_PlatformType_PLATFORM_MAC = 4,
DownloadFileType_PlatformType_PLATFORM_WINDOWS = 5
};
bool DownloadFileType_PlatformType_IsValid(int value);
const DownloadFileType_PlatformType DownloadFileType_PlatformType_PlatformType_MIN = DownloadFileType_PlatformType_PLATFORM_ANY;
const DownloadFileType_PlatformType DownloadFileType_PlatformType_PlatformType_MAX = DownloadFileType_PlatformType_PLATFORM_WINDOWS;
const int DownloadFileType_PlatformType_PlatformType_ARRAYSIZE = DownloadFileType_PlatformType_PlatformType_MAX + 1;
enum DownloadFileType_InspectionType {
DownloadFileType_InspectionType_NONE = 0,
DownloadFileType_InspectionType_ZIP = 1,
DownloadFileType_InspectionType_RAR = 2,
DownloadFileType_InspectionType_DMG = 3
};
bool DownloadFileType_InspectionType_IsValid(int value);
const DownloadFileType_InspectionType DownloadFileType_InspectionType_InspectionType_MIN = DownloadFileType_InspectionType_NONE;
const DownloadFileType_InspectionType DownloadFileType_InspectionType_InspectionType_MAX = DownloadFileType_InspectionType_DMG;
const int DownloadFileType_InspectionType_InspectionType_ARRAYSIZE = DownloadFileType_InspectionType_InspectionType_MAX + 1;
// ===================================================================
class DownloadFileType_PlatformSettings : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:safe_browsing.DownloadFileType.PlatformSettings) */ {
public:
DownloadFileType_PlatformSettings();
virtual ~DownloadFileType_PlatformSettings();
DownloadFileType_PlatformSettings(const DownloadFileType_PlatformSettings& from);
inline DownloadFileType_PlatformSettings& operator=(const DownloadFileType_PlatformSettings& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
DownloadFileType_PlatformSettings(DownloadFileType_PlatformSettings&& from) noexcept
: DownloadFileType_PlatformSettings() {
*this = ::std::move(from);
}
inline DownloadFileType_PlatformSettings& operator=(DownloadFileType_PlatformSettings&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const DownloadFileType_PlatformSettings& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const DownloadFileType_PlatformSettings* internal_default_instance() {
return reinterpret_cast<const DownloadFileType_PlatformSettings*>(
&_DownloadFileType_PlatformSettings_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
GOOGLE_ATTRIBUTE_NOINLINE void Swap(DownloadFileType_PlatformSettings* other);
friend void swap(DownloadFileType_PlatformSettings& a, DownloadFileType_PlatformSettings& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline DownloadFileType_PlatformSettings* New() const final {
return CreateMaybeMessage<DownloadFileType_PlatformSettings>(NULL);
}
DownloadFileType_PlatformSettings* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<DownloadFileType_PlatformSettings>(arena);
}
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
final;
void CopyFrom(const DownloadFileType_PlatformSettings& from);
void MergeFrom(const DownloadFileType_PlatformSettings& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
void DiscardUnknownFields();
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(DownloadFileType_PlatformSettings* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .safe_browsing.DownloadFileType.PlatformType platform = 1 [default = PLATFORM_ANY];
bool has_platform() const;
void clear_platform();
static const int kPlatformFieldNumber = 1;
::safe_browsing::DownloadFileType_PlatformType platform() const;
void set_platform(::safe_browsing::DownloadFileType_PlatformType value);
// optional .safe_browsing.DownloadFileType.DangerLevel danger_level = 2;
bool has_danger_level() const;
void clear_danger_level();
static const int kDangerLevelFieldNumber = 2;
::safe_browsing::DownloadFileType_DangerLevel danger_level() const;
void set_danger_level(::safe_browsing::DownloadFileType_DangerLevel value);
// optional .safe_browsing.DownloadFileType.AutoOpenHint auto_open_hint = 3;
bool has_auto_open_hint() const;
void clear_auto_open_hint();
static const int kAutoOpenHintFieldNumber = 3;
::safe_browsing::DownloadFileType_AutoOpenHint auto_open_hint() const;
void set_auto_open_hint(::safe_browsing::DownloadFileType_AutoOpenHint value);
// optional uint64 max_file_size_to_analyze = 4 [default = 18446744073709551615];
bool has_max_file_size_to_analyze() const;
void clear_max_file_size_to_analyze();
static const int kMaxFileSizeToAnalyzeFieldNumber = 4;
::google::protobuf::uint64 max_file_size_to_analyze() const;
void set_max_file_size_to_analyze(::google::protobuf::uint64 value);
// @@protoc_insertion_point(class_scope:safe_browsing.DownloadFileType.PlatformSettings)
private:
void set_has_platform();
void clear_has_platform();
void set_has_danger_level();
void clear_has_danger_level();
void set_has_auto_open_hint();
void clear_has_auto_open_hint();
void set_has_max_file_size_to_analyze();
void clear_has_max_file_size_to_analyze();
::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
int platform_;
int danger_level_;
int auto_open_hint_;
::google::protobuf::uint64 max_file_size_to_analyze_;
friend struct ::protobuf_download_5ffile_5ftypes_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class DownloadFileType : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:safe_browsing.DownloadFileType) */ {
public:
DownloadFileType();
virtual ~DownloadFileType();
DownloadFileType(const DownloadFileType& from);
inline DownloadFileType& operator=(const DownloadFileType& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
DownloadFileType(DownloadFileType&& from) noexcept
: DownloadFileType() {
*this = ::std::move(from);
}
inline DownloadFileType& operator=(DownloadFileType&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const DownloadFileType& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const DownloadFileType* internal_default_instance() {
return reinterpret_cast<const DownloadFileType*>(
&_DownloadFileType_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
GOOGLE_ATTRIBUTE_NOINLINE void Swap(DownloadFileType* other);
friend void swap(DownloadFileType& a, DownloadFileType& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline DownloadFileType* New() const final {
return CreateMaybeMessage<DownloadFileType>(NULL);
}
DownloadFileType* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<DownloadFileType>(arena);
}
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
final;
void CopyFrom(const DownloadFileType& from);
void MergeFrom(const DownloadFileType& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
void DiscardUnknownFields();
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(DownloadFileType* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::std::string GetTypeName() const final;
// nested types ----------------------------------------------------
typedef DownloadFileType_PlatformSettings PlatformSettings;
typedef DownloadFileType_PingSetting PingSetting;
static const PingSetting SAMPLED_PING =
DownloadFileType_PingSetting_SAMPLED_PING;
static const PingSetting NO_PING =
DownloadFileType_PingSetting_NO_PING;
static const PingSetting FULL_PING =
DownloadFileType_PingSetting_FULL_PING;
static inline bool PingSetting_IsValid(int value) {
return DownloadFileType_PingSetting_IsValid(value);
}
static const PingSetting PingSetting_MIN =
DownloadFileType_PingSetting_PingSetting_MIN;
static const PingSetting PingSetting_MAX =
DownloadFileType_PingSetting_PingSetting_MAX;
static const int PingSetting_ARRAYSIZE =
DownloadFileType_PingSetting_PingSetting_ARRAYSIZE;
typedef DownloadFileType_DangerLevel DangerLevel;
static const DangerLevel NOT_DANGEROUS =
DownloadFileType_DangerLevel_NOT_DANGEROUS;
static const DangerLevel ALLOW_ON_USER_GESTURE =
DownloadFileType_DangerLevel_ALLOW_ON_USER_GESTURE;
static const DangerLevel DANGEROUS =
DownloadFileType_DangerLevel_DANGEROUS;
static inline bool DangerLevel_IsValid(int value) {
return DownloadFileType_DangerLevel_IsValid(value);
}
static const DangerLevel DangerLevel_MIN =
DownloadFileType_DangerLevel_DangerLevel_MIN;
static const DangerLevel DangerLevel_MAX =
DownloadFileType_DangerLevel_DangerLevel_MAX;
static const int DangerLevel_ARRAYSIZE =
DownloadFileType_DangerLevel_DangerLevel_ARRAYSIZE;
typedef DownloadFileType_AutoOpenHint AutoOpenHint;
static const AutoOpenHint DISALLOW_AUTO_OPEN =
DownloadFileType_AutoOpenHint_DISALLOW_AUTO_OPEN;
static const AutoOpenHint ALLOW_AUTO_OPEN =
DownloadFileType_AutoOpenHint_ALLOW_AUTO_OPEN;
static inline bool AutoOpenHint_IsValid(int value) {
return DownloadFileType_AutoOpenHint_IsValid(value);
}
static const AutoOpenHint AutoOpenHint_MIN =
DownloadFileType_AutoOpenHint_AutoOpenHint_MIN;
static const AutoOpenHint AutoOpenHint_MAX =
DownloadFileType_AutoOpenHint_AutoOpenHint_MAX;
static const int AutoOpenHint_ARRAYSIZE =
DownloadFileType_AutoOpenHint_AutoOpenHint_ARRAYSIZE;
typedef DownloadFileType_PlatformType PlatformType;
static const PlatformType PLATFORM_ANY =
DownloadFileType_PlatformType_PLATFORM_ANY;
static const PlatformType PLATFORM_ANDROID =
DownloadFileType_PlatformType_PLATFORM_ANDROID;
static const PlatformType PLATFORM_CHROME_OS =
DownloadFileType_PlatformType_PLATFORM_CHROME_OS;
static const PlatformType PLATFORM_LINUX =
DownloadFileType_PlatformType_PLATFORM_LINUX;
static const PlatformType PLATFORM_MAC =
DownloadFileType_PlatformType_PLATFORM_MAC;
static const PlatformType PLATFORM_WINDOWS =
DownloadFileType_PlatformType_PLATFORM_WINDOWS;
static inline bool PlatformType_IsValid(int value) {
return DownloadFileType_PlatformType_IsValid(value);
}
static const PlatformType PlatformType_MIN =
DownloadFileType_PlatformType_PlatformType_MIN;
static const PlatformType PlatformType_MAX =
DownloadFileType_PlatformType_PlatformType_MAX;
static const int PlatformType_ARRAYSIZE =
DownloadFileType_PlatformType_PlatformType_ARRAYSIZE;
typedef DownloadFileType_InspectionType InspectionType;
static const InspectionType NONE =
DownloadFileType_InspectionType_NONE;
static const InspectionType ZIP =
DownloadFileType_InspectionType_ZIP;
static const InspectionType RAR =
DownloadFileType_InspectionType_RAR;
static const InspectionType DMG =
DownloadFileType_InspectionType_DMG;
static inline bool InspectionType_IsValid(int value) {
return DownloadFileType_InspectionType_IsValid(value);
}
static const InspectionType InspectionType_MIN =
DownloadFileType_InspectionType_InspectionType_MIN;
static const InspectionType InspectionType_MAX =
DownloadFileType_InspectionType_InspectionType_MAX;
static const int InspectionType_ARRAYSIZE =
DownloadFileType_InspectionType_InspectionType_ARRAYSIZE;
// accessors -------------------------------------------------------
// repeated .safe_browsing.DownloadFileType.PlatformSettings platform_settings = 5;
int platform_settings_size() const;
void clear_platform_settings();
static const int kPlatformSettingsFieldNumber = 5;
::safe_browsing::DownloadFileType_PlatformSettings* mutable_platform_settings(int index);
::google::protobuf::RepeatedPtrField< ::safe_browsing::DownloadFileType_PlatformSettings >*
mutable_platform_settings();
const ::safe_browsing::DownloadFileType_PlatformSettings& platform_settings(int index) const;
::safe_browsing::DownloadFileType_PlatformSettings* add_platform_settings();
const ::google::protobuf::RepeatedPtrField< ::safe_browsing::DownloadFileType_PlatformSettings >&
platform_settings() const;
// optional string extension = 1;
bool has_extension() const;
void clear_extension();
static const int kExtensionFieldNumber = 1;
const ::std::string& extension() const;
void set_extension(const ::std::string& value);
#if LANG_CXX11
void set_extension(::std::string&& value);
#endif
void set_extension(const char* value);
void set_extension(const char* value, size_t size);
::std::string* mutable_extension();
::std::string* release_extension();
void set_allocated_extension(::std::string* extension);
// optional int64 uma_value = 2;
bool has_uma_value() const;
void clear_uma_value();
static const int kUmaValueFieldNumber = 2;
::google::protobuf::int64 uma_value() const;
void set_uma_value(::google::protobuf::int64 value);
// optional bool is_archive = 3 [default = false];
bool has_is_archive() const;
void clear_is_archive();
static const int kIsArchiveFieldNumber = 3;
bool is_archive() const;
void set_is_archive(bool value);
// optional .safe_browsing.DownloadFileType.PingSetting ping_setting = 4;
bool has_ping_setting() const;
void clear_ping_setting();
static const int kPingSettingFieldNumber = 4;
::safe_browsing::DownloadFileType_PingSetting ping_setting() const;
void set_ping_setting(::safe_browsing::DownloadFileType_PingSetting value);
// optional .safe_browsing.DownloadFileType.InspectionType inspection_type = 6;
bool has_inspection_type() const;
void clear_inspection_type();
static const int kInspectionTypeFieldNumber = 6;
::safe_browsing::DownloadFileType_InspectionType inspection_type() const;
void set_inspection_type(::safe_browsing::DownloadFileType_InspectionType value);
// @@protoc_insertion_point(class_scope:safe_browsing.DownloadFileType)
private:
void set_has_extension();
void clear_has_extension();
void set_has_uma_value();
void clear_has_uma_value();
void set_has_is_archive();
void clear_has_is_archive();
void set_has_ping_setting();
void clear_has_ping_setting();
void set_has_inspection_type();
void clear_has_inspection_type();
::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::safe_browsing::DownloadFileType_PlatformSettings > platform_settings_;
::google::protobuf::internal::ArenaStringPtr extension_;
::google::protobuf::int64 uma_value_;
bool is_archive_;
int ping_setting_;
int inspection_type_;
friend struct ::protobuf_download_5ffile_5ftypes_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class DownloadFileTypeConfig : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:safe_browsing.DownloadFileTypeConfig) */ {
public:
DownloadFileTypeConfig();
virtual ~DownloadFileTypeConfig();
DownloadFileTypeConfig(const DownloadFileTypeConfig& from);
inline DownloadFileTypeConfig& operator=(const DownloadFileTypeConfig& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
DownloadFileTypeConfig(DownloadFileTypeConfig&& from) noexcept
: DownloadFileTypeConfig() {
*this = ::std::move(from);
}
inline DownloadFileTypeConfig& operator=(DownloadFileTypeConfig&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const DownloadFileTypeConfig& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const DownloadFileTypeConfig* internal_default_instance() {
return reinterpret_cast<const DownloadFileTypeConfig*>(
&_DownloadFileTypeConfig_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
GOOGLE_ATTRIBUTE_NOINLINE void Swap(DownloadFileTypeConfig* other);
friend void swap(DownloadFileTypeConfig& a, DownloadFileTypeConfig& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline DownloadFileTypeConfig* New() const final {
return CreateMaybeMessage<DownloadFileTypeConfig>(NULL);
}
DownloadFileTypeConfig* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<DownloadFileTypeConfig>(arena);
}
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
final;
void CopyFrom(const DownloadFileTypeConfig& from);
void MergeFrom(const DownloadFileTypeConfig& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
void DiscardUnknownFields();
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(DownloadFileTypeConfig* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .safe_browsing.DownloadFileType file_types = 3;
int file_types_size() const;
void clear_file_types();
static const int kFileTypesFieldNumber = 3;
::safe_browsing::DownloadFileType* mutable_file_types(int index);
::google::protobuf::RepeatedPtrField< ::safe_browsing::DownloadFileType >*
mutable_file_types();
const ::safe_browsing::DownloadFileType& file_types(int index) const;
::safe_browsing::DownloadFileType* add_file_types();
const ::google::protobuf::RepeatedPtrField< ::safe_browsing::DownloadFileType >&
file_types() const;
// optional .safe_browsing.DownloadFileType default_file_type = 4;
bool has_default_file_type() const;
void clear_default_file_type();
static const int kDefaultFileTypeFieldNumber = 4;
private:
const ::safe_browsing::DownloadFileType& _internal_default_file_type() const;
public:
const ::safe_browsing::DownloadFileType& default_file_type() const;
::safe_browsing::DownloadFileType* release_default_file_type();
::safe_browsing::DownloadFileType* mutable_default_file_type();
void set_allocated_default_file_type(::safe_browsing::DownloadFileType* default_file_type);
// optional uint32 version_id = 1;
bool has_version_id() const;
void clear_version_id();
static const int kVersionIdFieldNumber = 1;
::google::protobuf::uint32 version_id() const;
void set_version_id(::google::protobuf::uint32 value);
// optional float sampled_ping_probability = 2;
bool has_sampled_ping_probability() const;
void clear_sampled_ping_probability();
static const int kSampledPingProbabilityFieldNumber = 2;
float sampled_ping_probability() const;
void set_sampled_ping_probability(float value);
// optional uint64 max_archived_binaries_to_report = 5;
bool has_max_archived_binaries_to_report() const;
void clear_max_archived_binaries_to_report();
static const int kMaxArchivedBinariesToReportFieldNumber = 5;
::google::protobuf::uint64 max_archived_binaries_to_report() const;
void set_max_archived_binaries_to_report(::google::protobuf::uint64 value);
// @@protoc_insertion_point(class_scope:safe_browsing.DownloadFileTypeConfig)
private:
void set_has_version_id();
void clear_has_version_id();
void set_has_sampled_ping_probability();
void clear_has_sampled_ping_probability();
void set_has_default_file_type();
void clear_has_default_file_type();
void set_has_max_archived_binaries_to_report();
void clear_has_max_archived_binaries_to_report();
::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::safe_browsing::DownloadFileType > file_types_;
::safe_browsing::DownloadFileType* default_file_type_;
::google::protobuf::uint32 version_id_;
float sampled_ping_probability_;
::google::protobuf::uint64 max_archived_binaries_to_report_;
friend struct ::protobuf_download_5ffile_5ftypes_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// DownloadFileType_PlatformSettings
// optional .safe_browsing.DownloadFileType.PlatformType platform = 1 [default = PLATFORM_ANY];
inline bool DownloadFileType_PlatformSettings::has_platform() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void DownloadFileType_PlatformSettings::set_has_platform() {
_has_bits_[0] |= 0x00000001u;
}
inline void DownloadFileType_PlatformSettings::clear_has_platform() {
_has_bits_[0] &= ~0x00000001u;
}
inline void DownloadFileType_PlatformSettings::clear_platform() {
platform_ = 0;
clear_has_platform();
}
inline ::safe_browsing::DownloadFileType_PlatformType DownloadFileType_PlatformSettings::platform() const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileType.PlatformSettings.platform)
return static_cast< ::safe_browsing::DownloadFileType_PlatformType >(platform_);
}
inline void DownloadFileType_PlatformSettings::set_platform(::safe_browsing::DownloadFileType_PlatformType value) {
assert(::safe_browsing::DownloadFileType_PlatformType_IsValid(value));
set_has_platform();
platform_ = value;
// @@protoc_insertion_point(field_set:safe_browsing.DownloadFileType.PlatformSettings.platform)
}
// optional .safe_browsing.DownloadFileType.DangerLevel danger_level = 2;
inline bool DownloadFileType_PlatformSettings::has_danger_level() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void DownloadFileType_PlatformSettings::set_has_danger_level() {
_has_bits_[0] |= 0x00000002u;
}
inline void DownloadFileType_PlatformSettings::clear_has_danger_level() {
_has_bits_[0] &= ~0x00000002u;
}
inline void DownloadFileType_PlatformSettings::clear_danger_level() {
danger_level_ = 0;
clear_has_danger_level();
}
inline ::safe_browsing::DownloadFileType_DangerLevel DownloadFileType_PlatformSettings::danger_level() const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileType.PlatformSettings.danger_level)
return static_cast< ::safe_browsing::DownloadFileType_DangerLevel >(danger_level_);
}
inline void DownloadFileType_PlatformSettings::set_danger_level(::safe_browsing::DownloadFileType_DangerLevel value) {
assert(::safe_browsing::DownloadFileType_DangerLevel_IsValid(value));
set_has_danger_level();
danger_level_ = value;
// @@protoc_insertion_point(field_set:safe_browsing.DownloadFileType.PlatformSettings.danger_level)
}
// optional .safe_browsing.DownloadFileType.AutoOpenHint auto_open_hint = 3;
inline bool DownloadFileType_PlatformSettings::has_auto_open_hint() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void DownloadFileType_PlatformSettings::set_has_auto_open_hint() {
_has_bits_[0] |= 0x00000004u;
}
inline void DownloadFileType_PlatformSettings::clear_has_auto_open_hint() {
_has_bits_[0] &= ~0x00000004u;
}
inline void DownloadFileType_PlatformSettings::clear_auto_open_hint() {
auto_open_hint_ = 0;
clear_has_auto_open_hint();
}
inline ::safe_browsing::DownloadFileType_AutoOpenHint DownloadFileType_PlatformSettings::auto_open_hint() const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileType.PlatformSettings.auto_open_hint)
return static_cast< ::safe_browsing::DownloadFileType_AutoOpenHint >(auto_open_hint_);
}
inline void DownloadFileType_PlatformSettings::set_auto_open_hint(::safe_browsing::DownloadFileType_AutoOpenHint value) {
assert(::safe_browsing::DownloadFileType_AutoOpenHint_IsValid(value));
set_has_auto_open_hint();
auto_open_hint_ = value;
// @@protoc_insertion_point(field_set:safe_browsing.DownloadFileType.PlatformSettings.auto_open_hint)
}
// optional uint64 max_file_size_to_analyze = 4 [default = 18446744073709551615];
inline bool DownloadFileType_PlatformSettings::has_max_file_size_to_analyze() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void DownloadFileType_PlatformSettings::set_has_max_file_size_to_analyze() {
_has_bits_[0] |= 0x00000008u;
}
inline void DownloadFileType_PlatformSettings::clear_has_max_file_size_to_analyze() {
_has_bits_[0] &= ~0x00000008u;
}
inline void DownloadFileType_PlatformSettings::clear_max_file_size_to_analyze() {
max_file_size_to_analyze_ = GOOGLE_ULONGLONG(18446744073709551615);
clear_has_max_file_size_to_analyze();
}
inline ::google::protobuf::uint64 DownloadFileType_PlatformSettings::max_file_size_to_analyze() const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileType.PlatformSettings.max_file_size_to_analyze)
return max_file_size_to_analyze_;
}
inline void DownloadFileType_PlatformSettings::set_max_file_size_to_analyze(::google::protobuf::uint64 value) {
set_has_max_file_size_to_analyze();
max_file_size_to_analyze_ = value;
// @@protoc_insertion_point(field_set:safe_browsing.DownloadFileType.PlatformSettings.max_file_size_to_analyze)
}
// -------------------------------------------------------------------
// DownloadFileType
// optional string extension = 1;
inline bool DownloadFileType::has_extension() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void DownloadFileType::set_has_extension() {
_has_bits_[0] |= 0x00000001u;
}
inline void DownloadFileType::clear_has_extension() {
_has_bits_[0] &= ~0x00000001u;
}
inline void DownloadFileType::clear_extension() {
extension_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_extension();
}
inline const ::std::string& DownloadFileType::extension() const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileType.extension)
return extension_.GetNoArena();
}
inline void DownloadFileType::set_extension(const ::std::string& value) {
set_has_extension();
extension_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:safe_browsing.DownloadFileType.extension)
}
#if LANG_CXX11
inline void DownloadFileType::set_extension(::std::string&& value) {
set_has_extension();
extension_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:safe_browsing.DownloadFileType.extension)
}
#endif
inline void DownloadFileType::set_extension(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_extension();
extension_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:safe_browsing.DownloadFileType.extension)
}
inline void DownloadFileType::set_extension(const char* value, size_t size) {
set_has_extension();
extension_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:safe_browsing.DownloadFileType.extension)
}
inline ::std::string* DownloadFileType::mutable_extension() {
set_has_extension();
// @@protoc_insertion_point(field_mutable:safe_browsing.DownloadFileType.extension)
return extension_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* DownloadFileType::release_extension() {
// @@protoc_insertion_point(field_release:safe_browsing.DownloadFileType.extension)
if (!has_extension()) {
return NULL;
}
clear_has_extension();
return extension_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void DownloadFileType::set_allocated_extension(::std::string* extension) {
if (extension != NULL) {
set_has_extension();
} else {
clear_has_extension();
}
extension_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extension);
// @@protoc_insertion_point(field_set_allocated:safe_browsing.DownloadFileType.extension)
}
// optional int64 uma_value = 2;
inline bool DownloadFileType::has_uma_value() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void DownloadFileType::set_has_uma_value() {
_has_bits_[0] |= 0x00000002u;
}
inline void DownloadFileType::clear_has_uma_value() {
_has_bits_[0] &= ~0x00000002u;
}
inline void DownloadFileType::clear_uma_value() {
uma_value_ = GOOGLE_LONGLONG(0);
clear_has_uma_value();
}
inline ::google::protobuf::int64 DownloadFileType::uma_value() const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileType.uma_value)
return uma_value_;
}
inline void DownloadFileType::set_uma_value(::google::protobuf::int64 value) {
set_has_uma_value();
uma_value_ = value;
// @@protoc_insertion_point(field_set:safe_browsing.DownloadFileType.uma_value)
}
// optional bool is_archive = 3 [default = false];
inline bool DownloadFileType::has_is_archive() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void DownloadFileType::set_has_is_archive() {
_has_bits_[0] |= 0x00000004u;
}
inline void DownloadFileType::clear_has_is_archive() {
_has_bits_[0] &= ~0x00000004u;
}
inline void DownloadFileType::clear_is_archive() {
is_archive_ = false;
clear_has_is_archive();
}
inline bool DownloadFileType::is_archive() const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileType.is_archive)
return is_archive_;
}
inline void DownloadFileType::set_is_archive(bool value) {
set_has_is_archive();
is_archive_ = value;
// @@protoc_insertion_point(field_set:safe_browsing.DownloadFileType.is_archive)
}
// optional .safe_browsing.DownloadFileType.PingSetting ping_setting = 4;
inline bool DownloadFileType::has_ping_setting() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void DownloadFileType::set_has_ping_setting() {
_has_bits_[0] |= 0x00000008u;
}
inline void DownloadFileType::clear_has_ping_setting() {
_has_bits_[0] &= ~0x00000008u;
}
inline void DownloadFileType::clear_ping_setting() {
ping_setting_ = 0;
clear_has_ping_setting();
}
inline ::safe_browsing::DownloadFileType_PingSetting DownloadFileType::ping_setting() const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileType.ping_setting)
return static_cast< ::safe_browsing::DownloadFileType_PingSetting >(ping_setting_);
}
inline void DownloadFileType::set_ping_setting(::safe_browsing::DownloadFileType_PingSetting value) {
assert(::safe_browsing::DownloadFileType_PingSetting_IsValid(value));
set_has_ping_setting();
ping_setting_ = value;
// @@protoc_insertion_point(field_set:safe_browsing.DownloadFileType.ping_setting)
}
// repeated .safe_browsing.DownloadFileType.PlatformSettings platform_settings = 5;
inline int DownloadFileType::platform_settings_size() const {
return platform_settings_.size();
}
inline void DownloadFileType::clear_platform_settings() {
platform_settings_.Clear();
}
inline ::safe_browsing::DownloadFileType_PlatformSettings* DownloadFileType::mutable_platform_settings(int index) {
// @@protoc_insertion_point(field_mutable:safe_browsing.DownloadFileType.platform_settings)
return platform_settings_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::DownloadFileType_PlatformSettings >*
DownloadFileType::mutable_platform_settings() {
// @@protoc_insertion_point(field_mutable_list:safe_browsing.DownloadFileType.platform_settings)
return &platform_settings_;
}
inline const ::safe_browsing::DownloadFileType_PlatformSettings& DownloadFileType::platform_settings(int index) const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileType.platform_settings)
return platform_settings_.Get(index);
}
inline ::safe_browsing::DownloadFileType_PlatformSettings* DownloadFileType::add_platform_settings() {
// @@protoc_insertion_point(field_add:safe_browsing.DownloadFileType.platform_settings)
return platform_settings_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::DownloadFileType_PlatformSettings >&
DownloadFileType::platform_settings() const {
// @@protoc_insertion_point(field_list:safe_browsing.DownloadFileType.platform_settings)
return platform_settings_;
}
// optional .safe_browsing.DownloadFileType.InspectionType inspection_type = 6;
inline bool DownloadFileType::has_inspection_type() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void DownloadFileType::set_has_inspection_type() {
_has_bits_[0] |= 0x00000010u;
}
inline void DownloadFileType::clear_has_inspection_type() {
_has_bits_[0] &= ~0x00000010u;
}
inline void DownloadFileType::clear_inspection_type() {
inspection_type_ = 0;
clear_has_inspection_type();
}
inline ::safe_browsing::DownloadFileType_InspectionType DownloadFileType::inspection_type() const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileType.inspection_type)
return static_cast< ::safe_browsing::DownloadFileType_InspectionType >(inspection_type_);
}
inline void DownloadFileType::set_inspection_type(::safe_browsing::DownloadFileType_InspectionType value) {
assert(::safe_browsing::DownloadFileType_InspectionType_IsValid(value));
set_has_inspection_type();
inspection_type_ = value;
// @@protoc_insertion_point(field_set:safe_browsing.DownloadFileType.inspection_type)
}
// -------------------------------------------------------------------
// DownloadFileTypeConfig
// optional uint32 version_id = 1;
inline bool DownloadFileTypeConfig::has_version_id() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void DownloadFileTypeConfig::set_has_version_id() {
_has_bits_[0] |= 0x00000002u;
}
inline void DownloadFileTypeConfig::clear_has_version_id() {
_has_bits_[0] &= ~0x00000002u;
}
inline void DownloadFileTypeConfig::clear_version_id() {
version_id_ = 0u;
clear_has_version_id();
}
inline ::google::protobuf::uint32 DownloadFileTypeConfig::version_id() const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileTypeConfig.version_id)
return version_id_;
}
inline void DownloadFileTypeConfig::set_version_id(::google::protobuf::uint32 value) {
set_has_version_id();
version_id_ = value;
// @@protoc_insertion_point(field_set:safe_browsing.DownloadFileTypeConfig.version_id)
}
// optional float sampled_ping_probability = 2;
inline bool DownloadFileTypeConfig::has_sampled_ping_probability() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void DownloadFileTypeConfig::set_has_sampled_ping_probability() {
_has_bits_[0] |= 0x00000004u;
}
inline void DownloadFileTypeConfig::clear_has_sampled_ping_probability() {
_has_bits_[0] &= ~0x00000004u;
}
inline void DownloadFileTypeConfig::clear_sampled_ping_probability() {
sampled_ping_probability_ = 0;
clear_has_sampled_ping_probability();
}
inline float DownloadFileTypeConfig::sampled_ping_probability() const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileTypeConfig.sampled_ping_probability)
return sampled_ping_probability_;
}
inline void DownloadFileTypeConfig::set_sampled_ping_probability(float value) {
set_has_sampled_ping_probability();
sampled_ping_probability_ = value;
// @@protoc_insertion_point(field_set:safe_browsing.DownloadFileTypeConfig.sampled_ping_probability)
}
// repeated .safe_browsing.DownloadFileType file_types = 3;
inline int DownloadFileTypeConfig::file_types_size() const {
return file_types_.size();
}
inline void DownloadFileTypeConfig::clear_file_types() {
file_types_.Clear();
}
inline ::safe_browsing::DownloadFileType* DownloadFileTypeConfig::mutable_file_types(int index) {
// @@protoc_insertion_point(field_mutable:safe_browsing.DownloadFileTypeConfig.file_types)
return file_types_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::DownloadFileType >*
DownloadFileTypeConfig::mutable_file_types() {
// @@protoc_insertion_point(field_mutable_list:safe_browsing.DownloadFileTypeConfig.file_types)
return &file_types_;
}
inline const ::safe_browsing::DownloadFileType& DownloadFileTypeConfig::file_types(int index) const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileTypeConfig.file_types)
return file_types_.Get(index);
}
inline ::safe_browsing::DownloadFileType* DownloadFileTypeConfig::add_file_types() {
// @@protoc_insertion_point(field_add:safe_browsing.DownloadFileTypeConfig.file_types)
return file_types_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::DownloadFileType >&
DownloadFileTypeConfig::file_types() const {
// @@protoc_insertion_point(field_list:safe_browsing.DownloadFileTypeConfig.file_types)
return file_types_;
}
// optional .safe_browsing.DownloadFileType default_file_type = 4;
inline bool DownloadFileTypeConfig::has_default_file_type() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void DownloadFileTypeConfig::set_has_default_file_type() {
_has_bits_[0] |= 0x00000001u;
}
inline void DownloadFileTypeConfig::clear_has_default_file_type() {
_has_bits_[0] &= ~0x00000001u;
}
inline void DownloadFileTypeConfig::clear_default_file_type() {
if (default_file_type_ != NULL) default_file_type_->Clear();
clear_has_default_file_type();
}
inline const ::safe_browsing::DownloadFileType& DownloadFileTypeConfig::_internal_default_file_type() const {
return *default_file_type_;
}
inline const ::safe_browsing::DownloadFileType& DownloadFileTypeConfig::default_file_type() const {
const ::safe_browsing::DownloadFileType* p = default_file_type_;
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileTypeConfig.default_file_type)
return p != NULL ? *p : *reinterpret_cast<const ::safe_browsing::DownloadFileType*>(
&::safe_browsing::_DownloadFileType_default_instance_);
}
inline ::safe_browsing::DownloadFileType* DownloadFileTypeConfig::release_default_file_type() {
// @@protoc_insertion_point(field_release:safe_browsing.DownloadFileTypeConfig.default_file_type)
clear_has_default_file_type();
::safe_browsing::DownloadFileType* temp = default_file_type_;
default_file_type_ = NULL;
return temp;
}
inline ::safe_browsing::DownloadFileType* DownloadFileTypeConfig::mutable_default_file_type() {
set_has_default_file_type();
if (default_file_type_ == NULL) {
auto* p = CreateMaybeMessage<::safe_browsing::DownloadFileType>(GetArenaNoVirtual());
default_file_type_ = p;
}
// @@protoc_insertion_point(field_mutable:safe_browsing.DownloadFileTypeConfig.default_file_type)
return default_file_type_;
}
inline void DownloadFileTypeConfig::set_allocated_default_file_type(::safe_browsing::DownloadFileType* default_file_type) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete default_file_type_;
}
if (default_file_type) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
default_file_type = ::google::protobuf::internal::GetOwnedMessage(
message_arena, default_file_type, submessage_arena);
}
set_has_default_file_type();
} else {
clear_has_default_file_type();
}
default_file_type_ = default_file_type;
// @@protoc_insertion_point(field_set_allocated:safe_browsing.DownloadFileTypeConfig.default_file_type)
}
// optional uint64 max_archived_binaries_to_report = 5;
inline bool DownloadFileTypeConfig::has_max_archived_binaries_to_report() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void DownloadFileTypeConfig::set_has_max_archived_binaries_to_report() {
_has_bits_[0] |= 0x00000008u;
}
inline void DownloadFileTypeConfig::clear_has_max_archived_binaries_to_report() {
_has_bits_[0] &= ~0x00000008u;
}
inline void DownloadFileTypeConfig::clear_max_archived_binaries_to_report() {
max_archived_binaries_to_report_ = GOOGLE_ULONGLONG(0);
clear_has_max_archived_binaries_to_report();
}
inline ::google::protobuf::uint64 DownloadFileTypeConfig::max_archived_binaries_to_report() const {
// @@protoc_insertion_point(field_get:safe_browsing.DownloadFileTypeConfig.max_archived_binaries_to_report)
return max_archived_binaries_to_report_;
}
inline void DownloadFileTypeConfig::set_max_archived_binaries_to_report(::google::protobuf::uint64 value) {
set_has_max_archived_binaries_to_report();
max_archived_binaries_to_report_ = value;
// @@protoc_insertion_point(field_set:safe_browsing.DownloadFileTypeConfig.max_archived_binaries_to_report)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace safe_browsing
namespace google {
namespace protobuf {
template <> struct is_proto_enum< ::safe_browsing::DownloadFileType_PingSetting> : ::std::true_type {};
template <> struct is_proto_enum< ::safe_browsing::DownloadFileType_DangerLevel> : ::std::true_type {};
template <> struct is_proto_enum< ::safe_browsing::DownloadFileType_AutoOpenHint> : ::std::true_type {};
template <> struct is_proto_enum< ::safe_browsing::DownloadFileType_PlatformType> : ::std::true_type {};
template <> struct is_proto_enum< ::safe_browsing::DownloadFileType_InspectionType> : ::std::true_type {};
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_INCLUDED_download_5ffile_5ftypes_2eproto