1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/downloads/csd.pb.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,4077 @@ 1.4 +// Generated by the protocol buffer compiler. DO NOT EDIT! 1.5 +// source: csd.proto 1.6 + 1.7 +#ifndef PROTOBUF_csd_2eproto__INCLUDED 1.8 +#define PROTOBUF_csd_2eproto__INCLUDED 1.9 + 1.10 +#include <string> 1.11 + 1.12 +#include <google/protobuf/stubs/common.h> 1.13 + 1.14 +#if GOOGLE_PROTOBUF_VERSION < 2004000 1.15 +#error This file was generated by a newer version of protoc which is 1.16 +#error incompatible with your Protocol Buffer headers. Please update 1.17 +#error your headers. 1.18 +#endif 1.19 +#if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 1.20 +#error This file was generated by an older version of protoc which is 1.21 +#error incompatible with your Protocol Buffer headers. Please 1.22 +#error regenerate this file with a newer version of protoc. 1.23 +#endif 1.24 + 1.25 +#include <google/protobuf/generated_message_util.h> 1.26 +#include <google/protobuf/repeated_field.h> 1.27 +#include <google/protobuf/extension_set.h> 1.28 +// @@protoc_insertion_point(includes) 1.29 + 1.30 +namespace safe_browsing { 1.31 + 1.32 +// Internal implementation detail -- do not call these. 1.33 +void protobuf_AddDesc_csd_2eproto(); 1.34 +void protobuf_AssignDesc_csd_2eproto(); 1.35 +void protobuf_ShutdownFile_csd_2eproto(); 1.36 + 1.37 +class ClientPhishingRequest; 1.38 +class ClientPhishingRequest_Feature; 1.39 +class ClientPhishingResponse; 1.40 +class ClientMalwareRequest; 1.41 +class ClientMalwareRequest_Feature; 1.42 +class ClientMalwareResponse; 1.43 +class ClientDownloadRequest; 1.44 +class ClientDownloadRequest_Digests; 1.45 +class ClientDownloadRequest_Resource; 1.46 +class ClientDownloadRequest_CertificateChain; 1.47 +class ClientDownloadRequest_CertificateChain_Element; 1.48 +class ClientDownloadRequest_SignatureInfo; 1.49 +class ClientDownloadResponse; 1.50 +class ClientDownloadResponse_MoreInfo; 1.51 +class ClientDownloadReport; 1.52 +class ClientDownloadReport_UserInformation; 1.53 +class ClientUploadResponse; 1.54 + 1.55 +enum ClientDownloadRequest_ResourceType { 1.56 + ClientDownloadRequest_ResourceType_DOWNLOAD_URL = 0, 1.57 + ClientDownloadRequest_ResourceType_DOWNLOAD_REDIRECT = 1, 1.58 + ClientDownloadRequest_ResourceType_TAB_URL = 2, 1.59 + ClientDownloadRequest_ResourceType_TAB_REDIRECT = 3 1.60 +}; 1.61 +bool ClientDownloadRequest_ResourceType_IsValid(int value); 1.62 +const ClientDownloadRequest_ResourceType ClientDownloadRequest_ResourceType_ResourceType_MIN = ClientDownloadRequest_ResourceType_DOWNLOAD_URL; 1.63 +const ClientDownloadRequest_ResourceType ClientDownloadRequest_ResourceType_ResourceType_MAX = ClientDownloadRequest_ResourceType_TAB_REDIRECT; 1.64 +const int ClientDownloadRequest_ResourceType_ResourceType_ARRAYSIZE = ClientDownloadRequest_ResourceType_ResourceType_MAX + 1; 1.65 + 1.66 +enum ClientDownloadRequest_DownloadType { 1.67 + ClientDownloadRequest_DownloadType_WIN_EXECUTABLE = 0, 1.68 + ClientDownloadRequest_DownloadType_CHROME_EXTENSION = 1, 1.69 + ClientDownloadRequest_DownloadType_ANDROID_APK = 2, 1.70 + ClientDownloadRequest_DownloadType_ZIPPED_EXECUTABLE = 3 1.71 +}; 1.72 +bool ClientDownloadRequest_DownloadType_IsValid(int value); 1.73 +const ClientDownloadRequest_DownloadType ClientDownloadRequest_DownloadType_DownloadType_MIN = ClientDownloadRequest_DownloadType_WIN_EXECUTABLE; 1.74 +const ClientDownloadRequest_DownloadType ClientDownloadRequest_DownloadType_DownloadType_MAX = ClientDownloadRequest_DownloadType_ZIPPED_EXECUTABLE; 1.75 +const int ClientDownloadRequest_DownloadType_DownloadType_ARRAYSIZE = ClientDownloadRequest_DownloadType_DownloadType_MAX + 1; 1.76 + 1.77 +enum ClientDownloadResponse_Verdict { 1.78 + ClientDownloadResponse_Verdict_SAFE = 0, 1.79 + ClientDownloadResponse_Verdict_DANGEROUS = 1, 1.80 + ClientDownloadResponse_Verdict_UNCOMMON = 2, 1.81 + ClientDownloadResponse_Verdict_POTENTIALLY_UNWANTED = 3, 1.82 + ClientDownloadResponse_Verdict_DANGEROUS_HOST = 4 1.83 +}; 1.84 +bool ClientDownloadResponse_Verdict_IsValid(int value); 1.85 +const ClientDownloadResponse_Verdict ClientDownloadResponse_Verdict_Verdict_MIN = ClientDownloadResponse_Verdict_SAFE; 1.86 +const ClientDownloadResponse_Verdict ClientDownloadResponse_Verdict_Verdict_MAX = ClientDownloadResponse_Verdict_DANGEROUS_HOST; 1.87 +const int ClientDownloadResponse_Verdict_Verdict_ARRAYSIZE = ClientDownloadResponse_Verdict_Verdict_MAX + 1; 1.88 + 1.89 +enum ClientDownloadReport_Reason { 1.90 + ClientDownloadReport_Reason_SHARE = 0, 1.91 + ClientDownloadReport_Reason_FALSE_POSITIVE = 1, 1.92 + ClientDownloadReport_Reason_APPEAL = 2 1.93 +}; 1.94 +bool ClientDownloadReport_Reason_IsValid(int value); 1.95 +const ClientDownloadReport_Reason ClientDownloadReport_Reason_Reason_MIN = ClientDownloadReport_Reason_SHARE; 1.96 +const ClientDownloadReport_Reason ClientDownloadReport_Reason_Reason_MAX = ClientDownloadReport_Reason_APPEAL; 1.97 +const int ClientDownloadReport_Reason_Reason_ARRAYSIZE = ClientDownloadReport_Reason_Reason_MAX + 1; 1.98 + 1.99 +enum ClientUploadResponse_UploadStatus { 1.100 + ClientUploadResponse_UploadStatus_SUCCESS = 0, 1.101 + ClientUploadResponse_UploadStatus_UPLOAD_FAILURE = 1 1.102 +}; 1.103 +bool ClientUploadResponse_UploadStatus_IsValid(int value); 1.104 +const ClientUploadResponse_UploadStatus ClientUploadResponse_UploadStatus_UploadStatus_MIN = ClientUploadResponse_UploadStatus_SUCCESS; 1.105 +const ClientUploadResponse_UploadStatus ClientUploadResponse_UploadStatus_UploadStatus_MAX = ClientUploadResponse_UploadStatus_UPLOAD_FAILURE; 1.106 +const int ClientUploadResponse_UploadStatus_UploadStatus_ARRAYSIZE = ClientUploadResponse_UploadStatus_UploadStatus_MAX + 1; 1.107 + 1.108 +// =================================================================== 1.109 + 1.110 +class ClientPhishingRequest_Feature : public ::google::protobuf::MessageLite { 1.111 + public: 1.112 + ClientPhishingRequest_Feature(); 1.113 + virtual ~ClientPhishingRequest_Feature(); 1.114 + 1.115 + ClientPhishingRequest_Feature(const ClientPhishingRequest_Feature& from); 1.116 + 1.117 + inline ClientPhishingRequest_Feature& operator=(const ClientPhishingRequest_Feature& from) { 1.118 + CopyFrom(from); 1.119 + return *this; 1.120 + } 1.121 + 1.122 + static const ClientPhishingRequest_Feature& default_instance(); 1.123 + 1.124 + void Swap(ClientPhishingRequest_Feature* other); 1.125 + 1.126 + // implements Message ---------------------------------------------- 1.127 + 1.128 + ClientPhishingRequest_Feature* New() const; 1.129 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.130 + void CopyFrom(const ClientPhishingRequest_Feature& from); 1.131 + void MergeFrom(const ClientPhishingRequest_Feature& from); 1.132 + void Clear(); 1.133 + bool IsInitialized() const; 1.134 + 1.135 + int ByteSize() const; 1.136 + bool MergePartialFromCodedStream( 1.137 + ::google::protobuf::io::CodedInputStream* input); 1.138 + void SerializeWithCachedSizes( 1.139 + ::google::protobuf::io::CodedOutputStream* output) const; 1.140 + int GetCachedSize() const { return _cached_size_; } 1.141 + private: 1.142 + void SharedCtor(); 1.143 + void SharedDtor(); 1.144 + void SetCachedSize(int size) const; 1.145 + public: 1.146 + 1.147 + ::std::string GetTypeName() const; 1.148 + 1.149 + // nested types ---------------------------------------------------- 1.150 + 1.151 + // accessors ------------------------------------------------------- 1.152 + 1.153 + // required string name = 1; 1.154 + inline bool has_name() const; 1.155 + inline void clear_name(); 1.156 + static const int kNameFieldNumber = 1; 1.157 + inline const ::std::string& name() const; 1.158 + inline void set_name(const ::std::string& value); 1.159 + inline void set_name(const char* value); 1.160 + inline void set_name(const char* value, size_t size); 1.161 + inline ::std::string* mutable_name(); 1.162 + inline ::std::string* release_name(); 1.163 + 1.164 + // required double value = 2; 1.165 + inline bool has_value() const; 1.166 + inline void clear_value(); 1.167 + static const int kValueFieldNumber = 2; 1.168 + inline double value() const; 1.169 + inline void set_value(double value); 1.170 + 1.171 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientPhishingRequest.Feature) 1.172 + private: 1.173 + inline void set_has_name(); 1.174 + inline void clear_has_name(); 1.175 + inline void set_has_value(); 1.176 + inline void clear_has_value(); 1.177 + 1.178 + ::std::string* name_; 1.179 + double value_; 1.180 + 1.181 + mutable int _cached_size_; 1.182 + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; 1.183 + 1.184 + friend void protobuf_AddDesc_csd_2eproto(); 1.185 + friend void protobuf_AssignDesc_csd_2eproto(); 1.186 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.187 + 1.188 + void InitAsDefaultInstance(); 1.189 + static ClientPhishingRequest_Feature* default_instance_; 1.190 +}; 1.191 +// ------------------------------------------------------------------- 1.192 + 1.193 +class ClientPhishingRequest : public ::google::protobuf::MessageLite { 1.194 + public: 1.195 + ClientPhishingRequest(); 1.196 + virtual ~ClientPhishingRequest(); 1.197 + 1.198 + ClientPhishingRequest(const ClientPhishingRequest& from); 1.199 + 1.200 + inline ClientPhishingRequest& operator=(const ClientPhishingRequest& from) { 1.201 + CopyFrom(from); 1.202 + return *this; 1.203 + } 1.204 + 1.205 + static const ClientPhishingRequest& default_instance(); 1.206 + 1.207 + void Swap(ClientPhishingRequest* other); 1.208 + 1.209 + // implements Message ---------------------------------------------- 1.210 + 1.211 + ClientPhishingRequest* New() const; 1.212 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.213 + void CopyFrom(const ClientPhishingRequest& from); 1.214 + void MergeFrom(const ClientPhishingRequest& from); 1.215 + void Clear(); 1.216 + bool IsInitialized() const; 1.217 + 1.218 + int ByteSize() const; 1.219 + bool MergePartialFromCodedStream( 1.220 + ::google::protobuf::io::CodedInputStream* input); 1.221 + void SerializeWithCachedSizes( 1.222 + ::google::protobuf::io::CodedOutputStream* output) const; 1.223 + int GetCachedSize() const { return _cached_size_; } 1.224 + private: 1.225 + void SharedCtor(); 1.226 + void SharedDtor(); 1.227 + void SetCachedSize(int size) const; 1.228 + public: 1.229 + 1.230 + ::std::string GetTypeName() const; 1.231 + 1.232 + // nested types ---------------------------------------------------- 1.233 + 1.234 + typedef ClientPhishingRequest_Feature Feature; 1.235 + 1.236 + // accessors ------------------------------------------------------- 1.237 + 1.238 + // optional string url = 1; 1.239 + inline bool has_url() const; 1.240 + inline void clear_url(); 1.241 + static const int kUrlFieldNumber = 1; 1.242 + inline const ::std::string& url() const; 1.243 + inline void set_url(const ::std::string& value); 1.244 + inline void set_url(const char* value); 1.245 + inline void set_url(const char* value, size_t size); 1.246 + inline ::std::string* mutable_url(); 1.247 + inline ::std::string* release_url(); 1.248 + 1.249 + // optional bytes OBSOLETE_hash_prefix = 10; 1.250 + inline bool has_obsolete_hash_prefix() const; 1.251 + inline void clear_obsolete_hash_prefix(); 1.252 + static const int kOBSOLETEHashPrefixFieldNumber = 10; 1.253 + inline const ::std::string& obsolete_hash_prefix() const; 1.254 + inline void set_obsolete_hash_prefix(const ::std::string& value); 1.255 + inline void set_obsolete_hash_prefix(const char* value); 1.256 + inline void set_obsolete_hash_prefix(const void* value, size_t size); 1.257 + inline ::std::string* mutable_obsolete_hash_prefix(); 1.258 + inline ::std::string* release_obsolete_hash_prefix(); 1.259 + 1.260 + // required float client_score = 2; 1.261 + inline bool has_client_score() const; 1.262 + inline void clear_client_score(); 1.263 + static const int kClientScoreFieldNumber = 2; 1.264 + inline float client_score() const; 1.265 + inline void set_client_score(float value); 1.266 + 1.267 + // optional bool is_phishing = 4; 1.268 + inline bool has_is_phishing() const; 1.269 + inline void clear_is_phishing(); 1.270 + static const int kIsPhishingFieldNumber = 4; 1.271 + inline bool is_phishing() const; 1.272 + inline void set_is_phishing(bool value); 1.273 + 1.274 + // repeated .safe_browsing.ClientPhishingRequest.Feature feature_map = 5; 1.275 + inline int feature_map_size() const; 1.276 + inline void clear_feature_map(); 1.277 + static const int kFeatureMapFieldNumber = 5; 1.278 + inline const ::safe_browsing::ClientPhishingRequest_Feature& feature_map(int index) const; 1.279 + inline ::safe_browsing::ClientPhishingRequest_Feature* mutable_feature_map(int index); 1.280 + inline ::safe_browsing::ClientPhishingRequest_Feature* add_feature_map(); 1.281 + inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >& 1.282 + feature_map() const; 1.283 + inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >* 1.284 + mutable_feature_map(); 1.285 + 1.286 + // optional int32 model_version = 6; 1.287 + inline bool has_model_version() const; 1.288 + inline void clear_model_version(); 1.289 + static const int kModelVersionFieldNumber = 6; 1.290 + inline ::google::protobuf::int32 model_version() const; 1.291 + inline void set_model_version(::google::protobuf::int32 value); 1.292 + 1.293 + // repeated .safe_browsing.ClientPhishingRequest.Feature non_model_feature_map = 8; 1.294 + inline int non_model_feature_map_size() const; 1.295 + inline void clear_non_model_feature_map(); 1.296 + static const int kNonModelFeatureMapFieldNumber = 8; 1.297 + inline const ::safe_browsing::ClientPhishingRequest_Feature& non_model_feature_map(int index) const; 1.298 + inline ::safe_browsing::ClientPhishingRequest_Feature* mutable_non_model_feature_map(int index); 1.299 + inline ::safe_browsing::ClientPhishingRequest_Feature* add_non_model_feature_map(); 1.300 + inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >& 1.301 + non_model_feature_map() const; 1.302 + inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >* 1.303 + mutable_non_model_feature_map(); 1.304 + 1.305 + // optional string OBSOLETE_referrer_url = 9; 1.306 + inline bool has_obsolete_referrer_url() const; 1.307 + inline void clear_obsolete_referrer_url(); 1.308 + static const int kOBSOLETEReferrerUrlFieldNumber = 9; 1.309 + inline const ::std::string& obsolete_referrer_url() const; 1.310 + inline void set_obsolete_referrer_url(const ::std::string& value); 1.311 + inline void set_obsolete_referrer_url(const char* value); 1.312 + inline void set_obsolete_referrer_url(const char* value, size_t size); 1.313 + inline ::std::string* mutable_obsolete_referrer_url(); 1.314 + inline ::std::string* release_obsolete_referrer_url(); 1.315 + 1.316 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientPhishingRequest) 1.317 + private: 1.318 + inline void set_has_url(); 1.319 + inline void clear_has_url(); 1.320 + inline void set_has_obsolete_hash_prefix(); 1.321 + inline void clear_has_obsolete_hash_prefix(); 1.322 + inline void set_has_client_score(); 1.323 + inline void clear_has_client_score(); 1.324 + inline void set_has_is_phishing(); 1.325 + inline void clear_has_is_phishing(); 1.326 + inline void set_has_model_version(); 1.327 + inline void clear_has_model_version(); 1.328 + inline void set_has_obsolete_referrer_url(); 1.329 + inline void clear_has_obsolete_referrer_url(); 1.330 + 1.331 + ::std::string* url_; 1.332 + ::std::string* obsolete_hash_prefix_; 1.333 + float client_score_; 1.334 + bool is_phishing_; 1.335 + ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature > feature_map_; 1.336 + ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature > non_model_feature_map_; 1.337 + ::std::string* obsolete_referrer_url_; 1.338 + ::google::protobuf::int32 model_version_; 1.339 + 1.340 + mutable int _cached_size_; 1.341 + ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; 1.342 + 1.343 + friend void protobuf_AddDesc_csd_2eproto(); 1.344 + friend void protobuf_AssignDesc_csd_2eproto(); 1.345 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.346 + 1.347 + void InitAsDefaultInstance(); 1.348 + static ClientPhishingRequest* default_instance_; 1.349 +}; 1.350 +// ------------------------------------------------------------------- 1.351 + 1.352 +class ClientPhishingResponse : public ::google::protobuf::MessageLite { 1.353 + public: 1.354 + ClientPhishingResponse(); 1.355 + virtual ~ClientPhishingResponse(); 1.356 + 1.357 + ClientPhishingResponse(const ClientPhishingResponse& from); 1.358 + 1.359 + inline ClientPhishingResponse& operator=(const ClientPhishingResponse& from) { 1.360 + CopyFrom(from); 1.361 + return *this; 1.362 + } 1.363 + 1.364 + static const ClientPhishingResponse& default_instance(); 1.365 + 1.366 + void Swap(ClientPhishingResponse* other); 1.367 + 1.368 + // implements Message ---------------------------------------------- 1.369 + 1.370 + ClientPhishingResponse* New() const; 1.371 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.372 + void CopyFrom(const ClientPhishingResponse& from); 1.373 + void MergeFrom(const ClientPhishingResponse& from); 1.374 + void Clear(); 1.375 + bool IsInitialized() const; 1.376 + 1.377 + int ByteSize() const; 1.378 + bool MergePartialFromCodedStream( 1.379 + ::google::protobuf::io::CodedInputStream* input); 1.380 + void SerializeWithCachedSizes( 1.381 + ::google::protobuf::io::CodedOutputStream* output) const; 1.382 + int GetCachedSize() const { return _cached_size_; } 1.383 + private: 1.384 + void SharedCtor(); 1.385 + void SharedDtor(); 1.386 + void SetCachedSize(int size) const; 1.387 + public: 1.388 + 1.389 + ::std::string GetTypeName() const; 1.390 + 1.391 + // nested types ---------------------------------------------------- 1.392 + 1.393 + // accessors ------------------------------------------------------- 1.394 + 1.395 + // required bool phishy = 1; 1.396 + inline bool has_phishy() const; 1.397 + inline void clear_phishy(); 1.398 + static const int kPhishyFieldNumber = 1; 1.399 + inline bool phishy() const; 1.400 + inline void set_phishy(bool value); 1.401 + 1.402 + // repeated string OBSOLETE_whitelist_expression = 2; 1.403 + inline int obsolete_whitelist_expression_size() const; 1.404 + inline void clear_obsolete_whitelist_expression(); 1.405 + static const int kOBSOLETEWhitelistExpressionFieldNumber = 2; 1.406 + inline const ::std::string& obsolete_whitelist_expression(int index) const; 1.407 + inline ::std::string* mutable_obsolete_whitelist_expression(int index); 1.408 + inline void set_obsolete_whitelist_expression(int index, const ::std::string& value); 1.409 + inline void set_obsolete_whitelist_expression(int index, const char* value); 1.410 + inline void set_obsolete_whitelist_expression(int index, const char* value, size_t size); 1.411 + inline ::std::string* add_obsolete_whitelist_expression(); 1.412 + inline void add_obsolete_whitelist_expression(const ::std::string& value); 1.413 + inline void add_obsolete_whitelist_expression(const char* value); 1.414 + inline void add_obsolete_whitelist_expression(const char* value, size_t size); 1.415 + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& obsolete_whitelist_expression() const; 1.416 + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_obsolete_whitelist_expression(); 1.417 + 1.418 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientPhishingResponse) 1.419 + private: 1.420 + inline void set_has_phishy(); 1.421 + inline void clear_has_phishy(); 1.422 + 1.423 + ::google::protobuf::RepeatedPtrField< ::std::string> obsolete_whitelist_expression_; 1.424 + bool phishy_; 1.425 + 1.426 + mutable int _cached_size_; 1.427 + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; 1.428 + 1.429 + friend void protobuf_AddDesc_csd_2eproto(); 1.430 + friend void protobuf_AssignDesc_csd_2eproto(); 1.431 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.432 + 1.433 + void InitAsDefaultInstance(); 1.434 + static ClientPhishingResponse* default_instance_; 1.435 +}; 1.436 +// ------------------------------------------------------------------- 1.437 + 1.438 +class ClientMalwareRequest_Feature : public ::google::protobuf::MessageLite { 1.439 + public: 1.440 + ClientMalwareRequest_Feature(); 1.441 + virtual ~ClientMalwareRequest_Feature(); 1.442 + 1.443 + ClientMalwareRequest_Feature(const ClientMalwareRequest_Feature& from); 1.444 + 1.445 + inline ClientMalwareRequest_Feature& operator=(const ClientMalwareRequest_Feature& from) { 1.446 + CopyFrom(from); 1.447 + return *this; 1.448 + } 1.449 + 1.450 + static const ClientMalwareRequest_Feature& default_instance(); 1.451 + 1.452 + void Swap(ClientMalwareRequest_Feature* other); 1.453 + 1.454 + // implements Message ---------------------------------------------- 1.455 + 1.456 + ClientMalwareRequest_Feature* New() const; 1.457 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.458 + void CopyFrom(const ClientMalwareRequest_Feature& from); 1.459 + void MergeFrom(const ClientMalwareRequest_Feature& from); 1.460 + void Clear(); 1.461 + bool IsInitialized() const; 1.462 + 1.463 + int ByteSize() const; 1.464 + bool MergePartialFromCodedStream( 1.465 + ::google::protobuf::io::CodedInputStream* input); 1.466 + void SerializeWithCachedSizes( 1.467 + ::google::protobuf::io::CodedOutputStream* output) const; 1.468 + int GetCachedSize() const { return _cached_size_; } 1.469 + private: 1.470 + void SharedCtor(); 1.471 + void SharedDtor(); 1.472 + void SetCachedSize(int size) const; 1.473 + public: 1.474 + 1.475 + ::std::string GetTypeName() const; 1.476 + 1.477 + // nested types ---------------------------------------------------- 1.478 + 1.479 + // accessors ------------------------------------------------------- 1.480 + 1.481 + // required string name = 1; 1.482 + inline bool has_name() const; 1.483 + inline void clear_name(); 1.484 + static const int kNameFieldNumber = 1; 1.485 + inline const ::std::string& name() const; 1.486 + inline void set_name(const ::std::string& value); 1.487 + inline void set_name(const char* value); 1.488 + inline void set_name(const char* value, size_t size); 1.489 + inline ::std::string* mutable_name(); 1.490 + inline ::std::string* release_name(); 1.491 + 1.492 + // required double value = 2; 1.493 + inline bool has_value() const; 1.494 + inline void clear_value(); 1.495 + static const int kValueFieldNumber = 2; 1.496 + inline double value() const; 1.497 + inline void set_value(double value); 1.498 + 1.499 + // repeated string metainfo = 3; 1.500 + inline int metainfo_size() const; 1.501 + inline void clear_metainfo(); 1.502 + static const int kMetainfoFieldNumber = 3; 1.503 + inline const ::std::string& metainfo(int index) const; 1.504 + inline ::std::string* mutable_metainfo(int index); 1.505 + inline void set_metainfo(int index, const ::std::string& value); 1.506 + inline void set_metainfo(int index, const char* value); 1.507 + inline void set_metainfo(int index, const char* value, size_t size); 1.508 + inline ::std::string* add_metainfo(); 1.509 + inline void add_metainfo(const ::std::string& value); 1.510 + inline void add_metainfo(const char* value); 1.511 + inline void add_metainfo(const char* value, size_t size); 1.512 + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& metainfo() const; 1.513 + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_metainfo(); 1.514 + 1.515 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientMalwareRequest.Feature) 1.516 + private: 1.517 + inline void set_has_name(); 1.518 + inline void clear_has_name(); 1.519 + inline void set_has_value(); 1.520 + inline void clear_has_value(); 1.521 + 1.522 + ::std::string* name_; 1.523 + double value_; 1.524 + ::google::protobuf::RepeatedPtrField< ::std::string> metainfo_; 1.525 + 1.526 + mutable int _cached_size_; 1.527 + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; 1.528 + 1.529 + friend void protobuf_AddDesc_csd_2eproto(); 1.530 + friend void protobuf_AssignDesc_csd_2eproto(); 1.531 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.532 + 1.533 + void InitAsDefaultInstance(); 1.534 + static ClientMalwareRequest_Feature* default_instance_; 1.535 +}; 1.536 +// ------------------------------------------------------------------- 1.537 + 1.538 +class ClientMalwareRequest : public ::google::protobuf::MessageLite { 1.539 + public: 1.540 + ClientMalwareRequest(); 1.541 + virtual ~ClientMalwareRequest(); 1.542 + 1.543 + ClientMalwareRequest(const ClientMalwareRequest& from); 1.544 + 1.545 + inline ClientMalwareRequest& operator=(const ClientMalwareRequest& from) { 1.546 + CopyFrom(from); 1.547 + return *this; 1.548 + } 1.549 + 1.550 + static const ClientMalwareRequest& default_instance(); 1.551 + 1.552 + void Swap(ClientMalwareRequest* other); 1.553 + 1.554 + // implements Message ---------------------------------------------- 1.555 + 1.556 + ClientMalwareRequest* New() const; 1.557 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.558 + void CopyFrom(const ClientMalwareRequest& from); 1.559 + void MergeFrom(const ClientMalwareRequest& from); 1.560 + void Clear(); 1.561 + bool IsInitialized() const; 1.562 + 1.563 + int ByteSize() const; 1.564 + bool MergePartialFromCodedStream( 1.565 + ::google::protobuf::io::CodedInputStream* input); 1.566 + void SerializeWithCachedSizes( 1.567 + ::google::protobuf::io::CodedOutputStream* output) const; 1.568 + int GetCachedSize() const { return _cached_size_; } 1.569 + private: 1.570 + void SharedCtor(); 1.571 + void SharedDtor(); 1.572 + void SetCachedSize(int size) const; 1.573 + public: 1.574 + 1.575 + ::std::string GetTypeName() const; 1.576 + 1.577 + // nested types ---------------------------------------------------- 1.578 + 1.579 + typedef ClientMalwareRequest_Feature Feature; 1.580 + 1.581 + // accessors ------------------------------------------------------- 1.582 + 1.583 + // required string url = 1; 1.584 + inline bool has_url() const; 1.585 + inline void clear_url(); 1.586 + static const int kUrlFieldNumber = 1; 1.587 + inline const ::std::string& url() const; 1.588 + inline void set_url(const ::std::string& value); 1.589 + inline void set_url(const char* value); 1.590 + inline void set_url(const char* value, size_t size); 1.591 + inline ::std::string* mutable_url(); 1.592 + inline ::std::string* release_url(); 1.593 + 1.594 + // repeated .safe_browsing.ClientMalwareRequest.Feature feature_map = 2; 1.595 + inline int feature_map_size() const; 1.596 + inline void clear_feature_map(); 1.597 + static const int kFeatureMapFieldNumber = 2; 1.598 + inline const ::safe_browsing::ClientMalwareRequest_Feature& feature_map(int index) const; 1.599 + inline ::safe_browsing::ClientMalwareRequest_Feature* mutable_feature_map(int index); 1.600 + inline ::safe_browsing::ClientMalwareRequest_Feature* add_feature_map(); 1.601 + inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientMalwareRequest_Feature >& 1.602 + feature_map() const; 1.603 + inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientMalwareRequest_Feature >* 1.604 + mutable_feature_map(); 1.605 + 1.606 + // optional string referrer_url = 4; 1.607 + inline bool has_referrer_url() const; 1.608 + inline void clear_referrer_url(); 1.609 + static const int kReferrerUrlFieldNumber = 4; 1.610 + inline const ::std::string& referrer_url() const; 1.611 + inline void set_referrer_url(const ::std::string& value); 1.612 + inline void set_referrer_url(const char* value); 1.613 + inline void set_referrer_url(const char* value, size_t size); 1.614 + inline ::std::string* mutable_referrer_url(); 1.615 + inline ::std::string* release_referrer_url(); 1.616 + 1.617 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientMalwareRequest) 1.618 + private: 1.619 + inline void set_has_url(); 1.620 + inline void clear_has_url(); 1.621 + inline void set_has_referrer_url(); 1.622 + inline void clear_has_referrer_url(); 1.623 + 1.624 + ::std::string* url_; 1.625 + ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientMalwareRequest_Feature > feature_map_; 1.626 + ::std::string* referrer_url_; 1.627 + 1.628 + mutable int _cached_size_; 1.629 + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; 1.630 + 1.631 + friend void protobuf_AddDesc_csd_2eproto(); 1.632 + friend void protobuf_AssignDesc_csd_2eproto(); 1.633 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.634 + 1.635 + void InitAsDefaultInstance(); 1.636 + static ClientMalwareRequest* default_instance_; 1.637 +}; 1.638 +// ------------------------------------------------------------------- 1.639 + 1.640 +class ClientMalwareResponse : public ::google::protobuf::MessageLite { 1.641 + public: 1.642 + ClientMalwareResponse(); 1.643 + virtual ~ClientMalwareResponse(); 1.644 + 1.645 + ClientMalwareResponse(const ClientMalwareResponse& from); 1.646 + 1.647 + inline ClientMalwareResponse& operator=(const ClientMalwareResponse& from) { 1.648 + CopyFrom(from); 1.649 + return *this; 1.650 + } 1.651 + 1.652 + static const ClientMalwareResponse& default_instance(); 1.653 + 1.654 + void Swap(ClientMalwareResponse* other); 1.655 + 1.656 + // implements Message ---------------------------------------------- 1.657 + 1.658 + ClientMalwareResponse* New() const; 1.659 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.660 + void CopyFrom(const ClientMalwareResponse& from); 1.661 + void MergeFrom(const ClientMalwareResponse& from); 1.662 + void Clear(); 1.663 + bool IsInitialized() const; 1.664 + 1.665 + int ByteSize() const; 1.666 + bool MergePartialFromCodedStream( 1.667 + ::google::protobuf::io::CodedInputStream* input); 1.668 + void SerializeWithCachedSizes( 1.669 + ::google::protobuf::io::CodedOutputStream* output) const; 1.670 + int GetCachedSize() const { return _cached_size_; } 1.671 + private: 1.672 + void SharedCtor(); 1.673 + void SharedDtor(); 1.674 + void SetCachedSize(int size) const; 1.675 + public: 1.676 + 1.677 + ::std::string GetTypeName() const; 1.678 + 1.679 + // nested types ---------------------------------------------------- 1.680 + 1.681 + // accessors ------------------------------------------------------- 1.682 + 1.683 + // required bool blacklist = 1; 1.684 + inline bool has_blacklist() const; 1.685 + inline void clear_blacklist(); 1.686 + static const int kBlacklistFieldNumber = 1; 1.687 + inline bool blacklist() const; 1.688 + inline void set_blacklist(bool value); 1.689 + 1.690 + // optional string bad_ip = 2; 1.691 + inline bool has_bad_ip() const; 1.692 + inline void clear_bad_ip(); 1.693 + static const int kBadIpFieldNumber = 2; 1.694 + inline const ::std::string& bad_ip() const; 1.695 + inline void set_bad_ip(const ::std::string& value); 1.696 + inline void set_bad_ip(const char* value); 1.697 + inline void set_bad_ip(const char* value, size_t size); 1.698 + inline ::std::string* mutable_bad_ip(); 1.699 + inline ::std::string* release_bad_ip(); 1.700 + 1.701 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientMalwareResponse) 1.702 + private: 1.703 + inline void set_has_blacklist(); 1.704 + inline void clear_has_blacklist(); 1.705 + inline void set_has_bad_ip(); 1.706 + inline void clear_has_bad_ip(); 1.707 + 1.708 + ::std::string* bad_ip_; 1.709 + bool blacklist_; 1.710 + 1.711 + mutable int _cached_size_; 1.712 + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; 1.713 + 1.714 + friend void protobuf_AddDesc_csd_2eproto(); 1.715 + friend void protobuf_AssignDesc_csd_2eproto(); 1.716 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.717 + 1.718 + void InitAsDefaultInstance(); 1.719 + static ClientMalwareResponse* default_instance_; 1.720 +}; 1.721 +// ------------------------------------------------------------------- 1.722 + 1.723 +class ClientDownloadRequest_Digests : public ::google::protobuf::MessageLite { 1.724 + public: 1.725 + ClientDownloadRequest_Digests(); 1.726 + virtual ~ClientDownloadRequest_Digests(); 1.727 + 1.728 + ClientDownloadRequest_Digests(const ClientDownloadRequest_Digests& from); 1.729 + 1.730 + inline ClientDownloadRequest_Digests& operator=(const ClientDownloadRequest_Digests& from) { 1.731 + CopyFrom(from); 1.732 + return *this; 1.733 + } 1.734 + 1.735 + static const ClientDownloadRequest_Digests& default_instance(); 1.736 + 1.737 + void Swap(ClientDownloadRequest_Digests* other); 1.738 + 1.739 + // implements Message ---------------------------------------------- 1.740 + 1.741 + ClientDownloadRequest_Digests* New() const; 1.742 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.743 + void CopyFrom(const ClientDownloadRequest_Digests& from); 1.744 + void MergeFrom(const ClientDownloadRequest_Digests& from); 1.745 + void Clear(); 1.746 + bool IsInitialized() const; 1.747 + 1.748 + int ByteSize() const; 1.749 + bool MergePartialFromCodedStream( 1.750 + ::google::protobuf::io::CodedInputStream* input); 1.751 + void SerializeWithCachedSizes( 1.752 + ::google::protobuf::io::CodedOutputStream* output) const; 1.753 + int GetCachedSize() const { return _cached_size_; } 1.754 + private: 1.755 + void SharedCtor(); 1.756 + void SharedDtor(); 1.757 + void SetCachedSize(int size) const; 1.758 + public: 1.759 + 1.760 + ::std::string GetTypeName() const; 1.761 + 1.762 + // nested types ---------------------------------------------------- 1.763 + 1.764 + // accessors ------------------------------------------------------- 1.765 + 1.766 + // optional bytes sha256 = 1; 1.767 + inline bool has_sha256() const; 1.768 + inline void clear_sha256(); 1.769 + static const int kSha256FieldNumber = 1; 1.770 + inline const ::std::string& sha256() const; 1.771 + inline void set_sha256(const ::std::string& value); 1.772 + inline void set_sha256(const char* value); 1.773 + inline void set_sha256(const void* value, size_t size); 1.774 + inline ::std::string* mutable_sha256(); 1.775 + inline ::std::string* release_sha256(); 1.776 + 1.777 + // optional bytes sha1 = 2; 1.778 + inline bool has_sha1() const; 1.779 + inline void clear_sha1(); 1.780 + static const int kSha1FieldNumber = 2; 1.781 + inline const ::std::string& sha1() const; 1.782 + inline void set_sha1(const ::std::string& value); 1.783 + inline void set_sha1(const char* value); 1.784 + inline void set_sha1(const void* value, size_t size); 1.785 + inline ::std::string* mutable_sha1(); 1.786 + inline ::std::string* release_sha1(); 1.787 + 1.788 + // optional bytes md5 = 3; 1.789 + inline bool has_md5() const; 1.790 + inline void clear_md5(); 1.791 + static const int kMd5FieldNumber = 3; 1.792 + inline const ::std::string& md5() const; 1.793 + inline void set_md5(const ::std::string& value); 1.794 + inline void set_md5(const char* value); 1.795 + inline void set_md5(const void* value, size_t size); 1.796 + inline ::std::string* mutable_md5(); 1.797 + inline ::std::string* release_md5(); 1.798 + 1.799 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadRequest.Digests) 1.800 + private: 1.801 + inline void set_has_sha256(); 1.802 + inline void clear_has_sha256(); 1.803 + inline void set_has_sha1(); 1.804 + inline void clear_has_sha1(); 1.805 + inline void set_has_md5(); 1.806 + inline void clear_has_md5(); 1.807 + 1.808 + ::std::string* sha256_; 1.809 + ::std::string* sha1_; 1.810 + ::std::string* md5_; 1.811 + 1.812 + mutable int _cached_size_; 1.813 + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; 1.814 + 1.815 + friend void protobuf_AddDesc_csd_2eproto(); 1.816 + friend void protobuf_AssignDesc_csd_2eproto(); 1.817 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.818 + 1.819 + void InitAsDefaultInstance(); 1.820 + static ClientDownloadRequest_Digests* default_instance_; 1.821 +}; 1.822 +// ------------------------------------------------------------------- 1.823 + 1.824 +class ClientDownloadRequest_Resource : public ::google::protobuf::MessageLite { 1.825 + public: 1.826 + ClientDownloadRequest_Resource(); 1.827 + virtual ~ClientDownloadRequest_Resource(); 1.828 + 1.829 + ClientDownloadRequest_Resource(const ClientDownloadRequest_Resource& from); 1.830 + 1.831 + inline ClientDownloadRequest_Resource& operator=(const ClientDownloadRequest_Resource& from) { 1.832 + CopyFrom(from); 1.833 + return *this; 1.834 + } 1.835 + 1.836 + static const ClientDownloadRequest_Resource& default_instance(); 1.837 + 1.838 + void Swap(ClientDownloadRequest_Resource* other); 1.839 + 1.840 + // implements Message ---------------------------------------------- 1.841 + 1.842 + ClientDownloadRequest_Resource* New() const; 1.843 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.844 + void CopyFrom(const ClientDownloadRequest_Resource& from); 1.845 + void MergeFrom(const ClientDownloadRequest_Resource& from); 1.846 + void Clear(); 1.847 + bool IsInitialized() const; 1.848 + 1.849 + int ByteSize() const; 1.850 + bool MergePartialFromCodedStream( 1.851 + ::google::protobuf::io::CodedInputStream* input); 1.852 + void SerializeWithCachedSizes( 1.853 + ::google::protobuf::io::CodedOutputStream* output) const; 1.854 + int GetCachedSize() const { return _cached_size_; } 1.855 + private: 1.856 + void SharedCtor(); 1.857 + void SharedDtor(); 1.858 + void SetCachedSize(int size) const; 1.859 + public: 1.860 + 1.861 + ::std::string GetTypeName() const; 1.862 + 1.863 + // nested types ---------------------------------------------------- 1.864 + 1.865 + // accessors ------------------------------------------------------- 1.866 + 1.867 + // required string url = 1; 1.868 + inline bool has_url() const; 1.869 + inline void clear_url(); 1.870 + static const int kUrlFieldNumber = 1; 1.871 + inline const ::std::string& url() const; 1.872 + inline void set_url(const ::std::string& value); 1.873 + inline void set_url(const char* value); 1.874 + inline void set_url(const char* value, size_t size); 1.875 + inline ::std::string* mutable_url(); 1.876 + inline ::std::string* release_url(); 1.877 + 1.878 + // required .safe_browsing.ClientDownloadRequest.ResourceType type = 2; 1.879 + inline bool has_type() const; 1.880 + inline void clear_type(); 1.881 + static const int kTypeFieldNumber = 2; 1.882 + inline ::safe_browsing::ClientDownloadRequest_ResourceType type() const; 1.883 + inline void set_type(::safe_browsing::ClientDownloadRequest_ResourceType value); 1.884 + 1.885 + // optional bytes remote_ip = 3; 1.886 + inline bool has_remote_ip() const; 1.887 + inline void clear_remote_ip(); 1.888 + static const int kRemoteIpFieldNumber = 3; 1.889 + inline const ::std::string& remote_ip() const; 1.890 + inline void set_remote_ip(const ::std::string& value); 1.891 + inline void set_remote_ip(const char* value); 1.892 + inline void set_remote_ip(const void* value, size_t size); 1.893 + inline ::std::string* mutable_remote_ip(); 1.894 + inline ::std::string* release_remote_ip(); 1.895 + 1.896 + // optional string referrer = 4; 1.897 + inline bool has_referrer() const; 1.898 + inline void clear_referrer(); 1.899 + static const int kReferrerFieldNumber = 4; 1.900 + inline const ::std::string& referrer() const; 1.901 + inline void set_referrer(const ::std::string& value); 1.902 + inline void set_referrer(const char* value); 1.903 + inline void set_referrer(const char* value, size_t size); 1.904 + inline ::std::string* mutable_referrer(); 1.905 + inline ::std::string* release_referrer(); 1.906 + 1.907 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadRequest.Resource) 1.908 + private: 1.909 + inline void set_has_url(); 1.910 + inline void clear_has_url(); 1.911 + inline void set_has_type(); 1.912 + inline void clear_has_type(); 1.913 + inline void set_has_remote_ip(); 1.914 + inline void clear_has_remote_ip(); 1.915 + inline void set_has_referrer(); 1.916 + inline void clear_has_referrer(); 1.917 + 1.918 + ::std::string* url_; 1.919 + ::std::string* remote_ip_; 1.920 + ::std::string* referrer_; 1.921 + int type_; 1.922 + 1.923 + mutable int _cached_size_; 1.924 + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; 1.925 + 1.926 + friend void protobuf_AddDesc_csd_2eproto(); 1.927 + friend void protobuf_AssignDesc_csd_2eproto(); 1.928 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.929 + 1.930 + void InitAsDefaultInstance(); 1.931 + static ClientDownloadRequest_Resource* default_instance_; 1.932 +}; 1.933 +// ------------------------------------------------------------------- 1.934 + 1.935 +class ClientDownloadRequest_CertificateChain_Element : public ::google::protobuf::MessageLite { 1.936 + public: 1.937 + ClientDownloadRequest_CertificateChain_Element(); 1.938 + virtual ~ClientDownloadRequest_CertificateChain_Element(); 1.939 + 1.940 + ClientDownloadRequest_CertificateChain_Element(const ClientDownloadRequest_CertificateChain_Element& from); 1.941 + 1.942 + inline ClientDownloadRequest_CertificateChain_Element& operator=(const ClientDownloadRequest_CertificateChain_Element& from) { 1.943 + CopyFrom(from); 1.944 + return *this; 1.945 + } 1.946 + 1.947 + static const ClientDownloadRequest_CertificateChain_Element& default_instance(); 1.948 + 1.949 + void Swap(ClientDownloadRequest_CertificateChain_Element* other); 1.950 + 1.951 + // implements Message ---------------------------------------------- 1.952 + 1.953 + ClientDownloadRequest_CertificateChain_Element* New() const; 1.954 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.955 + void CopyFrom(const ClientDownloadRequest_CertificateChain_Element& from); 1.956 + void MergeFrom(const ClientDownloadRequest_CertificateChain_Element& from); 1.957 + void Clear(); 1.958 + bool IsInitialized() const; 1.959 + 1.960 + int ByteSize() const; 1.961 + bool MergePartialFromCodedStream( 1.962 + ::google::protobuf::io::CodedInputStream* input); 1.963 + void SerializeWithCachedSizes( 1.964 + ::google::protobuf::io::CodedOutputStream* output) const; 1.965 + int GetCachedSize() const { return _cached_size_; } 1.966 + private: 1.967 + void SharedCtor(); 1.968 + void SharedDtor(); 1.969 + void SetCachedSize(int size) const; 1.970 + public: 1.971 + 1.972 + ::std::string GetTypeName() const; 1.973 + 1.974 + // nested types ---------------------------------------------------- 1.975 + 1.976 + // accessors ------------------------------------------------------- 1.977 + 1.978 + // optional bytes certificate = 1; 1.979 + inline bool has_certificate() const; 1.980 + inline void clear_certificate(); 1.981 + static const int kCertificateFieldNumber = 1; 1.982 + inline const ::std::string& certificate() const; 1.983 + inline void set_certificate(const ::std::string& value); 1.984 + inline void set_certificate(const char* value); 1.985 + inline void set_certificate(const void* value, size_t size); 1.986 + inline ::std::string* mutable_certificate(); 1.987 + inline ::std::string* release_certificate(); 1.988 + 1.989 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadRequest.CertificateChain.Element) 1.990 + private: 1.991 + inline void set_has_certificate(); 1.992 + inline void clear_has_certificate(); 1.993 + 1.994 + ::std::string* certificate_; 1.995 + 1.996 + mutable int _cached_size_; 1.997 + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; 1.998 + 1.999 + friend void protobuf_AddDesc_csd_2eproto(); 1.1000 + friend void protobuf_AssignDesc_csd_2eproto(); 1.1001 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.1002 + 1.1003 + void InitAsDefaultInstance(); 1.1004 + static ClientDownloadRequest_CertificateChain_Element* default_instance_; 1.1005 +}; 1.1006 +// ------------------------------------------------------------------- 1.1007 + 1.1008 +class ClientDownloadRequest_CertificateChain : public ::google::protobuf::MessageLite { 1.1009 + public: 1.1010 + ClientDownloadRequest_CertificateChain(); 1.1011 + virtual ~ClientDownloadRequest_CertificateChain(); 1.1012 + 1.1013 + ClientDownloadRequest_CertificateChain(const ClientDownloadRequest_CertificateChain& from); 1.1014 + 1.1015 + inline ClientDownloadRequest_CertificateChain& operator=(const ClientDownloadRequest_CertificateChain& from) { 1.1016 + CopyFrom(from); 1.1017 + return *this; 1.1018 + } 1.1019 + 1.1020 + static const ClientDownloadRequest_CertificateChain& default_instance(); 1.1021 + 1.1022 + void Swap(ClientDownloadRequest_CertificateChain* other); 1.1023 + 1.1024 + // implements Message ---------------------------------------------- 1.1025 + 1.1026 + ClientDownloadRequest_CertificateChain* New() const; 1.1027 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.1028 + void CopyFrom(const ClientDownloadRequest_CertificateChain& from); 1.1029 + void MergeFrom(const ClientDownloadRequest_CertificateChain& from); 1.1030 + void Clear(); 1.1031 + bool IsInitialized() const; 1.1032 + 1.1033 + int ByteSize() const; 1.1034 + bool MergePartialFromCodedStream( 1.1035 + ::google::protobuf::io::CodedInputStream* input); 1.1036 + void SerializeWithCachedSizes( 1.1037 + ::google::protobuf::io::CodedOutputStream* output) const; 1.1038 + int GetCachedSize() const { return _cached_size_; } 1.1039 + private: 1.1040 + void SharedCtor(); 1.1041 + void SharedDtor(); 1.1042 + void SetCachedSize(int size) const; 1.1043 + public: 1.1044 + 1.1045 + ::std::string GetTypeName() const; 1.1046 + 1.1047 + // nested types ---------------------------------------------------- 1.1048 + 1.1049 + typedef ClientDownloadRequest_CertificateChain_Element Element; 1.1050 + 1.1051 + // accessors ------------------------------------------------------- 1.1052 + 1.1053 + // repeated .safe_browsing.ClientDownloadRequest.CertificateChain.Element element = 1; 1.1054 + inline int element_size() const; 1.1055 + inline void clear_element(); 1.1056 + static const int kElementFieldNumber = 1; 1.1057 + inline const ::safe_browsing::ClientDownloadRequest_CertificateChain_Element& element(int index) const; 1.1058 + inline ::safe_browsing::ClientDownloadRequest_CertificateChain_Element* mutable_element(int index); 1.1059 + inline ::safe_browsing::ClientDownloadRequest_CertificateChain_Element* add_element(); 1.1060 + inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain_Element >& 1.1061 + element() const; 1.1062 + inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain_Element >* 1.1063 + mutable_element(); 1.1064 + 1.1065 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadRequest.CertificateChain) 1.1066 + private: 1.1067 + 1.1068 + ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain_Element > element_; 1.1069 + 1.1070 + mutable int _cached_size_; 1.1071 + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; 1.1072 + 1.1073 + friend void protobuf_AddDesc_csd_2eproto(); 1.1074 + friend void protobuf_AssignDesc_csd_2eproto(); 1.1075 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.1076 + 1.1077 + void InitAsDefaultInstance(); 1.1078 + static ClientDownloadRequest_CertificateChain* default_instance_; 1.1079 +}; 1.1080 +// ------------------------------------------------------------------- 1.1081 + 1.1082 +class ClientDownloadRequest_SignatureInfo : public ::google::protobuf::MessageLite { 1.1083 + public: 1.1084 + ClientDownloadRequest_SignatureInfo(); 1.1085 + virtual ~ClientDownloadRequest_SignatureInfo(); 1.1086 + 1.1087 + ClientDownloadRequest_SignatureInfo(const ClientDownloadRequest_SignatureInfo& from); 1.1088 + 1.1089 + inline ClientDownloadRequest_SignatureInfo& operator=(const ClientDownloadRequest_SignatureInfo& from) { 1.1090 + CopyFrom(from); 1.1091 + return *this; 1.1092 + } 1.1093 + 1.1094 + static const ClientDownloadRequest_SignatureInfo& default_instance(); 1.1095 + 1.1096 + void Swap(ClientDownloadRequest_SignatureInfo* other); 1.1097 + 1.1098 + // implements Message ---------------------------------------------- 1.1099 + 1.1100 + ClientDownloadRequest_SignatureInfo* New() const; 1.1101 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.1102 + void CopyFrom(const ClientDownloadRequest_SignatureInfo& from); 1.1103 + void MergeFrom(const ClientDownloadRequest_SignatureInfo& from); 1.1104 + void Clear(); 1.1105 + bool IsInitialized() const; 1.1106 + 1.1107 + int ByteSize() const; 1.1108 + bool MergePartialFromCodedStream( 1.1109 + ::google::protobuf::io::CodedInputStream* input); 1.1110 + void SerializeWithCachedSizes( 1.1111 + ::google::protobuf::io::CodedOutputStream* output) const; 1.1112 + int GetCachedSize() const { return _cached_size_; } 1.1113 + private: 1.1114 + void SharedCtor(); 1.1115 + void SharedDtor(); 1.1116 + void SetCachedSize(int size) const; 1.1117 + public: 1.1118 + 1.1119 + ::std::string GetTypeName() const; 1.1120 + 1.1121 + // nested types ---------------------------------------------------- 1.1122 + 1.1123 + // accessors ------------------------------------------------------- 1.1124 + 1.1125 + // repeated .safe_browsing.ClientDownloadRequest.CertificateChain certificate_chain = 1; 1.1126 + inline int certificate_chain_size() const; 1.1127 + inline void clear_certificate_chain(); 1.1128 + static const int kCertificateChainFieldNumber = 1; 1.1129 + inline const ::safe_browsing::ClientDownloadRequest_CertificateChain& certificate_chain(int index) const; 1.1130 + inline ::safe_browsing::ClientDownloadRequest_CertificateChain* mutable_certificate_chain(int index); 1.1131 + inline ::safe_browsing::ClientDownloadRequest_CertificateChain* add_certificate_chain(); 1.1132 + inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain >& 1.1133 + certificate_chain() const; 1.1134 + inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain >* 1.1135 + mutable_certificate_chain(); 1.1136 + 1.1137 + // optional bool trusted = 2; 1.1138 + inline bool has_trusted() const; 1.1139 + inline void clear_trusted(); 1.1140 + static const int kTrustedFieldNumber = 2; 1.1141 + inline bool trusted() const; 1.1142 + inline void set_trusted(bool value); 1.1143 + 1.1144 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadRequest.SignatureInfo) 1.1145 + private: 1.1146 + inline void set_has_trusted(); 1.1147 + inline void clear_has_trusted(); 1.1148 + 1.1149 + ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain > certificate_chain_; 1.1150 + bool trusted_; 1.1151 + 1.1152 + mutable int _cached_size_; 1.1153 + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; 1.1154 + 1.1155 + friend void protobuf_AddDesc_csd_2eproto(); 1.1156 + friend void protobuf_AssignDesc_csd_2eproto(); 1.1157 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.1158 + 1.1159 + void InitAsDefaultInstance(); 1.1160 + static ClientDownloadRequest_SignatureInfo* default_instance_; 1.1161 +}; 1.1162 +// ------------------------------------------------------------------- 1.1163 + 1.1164 +class ClientDownloadRequest : public ::google::protobuf::MessageLite { 1.1165 + public: 1.1166 + ClientDownloadRequest(); 1.1167 + virtual ~ClientDownloadRequest(); 1.1168 + 1.1169 + ClientDownloadRequest(const ClientDownloadRequest& from); 1.1170 + 1.1171 + inline ClientDownloadRequest& operator=(const ClientDownloadRequest& from) { 1.1172 + CopyFrom(from); 1.1173 + return *this; 1.1174 + } 1.1175 + 1.1176 + static const ClientDownloadRequest& default_instance(); 1.1177 + 1.1178 + void Swap(ClientDownloadRequest* other); 1.1179 + 1.1180 + // implements Message ---------------------------------------------- 1.1181 + 1.1182 + ClientDownloadRequest* New() const; 1.1183 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.1184 + void CopyFrom(const ClientDownloadRequest& from); 1.1185 + void MergeFrom(const ClientDownloadRequest& from); 1.1186 + void Clear(); 1.1187 + bool IsInitialized() const; 1.1188 + 1.1189 + int ByteSize() const; 1.1190 + bool MergePartialFromCodedStream( 1.1191 + ::google::protobuf::io::CodedInputStream* input); 1.1192 + void SerializeWithCachedSizes( 1.1193 + ::google::protobuf::io::CodedOutputStream* output) const; 1.1194 + int GetCachedSize() const { return _cached_size_; } 1.1195 + private: 1.1196 + void SharedCtor(); 1.1197 + void SharedDtor(); 1.1198 + void SetCachedSize(int size) const; 1.1199 + public: 1.1200 + 1.1201 + ::std::string GetTypeName() const; 1.1202 + 1.1203 + // nested types ---------------------------------------------------- 1.1204 + 1.1205 + typedef ClientDownloadRequest_Digests Digests; 1.1206 + typedef ClientDownloadRequest_Resource Resource; 1.1207 + typedef ClientDownloadRequest_CertificateChain CertificateChain; 1.1208 + typedef ClientDownloadRequest_SignatureInfo SignatureInfo; 1.1209 + 1.1210 + typedef ClientDownloadRequest_ResourceType ResourceType; 1.1211 + static const ResourceType DOWNLOAD_URL = ClientDownloadRequest_ResourceType_DOWNLOAD_URL; 1.1212 + static const ResourceType DOWNLOAD_REDIRECT = ClientDownloadRequest_ResourceType_DOWNLOAD_REDIRECT; 1.1213 + static const ResourceType TAB_URL = ClientDownloadRequest_ResourceType_TAB_URL; 1.1214 + static const ResourceType TAB_REDIRECT = ClientDownloadRequest_ResourceType_TAB_REDIRECT; 1.1215 + static inline bool ResourceType_IsValid(int value) { 1.1216 + return ClientDownloadRequest_ResourceType_IsValid(value); 1.1217 + } 1.1218 + static const ResourceType ResourceType_MIN = 1.1219 + ClientDownloadRequest_ResourceType_ResourceType_MIN; 1.1220 + static const ResourceType ResourceType_MAX = 1.1221 + ClientDownloadRequest_ResourceType_ResourceType_MAX; 1.1222 + static const int ResourceType_ARRAYSIZE = 1.1223 + ClientDownloadRequest_ResourceType_ResourceType_ARRAYSIZE; 1.1224 + 1.1225 + typedef ClientDownloadRequest_DownloadType DownloadType; 1.1226 + static const DownloadType WIN_EXECUTABLE = ClientDownloadRequest_DownloadType_WIN_EXECUTABLE; 1.1227 + static const DownloadType CHROME_EXTENSION = ClientDownloadRequest_DownloadType_CHROME_EXTENSION; 1.1228 + static const DownloadType ANDROID_APK = ClientDownloadRequest_DownloadType_ANDROID_APK; 1.1229 + static const DownloadType ZIPPED_EXECUTABLE = ClientDownloadRequest_DownloadType_ZIPPED_EXECUTABLE; 1.1230 + static inline bool DownloadType_IsValid(int value) { 1.1231 + return ClientDownloadRequest_DownloadType_IsValid(value); 1.1232 + } 1.1233 + static const DownloadType DownloadType_MIN = 1.1234 + ClientDownloadRequest_DownloadType_DownloadType_MIN; 1.1235 + static const DownloadType DownloadType_MAX = 1.1236 + ClientDownloadRequest_DownloadType_DownloadType_MAX; 1.1237 + static const int DownloadType_ARRAYSIZE = 1.1238 + ClientDownloadRequest_DownloadType_DownloadType_ARRAYSIZE; 1.1239 + 1.1240 + // accessors ------------------------------------------------------- 1.1241 + 1.1242 + // required string url = 1; 1.1243 + inline bool has_url() const; 1.1244 + inline void clear_url(); 1.1245 + static const int kUrlFieldNumber = 1; 1.1246 + inline const ::std::string& url() const; 1.1247 + inline void set_url(const ::std::string& value); 1.1248 + inline void set_url(const char* value); 1.1249 + inline void set_url(const char* value, size_t size); 1.1250 + inline ::std::string* mutable_url(); 1.1251 + inline ::std::string* release_url(); 1.1252 + 1.1253 + // required .safe_browsing.ClientDownloadRequest.Digests digests = 2; 1.1254 + inline bool has_digests() const; 1.1255 + inline void clear_digests(); 1.1256 + static const int kDigestsFieldNumber = 2; 1.1257 + inline const ::safe_browsing::ClientDownloadRequest_Digests& digests() const; 1.1258 + inline ::safe_browsing::ClientDownloadRequest_Digests* mutable_digests(); 1.1259 + inline ::safe_browsing::ClientDownloadRequest_Digests* release_digests(); 1.1260 + 1.1261 + // required int64 length = 3; 1.1262 + inline bool has_length() const; 1.1263 + inline void clear_length(); 1.1264 + static const int kLengthFieldNumber = 3; 1.1265 + inline ::google::protobuf::int64 length() const; 1.1266 + inline void set_length(::google::protobuf::int64 value); 1.1267 + 1.1268 + // repeated .safe_browsing.ClientDownloadRequest.Resource resources = 4; 1.1269 + inline int resources_size() const; 1.1270 + inline void clear_resources(); 1.1271 + static const int kResourcesFieldNumber = 4; 1.1272 + inline const ::safe_browsing::ClientDownloadRequest_Resource& resources(int index) const; 1.1273 + inline ::safe_browsing::ClientDownloadRequest_Resource* mutable_resources(int index); 1.1274 + inline ::safe_browsing::ClientDownloadRequest_Resource* add_resources(); 1.1275 + inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_Resource >& 1.1276 + resources() const; 1.1277 + inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_Resource >* 1.1278 + mutable_resources(); 1.1279 + 1.1280 + // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5; 1.1281 + inline bool has_signature() const; 1.1282 + inline void clear_signature(); 1.1283 + static const int kSignatureFieldNumber = 5; 1.1284 + inline const ::safe_browsing::ClientDownloadRequest_SignatureInfo& signature() const; 1.1285 + inline ::safe_browsing::ClientDownloadRequest_SignatureInfo* mutable_signature(); 1.1286 + inline ::safe_browsing::ClientDownloadRequest_SignatureInfo* release_signature(); 1.1287 + 1.1288 + // optional bool user_initiated = 6; 1.1289 + inline bool has_user_initiated() const; 1.1290 + inline void clear_user_initiated(); 1.1291 + static const int kUserInitiatedFieldNumber = 6; 1.1292 + inline bool user_initiated() const; 1.1293 + inline void set_user_initiated(bool value); 1.1294 + 1.1295 + // optional string file_basename = 9; 1.1296 + inline bool has_file_basename() const; 1.1297 + inline void clear_file_basename(); 1.1298 + static const int kFileBasenameFieldNumber = 9; 1.1299 + inline const ::std::string& file_basename() const; 1.1300 + inline void set_file_basename(const ::std::string& value); 1.1301 + inline void set_file_basename(const char* value); 1.1302 + inline void set_file_basename(const char* value, size_t size); 1.1303 + inline ::std::string* mutable_file_basename(); 1.1304 + inline ::std::string* release_file_basename(); 1.1305 + 1.1306 + // optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 10 [default = WIN_EXECUTABLE]; 1.1307 + inline bool has_download_type() const; 1.1308 + inline void clear_download_type(); 1.1309 + static const int kDownloadTypeFieldNumber = 10; 1.1310 + inline ::safe_browsing::ClientDownloadRequest_DownloadType download_type() const; 1.1311 + inline void set_download_type(::safe_browsing::ClientDownloadRequest_DownloadType value); 1.1312 + 1.1313 + // optional string locale = 11; 1.1314 + inline bool has_locale() const; 1.1315 + inline void clear_locale(); 1.1316 + static const int kLocaleFieldNumber = 11; 1.1317 + inline const ::std::string& locale() const; 1.1318 + inline void set_locale(const ::std::string& value); 1.1319 + inline void set_locale(const char* value); 1.1320 + inline void set_locale(const char* value, size_t size); 1.1321 + inline ::std::string* mutable_locale(); 1.1322 + inline ::std::string* release_locale(); 1.1323 + 1.1324 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadRequest) 1.1325 + private: 1.1326 + inline void set_has_url(); 1.1327 + inline void clear_has_url(); 1.1328 + inline void set_has_digests(); 1.1329 + inline void clear_has_digests(); 1.1330 + inline void set_has_length(); 1.1331 + inline void clear_has_length(); 1.1332 + inline void set_has_signature(); 1.1333 + inline void clear_has_signature(); 1.1334 + inline void set_has_user_initiated(); 1.1335 + inline void clear_has_user_initiated(); 1.1336 + inline void set_has_file_basename(); 1.1337 + inline void clear_has_file_basename(); 1.1338 + inline void set_has_download_type(); 1.1339 + inline void clear_has_download_type(); 1.1340 + inline void set_has_locale(); 1.1341 + inline void clear_has_locale(); 1.1342 + 1.1343 + ::std::string* url_; 1.1344 + ::safe_browsing::ClientDownloadRequest_Digests* digests_; 1.1345 + ::google::protobuf::int64 length_; 1.1346 + ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_Resource > resources_; 1.1347 + ::safe_browsing::ClientDownloadRequest_SignatureInfo* signature_; 1.1348 + ::std::string* file_basename_; 1.1349 + bool user_initiated_; 1.1350 + int download_type_; 1.1351 + ::std::string* locale_; 1.1352 + 1.1353 + mutable int _cached_size_; 1.1354 + ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32]; 1.1355 + 1.1356 + friend void protobuf_AddDesc_csd_2eproto(); 1.1357 + friend void protobuf_AssignDesc_csd_2eproto(); 1.1358 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.1359 + 1.1360 + void InitAsDefaultInstance(); 1.1361 + static ClientDownloadRequest* default_instance_; 1.1362 +}; 1.1363 +// ------------------------------------------------------------------- 1.1364 + 1.1365 +class ClientDownloadResponse_MoreInfo : public ::google::protobuf::MessageLite { 1.1366 + public: 1.1367 + ClientDownloadResponse_MoreInfo(); 1.1368 + virtual ~ClientDownloadResponse_MoreInfo(); 1.1369 + 1.1370 + ClientDownloadResponse_MoreInfo(const ClientDownloadResponse_MoreInfo& from); 1.1371 + 1.1372 + inline ClientDownloadResponse_MoreInfo& operator=(const ClientDownloadResponse_MoreInfo& from) { 1.1373 + CopyFrom(from); 1.1374 + return *this; 1.1375 + } 1.1376 + 1.1377 + static const ClientDownloadResponse_MoreInfo& default_instance(); 1.1378 + 1.1379 + void Swap(ClientDownloadResponse_MoreInfo* other); 1.1380 + 1.1381 + // implements Message ---------------------------------------------- 1.1382 + 1.1383 + ClientDownloadResponse_MoreInfo* New() const; 1.1384 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.1385 + void CopyFrom(const ClientDownloadResponse_MoreInfo& from); 1.1386 + void MergeFrom(const ClientDownloadResponse_MoreInfo& from); 1.1387 + void Clear(); 1.1388 + bool IsInitialized() const; 1.1389 + 1.1390 + int ByteSize() const; 1.1391 + bool MergePartialFromCodedStream( 1.1392 + ::google::protobuf::io::CodedInputStream* input); 1.1393 + void SerializeWithCachedSizes( 1.1394 + ::google::protobuf::io::CodedOutputStream* output) const; 1.1395 + int GetCachedSize() const { return _cached_size_; } 1.1396 + private: 1.1397 + void SharedCtor(); 1.1398 + void SharedDtor(); 1.1399 + void SetCachedSize(int size) const; 1.1400 + public: 1.1401 + 1.1402 + ::std::string GetTypeName() const; 1.1403 + 1.1404 + // nested types ---------------------------------------------------- 1.1405 + 1.1406 + // accessors ------------------------------------------------------- 1.1407 + 1.1408 + // optional string description = 1; 1.1409 + inline bool has_description() const; 1.1410 + inline void clear_description(); 1.1411 + static const int kDescriptionFieldNumber = 1; 1.1412 + inline const ::std::string& description() const; 1.1413 + inline void set_description(const ::std::string& value); 1.1414 + inline void set_description(const char* value); 1.1415 + inline void set_description(const char* value, size_t size); 1.1416 + inline ::std::string* mutable_description(); 1.1417 + inline ::std::string* release_description(); 1.1418 + 1.1419 + // optional string url = 2; 1.1420 + inline bool has_url() const; 1.1421 + inline void clear_url(); 1.1422 + static const int kUrlFieldNumber = 2; 1.1423 + inline const ::std::string& url() const; 1.1424 + inline void set_url(const ::std::string& value); 1.1425 + inline void set_url(const char* value); 1.1426 + inline void set_url(const char* value, size_t size); 1.1427 + inline ::std::string* mutable_url(); 1.1428 + inline ::std::string* release_url(); 1.1429 + 1.1430 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadResponse.MoreInfo) 1.1431 + private: 1.1432 + inline void set_has_description(); 1.1433 + inline void clear_has_description(); 1.1434 + inline void set_has_url(); 1.1435 + inline void clear_has_url(); 1.1436 + 1.1437 + ::std::string* description_; 1.1438 + ::std::string* url_; 1.1439 + 1.1440 + mutable int _cached_size_; 1.1441 + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; 1.1442 + 1.1443 + friend void protobuf_AddDesc_csd_2eproto(); 1.1444 + friend void protobuf_AssignDesc_csd_2eproto(); 1.1445 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.1446 + 1.1447 + void InitAsDefaultInstance(); 1.1448 + static ClientDownloadResponse_MoreInfo* default_instance_; 1.1449 +}; 1.1450 +// ------------------------------------------------------------------- 1.1451 + 1.1452 +class ClientDownloadResponse : public ::google::protobuf::MessageLite { 1.1453 + public: 1.1454 + ClientDownloadResponse(); 1.1455 + virtual ~ClientDownloadResponse(); 1.1456 + 1.1457 + ClientDownloadResponse(const ClientDownloadResponse& from); 1.1458 + 1.1459 + inline ClientDownloadResponse& operator=(const ClientDownloadResponse& from) { 1.1460 + CopyFrom(from); 1.1461 + return *this; 1.1462 + } 1.1463 + 1.1464 + static const ClientDownloadResponse& default_instance(); 1.1465 + 1.1466 + void Swap(ClientDownloadResponse* other); 1.1467 + 1.1468 + // implements Message ---------------------------------------------- 1.1469 + 1.1470 + ClientDownloadResponse* New() const; 1.1471 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.1472 + void CopyFrom(const ClientDownloadResponse& from); 1.1473 + void MergeFrom(const ClientDownloadResponse& from); 1.1474 + void Clear(); 1.1475 + bool IsInitialized() const; 1.1476 + 1.1477 + int ByteSize() const; 1.1478 + bool MergePartialFromCodedStream( 1.1479 + ::google::protobuf::io::CodedInputStream* input); 1.1480 + void SerializeWithCachedSizes( 1.1481 + ::google::protobuf::io::CodedOutputStream* output) const; 1.1482 + int GetCachedSize() const { return _cached_size_; } 1.1483 + private: 1.1484 + void SharedCtor(); 1.1485 + void SharedDtor(); 1.1486 + void SetCachedSize(int size) const; 1.1487 + public: 1.1488 + 1.1489 + ::std::string GetTypeName() const; 1.1490 + 1.1491 + // nested types ---------------------------------------------------- 1.1492 + 1.1493 + typedef ClientDownloadResponse_MoreInfo MoreInfo; 1.1494 + 1.1495 + typedef ClientDownloadResponse_Verdict Verdict; 1.1496 + static const Verdict SAFE = ClientDownloadResponse_Verdict_SAFE; 1.1497 + static const Verdict DANGEROUS = ClientDownloadResponse_Verdict_DANGEROUS; 1.1498 + static const Verdict UNCOMMON = ClientDownloadResponse_Verdict_UNCOMMON; 1.1499 + static const Verdict POTENTIALLY_UNWANTED = ClientDownloadResponse_Verdict_POTENTIALLY_UNWANTED; 1.1500 + static const Verdict DANGEROUS_HOST = ClientDownloadResponse_Verdict_DANGEROUS_HOST; 1.1501 + static inline bool Verdict_IsValid(int value) { 1.1502 + return ClientDownloadResponse_Verdict_IsValid(value); 1.1503 + } 1.1504 + static const Verdict Verdict_MIN = 1.1505 + ClientDownloadResponse_Verdict_Verdict_MIN; 1.1506 + static const Verdict Verdict_MAX = 1.1507 + ClientDownloadResponse_Verdict_Verdict_MAX; 1.1508 + static const int Verdict_ARRAYSIZE = 1.1509 + ClientDownloadResponse_Verdict_Verdict_ARRAYSIZE; 1.1510 + 1.1511 + // accessors ------------------------------------------------------- 1.1512 + 1.1513 + // required .safe_browsing.ClientDownloadResponse.Verdict verdict = 1; 1.1514 + inline bool has_verdict() const; 1.1515 + inline void clear_verdict(); 1.1516 + static const int kVerdictFieldNumber = 1; 1.1517 + inline ::safe_browsing::ClientDownloadResponse_Verdict verdict() const; 1.1518 + inline void set_verdict(::safe_browsing::ClientDownloadResponse_Verdict value); 1.1519 + 1.1520 + // optional .safe_browsing.ClientDownloadResponse.MoreInfo more_info = 2; 1.1521 + inline bool has_more_info() const; 1.1522 + inline void clear_more_info(); 1.1523 + static const int kMoreInfoFieldNumber = 2; 1.1524 + inline const ::safe_browsing::ClientDownloadResponse_MoreInfo& more_info() const; 1.1525 + inline ::safe_browsing::ClientDownloadResponse_MoreInfo* mutable_more_info(); 1.1526 + inline ::safe_browsing::ClientDownloadResponse_MoreInfo* release_more_info(); 1.1527 + 1.1528 + // optional bytes token = 3; 1.1529 + inline bool has_token() const; 1.1530 + inline void clear_token(); 1.1531 + static const int kTokenFieldNumber = 3; 1.1532 + inline const ::std::string& token() const; 1.1533 + inline void set_token(const ::std::string& value); 1.1534 + inline void set_token(const char* value); 1.1535 + inline void set_token(const void* value, size_t size); 1.1536 + inline ::std::string* mutable_token(); 1.1537 + inline ::std::string* release_token(); 1.1538 + 1.1539 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadResponse) 1.1540 + private: 1.1541 + inline void set_has_verdict(); 1.1542 + inline void clear_has_verdict(); 1.1543 + inline void set_has_more_info(); 1.1544 + inline void clear_has_more_info(); 1.1545 + inline void set_has_token(); 1.1546 + inline void clear_has_token(); 1.1547 + 1.1548 + ::safe_browsing::ClientDownloadResponse_MoreInfo* more_info_; 1.1549 + ::std::string* token_; 1.1550 + int verdict_; 1.1551 + 1.1552 + mutable int _cached_size_; 1.1553 + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; 1.1554 + 1.1555 + friend void protobuf_AddDesc_csd_2eproto(); 1.1556 + friend void protobuf_AssignDesc_csd_2eproto(); 1.1557 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.1558 + 1.1559 + void InitAsDefaultInstance(); 1.1560 + static ClientDownloadResponse* default_instance_; 1.1561 +}; 1.1562 +// ------------------------------------------------------------------- 1.1563 + 1.1564 +class ClientDownloadReport_UserInformation : public ::google::protobuf::MessageLite { 1.1565 + public: 1.1566 + ClientDownloadReport_UserInformation(); 1.1567 + virtual ~ClientDownloadReport_UserInformation(); 1.1568 + 1.1569 + ClientDownloadReport_UserInformation(const ClientDownloadReport_UserInformation& from); 1.1570 + 1.1571 + inline ClientDownloadReport_UserInformation& operator=(const ClientDownloadReport_UserInformation& from) { 1.1572 + CopyFrom(from); 1.1573 + return *this; 1.1574 + } 1.1575 + 1.1576 + static const ClientDownloadReport_UserInformation& default_instance(); 1.1577 + 1.1578 + void Swap(ClientDownloadReport_UserInformation* other); 1.1579 + 1.1580 + // implements Message ---------------------------------------------- 1.1581 + 1.1582 + ClientDownloadReport_UserInformation* New() const; 1.1583 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.1584 + void CopyFrom(const ClientDownloadReport_UserInformation& from); 1.1585 + void MergeFrom(const ClientDownloadReport_UserInformation& from); 1.1586 + void Clear(); 1.1587 + bool IsInitialized() const; 1.1588 + 1.1589 + int ByteSize() const; 1.1590 + bool MergePartialFromCodedStream( 1.1591 + ::google::protobuf::io::CodedInputStream* input); 1.1592 + void SerializeWithCachedSizes( 1.1593 + ::google::protobuf::io::CodedOutputStream* output) const; 1.1594 + int GetCachedSize() const { return _cached_size_; } 1.1595 + private: 1.1596 + void SharedCtor(); 1.1597 + void SharedDtor(); 1.1598 + void SetCachedSize(int size) const; 1.1599 + public: 1.1600 + 1.1601 + ::std::string GetTypeName() const; 1.1602 + 1.1603 + // nested types ---------------------------------------------------- 1.1604 + 1.1605 + // accessors ------------------------------------------------------- 1.1606 + 1.1607 + // optional string email = 1; 1.1608 + inline bool has_email() const; 1.1609 + inline void clear_email(); 1.1610 + static const int kEmailFieldNumber = 1; 1.1611 + inline const ::std::string& email() const; 1.1612 + inline void set_email(const ::std::string& value); 1.1613 + inline void set_email(const char* value); 1.1614 + inline void set_email(const char* value, size_t size); 1.1615 + inline ::std::string* mutable_email(); 1.1616 + inline ::std::string* release_email(); 1.1617 + 1.1618 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadReport.UserInformation) 1.1619 + private: 1.1620 + inline void set_has_email(); 1.1621 + inline void clear_has_email(); 1.1622 + 1.1623 + ::std::string* email_; 1.1624 + 1.1625 + mutable int _cached_size_; 1.1626 + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; 1.1627 + 1.1628 + friend void protobuf_AddDesc_csd_2eproto(); 1.1629 + friend void protobuf_AssignDesc_csd_2eproto(); 1.1630 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.1631 + 1.1632 + void InitAsDefaultInstance(); 1.1633 + static ClientDownloadReport_UserInformation* default_instance_; 1.1634 +}; 1.1635 +// ------------------------------------------------------------------- 1.1636 + 1.1637 +class ClientDownloadReport : public ::google::protobuf::MessageLite { 1.1638 + public: 1.1639 + ClientDownloadReport(); 1.1640 + virtual ~ClientDownloadReport(); 1.1641 + 1.1642 + ClientDownloadReport(const ClientDownloadReport& from); 1.1643 + 1.1644 + inline ClientDownloadReport& operator=(const ClientDownloadReport& from) { 1.1645 + CopyFrom(from); 1.1646 + return *this; 1.1647 + } 1.1648 + 1.1649 + static const ClientDownloadReport& default_instance(); 1.1650 + 1.1651 + void Swap(ClientDownloadReport* other); 1.1652 + 1.1653 + // implements Message ---------------------------------------------- 1.1654 + 1.1655 + ClientDownloadReport* New() const; 1.1656 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.1657 + void CopyFrom(const ClientDownloadReport& from); 1.1658 + void MergeFrom(const ClientDownloadReport& from); 1.1659 + void Clear(); 1.1660 + bool IsInitialized() const; 1.1661 + 1.1662 + int ByteSize() const; 1.1663 + bool MergePartialFromCodedStream( 1.1664 + ::google::protobuf::io::CodedInputStream* input); 1.1665 + void SerializeWithCachedSizes( 1.1666 + ::google::protobuf::io::CodedOutputStream* output) const; 1.1667 + int GetCachedSize() const { return _cached_size_; } 1.1668 + private: 1.1669 + void SharedCtor(); 1.1670 + void SharedDtor(); 1.1671 + void SetCachedSize(int size) const; 1.1672 + public: 1.1673 + 1.1674 + ::std::string GetTypeName() const; 1.1675 + 1.1676 + // nested types ---------------------------------------------------- 1.1677 + 1.1678 + typedef ClientDownloadReport_UserInformation UserInformation; 1.1679 + 1.1680 + typedef ClientDownloadReport_Reason Reason; 1.1681 + static const Reason SHARE = ClientDownloadReport_Reason_SHARE; 1.1682 + static const Reason FALSE_POSITIVE = ClientDownloadReport_Reason_FALSE_POSITIVE; 1.1683 + static const Reason APPEAL = ClientDownloadReport_Reason_APPEAL; 1.1684 + static inline bool Reason_IsValid(int value) { 1.1685 + return ClientDownloadReport_Reason_IsValid(value); 1.1686 + } 1.1687 + static const Reason Reason_MIN = 1.1688 + ClientDownloadReport_Reason_Reason_MIN; 1.1689 + static const Reason Reason_MAX = 1.1690 + ClientDownloadReport_Reason_Reason_MAX; 1.1691 + static const int Reason_ARRAYSIZE = 1.1692 + ClientDownloadReport_Reason_Reason_ARRAYSIZE; 1.1693 + 1.1694 + // accessors ------------------------------------------------------- 1.1695 + 1.1696 + // optional .safe_browsing.ClientDownloadReport.Reason reason = 1; 1.1697 + inline bool has_reason() const; 1.1698 + inline void clear_reason(); 1.1699 + static const int kReasonFieldNumber = 1; 1.1700 + inline ::safe_browsing::ClientDownloadReport_Reason reason() const; 1.1701 + inline void set_reason(::safe_browsing::ClientDownloadReport_Reason value); 1.1702 + 1.1703 + // optional .safe_browsing.ClientDownloadRequest download_request = 2; 1.1704 + inline bool has_download_request() const; 1.1705 + inline void clear_download_request(); 1.1706 + static const int kDownloadRequestFieldNumber = 2; 1.1707 + inline const ::safe_browsing::ClientDownloadRequest& download_request() const; 1.1708 + inline ::safe_browsing::ClientDownloadRequest* mutable_download_request(); 1.1709 + inline ::safe_browsing::ClientDownloadRequest* release_download_request(); 1.1710 + 1.1711 + // optional .safe_browsing.ClientDownloadReport.UserInformation user_information = 3; 1.1712 + inline bool has_user_information() const; 1.1713 + inline void clear_user_information(); 1.1714 + static const int kUserInformationFieldNumber = 3; 1.1715 + inline const ::safe_browsing::ClientDownloadReport_UserInformation& user_information() const; 1.1716 + inline ::safe_browsing::ClientDownloadReport_UserInformation* mutable_user_information(); 1.1717 + inline ::safe_browsing::ClientDownloadReport_UserInformation* release_user_information(); 1.1718 + 1.1719 + // optional bytes comment = 4; 1.1720 + inline bool has_comment() const; 1.1721 + inline void clear_comment(); 1.1722 + static const int kCommentFieldNumber = 4; 1.1723 + inline const ::std::string& comment() const; 1.1724 + inline void set_comment(const ::std::string& value); 1.1725 + inline void set_comment(const char* value); 1.1726 + inline void set_comment(const void* value, size_t size); 1.1727 + inline ::std::string* mutable_comment(); 1.1728 + inline ::std::string* release_comment(); 1.1729 + 1.1730 + // optional .safe_browsing.ClientDownloadResponse download_response = 5; 1.1731 + inline bool has_download_response() const; 1.1732 + inline void clear_download_response(); 1.1733 + static const int kDownloadResponseFieldNumber = 5; 1.1734 + inline const ::safe_browsing::ClientDownloadResponse& download_response() const; 1.1735 + inline ::safe_browsing::ClientDownloadResponse* mutable_download_response(); 1.1736 + inline ::safe_browsing::ClientDownloadResponse* release_download_response(); 1.1737 + 1.1738 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadReport) 1.1739 + private: 1.1740 + inline void set_has_reason(); 1.1741 + inline void clear_has_reason(); 1.1742 + inline void set_has_download_request(); 1.1743 + inline void clear_has_download_request(); 1.1744 + inline void set_has_user_information(); 1.1745 + inline void clear_has_user_information(); 1.1746 + inline void set_has_comment(); 1.1747 + inline void clear_has_comment(); 1.1748 + inline void set_has_download_response(); 1.1749 + inline void clear_has_download_response(); 1.1750 + 1.1751 + ::safe_browsing::ClientDownloadRequest* download_request_; 1.1752 + ::safe_browsing::ClientDownloadReport_UserInformation* user_information_; 1.1753 + ::std::string* comment_; 1.1754 + ::safe_browsing::ClientDownloadResponse* download_response_; 1.1755 + int reason_; 1.1756 + 1.1757 + mutable int _cached_size_; 1.1758 + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; 1.1759 + 1.1760 + friend void protobuf_AddDesc_csd_2eproto(); 1.1761 + friend void protobuf_AssignDesc_csd_2eproto(); 1.1762 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.1763 + 1.1764 + void InitAsDefaultInstance(); 1.1765 + static ClientDownloadReport* default_instance_; 1.1766 +}; 1.1767 +// ------------------------------------------------------------------- 1.1768 + 1.1769 +class ClientUploadResponse : public ::google::protobuf::MessageLite { 1.1770 + public: 1.1771 + ClientUploadResponse(); 1.1772 + virtual ~ClientUploadResponse(); 1.1773 + 1.1774 + ClientUploadResponse(const ClientUploadResponse& from); 1.1775 + 1.1776 + inline ClientUploadResponse& operator=(const ClientUploadResponse& from) { 1.1777 + CopyFrom(from); 1.1778 + return *this; 1.1779 + } 1.1780 + 1.1781 + static const ClientUploadResponse& default_instance(); 1.1782 + 1.1783 + void Swap(ClientUploadResponse* other); 1.1784 + 1.1785 + // implements Message ---------------------------------------------- 1.1786 + 1.1787 + ClientUploadResponse* New() const; 1.1788 + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); 1.1789 + void CopyFrom(const ClientUploadResponse& from); 1.1790 + void MergeFrom(const ClientUploadResponse& from); 1.1791 + void Clear(); 1.1792 + bool IsInitialized() const; 1.1793 + 1.1794 + int ByteSize() const; 1.1795 + bool MergePartialFromCodedStream( 1.1796 + ::google::protobuf::io::CodedInputStream* input); 1.1797 + void SerializeWithCachedSizes( 1.1798 + ::google::protobuf::io::CodedOutputStream* output) const; 1.1799 + int GetCachedSize() const { return _cached_size_; } 1.1800 + private: 1.1801 + void SharedCtor(); 1.1802 + void SharedDtor(); 1.1803 + void SetCachedSize(int size) const; 1.1804 + public: 1.1805 + 1.1806 + ::std::string GetTypeName() const; 1.1807 + 1.1808 + // nested types ---------------------------------------------------- 1.1809 + 1.1810 + typedef ClientUploadResponse_UploadStatus UploadStatus; 1.1811 + static const UploadStatus SUCCESS = ClientUploadResponse_UploadStatus_SUCCESS; 1.1812 + static const UploadStatus UPLOAD_FAILURE = ClientUploadResponse_UploadStatus_UPLOAD_FAILURE; 1.1813 + static inline bool UploadStatus_IsValid(int value) { 1.1814 + return ClientUploadResponse_UploadStatus_IsValid(value); 1.1815 + } 1.1816 + static const UploadStatus UploadStatus_MIN = 1.1817 + ClientUploadResponse_UploadStatus_UploadStatus_MIN; 1.1818 + static const UploadStatus UploadStatus_MAX = 1.1819 + ClientUploadResponse_UploadStatus_UploadStatus_MAX; 1.1820 + static const int UploadStatus_ARRAYSIZE = 1.1821 + ClientUploadResponse_UploadStatus_UploadStatus_ARRAYSIZE; 1.1822 + 1.1823 + // accessors ------------------------------------------------------- 1.1824 + 1.1825 + // optional .safe_browsing.ClientUploadResponse.UploadStatus status = 1; 1.1826 + inline bool has_status() const; 1.1827 + inline void clear_status(); 1.1828 + static const int kStatusFieldNumber = 1; 1.1829 + inline ::safe_browsing::ClientUploadResponse_UploadStatus status() const; 1.1830 + inline void set_status(::safe_browsing::ClientUploadResponse_UploadStatus value); 1.1831 + 1.1832 + // optional string permalink = 2; 1.1833 + inline bool has_permalink() const; 1.1834 + inline void clear_permalink(); 1.1835 + static const int kPermalinkFieldNumber = 2; 1.1836 + inline const ::std::string& permalink() const; 1.1837 + inline void set_permalink(const ::std::string& value); 1.1838 + inline void set_permalink(const char* value); 1.1839 + inline void set_permalink(const char* value, size_t size); 1.1840 + inline ::std::string* mutable_permalink(); 1.1841 + inline ::std::string* release_permalink(); 1.1842 + 1.1843 + // @@protoc_insertion_point(class_scope:safe_browsing.ClientUploadResponse) 1.1844 + private: 1.1845 + inline void set_has_status(); 1.1846 + inline void clear_has_status(); 1.1847 + inline void set_has_permalink(); 1.1848 + inline void clear_has_permalink(); 1.1849 + 1.1850 + ::std::string* permalink_; 1.1851 + int status_; 1.1852 + 1.1853 + mutable int _cached_size_; 1.1854 + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; 1.1855 + 1.1856 + friend void protobuf_AddDesc_csd_2eproto(); 1.1857 + friend void protobuf_AssignDesc_csd_2eproto(); 1.1858 + friend void protobuf_ShutdownFile_csd_2eproto(); 1.1859 + 1.1860 + void InitAsDefaultInstance(); 1.1861 + static ClientUploadResponse* default_instance_; 1.1862 +}; 1.1863 +// =================================================================== 1.1864 + 1.1865 + 1.1866 +// =================================================================== 1.1867 + 1.1868 +// ClientPhishingRequest_Feature 1.1869 + 1.1870 +// required string name = 1; 1.1871 +inline bool ClientPhishingRequest_Feature::has_name() const { 1.1872 + return (_has_bits_[0] & 0x00000001u) != 0; 1.1873 +} 1.1874 +inline void ClientPhishingRequest_Feature::set_has_name() { 1.1875 + _has_bits_[0] |= 0x00000001u; 1.1876 +} 1.1877 +inline void ClientPhishingRequest_Feature::clear_has_name() { 1.1878 + _has_bits_[0] &= ~0x00000001u; 1.1879 +} 1.1880 +inline void ClientPhishingRequest_Feature::clear_name() { 1.1881 + if (name_ != &::google::protobuf::internal::kEmptyString) { 1.1882 + name_->clear(); 1.1883 + } 1.1884 + clear_has_name(); 1.1885 +} 1.1886 +inline const ::std::string& ClientPhishingRequest_Feature::name() const { 1.1887 + return *name_; 1.1888 +} 1.1889 +inline void ClientPhishingRequest_Feature::set_name(const ::std::string& value) { 1.1890 + set_has_name(); 1.1891 + if (name_ == &::google::protobuf::internal::kEmptyString) { 1.1892 + name_ = new ::std::string; 1.1893 + } 1.1894 + name_->assign(value); 1.1895 +} 1.1896 +inline void ClientPhishingRequest_Feature::set_name(const char* value) { 1.1897 + set_has_name(); 1.1898 + if (name_ == &::google::protobuf::internal::kEmptyString) { 1.1899 + name_ = new ::std::string; 1.1900 + } 1.1901 + name_->assign(value); 1.1902 +} 1.1903 +inline void ClientPhishingRequest_Feature::set_name(const char* value, size_t size) { 1.1904 + set_has_name(); 1.1905 + if (name_ == &::google::protobuf::internal::kEmptyString) { 1.1906 + name_ = new ::std::string; 1.1907 + } 1.1908 + name_->assign(reinterpret_cast<const char*>(value), size); 1.1909 +} 1.1910 +inline ::std::string* ClientPhishingRequest_Feature::mutable_name() { 1.1911 + set_has_name(); 1.1912 + if (name_ == &::google::protobuf::internal::kEmptyString) { 1.1913 + name_ = new ::std::string; 1.1914 + } 1.1915 + return name_; 1.1916 +} 1.1917 +inline ::std::string* ClientPhishingRequest_Feature::release_name() { 1.1918 + clear_has_name(); 1.1919 + if (name_ == &::google::protobuf::internal::kEmptyString) { 1.1920 + return NULL; 1.1921 + } else { 1.1922 + ::std::string* temp = name_; 1.1923 + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.1924 + return temp; 1.1925 + } 1.1926 +} 1.1927 + 1.1928 +// required double value = 2; 1.1929 +inline bool ClientPhishingRequest_Feature::has_value() const { 1.1930 + return (_has_bits_[0] & 0x00000002u) != 0; 1.1931 +} 1.1932 +inline void ClientPhishingRequest_Feature::set_has_value() { 1.1933 + _has_bits_[0] |= 0x00000002u; 1.1934 +} 1.1935 +inline void ClientPhishingRequest_Feature::clear_has_value() { 1.1936 + _has_bits_[0] &= ~0x00000002u; 1.1937 +} 1.1938 +inline void ClientPhishingRequest_Feature::clear_value() { 1.1939 + value_ = 0; 1.1940 + clear_has_value(); 1.1941 +} 1.1942 +inline double ClientPhishingRequest_Feature::value() const { 1.1943 + return value_; 1.1944 +} 1.1945 +inline void ClientPhishingRequest_Feature::set_value(double value) { 1.1946 + set_has_value(); 1.1947 + value_ = value; 1.1948 +} 1.1949 + 1.1950 +// ------------------------------------------------------------------- 1.1951 + 1.1952 +// ClientPhishingRequest 1.1953 + 1.1954 +// optional string url = 1; 1.1955 +inline bool ClientPhishingRequest::has_url() const { 1.1956 + return (_has_bits_[0] & 0x00000001u) != 0; 1.1957 +} 1.1958 +inline void ClientPhishingRequest::set_has_url() { 1.1959 + _has_bits_[0] |= 0x00000001u; 1.1960 +} 1.1961 +inline void ClientPhishingRequest::clear_has_url() { 1.1962 + _has_bits_[0] &= ~0x00000001u; 1.1963 +} 1.1964 +inline void ClientPhishingRequest::clear_url() { 1.1965 + if (url_ != &::google::protobuf::internal::kEmptyString) { 1.1966 + url_->clear(); 1.1967 + } 1.1968 + clear_has_url(); 1.1969 +} 1.1970 +inline const ::std::string& ClientPhishingRequest::url() const { 1.1971 + return *url_; 1.1972 +} 1.1973 +inline void ClientPhishingRequest::set_url(const ::std::string& value) { 1.1974 + set_has_url(); 1.1975 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.1976 + url_ = new ::std::string; 1.1977 + } 1.1978 + url_->assign(value); 1.1979 +} 1.1980 +inline void ClientPhishingRequest::set_url(const char* value) { 1.1981 + set_has_url(); 1.1982 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.1983 + url_ = new ::std::string; 1.1984 + } 1.1985 + url_->assign(value); 1.1986 +} 1.1987 +inline void ClientPhishingRequest::set_url(const char* value, size_t size) { 1.1988 + set_has_url(); 1.1989 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.1990 + url_ = new ::std::string; 1.1991 + } 1.1992 + url_->assign(reinterpret_cast<const char*>(value), size); 1.1993 +} 1.1994 +inline ::std::string* ClientPhishingRequest::mutable_url() { 1.1995 + set_has_url(); 1.1996 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.1997 + url_ = new ::std::string; 1.1998 + } 1.1999 + return url_; 1.2000 +} 1.2001 +inline ::std::string* ClientPhishingRequest::release_url() { 1.2002 + clear_has_url(); 1.2003 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.2004 + return NULL; 1.2005 + } else { 1.2006 + ::std::string* temp = url_; 1.2007 + url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.2008 + return temp; 1.2009 + } 1.2010 +} 1.2011 + 1.2012 +// optional bytes OBSOLETE_hash_prefix = 10; 1.2013 +inline bool ClientPhishingRequest::has_obsolete_hash_prefix() const { 1.2014 + return (_has_bits_[0] & 0x00000002u) != 0; 1.2015 +} 1.2016 +inline void ClientPhishingRequest::set_has_obsolete_hash_prefix() { 1.2017 + _has_bits_[0] |= 0x00000002u; 1.2018 +} 1.2019 +inline void ClientPhishingRequest::clear_has_obsolete_hash_prefix() { 1.2020 + _has_bits_[0] &= ~0x00000002u; 1.2021 +} 1.2022 +inline void ClientPhishingRequest::clear_obsolete_hash_prefix() { 1.2023 + if (obsolete_hash_prefix_ != &::google::protobuf::internal::kEmptyString) { 1.2024 + obsolete_hash_prefix_->clear(); 1.2025 + } 1.2026 + clear_has_obsolete_hash_prefix(); 1.2027 +} 1.2028 +inline const ::std::string& ClientPhishingRequest::obsolete_hash_prefix() const { 1.2029 + return *obsolete_hash_prefix_; 1.2030 +} 1.2031 +inline void ClientPhishingRequest::set_obsolete_hash_prefix(const ::std::string& value) { 1.2032 + set_has_obsolete_hash_prefix(); 1.2033 + if (obsolete_hash_prefix_ == &::google::protobuf::internal::kEmptyString) { 1.2034 + obsolete_hash_prefix_ = new ::std::string; 1.2035 + } 1.2036 + obsolete_hash_prefix_->assign(value); 1.2037 +} 1.2038 +inline void ClientPhishingRequest::set_obsolete_hash_prefix(const char* value) { 1.2039 + set_has_obsolete_hash_prefix(); 1.2040 + if (obsolete_hash_prefix_ == &::google::protobuf::internal::kEmptyString) { 1.2041 + obsolete_hash_prefix_ = new ::std::string; 1.2042 + } 1.2043 + obsolete_hash_prefix_->assign(value); 1.2044 +} 1.2045 +inline void ClientPhishingRequest::set_obsolete_hash_prefix(const void* value, size_t size) { 1.2046 + set_has_obsolete_hash_prefix(); 1.2047 + if (obsolete_hash_prefix_ == &::google::protobuf::internal::kEmptyString) { 1.2048 + obsolete_hash_prefix_ = new ::std::string; 1.2049 + } 1.2050 + obsolete_hash_prefix_->assign(reinterpret_cast<const char*>(value), size); 1.2051 +} 1.2052 +inline ::std::string* ClientPhishingRequest::mutable_obsolete_hash_prefix() { 1.2053 + set_has_obsolete_hash_prefix(); 1.2054 + if (obsolete_hash_prefix_ == &::google::protobuf::internal::kEmptyString) { 1.2055 + obsolete_hash_prefix_ = new ::std::string; 1.2056 + } 1.2057 + return obsolete_hash_prefix_; 1.2058 +} 1.2059 +inline ::std::string* ClientPhishingRequest::release_obsolete_hash_prefix() { 1.2060 + clear_has_obsolete_hash_prefix(); 1.2061 + if (obsolete_hash_prefix_ == &::google::protobuf::internal::kEmptyString) { 1.2062 + return NULL; 1.2063 + } else { 1.2064 + ::std::string* temp = obsolete_hash_prefix_; 1.2065 + obsolete_hash_prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.2066 + return temp; 1.2067 + } 1.2068 +} 1.2069 + 1.2070 +// required float client_score = 2; 1.2071 +inline bool ClientPhishingRequest::has_client_score() const { 1.2072 + return (_has_bits_[0] & 0x00000004u) != 0; 1.2073 +} 1.2074 +inline void ClientPhishingRequest::set_has_client_score() { 1.2075 + _has_bits_[0] |= 0x00000004u; 1.2076 +} 1.2077 +inline void ClientPhishingRequest::clear_has_client_score() { 1.2078 + _has_bits_[0] &= ~0x00000004u; 1.2079 +} 1.2080 +inline void ClientPhishingRequest::clear_client_score() { 1.2081 + client_score_ = 0; 1.2082 + clear_has_client_score(); 1.2083 +} 1.2084 +inline float ClientPhishingRequest::client_score() const { 1.2085 + return client_score_; 1.2086 +} 1.2087 +inline void ClientPhishingRequest::set_client_score(float value) { 1.2088 + set_has_client_score(); 1.2089 + client_score_ = value; 1.2090 +} 1.2091 + 1.2092 +// optional bool is_phishing = 4; 1.2093 +inline bool ClientPhishingRequest::has_is_phishing() const { 1.2094 + return (_has_bits_[0] & 0x00000008u) != 0; 1.2095 +} 1.2096 +inline void ClientPhishingRequest::set_has_is_phishing() { 1.2097 + _has_bits_[0] |= 0x00000008u; 1.2098 +} 1.2099 +inline void ClientPhishingRequest::clear_has_is_phishing() { 1.2100 + _has_bits_[0] &= ~0x00000008u; 1.2101 +} 1.2102 +inline void ClientPhishingRequest::clear_is_phishing() { 1.2103 + is_phishing_ = false; 1.2104 + clear_has_is_phishing(); 1.2105 +} 1.2106 +inline bool ClientPhishingRequest::is_phishing() const { 1.2107 + return is_phishing_; 1.2108 +} 1.2109 +inline void ClientPhishingRequest::set_is_phishing(bool value) { 1.2110 + set_has_is_phishing(); 1.2111 + is_phishing_ = value; 1.2112 +} 1.2113 + 1.2114 +// repeated .safe_browsing.ClientPhishingRequest.Feature feature_map = 5; 1.2115 +inline int ClientPhishingRequest::feature_map_size() const { 1.2116 + return feature_map_.size(); 1.2117 +} 1.2118 +inline void ClientPhishingRequest::clear_feature_map() { 1.2119 + feature_map_.Clear(); 1.2120 +} 1.2121 +inline const ::safe_browsing::ClientPhishingRequest_Feature& ClientPhishingRequest::feature_map(int index) const { 1.2122 + return feature_map_.Get(index); 1.2123 +} 1.2124 +inline ::safe_browsing::ClientPhishingRequest_Feature* ClientPhishingRequest::mutable_feature_map(int index) { 1.2125 + return feature_map_.Mutable(index); 1.2126 +} 1.2127 +inline ::safe_browsing::ClientPhishingRequest_Feature* ClientPhishingRequest::add_feature_map() { 1.2128 + return feature_map_.Add(); 1.2129 +} 1.2130 +inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >& 1.2131 +ClientPhishingRequest::feature_map() const { 1.2132 + return feature_map_; 1.2133 +} 1.2134 +inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >* 1.2135 +ClientPhishingRequest::mutable_feature_map() { 1.2136 + return &feature_map_; 1.2137 +} 1.2138 + 1.2139 +// optional int32 model_version = 6; 1.2140 +inline bool ClientPhishingRequest::has_model_version() const { 1.2141 + return (_has_bits_[0] & 0x00000020u) != 0; 1.2142 +} 1.2143 +inline void ClientPhishingRequest::set_has_model_version() { 1.2144 + _has_bits_[0] |= 0x00000020u; 1.2145 +} 1.2146 +inline void ClientPhishingRequest::clear_has_model_version() { 1.2147 + _has_bits_[0] &= ~0x00000020u; 1.2148 +} 1.2149 +inline void ClientPhishingRequest::clear_model_version() { 1.2150 + model_version_ = 0; 1.2151 + clear_has_model_version(); 1.2152 +} 1.2153 +inline ::google::protobuf::int32 ClientPhishingRequest::model_version() const { 1.2154 + return model_version_; 1.2155 +} 1.2156 +inline void ClientPhishingRequest::set_model_version(::google::protobuf::int32 value) { 1.2157 + set_has_model_version(); 1.2158 + model_version_ = value; 1.2159 +} 1.2160 + 1.2161 +// repeated .safe_browsing.ClientPhishingRequest.Feature non_model_feature_map = 8; 1.2162 +inline int ClientPhishingRequest::non_model_feature_map_size() const { 1.2163 + return non_model_feature_map_.size(); 1.2164 +} 1.2165 +inline void ClientPhishingRequest::clear_non_model_feature_map() { 1.2166 + non_model_feature_map_.Clear(); 1.2167 +} 1.2168 +inline const ::safe_browsing::ClientPhishingRequest_Feature& ClientPhishingRequest::non_model_feature_map(int index) const { 1.2169 + return non_model_feature_map_.Get(index); 1.2170 +} 1.2171 +inline ::safe_browsing::ClientPhishingRequest_Feature* ClientPhishingRequest::mutable_non_model_feature_map(int index) { 1.2172 + return non_model_feature_map_.Mutable(index); 1.2173 +} 1.2174 +inline ::safe_browsing::ClientPhishingRequest_Feature* ClientPhishingRequest::add_non_model_feature_map() { 1.2175 + return non_model_feature_map_.Add(); 1.2176 +} 1.2177 +inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >& 1.2178 +ClientPhishingRequest::non_model_feature_map() const { 1.2179 + return non_model_feature_map_; 1.2180 +} 1.2181 +inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >* 1.2182 +ClientPhishingRequest::mutable_non_model_feature_map() { 1.2183 + return &non_model_feature_map_; 1.2184 +} 1.2185 + 1.2186 +// optional string OBSOLETE_referrer_url = 9; 1.2187 +inline bool ClientPhishingRequest::has_obsolete_referrer_url() const { 1.2188 + return (_has_bits_[0] & 0x00000080u) != 0; 1.2189 +} 1.2190 +inline void ClientPhishingRequest::set_has_obsolete_referrer_url() { 1.2191 + _has_bits_[0] |= 0x00000080u; 1.2192 +} 1.2193 +inline void ClientPhishingRequest::clear_has_obsolete_referrer_url() { 1.2194 + _has_bits_[0] &= ~0x00000080u; 1.2195 +} 1.2196 +inline void ClientPhishingRequest::clear_obsolete_referrer_url() { 1.2197 + if (obsolete_referrer_url_ != &::google::protobuf::internal::kEmptyString) { 1.2198 + obsolete_referrer_url_->clear(); 1.2199 + } 1.2200 + clear_has_obsolete_referrer_url(); 1.2201 +} 1.2202 +inline const ::std::string& ClientPhishingRequest::obsolete_referrer_url() const { 1.2203 + return *obsolete_referrer_url_; 1.2204 +} 1.2205 +inline void ClientPhishingRequest::set_obsolete_referrer_url(const ::std::string& value) { 1.2206 + set_has_obsolete_referrer_url(); 1.2207 + if (obsolete_referrer_url_ == &::google::protobuf::internal::kEmptyString) { 1.2208 + obsolete_referrer_url_ = new ::std::string; 1.2209 + } 1.2210 + obsolete_referrer_url_->assign(value); 1.2211 +} 1.2212 +inline void ClientPhishingRequest::set_obsolete_referrer_url(const char* value) { 1.2213 + set_has_obsolete_referrer_url(); 1.2214 + if (obsolete_referrer_url_ == &::google::protobuf::internal::kEmptyString) { 1.2215 + obsolete_referrer_url_ = new ::std::string; 1.2216 + } 1.2217 + obsolete_referrer_url_->assign(value); 1.2218 +} 1.2219 +inline void ClientPhishingRequest::set_obsolete_referrer_url(const char* value, size_t size) { 1.2220 + set_has_obsolete_referrer_url(); 1.2221 + if (obsolete_referrer_url_ == &::google::protobuf::internal::kEmptyString) { 1.2222 + obsolete_referrer_url_ = new ::std::string; 1.2223 + } 1.2224 + obsolete_referrer_url_->assign(reinterpret_cast<const char*>(value), size); 1.2225 +} 1.2226 +inline ::std::string* ClientPhishingRequest::mutable_obsolete_referrer_url() { 1.2227 + set_has_obsolete_referrer_url(); 1.2228 + if (obsolete_referrer_url_ == &::google::protobuf::internal::kEmptyString) { 1.2229 + obsolete_referrer_url_ = new ::std::string; 1.2230 + } 1.2231 + return obsolete_referrer_url_; 1.2232 +} 1.2233 +inline ::std::string* ClientPhishingRequest::release_obsolete_referrer_url() { 1.2234 + clear_has_obsolete_referrer_url(); 1.2235 + if (obsolete_referrer_url_ == &::google::protobuf::internal::kEmptyString) { 1.2236 + return NULL; 1.2237 + } else { 1.2238 + ::std::string* temp = obsolete_referrer_url_; 1.2239 + obsolete_referrer_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.2240 + return temp; 1.2241 + } 1.2242 +} 1.2243 + 1.2244 +// ------------------------------------------------------------------- 1.2245 + 1.2246 +// ClientPhishingResponse 1.2247 + 1.2248 +// required bool phishy = 1; 1.2249 +inline bool ClientPhishingResponse::has_phishy() const { 1.2250 + return (_has_bits_[0] & 0x00000001u) != 0; 1.2251 +} 1.2252 +inline void ClientPhishingResponse::set_has_phishy() { 1.2253 + _has_bits_[0] |= 0x00000001u; 1.2254 +} 1.2255 +inline void ClientPhishingResponse::clear_has_phishy() { 1.2256 + _has_bits_[0] &= ~0x00000001u; 1.2257 +} 1.2258 +inline void ClientPhishingResponse::clear_phishy() { 1.2259 + phishy_ = false; 1.2260 + clear_has_phishy(); 1.2261 +} 1.2262 +inline bool ClientPhishingResponse::phishy() const { 1.2263 + return phishy_; 1.2264 +} 1.2265 +inline void ClientPhishingResponse::set_phishy(bool value) { 1.2266 + set_has_phishy(); 1.2267 + phishy_ = value; 1.2268 +} 1.2269 + 1.2270 +// repeated string OBSOLETE_whitelist_expression = 2; 1.2271 +inline int ClientPhishingResponse::obsolete_whitelist_expression_size() const { 1.2272 + return obsolete_whitelist_expression_.size(); 1.2273 +} 1.2274 +inline void ClientPhishingResponse::clear_obsolete_whitelist_expression() { 1.2275 + obsolete_whitelist_expression_.Clear(); 1.2276 +} 1.2277 +inline const ::std::string& ClientPhishingResponse::obsolete_whitelist_expression(int index) const { 1.2278 + return obsolete_whitelist_expression_.Get(index); 1.2279 +} 1.2280 +inline ::std::string* ClientPhishingResponse::mutable_obsolete_whitelist_expression(int index) { 1.2281 + return obsolete_whitelist_expression_.Mutable(index); 1.2282 +} 1.2283 +inline void ClientPhishingResponse::set_obsolete_whitelist_expression(int index, const ::std::string& value) { 1.2284 + obsolete_whitelist_expression_.Mutable(index)->assign(value); 1.2285 +} 1.2286 +inline void ClientPhishingResponse::set_obsolete_whitelist_expression(int index, const char* value) { 1.2287 + obsolete_whitelist_expression_.Mutable(index)->assign(value); 1.2288 +} 1.2289 +inline void ClientPhishingResponse::set_obsolete_whitelist_expression(int index, const char* value, size_t size) { 1.2290 + obsolete_whitelist_expression_.Mutable(index)->assign( 1.2291 + reinterpret_cast<const char*>(value), size); 1.2292 +} 1.2293 +inline ::std::string* ClientPhishingResponse::add_obsolete_whitelist_expression() { 1.2294 + return obsolete_whitelist_expression_.Add(); 1.2295 +} 1.2296 +inline void ClientPhishingResponse::add_obsolete_whitelist_expression(const ::std::string& value) { 1.2297 + obsolete_whitelist_expression_.Add()->assign(value); 1.2298 +} 1.2299 +inline void ClientPhishingResponse::add_obsolete_whitelist_expression(const char* value) { 1.2300 + obsolete_whitelist_expression_.Add()->assign(value); 1.2301 +} 1.2302 +inline void ClientPhishingResponse::add_obsolete_whitelist_expression(const char* value, size_t size) { 1.2303 + obsolete_whitelist_expression_.Add()->assign(reinterpret_cast<const char*>(value), size); 1.2304 +} 1.2305 +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& 1.2306 +ClientPhishingResponse::obsolete_whitelist_expression() const { 1.2307 + return obsolete_whitelist_expression_; 1.2308 +} 1.2309 +inline ::google::protobuf::RepeatedPtrField< ::std::string>* 1.2310 +ClientPhishingResponse::mutable_obsolete_whitelist_expression() { 1.2311 + return &obsolete_whitelist_expression_; 1.2312 +} 1.2313 + 1.2314 +// ------------------------------------------------------------------- 1.2315 + 1.2316 +// ClientMalwareRequest_Feature 1.2317 + 1.2318 +// required string name = 1; 1.2319 +inline bool ClientMalwareRequest_Feature::has_name() const { 1.2320 + return (_has_bits_[0] & 0x00000001u) != 0; 1.2321 +} 1.2322 +inline void ClientMalwareRequest_Feature::set_has_name() { 1.2323 + _has_bits_[0] |= 0x00000001u; 1.2324 +} 1.2325 +inline void ClientMalwareRequest_Feature::clear_has_name() { 1.2326 + _has_bits_[0] &= ~0x00000001u; 1.2327 +} 1.2328 +inline void ClientMalwareRequest_Feature::clear_name() { 1.2329 + if (name_ != &::google::protobuf::internal::kEmptyString) { 1.2330 + name_->clear(); 1.2331 + } 1.2332 + clear_has_name(); 1.2333 +} 1.2334 +inline const ::std::string& ClientMalwareRequest_Feature::name() const { 1.2335 + return *name_; 1.2336 +} 1.2337 +inline void ClientMalwareRequest_Feature::set_name(const ::std::string& value) { 1.2338 + set_has_name(); 1.2339 + if (name_ == &::google::protobuf::internal::kEmptyString) { 1.2340 + name_ = new ::std::string; 1.2341 + } 1.2342 + name_->assign(value); 1.2343 +} 1.2344 +inline void ClientMalwareRequest_Feature::set_name(const char* value) { 1.2345 + set_has_name(); 1.2346 + if (name_ == &::google::protobuf::internal::kEmptyString) { 1.2347 + name_ = new ::std::string; 1.2348 + } 1.2349 + name_->assign(value); 1.2350 +} 1.2351 +inline void ClientMalwareRequest_Feature::set_name(const char* value, size_t size) { 1.2352 + set_has_name(); 1.2353 + if (name_ == &::google::protobuf::internal::kEmptyString) { 1.2354 + name_ = new ::std::string; 1.2355 + } 1.2356 + name_->assign(reinterpret_cast<const char*>(value), size); 1.2357 +} 1.2358 +inline ::std::string* ClientMalwareRequest_Feature::mutable_name() { 1.2359 + set_has_name(); 1.2360 + if (name_ == &::google::protobuf::internal::kEmptyString) { 1.2361 + name_ = new ::std::string; 1.2362 + } 1.2363 + return name_; 1.2364 +} 1.2365 +inline ::std::string* ClientMalwareRequest_Feature::release_name() { 1.2366 + clear_has_name(); 1.2367 + if (name_ == &::google::protobuf::internal::kEmptyString) { 1.2368 + return NULL; 1.2369 + } else { 1.2370 + ::std::string* temp = name_; 1.2371 + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.2372 + return temp; 1.2373 + } 1.2374 +} 1.2375 + 1.2376 +// required double value = 2; 1.2377 +inline bool ClientMalwareRequest_Feature::has_value() const { 1.2378 + return (_has_bits_[0] & 0x00000002u) != 0; 1.2379 +} 1.2380 +inline void ClientMalwareRequest_Feature::set_has_value() { 1.2381 + _has_bits_[0] |= 0x00000002u; 1.2382 +} 1.2383 +inline void ClientMalwareRequest_Feature::clear_has_value() { 1.2384 + _has_bits_[0] &= ~0x00000002u; 1.2385 +} 1.2386 +inline void ClientMalwareRequest_Feature::clear_value() { 1.2387 + value_ = 0; 1.2388 + clear_has_value(); 1.2389 +} 1.2390 +inline double ClientMalwareRequest_Feature::value() const { 1.2391 + return value_; 1.2392 +} 1.2393 +inline void ClientMalwareRequest_Feature::set_value(double value) { 1.2394 + set_has_value(); 1.2395 + value_ = value; 1.2396 +} 1.2397 + 1.2398 +// repeated string metainfo = 3; 1.2399 +inline int ClientMalwareRequest_Feature::metainfo_size() const { 1.2400 + return metainfo_.size(); 1.2401 +} 1.2402 +inline void ClientMalwareRequest_Feature::clear_metainfo() { 1.2403 + metainfo_.Clear(); 1.2404 +} 1.2405 +inline const ::std::string& ClientMalwareRequest_Feature::metainfo(int index) const { 1.2406 + return metainfo_.Get(index); 1.2407 +} 1.2408 +inline ::std::string* ClientMalwareRequest_Feature::mutable_metainfo(int index) { 1.2409 + return metainfo_.Mutable(index); 1.2410 +} 1.2411 +inline void ClientMalwareRequest_Feature::set_metainfo(int index, const ::std::string& value) { 1.2412 + metainfo_.Mutable(index)->assign(value); 1.2413 +} 1.2414 +inline void ClientMalwareRequest_Feature::set_metainfo(int index, const char* value) { 1.2415 + metainfo_.Mutable(index)->assign(value); 1.2416 +} 1.2417 +inline void ClientMalwareRequest_Feature::set_metainfo(int index, const char* value, size_t size) { 1.2418 + metainfo_.Mutable(index)->assign( 1.2419 + reinterpret_cast<const char*>(value), size); 1.2420 +} 1.2421 +inline ::std::string* ClientMalwareRequest_Feature::add_metainfo() { 1.2422 + return metainfo_.Add(); 1.2423 +} 1.2424 +inline void ClientMalwareRequest_Feature::add_metainfo(const ::std::string& value) { 1.2425 + metainfo_.Add()->assign(value); 1.2426 +} 1.2427 +inline void ClientMalwareRequest_Feature::add_metainfo(const char* value) { 1.2428 + metainfo_.Add()->assign(value); 1.2429 +} 1.2430 +inline void ClientMalwareRequest_Feature::add_metainfo(const char* value, size_t size) { 1.2431 + metainfo_.Add()->assign(reinterpret_cast<const char*>(value), size); 1.2432 +} 1.2433 +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& 1.2434 +ClientMalwareRequest_Feature::metainfo() const { 1.2435 + return metainfo_; 1.2436 +} 1.2437 +inline ::google::protobuf::RepeatedPtrField< ::std::string>* 1.2438 +ClientMalwareRequest_Feature::mutable_metainfo() { 1.2439 + return &metainfo_; 1.2440 +} 1.2441 + 1.2442 +// ------------------------------------------------------------------- 1.2443 + 1.2444 +// ClientMalwareRequest 1.2445 + 1.2446 +// required string url = 1; 1.2447 +inline bool ClientMalwareRequest::has_url() const { 1.2448 + return (_has_bits_[0] & 0x00000001u) != 0; 1.2449 +} 1.2450 +inline void ClientMalwareRequest::set_has_url() { 1.2451 + _has_bits_[0] |= 0x00000001u; 1.2452 +} 1.2453 +inline void ClientMalwareRequest::clear_has_url() { 1.2454 + _has_bits_[0] &= ~0x00000001u; 1.2455 +} 1.2456 +inline void ClientMalwareRequest::clear_url() { 1.2457 + if (url_ != &::google::protobuf::internal::kEmptyString) { 1.2458 + url_->clear(); 1.2459 + } 1.2460 + clear_has_url(); 1.2461 +} 1.2462 +inline const ::std::string& ClientMalwareRequest::url() const { 1.2463 + return *url_; 1.2464 +} 1.2465 +inline void ClientMalwareRequest::set_url(const ::std::string& value) { 1.2466 + set_has_url(); 1.2467 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.2468 + url_ = new ::std::string; 1.2469 + } 1.2470 + url_->assign(value); 1.2471 +} 1.2472 +inline void ClientMalwareRequest::set_url(const char* value) { 1.2473 + set_has_url(); 1.2474 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.2475 + url_ = new ::std::string; 1.2476 + } 1.2477 + url_->assign(value); 1.2478 +} 1.2479 +inline void ClientMalwareRequest::set_url(const char* value, size_t size) { 1.2480 + set_has_url(); 1.2481 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.2482 + url_ = new ::std::string; 1.2483 + } 1.2484 + url_->assign(reinterpret_cast<const char*>(value), size); 1.2485 +} 1.2486 +inline ::std::string* ClientMalwareRequest::mutable_url() { 1.2487 + set_has_url(); 1.2488 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.2489 + url_ = new ::std::string; 1.2490 + } 1.2491 + return url_; 1.2492 +} 1.2493 +inline ::std::string* ClientMalwareRequest::release_url() { 1.2494 + clear_has_url(); 1.2495 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.2496 + return NULL; 1.2497 + } else { 1.2498 + ::std::string* temp = url_; 1.2499 + url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.2500 + return temp; 1.2501 + } 1.2502 +} 1.2503 + 1.2504 +// repeated .safe_browsing.ClientMalwareRequest.Feature feature_map = 2; 1.2505 +inline int ClientMalwareRequest::feature_map_size() const { 1.2506 + return feature_map_.size(); 1.2507 +} 1.2508 +inline void ClientMalwareRequest::clear_feature_map() { 1.2509 + feature_map_.Clear(); 1.2510 +} 1.2511 +inline const ::safe_browsing::ClientMalwareRequest_Feature& ClientMalwareRequest::feature_map(int index) const { 1.2512 + return feature_map_.Get(index); 1.2513 +} 1.2514 +inline ::safe_browsing::ClientMalwareRequest_Feature* ClientMalwareRequest::mutable_feature_map(int index) { 1.2515 + return feature_map_.Mutable(index); 1.2516 +} 1.2517 +inline ::safe_browsing::ClientMalwareRequest_Feature* ClientMalwareRequest::add_feature_map() { 1.2518 + return feature_map_.Add(); 1.2519 +} 1.2520 +inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientMalwareRequest_Feature >& 1.2521 +ClientMalwareRequest::feature_map() const { 1.2522 + return feature_map_; 1.2523 +} 1.2524 +inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientMalwareRequest_Feature >* 1.2525 +ClientMalwareRequest::mutable_feature_map() { 1.2526 + return &feature_map_; 1.2527 +} 1.2528 + 1.2529 +// optional string referrer_url = 4; 1.2530 +inline bool ClientMalwareRequest::has_referrer_url() const { 1.2531 + return (_has_bits_[0] & 0x00000004u) != 0; 1.2532 +} 1.2533 +inline void ClientMalwareRequest::set_has_referrer_url() { 1.2534 + _has_bits_[0] |= 0x00000004u; 1.2535 +} 1.2536 +inline void ClientMalwareRequest::clear_has_referrer_url() { 1.2537 + _has_bits_[0] &= ~0x00000004u; 1.2538 +} 1.2539 +inline void ClientMalwareRequest::clear_referrer_url() { 1.2540 + if (referrer_url_ != &::google::protobuf::internal::kEmptyString) { 1.2541 + referrer_url_->clear(); 1.2542 + } 1.2543 + clear_has_referrer_url(); 1.2544 +} 1.2545 +inline const ::std::string& ClientMalwareRequest::referrer_url() const { 1.2546 + return *referrer_url_; 1.2547 +} 1.2548 +inline void ClientMalwareRequest::set_referrer_url(const ::std::string& value) { 1.2549 + set_has_referrer_url(); 1.2550 + if (referrer_url_ == &::google::protobuf::internal::kEmptyString) { 1.2551 + referrer_url_ = new ::std::string; 1.2552 + } 1.2553 + referrer_url_->assign(value); 1.2554 +} 1.2555 +inline void ClientMalwareRequest::set_referrer_url(const char* value) { 1.2556 + set_has_referrer_url(); 1.2557 + if (referrer_url_ == &::google::protobuf::internal::kEmptyString) { 1.2558 + referrer_url_ = new ::std::string; 1.2559 + } 1.2560 + referrer_url_->assign(value); 1.2561 +} 1.2562 +inline void ClientMalwareRequest::set_referrer_url(const char* value, size_t size) { 1.2563 + set_has_referrer_url(); 1.2564 + if (referrer_url_ == &::google::protobuf::internal::kEmptyString) { 1.2565 + referrer_url_ = new ::std::string; 1.2566 + } 1.2567 + referrer_url_->assign(reinterpret_cast<const char*>(value), size); 1.2568 +} 1.2569 +inline ::std::string* ClientMalwareRequest::mutable_referrer_url() { 1.2570 + set_has_referrer_url(); 1.2571 + if (referrer_url_ == &::google::protobuf::internal::kEmptyString) { 1.2572 + referrer_url_ = new ::std::string; 1.2573 + } 1.2574 + return referrer_url_; 1.2575 +} 1.2576 +inline ::std::string* ClientMalwareRequest::release_referrer_url() { 1.2577 + clear_has_referrer_url(); 1.2578 + if (referrer_url_ == &::google::protobuf::internal::kEmptyString) { 1.2579 + return NULL; 1.2580 + } else { 1.2581 + ::std::string* temp = referrer_url_; 1.2582 + referrer_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.2583 + return temp; 1.2584 + } 1.2585 +} 1.2586 + 1.2587 +// ------------------------------------------------------------------- 1.2588 + 1.2589 +// ClientMalwareResponse 1.2590 + 1.2591 +// required bool blacklist = 1; 1.2592 +inline bool ClientMalwareResponse::has_blacklist() const { 1.2593 + return (_has_bits_[0] & 0x00000001u) != 0; 1.2594 +} 1.2595 +inline void ClientMalwareResponse::set_has_blacklist() { 1.2596 + _has_bits_[0] |= 0x00000001u; 1.2597 +} 1.2598 +inline void ClientMalwareResponse::clear_has_blacklist() { 1.2599 + _has_bits_[0] &= ~0x00000001u; 1.2600 +} 1.2601 +inline void ClientMalwareResponse::clear_blacklist() { 1.2602 + blacklist_ = false; 1.2603 + clear_has_blacklist(); 1.2604 +} 1.2605 +inline bool ClientMalwareResponse::blacklist() const { 1.2606 + return blacklist_; 1.2607 +} 1.2608 +inline void ClientMalwareResponse::set_blacklist(bool value) { 1.2609 + set_has_blacklist(); 1.2610 + blacklist_ = value; 1.2611 +} 1.2612 + 1.2613 +// optional string bad_ip = 2; 1.2614 +inline bool ClientMalwareResponse::has_bad_ip() const { 1.2615 + return (_has_bits_[0] & 0x00000002u) != 0; 1.2616 +} 1.2617 +inline void ClientMalwareResponse::set_has_bad_ip() { 1.2618 + _has_bits_[0] |= 0x00000002u; 1.2619 +} 1.2620 +inline void ClientMalwareResponse::clear_has_bad_ip() { 1.2621 + _has_bits_[0] &= ~0x00000002u; 1.2622 +} 1.2623 +inline void ClientMalwareResponse::clear_bad_ip() { 1.2624 + if (bad_ip_ != &::google::protobuf::internal::kEmptyString) { 1.2625 + bad_ip_->clear(); 1.2626 + } 1.2627 + clear_has_bad_ip(); 1.2628 +} 1.2629 +inline const ::std::string& ClientMalwareResponse::bad_ip() const { 1.2630 + return *bad_ip_; 1.2631 +} 1.2632 +inline void ClientMalwareResponse::set_bad_ip(const ::std::string& value) { 1.2633 + set_has_bad_ip(); 1.2634 + if (bad_ip_ == &::google::protobuf::internal::kEmptyString) { 1.2635 + bad_ip_ = new ::std::string; 1.2636 + } 1.2637 + bad_ip_->assign(value); 1.2638 +} 1.2639 +inline void ClientMalwareResponse::set_bad_ip(const char* value) { 1.2640 + set_has_bad_ip(); 1.2641 + if (bad_ip_ == &::google::protobuf::internal::kEmptyString) { 1.2642 + bad_ip_ = new ::std::string; 1.2643 + } 1.2644 + bad_ip_->assign(value); 1.2645 +} 1.2646 +inline void ClientMalwareResponse::set_bad_ip(const char* value, size_t size) { 1.2647 + set_has_bad_ip(); 1.2648 + if (bad_ip_ == &::google::protobuf::internal::kEmptyString) { 1.2649 + bad_ip_ = new ::std::string; 1.2650 + } 1.2651 + bad_ip_->assign(reinterpret_cast<const char*>(value), size); 1.2652 +} 1.2653 +inline ::std::string* ClientMalwareResponse::mutable_bad_ip() { 1.2654 + set_has_bad_ip(); 1.2655 + if (bad_ip_ == &::google::protobuf::internal::kEmptyString) { 1.2656 + bad_ip_ = new ::std::string; 1.2657 + } 1.2658 + return bad_ip_; 1.2659 +} 1.2660 +inline ::std::string* ClientMalwareResponse::release_bad_ip() { 1.2661 + clear_has_bad_ip(); 1.2662 + if (bad_ip_ == &::google::protobuf::internal::kEmptyString) { 1.2663 + return NULL; 1.2664 + } else { 1.2665 + ::std::string* temp = bad_ip_; 1.2666 + bad_ip_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.2667 + return temp; 1.2668 + } 1.2669 +} 1.2670 + 1.2671 +// ------------------------------------------------------------------- 1.2672 + 1.2673 +// ClientDownloadRequest_Digests 1.2674 + 1.2675 +// optional bytes sha256 = 1; 1.2676 +inline bool ClientDownloadRequest_Digests::has_sha256() const { 1.2677 + return (_has_bits_[0] & 0x00000001u) != 0; 1.2678 +} 1.2679 +inline void ClientDownloadRequest_Digests::set_has_sha256() { 1.2680 + _has_bits_[0] |= 0x00000001u; 1.2681 +} 1.2682 +inline void ClientDownloadRequest_Digests::clear_has_sha256() { 1.2683 + _has_bits_[0] &= ~0x00000001u; 1.2684 +} 1.2685 +inline void ClientDownloadRequest_Digests::clear_sha256() { 1.2686 + if (sha256_ != &::google::protobuf::internal::kEmptyString) { 1.2687 + sha256_->clear(); 1.2688 + } 1.2689 + clear_has_sha256(); 1.2690 +} 1.2691 +inline const ::std::string& ClientDownloadRequest_Digests::sha256() const { 1.2692 + return *sha256_; 1.2693 +} 1.2694 +inline void ClientDownloadRequest_Digests::set_sha256(const ::std::string& value) { 1.2695 + set_has_sha256(); 1.2696 + if (sha256_ == &::google::protobuf::internal::kEmptyString) { 1.2697 + sha256_ = new ::std::string; 1.2698 + } 1.2699 + sha256_->assign(value); 1.2700 +} 1.2701 +inline void ClientDownloadRequest_Digests::set_sha256(const char* value) { 1.2702 + set_has_sha256(); 1.2703 + if (sha256_ == &::google::protobuf::internal::kEmptyString) { 1.2704 + sha256_ = new ::std::string; 1.2705 + } 1.2706 + sha256_->assign(value); 1.2707 +} 1.2708 +inline void ClientDownloadRequest_Digests::set_sha256(const void* value, size_t size) { 1.2709 + set_has_sha256(); 1.2710 + if (sha256_ == &::google::protobuf::internal::kEmptyString) { 1.2711 + sha256_ = new ::std::string; 1.2712 + } 1.2713 + sha256_->assign(reinterpret_cast<const char*>(value), size); 1.2714 +} 1.2715 +inline ::std::string* ClientDownloadRequest_Digests::mutable_sha256() { 1.2716 + set_has_sha256(); 1.2717 + if (sha256_ == &::google::protobuf::internal::kEmptyString) { 1.2718 + sha256_ = new ::std::string; 1.2719 + } 1.2720 + return sha256_; 1.2721 +} 1.2722 +inline ::std::string* ClientDownloadRequest_Digests::release_sha256() { 1.2723 + clear_has_sha256(); 1.2724 + if (sha256_ == &::google::protobuf::internal::kEmptyString) { 1.2725 + return NULL; 1.2726 + } else { 1.2727 + ::std::string* temp = sha256_; 1.2728 + sha256_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.2729 + return temp; 1.2730 + } 1.2731 +} 1.2732 + 1.2733 +// optional bytes sha1 = 2; 1.2734 +inline bool ClientDownloadRequest_Digests::has_sha1() const { 1.2735 + return (_has_bits_[0] & 0x00000002u) != 0; 1.2736 +} 1.2737 +inline void ClientDownloadRequest_Digests::set_has_sha1() { 1.2738 + _has_bits_[0] |= 0x00000002u; 1.2739 +} 1.2740 +inline void ClientDownloadRequest_Digests::clear_has_sha1() { 1.2741 + _has_bits_[0] &= ~0x00000002u; 1.2742 +} 1.2743 +inline void ClientDownloadRequest_Digests::clear_sha1() { 1.2744 + if (sha1_ != &::google::protobuf::internal::kEmptyString) { 1.2745 + sha1_->clear(); 1.2746 + } 1.2747 + clear_has_sha1(); 1.2748 +} 1.2749 +inline const ::std::string& ClientDownloadRequest_Digests::sha1() const { 1.2750 + return *sha1_; 1.2751 +} 1.2752 +inline void ClientDownloadRequest_Digests::set_sha1(const ::std::string& value) { 1.2753 + set_has_sha1(); 1.2754 + if (sha1_ == &::google::protobuf::internal::kEmptyString) { 1.2755 + sha1_ = new ::std::string; 1.2756 + } 1.2757 + sha1_->assign(value); 1.2758 +} 1.2759 +inline void ClientDownloadRequest_Digests::set_sha1(const char* value) { 1.2760 + set_has_sha1(); 1.2761 + if (sha1_ == &::google::protobuf::internal::kEmptyString) { 1.2762 + sha1_ = new ::std::string; 1.2763 + } 1.2764 + sha1_->assign(value); 1.2765 +} 1.2766 +inline void ClientDownloadRequest_Digests::set_sha1(const void* value, size_t size) { 1.2767 + set_has_sha1(); 1.2768 + if (sha1_ == &::google::protobuf::internal::kEmptyString) { 1.2769 + sha1_ = new ::std::string; 1.2770 + } 1.2771 + sha1_->assign(reinterpret_cast<const char*>(value), size); 1.2772 +} 1.2773 +inline ::std::string* ClientDownloadRequest_Digests::mutable_sha1() { 1.2774 + set_has_sha1(); 1.2775 + if (sha1_ == &::google::protobuf::internal::kEmptyString) { 1.2776 + sha1_ = new ::std::string; 1.2777 + } 1.2778 + return sha1_; 1.2779 +} 1.2780 +inline ::std::string* ClientDownloadRequest_Digests::release_sha1() { 1.2781 + clear_has_sha1(); 1.2782 + if (sha1_ == &::google::protobuf::internal::kEmptyString) { 1.2783 + return NULL; 1.2784 + } else { 1.2785 + ::std::string* temp = sha1_; 1.2786 + sha1_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.2787 + return temp; 1.2788 + } 1.2789 +} 1.2790 + 1.2791 +// optional bytes md5 = 3; 1.2792 +inline bool ClientDownloadRequest_Digests::has_md5() const { 1.2793 + return (_has_bits_[0] & 0x00000004u) != 0; 1.2794 +} 1.2795 +inline void ClientDownloadRequest_Digests::set_has_md5() { 1.2796 + _has_bits_[0] |= 0x00000004u; 1.2797 +} 1.2798 +inline void ClientDownloadRequest_Digests::clear_has_md5() { 1.2799 + _has_bits_[0] &= ~0x00000004u; 1.2800 +} 1.2801 +inline void ClientDownloadRequest_Digests::clear_md5() { 1.2802 + if (md5_ != &::google::protobuf::internal::kEmptyString) { 1.2803 + md5_->clear(); 1.2804 + } 1.2805 + clear_has_md5(); 1.2806 +} 1.2807 +inline const ::std::string& ClientDownloadRequest_Digests::md5() const { 1.2808 + return *md5_; 1.2809 +} 1.2810 +inline void ClientDownloadRequest_Digests::set_md5(const ::std::string& value) { 1.2811 + set_has_md5(); 1.2812 + if (md5_ == &::google::protobuf::internal::kEmptyString) { 1.2813 + md5_ = new ::std::string; 1.2814 + } 1.2815 + md5_->assign(value); 1.2816 +} 1.2817 +inline void ClientDownloadRequest_Digests::set_md5(const char* value) { 1.2818 + set_has_md5(); 1.2819 + if (md5_ == &::google::protobuf::internal::kEmptyString) { 1.2820 + md5_ = new ::std::string; 1.2821 + } 1.2822 + md5_->assign(value); 1.2823 +} 1.2824 +inline void ClientDownloadRequest_Digests::set_md5(const void* value, size_t size) { 1.2825 + set_has_md5(); 1.2826 + if (md5_ == &::google::protobuf::internal::kEmptyString) { 1.2827 + md5_ = new ::std::string; 1.2828 + } 1.2829 + md5_->assign(reinterpret_cast<const char*>(value), size); 1.2830 +} 1.2831 +inline ::std::string* ClientDownloadRequest_Digests::mutable_md5() { 1.2832 + set_has_md5(); 1.2833 + if (md5_ == &::google::protobuf::internal::kEmptyString) { 1.2834 + md5_ = new ::std::string; 1.2835 + } 1.2836 + return md5_; 1.2837 +} 1.2838 +inline ::std::string* ClientDownloadRequest_Digests::release_md5() { 1.2839 + clear_has_md5(); 1.2840 + if (md5_ == &::google::protobuf::internal::kEmptyString) { 1.2841 + return NULL; 1.2842 + } else { 1.2843 + ::std::string* temp = md5_; 1.2844 + md5_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.2845 + return temp; 1.2846 + } 1.2847 +} 1.2848 + 1.2849 +// ------------------------------------------------------------------- 1.2850 + 1.2851 +// ClientDownloadRequest_Resource 1.2852 + 1.2853 +// required string url = 1; 1.2854 +inline bool ClientDownloadRequest_Resource::has_url() const { 1.2855 + return (_has_bits_[0] & 0x00000001u) != 0; 1.2856 +} 1.2857 +inline void ClientDownloadRequest_Resource::set_has_url() { 1.2858 + _has_bits_[0] |= 0x00000001u; 1.2859 +} 1.2860 +inline void ClientDownloadRequest_Resource::clear_has_url() { 1.2861 + _has_bits_[0] &= ~0x00000001u; 1.2862 +} 1.2863 +inline void ClientDownloadRequest_Resource::clear_url() { 1.2864 + if (url_ != &::google::protobuf::internal::kEmptyString) { 1.2865 + url_->clear(); 1.2866 + } 1.2867 + clear_has_url(); 1.2868 +} 1.2869 +inline const ::std::string& ClientDownloadRequest_Resource::url() const { 1.2870 + return *url_; 1.2871 +} 1.2872 +inline void ClientDownloadRequest_Resource::set_url(const ::std::string& value) { 1.2873 + set_has_url(); 1.2874 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.2875 + url_ = new ::std::string; 1.2876 + } 1.2877 + url_->assign(value); 1.2878 +} 1.2879 +inline void ClientDownloadRequest_Resource::set_url(const char* value) { 1.2880 + set_has_url(); 1.2881 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.2882 + url_ = new ::std::string; 1.2883 + } 1.2884 + url_->assign(value); 1.2885 +} 1.2886 +inline void ClientDownloadRequest_Resource::set_url(const char* value, size_t size) { 1.2887 + set_has_url(); 1.2888 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.2889 + url_ = new ::std::string; 1.2890 + } 1.2891 + url_->assign(reinterpret_cast<const char*>(value), size); 1.2892 +} 1.2893 +inline ::std::string* ClientDownloadRequest_Resource::mutable_url() { 1.2894 + set_has_url(); 1.2895 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.2896 + url_ = new ::std::string; 1.2897 + } 1.2898 + return url_; 1.2899 +} 1.2900 +inline ::std::string* ClientDownloadRequest_Resource::release_url() { 1.2901 + clear_has_url(); 1.2902 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.2903 + return NULL; 1.2904 + } else { 1.2905 + ::std::string* temp = url_; 1.2906 + url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.2907 + return temp; 1.2908 + } 1.2909 +} 1.2910 + 1.2911 +// required .safe_browsing.ClientDownloadRequest.ResourceType type = 2; 1.2912 +inline bool ClientDownloadRequest_Resource::has_type() const { 1.2913 + return (_has_bits_[0] & 0x00000002u) != 0; 1.2914 +} 1.2915 +inline void ClientDownloadRequest_Resource::set_has_type() { 1.2916 + _has_bits_[0] |= 0x00000002u; 1.2917 +} 1.2918 +inline void ClientDownloadRequest_Resource::clear_has_type() { 1.2919 + _has_bits_[0] &= ~0x00000002u; 1.2920 +} 1.2921 +inline void ClientDownloadRequest_Resource::clear_type() { 1.2922 + type_ = 0; 1.2923 + clear_has_type(); 1.2924 +} 1.2925 +inline ::safe_browsing::ClientDownloadRequest_ResourceType ClientDownloadRequest_Resource::type() const { 1.2926 + return static_cast< ::safe_browsing::ClientDownloadRequest_ResourceType >(type_); 1.2927 +} 1.2928 +inline void ClientDownloadRequest_Resource::set_type(::safe_browsing::ClientDownloadRequest_ResourceType value) { 1.2929 + GOOGLE_DCHECK(::safe_browsing::ClientDownloadRequest_ResourceType_IsValid(value)); 1.2930 + set_has_type(); 1.2931 + type_ = value; 1.2932 +} 1.2933 + 1.2934 +// optional bytes remote_ip = 3; 1.2935 +inline bool ClientDownloadRequest_Resource::has_remote_ip() const { 1.2936 + return (_has_bits_[0] & 0x00000004u) != 0; 1.2937 +} 1.2938 +inline void ClientDownloadRequest_Resource::set_has_remote_ip() { 1.2939 + _has_bits_[0] |= 0x00000004u; 1.2940 +} 1.2941 +inline void ClientDownloadRequest_Resource::clear_has_remote_ip() { 1.2942 + _has_bits_[0] &= ~0x00000004u; 1.2943 +} 1.2944 +inline void ClientDownloadRequest_Resource::clear_remote_ip() { 1.2945 + if (remote_ip_ != &::google::protobuf::internal::kEmptyString) { 1.2946 + remote_ip_->clear(); 1.2947 + } 1.2948 + clear_has_remote_ip(); 1.2949 +} 1.2950 +inline const ::std::string& ClientDownloadRequest_Resource::remote_ip() const { 1.2951 + return *remote_ip_; 1.2952 +} 1.2953 +inline void ClientDownloadRequest_Resource::set_remote_ip(const ::std::string& value) { 1.2954 + set_has_remote_ip(); 1.2955 + if (remote_ip_ == &::google::protobuf::internal::kEmptyString) { 1.2956 + remote_ip_ = new ::std::string; 1.2957 + } 1.2958 + remote_ip_->assign(value); 1.2959 +} 1.2960 +inline void ClientDownloadRequest_Resource::set_remote_ip(const char* value) { 1.2961 + set_has_remote_ip(); 1.2962 + if (remote_ip_ == &::google::protobuf::internal::kEmptyString) { 1.2963 + remote_ip_ = new ::std::string; 1.2964 + } 1.2965 + remote_ip_->assign(value); 1.2966 +} 1.2967 +inline void ClientDownloadRequest_Resource::set_remote_ip(const void* value, size_t size) { 1.2968 + set_has_remote_ip(); 1.2969 + if (remote_ip_ == &::google::protobuf::internal::kEmptyString) { 1.2970 + remote_ip_ = new ::std::string; 1.2971 + } 1.2972 + remote_ip_->assign(reinterpret_cast<const char*>(value), size); 1.2973 +} 1.2974 +inline ::std::string* ClientDownloadRequest_Resource::mutable_remote_ip() { 1.2975 + set_has_remote_ip(); 1.2976 + if (remote_ip_ == &::google::protobuf::internal::kEmptyString) { 1.2977 + remote_ip_ = new ::std::string; 1.2978 + } 1.2979 + return remote_ip_; 1.2980 +} 1.2981 +inline ::std::string* ClientDownloadRequest_Resource::release_remote_ip() { 1.2982 + clear_has_remote_ip(); 1.2983 + if (remote_ip_ == &::google::protobuf::internal::kEmptyString) { 1.2984 + return NULL; 1.2985 + } else { 1.2986 + ::std::string* temp = remote_ip_; 1.2987 + remote_ip_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.2988 + return temp; 1.2989 + } 1.2990 +} 1.2991 + 1.2992 +// optional string referrer = 4; 1.2993 +inline bool ClientDownloadRequest_Resource::has_referrer() const { 1.2994 + return (_has_bits_[0] & 0x00000008u) != 0; 1.2995 +} 1.2996 +inline void ClientDownloadRequest_Resource::set_has_referrer() { 1.2997 + _has_bits_[0] |= 0x00000008u; 1.2998 +} 1.2999 +inline void ClientDownloadRequest_Resource::clear_has_referrer() { 1.3000 + _has_bits_[0] &= ~0x00000008u; 1.3001 +} 1.3002 +inline void ClientDownloadRequest_Resource::clear_referrer() { 1.3003 + if (referrer_ != &::google::protobuf::internal::kEmptyString) { 1.3004 + referrer_->clear(); 1.3005 + } 1.3006 + clear_has_referrer(); 1.3007 +} 1.3008 +inline const ::std::string& ClientDownloadRequest_Resource::referrer() const { 1.3009 + return *referrer_; 1.3010 +} 1.3011 +inline void ClientDownloadRequest_Resource::set_referrer(const ::std::string& value) { 1.3012 + set_has_referrer(); 1.3013 + if (referrer_ == &::google::protobuf::internal::kEmptyString) { 1.3014 + referrer_ = new ::std::string; 1.3015 + } 1.3016 + referrer_->assign(value); 1.3017 +} 1.3018 +inline void ClientDownloadRequest_Resource::set_referrer(const char* value) { 1.3019 + set_has_referrer(); 1.3020 + if (referrer_ == &::google::protobuf::internal::kEmptyString) { 1.3021 + referrer_ = new ::std::string; 1.3022 + } 1.3023 + referrer_->assign(value); 1.3024 +} 1.3025 +inline void ClientDownloadRequest_Resource::set_referrer(const char* value, size_t size) { 1.3026 + set_has_referrer(); 1.3027 + if (referrer_ == &::google::protobuf::internal::kEmptyString) { 1.3028 + referrer_ = new ::std::string; 1.3029 + } 1.3030 + referrer_->assign(reinterpret_cast<const char*>(value), size); 1.3031 +} 1.3032 +inline ::std::string* ClientDownloadRequest_Resource::mutable_referrer() { 1.3033 + set_has_referrer(); 1.3034 + if (referrer_ == &::google::protobuf::internal::kEmptyString) { 1.3035 + referrer_ = new ::std::string; 1.3036 + } 1.3037 + return referrer_; 1.3038 +} 1.3039 +inline ::std::string* ClientDownloadRequest_Resource::release_referrer() { 1.3040 + clear_has_referrer(); 1.3041 + if (referrer_ == &::google::protobuf::internal::kEmptyString) { 1.3042 + return NULL; 1.3043 + } else { 1.3044 + ::std::string* temp = referrer_; 1.3045 + referrer_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.3046 + return temp; 1.3047 + } 1.3048 +} 1.3049 + 1.3050 +// ------------------------------------------------------------------- 1.3051 + 1.3052 +// ClientDownloadRequest_CertificateChain_Element 1.3053 + 1.3054 +// optional bytes certificate = 1; 1.3055 +inline bool ClientDownloadRequest_CertificateChain_Element::has_certificate() const { 1.3056 + return (_has_bits_[0] & 0x00000001u) != 0; 1.3057 +} 1.3058 +inline void ClientDownloadRequest_CertificateChain_Element::set_has_certificate() { 1.3059 + _has_bits_[0] |= 0x00000001u; 1.3060 +} 1.3061 +inline void ClientDownloadRequest_CertificateChain_Element::clear_has_certificate() { 1.3062 + _has_bits_[0] &= ~0x00000001u; 1.3063 +} 1.3064 +inline void ClientDownloadRequest_CertificateChain_Element::clear_certificate() { 1.3065 + if (certificate_ != &::google::protobuf::internal::kEmptyString) { 1.3066 + certificate_->clear(); 1.3067 + } 1.3068 + clear_has_certificate(); 1.3069 +} 1.3070 +inline const ::std::string& ClientDownloadRequest_CertificateChain_Element::certificate() const { 1.3071 + return *certificate_; 1.3072 +} 1.3073 +inline void ClientDownloadRequest_CertificateChain_Element::set_certificate(const ::std::string& value) { 1.3074 + set_has_certificate(); 1.3075 + if (certificate_ == &::google::protobuf::internal::kEmptyString) { 1.3076 + certificate_ = new ::std::string; 1.3077 + } 1.3078 + certificate_->assign(value); 1.3079 +} 1.3080 +inline void ClientDownloadRequest_CertificateChain_Element::set_certificate(const char* value) { 1.3081 + set_has_certificate(); 1.3082 + if (certificate_ == &::google::protobuf::internal::kEmptyString) { 1.3083 + certificate_ = new ::std::string; 1.3084 + } 1.3085 + certificate_->assign(value); 1.3086 +} 1.3087 +inline void ClientDownloadRequest_CertificateChain_Element::set_certificate(const void* value, size_t size) { 1.3088 + set_has_certificate(); 1.3089 + if (certificate_ == &::google::protobuf::internal::kEmptyString) { 1.3090 + certificate_ = new ::std::string; 1.3091 + } 1.3092 + certificate_->assign(reinterpret_cast<const char*>(value), size); 1.3093 +} 1.3094 +inline ::std::string* ClientDownloadRequest_CertificateChain_Element::mutable_certificate() { 1.3095 + set_has_certificate(); 1.3096 + if (certificate_ == &::google::protobuf::internal::kEmptyString) { 1.3097 + certificate_ = new ::std::string; 1.3098 + } 1.3099 + return certificate_; 1.3100 +} 1.3101 +inline ::std::string* ClientDownloadRequest_CertificateChain_Element::release_certificate() { 1.3102 + clear_has_certificate(); 1.3103 + if (certificate_ == &::google::protobuf::internal::kEmptyString) { 1.3104 + return NULL; 1.3105 + } else { 1.3106 + ::std::string* temp = certificate_; 1.3107 + certificate_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.3108 + return temp; 1.3109 + } 1.3110 +} 1.3111 + 1.3112 +// ------------------------------------------------------------------- 1.3113 + 1.3114 +// ClientDownloadRequest_CertificateChain 1.3115 + 1.3116 +// repeated .safe_browsing.ClientDownloadRequest.CertificateChain.Element element = 1; 1.3117 +inline int ClientDownloadRequest_CertificateChain::element_size() const { 1.3118 + return element_.size(); 1.3119 +} 1.3120 +inline void ClientDownloadRequest_CertificateChain::clear_element() { 1.3121 + element_.Clear(); 1.3122 +} 1.3123 +inline const ::safe_browsing::ClientDownloadRequest_CertificateChain_Element& ClientDownloadRequest_CertificateChain::element(int index) const { 1.3124 + return element_.Get(index); 1.3125 +} 1.3126 +inline ::safe_browsing::ClientDownloadRequest_CertificateChain_Element* ClientDownloadRequest_CertificateChain::mutable_element(int index) { 1.3127 + return element_.Mutable(index); 1.3128 +} 1.3129 +inline ::safe_browsing::ClientDownloadRequest_CertificateChain_Element* ClientDownloadRequest_CertificateChain::add_element() { 1.3130 + return element_.Add(); 1.3131 +} 1.3132 +inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain_Element >& 1.3133 +ClientDownloadRequest_CertificateChain::element() const { 1.3134 + return element_; 1.3135 +} 1.3136 +inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain_Element >* 1.3137 +ClientDownloadRequest_CertificateChain::mutable_element() { 1.3138 + return &element_; 1.3139 +} 1.3140 + 1.3141 +// ------------------------------------------------------------------- 1.3142 + 1.3143 +// ClientDownloadRequest_SignatureInfo 1.3144 + 1.3145 +// repeated .safe_browsing.ClientDownloadRequest.CertificateChain certificate_chain = 1; 1.3146 +inline int ClientDownloadRequest_SignatureInfo::certificate_chain_size() const { 1.3147 + return certificate_chain_.size(); 1.3148 +} 1.3149 +inline void ClientDownloadRequest_SignatureInfo::clear_certificate_chain() { 1.3150 + certificate_chain_.Clear(); 1.3151 +} 1.3152 +inline const ::safe_browsing::ClientDownloadRequest_CertificateChain& ClientDownloadRequest_SignatureInfo::certificate_chain(int index) const { 1.3153 + return certificate_chain_.Get(index); 1.3154 +} 1.3155 +inline ::safe_browsing::ClientDownloadRequest_CertificateChain* ClientDownloadRequest_SignatureInfo::mutable_certificate_chain(int index) { 1.3156 + return certificate_chain_.Mutable(index); 1.3157 +} 1.3158 +inline ::safe_browsing::ClientDownloadRequest_CertificateChain* ClientDownloadRequest_SignatureInfo::add_certificate_chain() { 1.3159 + return certificate_chain_.Add(); 1.3160 +} 1.3161 +inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain >& 1.3162 +ClientDownloadRequest_SignatureInfo::certificate_chain() const { 1.3163 + return certificate_chain_; 1.3164 +} 1.3165 +inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain >* 1.3166 +ClientDownloadRequest_SignatureInfo::mutable_certificate_chain() { 1.3167 + return &certificate_chain_; 1.3168 +} 1.3169 + 1.3170 +// optional bool trusted = 2; 1.3171 +inline bool ClientDownloadRequest_SignatureInfo::has_trusted() const { 1.3172 + return (_has_bits_[0] & 0x00000002u) != 0; 1.3173 +} 1.3174 +inline void ClientDownloadRequest_SignatureInfo::set_has_trusted() { 1.3175 + _has_bits_[0] |= 0x00000002u; 1.3176 +} 1.3177 +inline void ClientDownloadRequest_SignatureInfo::clear_has_trusted() { 1.3178 + _has_bits_[0] &= ~0x00000002u; 1.3179 +} 1.3180 +inline void ClientDownloadRequest_SignatureInfo::clear_trusted() { 1.3181 + trusted_ = false; 1.3182 + clear_has_trusted(); 1.3183 +} 1.3184 +inline bool ClientDownloadRequest_SignatureInfo::trusted() const { 1.3185 + return trusted_; 1.3186 +} 1.3187 +inline void ClientDownloadRequest_SignatureInfo::set_trusted(bool value) { 1.3188 + set_has_trusted(); 1.3189 + trusted_ = value; 1.3190 +} 1.3191 + 1.3192 +// ------------------------------------------------------------------- 1.3193 + 1.3194 +// ClientDownloadRequest 1.3195 + 1.3196 +// required string url = 1; 1.3197 +inline bool ClientDownloadRequest::has_url() const { 1.3198 + return (_has_bits_[0] & 0x00000001u) != 0; 1.3199 +} 1.3200 +inline void ClientDownloadRequest::set_has_url() { 1.3201 + _has_bits_[0] |= 0x00000001u; 1.3202 +} 1.3203 +inline void ClientDownloadRequest::clear_has_url() { 1.3204 + _has_bits_[0] &= ~0x00000001u; 1.3205 +} 1.3206 +inline void ClientDownloadRequest::clear_url() { 1.3207 + if (url_ != &::google::protobuf::internal::kEmptyString) { 1.3208 + url_->clear(); 1.3209 + } 1.3210 + clear_has_url(); 1.3211 +} 1.3212 +inline const ::std::string& ClientDownloadRequest::url() const { 1.3213 + return *url_; 1.3214 +} 1.3215 +inline void ClientDownloadRequest::set_url(const ::std::string& value) { 1.3216 + set_has_url(); 1.3217 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.3218 + url_ = new ::std::string; 1.3219 + } 1.3220 + url_->assign(value); 1.3221 +} 1.3222 +inline void ClientDownloadRequest::set_url(const char* value) { 1.3223 + set_has_url(); 1.3224 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.3225 + url_ = new ::std::string; 1.3226 + } 1.3227 + url_->assign(value); 1.3228 +} 1.3229 +inline void ClientDownloadRequest::set_url(const char* value, size_t size) { 1.3230 + set_has_url(); 1.3231 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.3232 + url_ = new ::std::string; 1.3233 + } 1.3234 + url_->assign(reinterpret_cast<const char*>(value), size); 1.3235 +} 1.3236 +inline ::std::string* ClientDownloadRequest::mutable_url() { 1.3237 + set_has_url(); 1.3238 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.3239 + url_ = new ::std::string; 1.3240 + } 1.3241 + return url_; 1.3242 +} 1.3243 +inline ::std::string* ClientDownloadRequest::release_url() { 1.3244 + clear_has_url(); 1.3245 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.3246 + return NULL; 1.3247 + } else { 1.3248 + ::std::string* temp = url_; 1.3249 + url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.3250 + return temp; 1.3251 + } 1.3252 +} 1.3253 + 1.3254 +// required .safe_browsing.ClientDownloadRequest.Digests digests = 2; 1.3255 +inline bool ClientDownloadRequest::has_digests() const { 1.3256 + return (_has_bits_[0] & 0x00000002u) != 0; 1.3257 +} 1.3258 +inline void ClientDownloadRequest::set_has_digests() { 1.3259 + _has_bits_[0] |= 0x00000002u; 1.3260 +} 1.3261 +inline void ClientDownloadRequest::clear_has_digests() { 1.3262 + _has_bits_[0] &= ~0x00000002u; 1.3263 +} 1.3264 +inline void ClientDownloadRequest::clear_digests() { 1.3265 + if (digests_ != NULL) digests_->::safe_browsing::ClientDownloadRequest_Digests::Clear(); 1.3266 + clear_has_digests(); 1.3267 +} 1.3268 +inline const ::safe_browsing::ClientDownloadRequest_Digests& ClientDownloadRequest::digests() const { 1.3269 + return digests_ != NULL ? *digests_ : *default_instance_->digests_; 1.3270 +} 1.3271 +inline ::safe_browsing::ClientDownloadRequest_Digests* ClientDownloadRequest::mutable_digests() { 1.3272 + set_has_digests(); 1.3273 + if (digests_ == NULL) digests_ = new ::safe_browsing::ClientDownloadRequest_Digests; 1.3274 + return digests_; 1.3275 +} 1.3276 +inline ::safe_browsing::ClientDownloadRequest_Digests* ClientDownloadRequest::release_digests() { 1.3277 + clear_has_digests(); 1.3278 + ::safe_browsing::ClientDownloadRequest_Digests* temp = digests_; 1.3279 + digests_ = NULL; 1.3280 + return temp; 1.3281 +} 1.3282 + 1.3283 +// required int64 length = 3; 1.3284 +inline bool ClientDownloadRequest::has_length() const { 1.3285 + return (_has_bits_[0] & 0x00000004u) != 0; 1.3286 +} 1.3287 +inline void ClientDownloadRequest::set_has_length() { 1.3288 + _has_bits_[0] |= 0x00000004u; 1.3289 +} 1.3290 +inline void ClientDownloadRequest::clear_has_length() { 1.3291 + _has_bits_[0] &= ~0x00000004u; 1.3292 +} 1.3293 +inline void ClientDownloadRequest::clear_length() { 1.3294 + length_ = GOOGLE_LONGLONG(0); 1.3295 + clear_has_length(); 1.3296 +} 1.3297 +inline ::google::protobuf::int64 ClientDownloadRequest::length() const { 1.3298 + return length_; 1.3299 +} 1.3300 +inline void ClientDownloadRequest::set_length(::google::protobuf::int64 value) { 1.3301 + set_has_length(); 1.3302 + length_ = value; 1.3303 +} 1.3304 + 1.3305 +// repeated .safe_browsing.ClientDownloadRequest.Resource resources = 4; 1.3306 +inline int ClientDownloadRequest::resources_size() const { 1.3307 + return resources_.size(); 1.3308 +} 1.3309 +inline void ClientDownloadRequest::clear_resources() { 1.3310 + resources_.Clear(); 1.3311 +} 1.3312 +inline const ::safe_browsing::ClientDownloadRequest_Resource& ClientDownloadRequest::resources(int index) const { 1.3313 + return resources_.Get(index); 1.3314 +} 1.3315 +inline ::safe_browsing::ClientDownloadRequest_Resource* ClientDownloadRequest::mutable_resources(int index) { 1.3316 + return resources_.Mutable(index); 1.3317 +} 1.3318 +inline ::safe_browsing::ClientDownloadRequest_Resource* ClientDownloadRequest::add_resources() { 1.3319 + return resources_.Add(); 1.3320 +} 1.3321 +inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_Resource >& 1.3322 +ClientDownloadRequest::resources() const { 1.3323 + return resources_; 1.3324 +} 1.3325 +inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_Resource >* 1.3326 +ClientDownloadRequest::mutable_resources() { 1.3327 + return &resources_; 1.3328 +} 1.3329 + 1.3330 +// optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5; 1.3331 +inline bool ClientDownloadRequest::has_signature() const { 1.3332 + return (_has_bits_[0] & 0x00000010u) != 0; 1.3333 +} 1.3334 +inline void ClientDownloadRequest::set_has_signature() { 1.3335 + _has_bits_[0] |= 0x00000010u; 1.3336 +} 1.3337 +inline void ClientDownloadRequest::clear_has_signature() { 1.3338 + _has_bits_[0] &= ~0x00000010u; 1.3339 +} 1.3340 +inline void ClientDownloadRequest::clear_signature() { 1.3341 + if (signature_ != NULL) signature_->::safe_browsing::ClientDownloadRequest_SignatureInfo::Clear(); 1.3342 + clear_has_signature(); 1.3343 +} 1.3344 +inline const ::safe_browsing::ClientDownloadRequest_SignatureInfo& ClientDownloadRequest::signature() const { 1.3345 + return signature_ != NULL ? *signature_ : *default_instance_->signature_; 1.3346 +} 1.3347 +inline ::safe_browsing::ClientDownloadRequest_SignatureInfo* ClientDownloadRequest::mutable_signature() { 1.3348 + set_has_signature(); 1.3349 + if (signature_ == NULL) signature_ = new ::safe_browsing::ClientDownloadRequest_SignatureInfo; 1.3350 + return signature_; 1.3351 +} 1.3352 +inline ::safe_browsing::ClientDownloadRequest_SignatureInfo* ClientDownloadRequest::release_signature() { 1.3353 + clear_has_signature(); 1.3354 + ::safe_browsing::ClientDownloadRequest_SignatureInfo* temp = signature_; 1.3355 + signature_ = NULL; 1.3356 + return temp; 1.3357 +} 1.3358 + 1.3359 +// optional bool user_initiated = 6; 1.3360 +inline bool ClientDownloadRequest::has_user_initiated() const { 1.3361 + return (_has_bits_[0] & 0x00000020u) != 0; 1.3362 +} 1.3363 +inline void ClientDownloadRequest::set_has_user_initiated() { 1.3364 + _has_bits_[0] |= 0x00000020u; 1.3365 +} 1.3366 +inline void ClientDownloadRequest::clear_has_user_initiated() { 1.3367 + _has_bits_[0] &= ~0x00000020u; 1.3368 +} 1.3369 +inline void ClientDownloadRequest::clear_user_initiated() { 1.3370 + user_initiated_ = false; 1.3371 + clear_has_user_initiated(); 1.3372 +} 1.3373 +inline bool ClientDownloadRequest::user_initiated() const { 1.3374 + return user_initiated_; 1.3375 +} 1.3376 +inline void ClientDownloadRequest::set_user_initiated(bool value) { 1.3377 + set_has_user_initiated(); 1.3378 + user_initiated_ = value; 1.3379 +} 1.3380 + 1.3381 +// optional string file_basename = 9; 1.3382 +inline bool ClientDownloadRequest::has_file_basename() const { 1.3383 + return (_has_bits_[0] & 0x00000040u) != 0; 1.3384 +} 1.3385 +inline void ClientDownloadRequest::set_has_file_basename() { 1.3386 + _has_bits_[0] |= 0x00000040u; 1.3387 +} 1.3388 +inline void ClientDownloadRequest::clear_has_file_basename() { 1.3389 + _has_bits_[0] &= ~0x00000040u; 1.3390 +} 1.3391 +inline void ClientDownloadRequest::clear_file_basename() { 1.3392 + if (file_basename_ != &::google::protobuf::internal::kEmptyString) { 1.3393 + file_basename_->clear(); 1.3394 + } 1.3395 + clear_has_file_basename(); 1.3396 +} 1.3397 +inline const ::std::string& ClientDownloadRequest::file_basename() const { 1.3398 + return *file_basename_; 1.3399 +} 1.3400 +inline void ClientDownloadRequest::set_file_basename(const ::std::string& value) { 1.3401 + set_has_file_basename(); 1.3402 + if (file_basename_ == &::google::protobuf::internal::kEmptyString) { 1.3403 + file_basename_ = new ::std::string; 1.3404 + } 1.3405 + file_basename_->assign(value); 1.3406 +} 1.3407 +inline void ClientDownloadRequest::set_file_basename(const char* value) { 1.3408 + set_has_file_basename(); 1.3409 + if (file_basename_ == &::google::protobuf::internal::kEmptyString) { 1.3410 + file_basename_ = new ::std::string; 1.3411 + } 1.3412 + file_basename_->assign(value); 1.3413 +} 1.3414 +inline void ClientDownloadRequest::set_file_basename(const char* value, size_t size) { 1.3415 + set_has_file_basename(); 1.3416 + if (file_basename_ == &::google::protobuf::internal::kEmptyString) { 1.3417 + file_basename_ = new ::std::string; 1.3418 + } 1.3419 + file_basename_->assign(reinterpret_cast<const char*>(value), size); 1.3420 +} 1.3421 +inline ::std::string* ClientDownloadRequest::mutable_file_basename() { 1.3422 + set_has_file_basename(); 1.3423 + if (file_basename_ == &::google::protobuf::internal::kEmptyString) { 1.3424 + file_basename_ = new ::std::string; 1.3425 + } 1.3426 + return file_basename_; 1.3427 +} 1.3428 +inline ::std::string* ClientDownloadRequest::release_file_basename() { 1.3429 + clear_has_file_basename(); 1.3430 + if (file_basename_ == &::google::protobuf::internal::kEmptyString) { 1.3431 + return NULL; 1.3432 + } else { 1.3433 + ::std::string* temp = file_basename_; 1.3434 + file_basename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.3435 + return temp; 1.3436 + } 1.3437 +} 1.3438 + 1.3439 +// optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 10 [default = WIN_EXECUTABLE]; 1.3440 +inline bool ClientDownloadRequest::has_download_type() const { 1.3441 + return (_has_bits_[0] & 0x00000080u) != 0; 1.3442 +} 1.3443 +inline void ClientDownloadRequest::set_has_download_type() { 1.3444 + _has_bits_[0] |= 0x00000080u; 1.3445 +} 1.3446 +inline void ClientDownloadRequest::clear_has_download_type() { 1.3447 + _has_bits_[0] &= ~0x00000080u; 1.3448 +} 1.3449 +inline void ClientDownloadRequest::clear_download_type() { 1.3450 + download_type_ = 0; 1.3451 + clear_has_download_type(); 1.3452 +} 1.3453 +inline ::safe_browsing::ClientDownloadRequest_DownloadType ClientDownloadRequest::download_type() const { 1.3454 + return static_cast< ::safe_browsing::ClientDownloadRequest_DownloadType >(download_type_); 1.3455 +} 1.3456 +inline void ClientDownloadRequest::set_download_type(::safe_browsing::ClientDownloadRequest_DownloadType value) { 1.3457 + GOOGLE_DCHECK(::safe_browsing::ClientDownloadRequest_DownloadType_IsValid(value)); 1.3458 + set_has_download_type(); 1.3459 + download_type_ = value; 1.3460 +} 1.3461 + 1.3462 +// optional string locale = 11; 1.3463 +inline bool ClientDownloadRequest::has_locale() const { 1.3464 + return (_has_bits_[0] & 0x00000100u) != 0; 1.3465 +} 1.3466 +inline void ClientDownloadRequest::set_has_locale() { 1.3467 + _has_bits_[0] |= 0x00000100u; 1.3468 +} 1.3469 +inline void ClientDownloadRequest::clear_has_locale() { 1.3470 + _has_bits_[0] &= ~0x00000100u; 1.3471 +} 1.3472 +inline void ClientDownloadRequest::clear_locale() { 1.3473 + if (locale_ != &::google::protobuf::internal::kEmptyString) { 1.3474 + locale_->clear(); 1.3475 + } 1.3476 + clear_has_locale(); 1.3477 +} 1.3478 +inline const ::std::string& ClientDownloadRequest::locale() const { 1.3479 + return *locale_; 1.3480 +} 1.3481 +inline void ClientDownloadRequest::set_locale(const ::std::string& value) { 1.3482 + set_has_locale(); 1.3483 + if (locale_ == &::google::protobuf::internal::kEmptyString) { 1.3484 + locale_ = new ::std::string; 1.3485 + } 1.3486 + locale_->assign(value); 1.3487 +} 1.3488 +inline void ClientDownloadRequest::set_locale(const char* value) { 1.3489 + set_has_locale(); 1.3490 + if (locale_ == &::google::protobuf::internal::kEmptyString) { 1.3491 + locale_ = new ::std::string; 1.3492 + } 1.3493 + locale_->assign(value); 1.3494 +} 1.3495 +inline void ClientDownloadRequest::set_locale(const char* value, size_t size) { 1.3496 + set_has_locale(); 1.3497 + if (locale_ == &::google::protobuf::internal::kEmptyString) { 1.3498 + locale_ = new ::std::string; 1.3499 + } 1.3500 + locale_->assign(reinterpret_cast<const char*>(value), size); 1.3501 +} 1.3502 +inline ::std::string* ClientDownloadRequest::mutable_locale() { 1.3503 + set_has_locale(); 1.3504 + if (locale_ == &::google::protobuf::internal::kEmptyString) { 1.3505 + locale_ = new ::std::string; 1.3506 + } 1.3507 + return locale_; 1.3508 +} 1.3509 +inline ::std::string* ClientDownloadRequest::release_locale() { 1.3510 + clear_has_locale(); 1.3511 + if (locale_ == &::google::protobuf::internal::kEmptyString) { 1.3512 + return NULL; 1.3513 + } else { 1.3514 + ::std::string* temp = locale_; 1.3515 + locale_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.3516 + return temp; 1.3517 + } 1.3518 +} 1.3519 + 1.3520 +// ------------------------------------------------------------------- 1.3521 + 1.3522 +// ClientDownloadResponse_MoreInfo 1.3523 + 1.3524 +// optional string description = 1; 1.3525 +inline bool ClientDownloadResponse_MoreInfo::has_description() const { 1.3526 + return (_has_bits_[0] & 0x00000001u) != 0; 1.3527 +} 1.3528 +inline void ClientDownloadResponse_MoreInfo::set_has_description() { 1.3529 + _has_bits_[0] |= 0x00000001u; 1.3530 +} 1.3531 +inline void ClientDownloadResponse_MoreInfo::clear_has_description() { 1.3532 + _has_bits_[0] &= ~0x00000001u; 1.3533 +} 1.3534 +inline void ClientDownloadResponse_MoreInfo::clear_description() { 1.3535 + if (description_ != &::google::protobuf::internal::kEmptyString) { 1.3536 + description_->clear(); 1.3537 + } 1.3538 + clear_has_description(); 1.3539 +} 1.3540 +inline const ::std::string& ClientDownloadResponse_MoreInfo::description() const { 1.3541 + return *description_; 1.3542 +} 1.3543 +inline void ClientDownloadResponse_MoreInfo::set_description(const ::std::string& value) { 1.3544 + set_has_description(); 1.3545 + if (description_ == &::google::protobuf::internal::kEmptyString) { 1.3546 + description_ = new ::std::string; 1.3547 + } 1.3548 + description_->assign(value); 1.3549 +} 1.3550 +inline void ClientDownloadResponse_MoreInfo::set_description(const char* value) { 1.3551 + set_has_description(); 1.3552 + if (description_ == &::google::protobuf::internal::kEmptyString) { 1.3553 + description_ = new ::std::string; 1.3554 + } 1.3555 + description_->assign(value); 1.3556 +} 1.3557 +inline void ClientDownloadResponse_MoreInfo::set_description(const char* value, size_t size) { 1.3558 + set_has_description(); 1.3559 + if (description_ == &::google::protobuf::internal::kEmptyString) { 1.3560 + description_ = new ::std::string; 1.3561 + } 1.3562 + description_->assign(reinterpret_cast<const char*>(value), size); 1.3563 +} 1.3564 +inline ::std::string* ClientDownloadResponse_MoreInfo::mutable_description() { 1.3565 + set_has_description(); 1.3566 + if (description_ == &::google::protobuf::internal::kEmptyString) { 1.3567 + description_ = new ::std::string; 1.3568 + } 1.3569 + return description_; 1.3570 +} 1.3571 +inline ::std::string* ClientDownloadResponse_MoreInfo::release_description() { 1.3572 + clear_has_description(); 1.3573 + if (description_ == &::google::protobuf::internal::kEmptyString) { 1.3574 + return NULL; 1.3575 + } else { 1.3576 + ::std::string* temp = description_; 1.3577 + description_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.3578 + return temp; 1.3579 + } 1.3580 +} 1.3581 + 1.3582 +// optional string url = 2; 1.3583 +inline bool ClientDownloadResponse_MoreInfo::has_url() const { 1.3584 + return (_has_bits_[0] & 0x00000002u) != 0; 1.3585 +} 1.3586 +inline void ClientDownloadResponse_MoreInfo::set_has_url() { 1.3587 + _has_bits_[0] |= 0x00000002u; 1.3588 +} 1.3589 +inline void ClientDownloadResponse_MoreInfo::clear_has_url() { 1.3590 + _has_bits_[0] &= ~0x00000002u; 1.3591 +} 1.3592 +inline void ClientDownloadResponse_MoreInfo::clear_url() { 1.3593 + if (url_ != &::google::protobuf::internal::kEmptyString) { 1.3594 + url_->clear(); 1.3595 + } 1.3596 + clear_has_url(); 1.3597 +} 1.3598 +inline const ::std::string& ClientDownloadResponse_MoreInfo::url() const { 1.3599 + return *url_; 1.3600 +} 1.3601 +inline void ClientDownloadResponse_MoreInfo::set_url(const ::std::string& value) { 1.3602 + set_has_url(); 1.3603 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.3604 + url_ = new ::std::string; 1.3605 + } 1.3606 + url_->assign(value); 1.3607 +} 1.3608 +inline void ClientDownloadResponse_MoreInfo::set_url(const char* value) { 1.3609 + set_has_url(); 1.3610 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.3611 + url_ = new ::std::string; 1.3612 + } 1.3613 + url_->assign(value); 1.3614 +} 1.3615 +inline void ClientDownloadResponse_MoreInfo::set_url(const char* value, size_t size) { 1.3616 + set_has_url(); 1.3617 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.3618 + url_ = new ::std::string; 1.3619 + } 1.3620 + url_->assign(reinterpret_cast<const char*>(value), size); 1.3621 +} 1.3622 +inline ::std::string* ClientDownloadResponse_MoreInfo::mutable_url() { 1.3623 + set_has_url(); 1.3624 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.3625 + url_ = new ::std::string; 1.3626 + } 1.3627 + return url_; 1.3628 +} 1.3629 +inline ::std::string* ClientDownloadResponse_MoreInfo::release_url() { 1.3630 + clear_has_url(); 1.3631 + if (url_ == &::google::protobuf::internal::kEmptyString) { 1.3632 + return NULL; 1.3633 + } else { 1.3634 + ::std::string* temp = url_; 1.3635 + url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.3636 + return temp; 1.3637 + } 1.3638 +} 1.3639 + 1.3640 +// ------------------------------------------------------------------- 1.3641 + 1.3642 +// ClientDownloadResponse 1.3643 + 1.3644 +// required .safe_browsing.ClientDownloadResponse.Verdict verdict = 1; 1.3645 +inline bool ClientDownloadResponse::has_verdict() const { 1.3646 + return (_has_bits_[0] & 0x00000001u) != 0; 1.3647 +} 1.3648 +inline void ClientDownloadResponse::set_has_verdict() { 1.3649 + _has_bits_[0] |= 0x00000001u; 1.3650 +} 1.3651 +inline void ClientDownloadResponse::clear_has_verdict() { 1.3652 + _has_bits_[0] &= ~0x00000001u; 1.3653 +} 1.3654 +inline void ClientDownloadResponse::clear_verdict() { 1.3655 + verdict_ = 0; 1.3656 + clear_has_verdict(); 1.3657 +} 1.3658 +inline ::safe_browsing::ClientDownloadResponse_Verdict ClientDownloadResponse::verdict() const { 1.3659 + return static_cast< ::safe_browsing::ClientDownloadResponse_Verdict >(verdict_); 1.3660 +} 1.3661 +inline void ClientDownloadResponse::set_verdict(::safe_browsing::ClientDownloadResponse_Verdict value) { 1.3662 + GOOGLE_DCHECK(::safe_browsing::ClientDownloadResponse_Verdict_IsValid(value)); 1.3663 + set_has_verdict(); 1.3664 + verdict_ = value; 1.3665 +} 1.3666 + 1.3667 +// optional .safe_browsing.ClientDownloadResponse.MoreInfo more_info = 2; 1.3668 +inline bool ClientDownloadResponse::has_more_info() const { 1.3669 + return (_has_bits_[0] & 0x00000002u) != 0; 1.3670 +} 1.3671 +inline void ClientDownloadResponse::set_has_more_info() { 1.3672 + _has_bits_[0] |= 0x00000002u; 1.3673 +} 1.3674 +inline void ClientDownloadResponse::clear_has_more_info() { 1.3675 + _has_bits_[0] &= ~0x00000002u; 1.3676 +} 1.3677 +inline void ClientDownloadResponse::clear_more_info() { 1.3678 + if (more_info_ != NULL) more_info_->::safe_browsing::ClientDownloadResponse_MoreInfo::Clear(); 1.3679 + clear_has_more_info(); 1.3680 +} 1.3681 +inline const ::safe_browsing::ClientDownloadResponse_MoreInfo& ClientDownloadResponse::more_info() const { 1.3682 + return more_info_ != NULL ? *more_info_ : *default_instance_->more_info_; 1.3683 +} 1.3684 +inline ::safe_browsing::ClientDownloadResponse_MoreInfo* ClientDownloadResponse::mutable_more_info() { 1.3685 + set_has_more_info(); 1.3686 + if (more_info_ == NULL) more_info_ = new ::safe_browsing::ClientDownloadResponse_MoreInfo; 1.3687 + return more_info_; 1.3688 +} 1.3689 +inline ::safe_browsing::ClientDownloadResponse_MoreInfo* ClientDownloadResponse::release_more_info() { 1.3690 + clear_has_more_info(); 1.3691 + ::safe_browsing::ClientDownloadResponse_MoreInfo* temp = more_info_; 1.3692 + more_info_ = NULL; 1.3693 + return temp; 1.3694 +} 1.3695 + 1.3696 +// optional bytes token = 3; 1.3697 +inline bool ClientDownloadResponse::has_token() const { 1.3698 + return (_has_bits_[0] & 0x00000004u) != 0; 1.3699 +} 1.3700 +inline void ClientDownloadResponse::set_has_token() { 1.3701 + _has_bits_[0] |= 0x00000004u; 1.3702 +} 1.3703 +inline void ClientDownloadResponse::clear_has_token() { 1.3704 + _has_bits_[0] &= ~0x00000004u; 1.3705 +} 1.3706 +inline void ClientDownloadResponse::clear_token() { 1.3707 + if (token_ != &::google::protobuf::internal::kEmptyString) { 1.3708 + token_->clear(); 1.3709 + } 1.3710 + clear_has_token(); 1.3711 +} 1.3712 +inline const ::std::string& ClientDownloadResponse::token() const { 1.3713 + return *token_; 1.3714 +} 1.3715 +inline void ClientDownloadResponse::set_token(const ::std::string& value) { 1.3716 + set_has_token(); 1.3717 + if (token_ == &::google::protobuf::internal::kEmptyString) { 1.3718 + token_ = new ::std::string; 1.3719 + } 1.3720 + token_->assign(value); 1.3721 +} 1.3722 +inline void ClientDownloadResponse::set_token(const char* value) { 1.3723 + set_has_token(); 1.3724 + if (token_ == &::google::protobuf::internal::kEmptyString) { 1.3725 + token_ = new ::std::string; 1.3726 + } 1.3727 + token_->assign(value); 1.3728 +} 1.3729 +inline void ClientDownloadResponse::set_token(const void* value, size_t size) { 1.3730 + set_has_token(); 1.3731 + if (token_ == &::google::protobuf::internal::kEmptyString) { 1.3732 + token_ = new ::std::string; 1.3733 + } 1.3734 + token_->assign(reinterpret_cast<const char*>(value), size); 1.3735 +} 1.3736 +inline ::std::string* ClientDownloadResponse::mutable_token() { 1.3737 + set_has_token(); 1.3738 + if (token_ == &::google::protobuf::internal::kEmptyString) { 1.3739 + token_ = new ::std::string; 1.3740 + } 1.3741 + return token_; 1.3742 +} 1.3743 +inline ::std::string* ClientDownloadResponse::release_token() { 1.3744 + clear_has_token(); 1.3745 + if (token_ == &::google::protobuf::internal::kEmptyString) { 1.3746 + return NULL; 1.3747 + } else { 1.3748 + ::std::string* temp = token_; 1.3749 + token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.3750 + return temp; 1.3751 + } 1.3752 +} 1.3753 + 1.3754 +// ------------------------------------------------------------------- 1.3755 + 1.3756 +// ClientDownloadReport_UserInformation 1.3757 + 1.3758 +// optional string email = 1; 1.3759 +inline bool ClientDownloadReport_UserInformation::has_email() const { 1.3760 + return (_has_bits_[0] & 0x00000001u) != 0; 1.3761 +} 1.3762 +inline void ClientDownloadReport_UserInformation::set_has_email() { 1.3763 + _has_bits_[0] |= 0x00000001u; 1.3764 +} 1.3765 +inline void ClientDownloadReport_UserInformation::clear_has_email() { 1.3766 + _has_bits_[0] &= ~0x00000001u; 1.3767 +} 1.3768 +inline void ClientDownloadReport_UserInformation::clear_email() { 1.3769 + if (email_ != &::google::protobuf::internal::kEmptyString) { 1.3770 + email_->clear(); 1.3771 + } 1.3772 + clear_has_email(); 1.3773 +} 1.3774 +inline const ::std::string& ClientDownloadReport_UserInformation::email() const { 1.3775 + return *email_; 1.3776 +} 1.3777 +inline void ClientDownloadReport_UserInformation::set_email(const ::std::string& value) { 1.3778 + set_has_email(); 1.3779 + if (email_ == &::google::protobuf::internal::kEmptyString) { 1.3780 + email_ = new ::std::string; 1.3781 + } 1.3782 + email_->assign(value); 1.3783 +} 1.3784 +inline void ClientDownloadReport_UserInformation::set_email(const char* value) { 1.3785 + set_has_email(); 1.3786 + if (email_ == &::google::protobuf::internal::kEmptyString) { 1.3787 + email_ = new ::std::string; 1.3788 + } 1.3789 + email_->assign(value); 1.3790 +} 1.3791 +inline void ClientDownloadReport_UserInformation::set_email(const char* value, size_t size) { 1.3792 + set_has_email(); 1.3793 + if (email_ == &::google::protobuf::internal::kEmptyString) { 1.3794 + email_ = new ::std::string; 1.3795 + } 1.3796 + email_->assign(reinterpret_cast<const char*>(value), size); 1.3797 +} 1.3798 +inline ::std::string* ClientDownloadReport_UserInformation::mutable_email() { 1.3799 + set_has_email(); 1.3800 + if (email_ == &::google::protobuf::internal::kEmptyString) { 1.3801 + email_ = new ::std::string; 1.3802 + } 1.3803 + return email_; 1.3804 +} 1.3805 +inline ::std::string* ClientDownloadReport_UserInformation::release_email() { 1.3806 + clear_has_email(); 1.3807 + if (email_ == &::google::protobuf::internal::kEmptyString) { 1.3808 + return NULL; 1.3809 + } else { 1.3810 + ::std::string* temp = email_; 1.3811 + email_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.3812 + return temp; 1.3813 + } 1.3814 +} 1.3815 + 1.3816 +// ------------------------------------------------------------------- 1.3817 + 1.3818 +// ClientDownloadReport 1.3819 + 1.3820 +// optional .safe_browsing.ClientDownloadReport.Reason reason = 1; 1.3821 +inline bool ClientDownloadReport::has_reason() const { 1.3822 + return (_has_bits_[0] & 0x00000001u) != 0; 1.3823 +} 1.3824 +inline void ClientDownloadReport::set_has_reason() { 1.3825 + _has_bits_[0] |= 0x00000001u; 1.3826 +} 1.3827 +inline void ClientDownloadReport::clear_has_reason() { 1.3828 + _has_bits_[0] &= ~0x00000001u; 1.3829 +} 1.3830 +inline void ClientDownloadReport::clear_reason() { 1.3831 + reason_ = 0; 1.3832 + clear_has_reason(); 1.3833 +} 1.3834 +inline ::safe_browsing::ClientDownloadReport_Reason ClientDownloadReport::reason() const { 1.3835 + return static_cast< ::safe_browsing::ClientDownloadReport_Reason >(reason_); 1.3836 +} 1.3837 +inline void ClientDownloadReport::set_reason(::safe_browsing::ClientDownloadReport_Reason value) { 1.3838 + GOOGLE_DCHECK(::safe_browsing::ClientDownloadReport_Reason_IsValid(value)); 1.3839 + set_has_reason(); 1.3840 + reason_ = value; 1.3841 +} 1.3842 + 1.3843 +// optional .safe_browsing.ClientDownloadRequest download_request = 2; 1.3844 +inline bool ClientDownloadReport::has_download_request() const { 1.3845 + return (_has_bits_[0] & 0x00000002u) != 0; 1.3846 +} 1.3847 +inline void ClientDownloadReport::set_has_download_request() { 1.3848 + _has_bits_[0] |= 0x00000002u; 1.3849 +} 1.3850 +inline void ClientDownloadReport::clear_has_download_request() { 1.3851 + _has_bits_[0] &= ~0x00000002u; 1.3852 +} 1.3853 +inline void ClientDownloadReport::clear_download_request() { 1.3854 + if (download_request_ != NULL) download_request_->::safe_browsing::ClientDownloadRequest::Clear(); 1.3855 + clear_has_download_request(); 1.3856 +} 1.3857 +inline const ::safe_browsing::ClientDownloadRequest& ClientDownloadReport::download_request() const { 1.3858 + return download_request_ != NULL ? *download_request_ : *default_instance_->download_request_; 1.3859 +} 1.3860 +inline ::safe_browsing::ClientDownloadRequest* ClientDownloadReport::mutable_download_request() { 1.3861 + set_has_download_request(); 1.3862 + if (download_request_ == NULL) download_request_ = new ::safe_browsing::ClientDownloadRequest; 1.3863 + return download_request_; 1.3864 +} 1.3865 +inline ::safe_browsing::ClientDownloadRequest* ClientDownloadReport::release_download_request() { 1.3866 + clear_has_download_request(); 1.3867 + ::safe_browsing::ClientDownloadRequest* temp = download_request_; 1.3868 + download_request_ = NULL; 1.3869 + return temp; 1.3870 +} 1.3871 + 1.3872 +// optional .safe_browsing.ClientDownloadReport.UserInformation user_information = 3; 1.3873 +inline bool ClientDownloadReport::has_user_information() const { 1.3874 + return (_has_bits_[0] & 0x00000004u) != 0; 1.3875 +} 1.3876 +inline void ClientDownloadReport::set_has_user_information() { 1.3877 + _has_bits_[0] |= 0x00000004u; 1.3878 +} 1.3879 +inline void ClientDownloadReport::clear_has_user_information() { 1.3880 + _has_bits_[0] &= ~0x00000004u; 1.3881 +} 1.3882 +inline void ClientDownloadReport::clear_user_information() { 1.3883 + if (user_information_ != NULL) user_information_->::safe_browsing::ClientDownloadReport_UserInformation::Clear(); 1.3884 + clear_has_user_information(); 1.3885 +} 1.3886 +inline const ::safe_browsing::ClientDownloadReport_UserInformation& ClientDownloadReport::user_information() const { 1.3887 + return user_information_ != NULL ? *user_information_ : *default_instance_->user_information_; 1.3888 +} 1.3889 +inline ::safe_browsing::ClientDownloadReport_UserInformation* ClientDownloadReport::mutable_user_information() { 1.3890 + set_has_user_information(); 1.3891 + if (user_information_ == NULL) user_information_ = new ::safe_browsing::ClientDownloadReport_UserInformation; 1.3892 + return user_information_; 1.3893 +} 1.3894 +inline ::safe_browsing::ClientDownloadReport_UserInformation* ClientDownloadReport::release_user_information() { 1.3895 + clear_has_user_information(); 1.3896 + ::safe_browsing::ClientDownloadReport_UserInformation* temp = user_information_; 1.3897 + user_information_ = NULL; 1.3898 + return temp; 1.3899 +} 1.3900 + 1.3901 +// optional bytes comment = 4; 1.3902 +inline bool ClientDownloadReport::has_comment() const { 1.3903 + return (_has_bits_[0] & 0x00000008u) != 0; 1.3904 +} 1.3905 +inline void ClientDownloadReport::set_has_comment() { 1.3906 + _has_bits_[0] |= 0x00000008u; 1.3907 +} 1.3908 +inline void ClientDownloadReport::clear_has_comment() { 1.3909 + _has_bits_[0] &= ~0x00000008u; 1.3910 +} 1.3911 +inline void ClientDownloadReport::clear_comment() { 1.3912 + if (comment_ != &::google::protobuf::internal::kEmptyString) { 1.3913 + comment_->clear(); 1.3914 + } 1.3915 + clear_has_comment(); 1.3916 +} 1.3917 +inline const ::std::string& ClientDownloadReport::comment() const { 1.3918 + return *comment_; 1.3919 +} 1.3920 +inline void ClientDownloadReport::set_comment(const ::std::string& value) { 1.3921 + set_has_comment(); 1.3922 + if (comment_ == &::google::protobuf::internal::kEmptyString) { 1.3923 + comment_ = new ::std::string; 1.3924 + } 1.3925 + comment_->assign(value); 1.3926 +} 1.3927 +inline void ClientDownloadReport::set_comment(const char* value) { 1.3928 + set_has_comment(); 1.3929 + if (comment_ == &::google::protobuf::internal::kEmptyString) { 1.3930 + comment_ = new ::std::string; 1.3931 + } 1.3932 + comment_->assign(value); 1.3933 +} 1.3934 +inline void ClientDownloadReport::set_comment(const void* value, size_t size) { 1.3935 + set_has_comment(); 1.3936 + if (comment_ == &::google::protobuf::internal::kEmptyString) { 1.3937 + comment_ = new ::std::string; 1.3938 + } 1.3939 + comment_->assign(reinterpret_cast<const char*>(value), size); 1.3940 +} 1.3941 +inline ::std::string* ClientDownloadReport::mutable_comment() { 1.3942 + set_has_comment(); 1.3943 + if (comment_ == &::google::protobuf::internal::kEmptyString) { 1.3944 + comment_ = new ::std::string; 1.3945 + } 1.3946 + return comment_; 1.3947 +} 1.3948 +inline ::std::string* ClientDownloadReport::release_comment() { 1.3949 + clear_has_comment(); 1.3950 + if (comment_ == &::google::protobuf::internal::kEmptyString) { 1.3951 + return NULL; 1.3952 + } else { 1.3953 + ::std::string* temp = comment_; 1.3954 + comment_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.3955 + return temp; 1.3956 + } 1.3957 +} 1.3958 + 1.3959 +// optional .safe_browsing.ClientDownloadResponse download_response = 5; 1.3960 +inline bool ClientDownloadReport::has_download_response() const { 1.3961 + return (_has_bits_[0] & 0x00000010u) != 0; 1.3962 +} 1.3963 +inline void ClientDownloadReport::set_has_download_response() { 1.3964 + _has_bits_[0] |= 0x00000010u; 1.3965 +} 1.3966 +inline void ClientDownloadReport::clear_has_download_response() { 1.3967 + _has_bits_[0] &= ~0x00000010u; 1.3968 +} 1.3969 +inline void ClientDownloadReport::clear_download_response() { 1.3970 + if (download_response_ != NULL) download_response_->::safe_browsing::ClientDownloadResponse::Clear(); 1.3971 + clear_has_download_response(); 1.3972 +} 1.3973 +inline const ::safe_browsing::ClientDownloadResponse& ClientDownloadReport::download_response() const { 1.3974 + return download_response_ != NULL ? *download_response_ : *default_instance_->download_response_; 1.3975 +} 1.3976 +inline ::safe_browsing::ClientDownloadResponse* ClientDownloadReport::mutable_download_response() { 1.3977 + set_has_download_response(); 1.3978 + if (download_response_ == NULL) download_response_ = new ::safe_browsing::ClientDownloadResponse; 1.3979 + return download_response_; 1.3980 +} 1.3981 +inline ::safe_browsing::ClientDownloadResponse* ClientDownloadReport::release_download_response() { 1.3982 + clear_has_download_response(); 1.3983 + ::safe_browsing::ClientDownloadResponse* temp = download_response_; 1.3984 + download_response_ = NULL; 1.3985 + return temp; 1.3986 +} 1.3987 + 1.3988 +// ------------------------------------------------------------------- 1.3989 + 1.3990 +// ClientUploadResponse 1.3991 + 1.3992 +// optional .safe_browsing.ClientUploadResponse.UploadStatus status = 1; 1.3993 +inline bool ClientUploadResponse::has_status() const { 1.3994 + return (_has_bits_[0] & 0x00000001u) != 0; 1.3995 +} 1.3996 +inline void ClientUploadResponse::set_has_status() { 1.3997 + _has_bits_[0] |= 0x00000001u; 1.3998 +} 1.3999 +inline void ClientUploadResponse::clear_has_status() { 1.4000 + _has_bits_[0] &= ~0x00000001u; 1.4001 +} 1.4002 +inline void ClientUploadResponse::clear_status() { 1.4003 + status_ = 0; 1.4004 + clear_has_status(); 1.4005 +} 1.4006 +inline ::safe_browsing::ClientUploadResponse_UploadStatus ClientUploadResponse::status() const { 1.4007 + return static_cast< ::safe_browsing::ClientUploadResponse_UploadStatus >(status_); 1.4008 +} 1.4009 +inline void ClientUploadResponse::set_status(::safe_browsing::ClientUploadResponse_UploadStatus value) { 1.4010 + GOOGLE_DCHECK(::safe_browsing::ClientUploadResponse_UploadStatus_IsValid(value)); 1.4011 + set_has_status(); 1.4012 + status_ = value; 1.4013 +} 1.4014 + 1.4015 +// optional string permalink = 2; 1.4016 +inline bool ClientUploadResponse::has_permalink() const { 1.4017 + return (_has_bits_[0] & 0x00000002u) != 0; 1.4018 +} 1.4019 +inline void ClientUploadResponse::set_has_permalink() { 1.4020 + _has_bits_[0] |= 0x00000002u; 1.4021 +} 1.4022 +inline void ClientUploadResponse::clear_has_permalink() { 1.4023 + _has_bits_[0] &= ~0x00000002u; 1.4024 +} 1.4025 +inline void ClientUploadResponse::clear_permalink() { 1.4026 + if (permalink_ != &::google::protobuf::internal::kEmptyString) { 1.4027 + permalink_->clear(); 1.4028 + } 1.4029 + clear_has_permalink(); 1.4030 +} 1.4031 +inline const ::std::string& ClientUploadResponse::permalink() const { 1.4032 + return *permalink_; 1.4033 +} 1.4034 +inline void ClientUploadResponse::set_permalink(const ::std::string& value) { 1.4035 + set_has_permalink(); 1.4036 + if (permalink_ == &::google::protobuf::internal::kEmptyString) { 1.4037 + permalink_ = new ::std::string; 1.4038 + } 1.4039 + permalink_->assign(value); 1.4040 +} 1.4041 +inline void ClientUploadResponse::set_permalink(const char* value) { 1.4042 + set_has_permalink(); 1.4043 + if (permalink_ == &::google::protobuf::internal::kEmptyString) { 1.4044 + permalink_ = new ::std::string; 1.4045 + } 1.4046 + permalink_->assign(value); 1.4047 +} 1.4048 +inline void ClientUploadResponse::set_permalink(const char* value, size_t size) { 1.4049 + set_has_permalink(); 1.4050 + if (permalink_ == &::google::protobuf::internal::kEmptyString) { 1.4051 + permalink_ = new ::std::string; 1.4052 + } 1.4053 + permalink_->assign(reinterpret_cast<const char*>(value), size); 1.4054 +} 1.4055 +inline ::std::string* ClientUploadResponse::mutable_permalink() { 1.4056 + set_has_permalink(); 1.4057 + if (permalink_ == &::google::protobuf::internal::kEmptyString) { 1.4058 + permalink_ = new ::std::string; 1.4059 + } 1.4060 + return permalink_; 1.4061 +} 1.4062 +inline ::std::string* ClientUploadResponse::release_permalink() { 1.4063 + clear_has_permalink(); 1.4064 + if (permalink_ == &::google::protobuf::internal::kEmptyString) { 1.4065 + return NULL; 1.4066 + } else { 1.4067 + ::std::string* temp = permalink_; 1.4068 + permalink_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); 1.4069 + return temp; 1.4070 + } 1.4071 +} 1.4072 + 1.4073 + 1.4074 +// @@protoc_insertion_point(namespace_scope) 1.4075 + 1.4076 +} // namespace safe_browsing 1.4077 + 1.4078 +// @@protoc_insertion_point(global_scope) 1.4079 + 1.4080 +#endif // PROTOBUF_csd_2eproto__INCLUDED