Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
michael@0 | 2 | // source: csd.proto |
michael@0 | 3 | |
michael@0 | 4 | #ifndef PROTOBUF_csd_2eproto__INCLUDED |
michael@0 | 5 | #define PROTOBUF_csd_2eproto__INCLUDED |
michael@0 | 6 | |
michael@0 | 7 | #include <string> |
michael@0 | 8 | |
michael@0 | 9 | #include <google/protobuf/stubs/common.h> |
michael@0 | 10 | |
michael@0 | 11 | #if GOOGLE_PROTOBUF_VERSION < 2004000 |
michael@0 | 12 | #error This file was generated by a newer version of protoc which is |
michael@0 | 13 | #error incompatible with your Protocol Buffer headers. Please update |
michael@0 | 14 | #error your headers. |
michael@0 | 15 | #endif |
michael@0 | 16 | #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
michael@0 | 17 | #error This file was generated by an older version of protoc which is |
michael@0 | 18 | #error incompatible with your Protocol Buffer headers. Please |
michael@0 | 19 | #error regenerate this file with a newer version of protoc. |
michael@0 | 20 | #endif |
michael@0 | 21 | |
michael@0 | 22 | #include <google/protobuf/generated_message_util.h> |
michael@0 | 23 | #include <google/protobuf/repeated_field.h> |
michael@0 | 24 | #include <google/protobuf/extension_set.h> |
michael@0 | 25 | // @@protoc_insertion_point(includes) |
michael@0 | 26 | |
michael@0 | 27 | namespace safe_browsing { |
michael@0 | 28 | |
michael@0 | 29 | // Internal implementation detail -- do not call these. |
michael@0 | 30 | void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 31 | void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 32 | void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 33 | |
michael@0 | 34 | class ClientPhishingRequest; |
michael@0 | 35 | class ClientPhishingRequest_Feature; |
michael@0 | 36 | class ClientPhishingResponse; |
michael@0 | 37 | class ClientMalwareRequest; |
michael@0 | 38 | class ClientMalwareRequest_Feature; |
michael@0 | 39 | class ClientMalwareResponse; |
michael@0 | 40 | class ClientDownloadRequest; |
michael@0 | 41 | class ClientDownloadRequest_Digests; |
michael@0 | 42 | class ClientDownloadRequest_Resource; |
michael@0 | 43 | class ClientDownloadRequest_CertificateChain; |
michael@0 | 44 | class ClientDownloadRequest_CertificateChain_Element; |
michael@0 | 45 | class ClientDownloadRequest_SignatureInfo; |
michael@0 | 46 | class ClientDownloadResponse; |
michael@0 | 47 | class ClientDownloadResponse_MoreInfo; |
michael@0 | 48 | class ClientDownloadReport; |
michael@0 | 49 | class ClientDownloadReport_UserInformation; |
michael@0 | 50 | class ClientUploadResponse; |
michael@0 | 51 | |
michael@0 | 52 | enum ClientDownloadRequest_ResourceType { |
michael@0 | 53 | ClientDownloadRequest_ResourceType_DOWNLOAD_URL = 0, |
michael@0 | 54 | ClientDownloadRequest_ResourceType_DOWNLOAD_REDIRECT = 1, |
michael@0 | 55 | ClientDownloadRequest_ResourceType_TAB_URL = 2, |
michael@0 | 56 | ClientDownloadRequest_ResourceType_TAB_REDIRECT = 3 |
michael@0 | 57 | }; |
michael@0 | 58 | bool ClientDownloadRequest_ResourceType_IsValid(int value); |
michael@0 | 59 | const ClientDownloadRequest_ResourceType ClientDownloadRequest_ResourceType_ResourceType_MIN = ClientDownloadRequest_ResourceType_DOWNLOAD_URL; |
michael@0 | 60 | const ClientDownloadRequest_ResourceType ClientDownloadRequest_ResourceType_ResourceType_MAX = ClientDownloadRequest_ResourceType_TAB_REDIRECT; |
michael@0 | 61 | const int ClientDownloadRequest_ResourceType_ResourceType_ARRAYSIZE = ClientDownloadRequest_ResourceType_ResourceType_MAX + 1; |
michael@0 | 62 | |
michael@0 | 63 | enum ClientDownloadRequest_DownloadType { |
michael@0 | 64 | ClientDownloadRequest_DownloadType_WIN_EXECUTABLE = 0, |
michael@0 | 65 | ClientDownloadRequest_DownloadType_CHROME_EXTENSION = 1, |
michael@0 | 66 | ClientDownloadRequest_DownloadType_ANDROID_APK = 2, |
michael@0 | 67 | ClientDownloadRequest_DownloadType_ZIPPED_EXECUTABLE = 3 |
michael@0 | 68 | }; |
michael@0 | 69 | bool ClientDownloadRequest_DownloadType_IsValid(int value); |
michael@0 | 70 | const ClientDownloadRequest_DownloadType ClientDownloadRequest_DownloadType_DownloadType_MIN = ClientDownloadRequest_DownloadType_WIN_EXECUTABLE; |
michael@0 | 71 | const ClientDownloadRequest_DownloadType ClientDownloadRequest_DownloadType_DownloadType_MAX = ClientDownloadRequest_DownloadType_ZIPPED_EXECUTABLE; |
michael@0 | 72 | const int ClientDownloadRequest_DownloadType_DownloadType_ARRAYSIZE = ClientDownloadRequest_DownloadType_DownloadType_MAX + 1; |
michael@0 | 73 | |
michael@0 | 74 | enum ClientDownloadResponse_Verdict { |
michael@0 | 75 | ClientDownloadResponse_Verdict_SAFE = 0, |
michael@0 | 76 | ClientDownloadResponse_Verdict_DANGEROUS = 1, |
michael@0 | 77 | ClientDownloadResponse_Verdict_UNCOMMON = 2, |
michael@0 | 78 | ClientDownloadResponse_Verdict_POTENTIALLY_UNWANTED = 3, |
michael@0 | 79 | ClientDownloadResponse_Verdict_DANGEROUS_HOST = 4 |
michael@0 | 80 | }; |
michael@0 | 81 | bool ClientDownloadResponse_Verdict_IsValid(int value); |
michael@0 | 82 | const ClientDownloadResponse_Verdict ClientDownloadResponse_Verdict_Verdict_MIN = ClientDownloadResponse_Verdict_SAFE; |
michael@0 | 83 | const ClientDownloadResponse_Verdict ClientDownloadResponse_Verdict_Verdict_MAX = ClientDownloadResponse_Verdict_DANGEROUS_HOST; |
michael@0 | 84 | const int ClientDownloadResponse_Verdict_Verdict_ARRAYSIZE = ClientDownloadResponse_Verdict_Verdict_MAX + 1; |
michael@0 | 85 | |
michael@0 | 86 | enum ClientDownloadReport_Reason { |
michael@0 | 87 | ClientDownloadReport_Reason_SHARE = 0, |
michael@0 | 88 | ClientDownloadReport_Reason_FALSE_POSITIVE = 1, |
michael@0 | 89 | ClientDownloadReport_Reason_APPEAL = 2 |
michael@0 | 90 | }; |
michael@0 | 91 | bool ClientDownloadReport_Reason_IsValid(int value); |
michael@0 | 92 | const ClientDownloadReport_Reason ClientDownloadReport_Reason_Reason_MIN = ClientDownloadReport_Reason_SHARE; |
michael@0 | 93 | const ClientDownloadReport_Reason ClientDownloadReport_Reason_Reason_MAX = ClientDownloadReport_Reason_APPEAL; |
michael@0 | 94 | const int ClientDownloadReport_Reason_Reason_ARRAYSIZE = ClientDownloadReport_Reason_Reason_MAX + 1; |
michael@0 | 95 | |
michael@0 | 96 | enum ClientUploadResponse_UploadStatus { |
michael@0 | 97 | ClientUploadResponse_UploadStatus_SUCCESS = 0, |
michael@0 | 98 | ClientUploadResponse_UploadStatus_UPLOAD_FAILURE = 1 |
michael@0 | 99 | }; |
michael@0 | 100 | bool ClientUploadResponse_UploadStatus_IsValid(int value); |
michael@0 | 101 | const ClientUploadResponse_UploadStatus ClientUploadResponse_UploadStatus_UploadStatus_MIN = ClientUploadResponse_UploadStatus_SUCCESS; |
michael@0 | 102 | const ClientUploadResponse_UploadStatus ClientUploadResponse_UploadStatus_UploadStatus_MAX = ClientUploadResponse_UploadStatus_UPLOAD_FAILURE; |
michael@0 | 103 | const int ClientUploadResponse_UploadStatus_UploadStatus_ARRAYSIZE = ClientUploadResponse_UploadStatus_UploadStatus_MAX + 1; |
michael@0 | 104 | |
michael@0 | 105 | // =================================================================== |
michael@0 | 106 | |
michael@0 | 107 | class ClientPhishingRequest_Feature : public ::google::protobuf::MessageLite { |
michael@0 | 108 | public: |
michael@0 | 109 | ClientPhishingRequest_Feature(); |
michael@0 | 110 | virtual ~ClientPhishingRequest_Feature(); |
michael@0 | 111 | |
michael@0 | 112 | ClientPhishingRequest_Feature(const ClientPhishingRequest_Feature& from); |
michael@0 | 113 | |
michael@0 | 114 | inline ClientPhishingRequest_Feature& operator=(const ClientPhishingRequest_Feature& from) { |
michael@0 | 115 | CopyFrom(from); |
michael@0 | 116 | return *this; |
michael@0 | 117 | } |
michael@0 | 118 | |
michael@0 | 119 | static const ClientPhishingRequest_Feature& default_instance(); |
michael@0 | 120 | |
michael@0 | 121 | void Swap(ClientPhishingRequest_Feature* other); |
michael@0 | 122 | |
michael@0 | 123 | // implements Message ---------------------------------------------- |
michael@0 | 124 | |
michael@0 | 125 | ClientPhishingRequest_Feature* New() const; |
michael@0 | 126 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 127 | void CopyFrom(const ClientPhishingRequest_Feature& from); |
michael@0 | 128 | void MergeFrom(const ClientPhishingRequest_Feature& from); |
michael@0 | 129 | void Clear(); |
michael@0 | 130 | bool IsInitialized() const; |
michael@0 | 131 | |
michael@0 | 132 | int ByteSize() const; |
michael@0 | 133 | bool MergePartialFromCodedStream( |
michael@0 | 134 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 135 | void SerializeWithCachedSizes( |
michael@0 | 136 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 137 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 138 | private: |
michael@0 | 139 | void SharedCtor(); |
michael@0 | 140 | void SharedDtor(); |
michael@0 | 141 | void SetCachedSize(int size) const; |
michael@0 | 142 | public: |
michael@0 | 143 | |
michael@0 | 144 | ::std::string GetTypeName() const; |
michael@0 | 145 | |
michael@0 | 146 | // nested types ---------------------------------------------------- |
michael@0 | 147 | |
michael@0 | 148 | // accessors ------------------------------------------------------- |
michael@0 | 149 | |
michael@0 | 150 | // required string name = 1; |
michael@0 | 151 | inline bool has_name() const; |
michael@0 | 152 | inline void clear_name(); |
michael@0 | 153 | static const int kNameFieldNumber = 1; |
michael@0 | 154 | inline const ::std::string& name() const; |
michael@0 | 155 | inline void set_name(const ::std::string& value); |
michael@0 | 156 | inline void set_name(const char* value); |
michael@0 | 157 | inline void set_name(const char* value, size_t size); |
michael@0 | 158 | inline ::std::string* mutable_name(); |
michael@0 | 159 | inline ::std::string* release_name(); |
michael@0 | 160 | |
michael@0 | 161 | // required double value = 2; |
michael@0 | 162 | inline bool has_value() const; |
michael@0 | 163 | inline void clear_value(); |
michael@0 | 164 | static const int kValueFieldNumber = 2; |
michael@0 | 165 | inline double value() const; |
michael@0 | 166 | inline void set_value(double value); |
michael@0 | 167 | |
michael@0 | 168 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientPhishingRequest.Feature) |
michael@0 | 169 | private: |
michael@0 | 170 | inline void set_has_name(); |
michael@0 | 171 | inline void clear_has_name(); |
michael@0 | 172 | inline void set_has_value(); |
michael@0 | 173 | inline void clear_has_value(); |
michael@0 | 174 | |
michael@0 | 175 | ::std::string* name_; |
michael@0 | 176 | double value_; |
michael@0 | 177 | |
michael@0 | 178 | mutable int _cached_size_; |
michael@0 | 179 | ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
michael@0 | 180 | |
michael@0 | 181 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 182 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 183 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 184 | |
michael@0 | 185 | void InitAsDefaultInstance(); |
michael@0 | 186 | static ClientPhishingRequest_Feature* default_instance_; |
michael@0 | 187 | }; |
michael@0 | 188 | // ------------------------------------------------------------------- |
michael@0 | 189 | |
michael@0 | 190 | class ClientPhishingRequest : public ::google::protobuf::MessageLite { |
michael@0 | 191 | public: |
michael@0 | 192 | ClientPhishingRequest(); |
michael@0 | 193 | virtual ~ClientPhishingRequest(); |
michael@0 | 194 | |
michael@0 | 195 | ClientPhishingRequest(const ClientPhishingRequest& from); |
michael@0 | 196 | |
michael@0 | 197 | inline ClientPhishingRequest& operator=(const ClientPhishingRequest& from) { |
michael@0 | 198 | CopyFrom(from); |
michael@0 | 199 | return *this; |
michael@0 | 200 | } |
michael@0 | 201 | |
michael@0 | 202 | static const ClientPhishingRequest& default_instance(); |
michael@0 | 203 | |
michael@0 | 204 | void Swap(ClientPhishingRequest* other); |
michael@0 | 205 | |
michael@0 | 206 | // implements Message ---------------------------------------------- |
michael@0 | 207 | |
michael@0 | 208 | ClientPhishingRequest* New() const; |
michael@0 | 209 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 210 | void CopyFrom(const ClientPhishingRequest& from); |
michael@0 | 211 | void MergeFrom(const ClientPhishingRequest& from); |
michael@0 | 212 | void Clear(); |
michael@0 | 213 | bool IsInitialized() const; |
michael@0 | 214 | |
michael@0 | 215 | int ByteSize() const; |
michael@0 | 216 | bool MergePartialFromCodedStream( |
michael@0 | 217 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 218 | void SerializeWithCachedSizes( |
michael@0 | 219 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 220 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 221 | private: |
michael@0 | 222 | void SharedCtor(); |
michael@0 | 223 | void SharedDtor(); |
michael@0 | 224 | void SetCachedSize(int size) const; |
michael@0 | 225 | public: |
michael@0 | 226 | |
michael@0 | 227 | ::std::string GetTypeName() const; |
michael@0 | 228 | |
michael@0 | 229 | // nested types ---------------------------------------------------- |
michael@0 | 230 | |
michael@0 | 231 | typedef ClientPhishingRequest_Feature Feature; |
michael@0 | 232 | |
michael@0 | 233 | // accessors ------------------------------------------------------- |
michael@0 | 234 | |
michael@0 | 235 | // optional string url = 1; |
michael@0 | 236 | inline bool has_url() const; |
michael@0 | 237 | inline void clear_url(); |
michael@0 | 238 | static const int kUrlFieldNumber = 1; |
michael@0 | 239 | inline const ::std::string& url() const; |
michael@0 | 240 | inline void set_url(const ::std::string& value); |
michael@0 | 241 | inline void set_url(const char* value); |
michael@0 | 242 | inline void set_url(const char* value, size_t size); |
michael@0 | 243 | inline ::std::string* mutable_url(); |
michael@0 | 244 | inline ::std::string* release_url(); |
michael@0 | 245 | |
michael@0 | 246 | // optional bytes OBSOLETE_hash_prefix = 10; |
michael@0 | 247 | inline bool has_obsolete_hash_prefix() const; |
michael@0 | 248 | inline void clear_obsolete_hash_prefix(); |
michael@0 | 249 | static const int kOBSOLETEHashPrefixFieldNumber = 10; |
michael@0 | 250 | inline const ::std::string& obsolete_hash_prefix() const; |
michael@0 | 251 | inline void set_obsolete_hash_prefix(const ::std::string& value); |
michael@0 | 252 | inline void set_obsolete_hash_prefix(const char* value); |
michael@0 | 253 | inline void set_obsolete_hash_prefix(const void* value, size_t size); |
michael@0 | 254 | inline ::std::string* mutable_obsolete_hash_prefix(); |
michael@0 | 255 | inline ::std::string* release_obsolete_hash_prefix(); |
michael@0 | 256 | |
michael@0 | 257 | // required float client_score = 2; |
michael@0 | 258 | inline bool has_client_score() const; |
michael@0 | 259 | inline void clear_client_score(); |
michael@0 | 260 | static const int kClientScoreFieldNumber = 2; |
michael@0 | 261 | inline float client_score() const; |
michael@0 | 262 | inline void set_client_score(float value); |
michael@0 | 263 | |
michael@0 | 264 | // optional bool is_phishing = 4; |
michael@0 | 265 | inline bool has_is_phishing() const; |
michael@0 | 266 | inline void clear_is_phishing(); |
michael@0 | 267 | static const int kIsPhishingFieldNumber = 4; |
michael@0 | 268 | inline bool is_phishing() const; |
michael@0 | 269 | inline void set_is_phishing(bool value); |
michael@0 | 270 | |
michael@0 | 271 | // repeated .safe_browsing.ClientPhishingRequest.Feature feature_map = 5; |
michael@0 | 272 | inline int feature_map_size() const; |
michael@0 | 273 | inline void clear_feature_map(); |
michael@0 | 274 | static const int kFeatureMapFieldNumber = 5; |
michael@0 | 275 | inline const ::safe_browsing::ClientPhishingRequest_Feature& feature_map(int index) const; |
michael@0 | 276 | inline ::safe_browsing::ClientPhishingRequest_Feature* mutable_feature_map(int index); |
michael@0 | 277 | inline ::safe_browsing::ClientPhishingRequest_Feature* add_feature_map(); |
michael@0 | 278 | inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >& |
michael@0 | 279 | feature_map() const; |
michael@0 | 280 | inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >* |
michael@0 | 281 | mutable_feature_map(); |
michael@0 | 282 | |
michael@0 | 283 | // optional int32 model_version = 6; |
michael@0 | 284 | inline bool has_model_version() const; |
michael@0 | 285 | inline void clear_model_version(); |
michael@0 | 286 | static const int kModelVersionFieldNumber = 6; |
michael@0 | 287 | inline ::google::protobuf::int32 model_version() const; |
michael@0 | 288 | inline void set_model_version(::google::protobuf::int32 value); |
michael@0 | 289 | |
michael@0 | 290 | // repeated .safe_browsing.ClientPhishingRequest.Feature non_model_feature_map = 8; |
michael@0 | 291 | inline int non_model_feature_map_size() const; |
michael@0 | 292 | inline void clear_non_model_feature_map(); |
michael@0 | 293 | static const int kNonModelFeatureMapFieldNumber = 8; |
michael@0 | 294 | inline const ::safe_browsing::ClientPhishingRequest_Feature& non_model_feature_map(int index) const; |
michael@0 | 295 | inline ::safe_browsing::ClientPhishingRequest_Feature* mutable_non_model_feature_map(int index); |
michael@0 | 296 | inline ::safe_browsing::ClientPhishingRequest_Feature* add_non_model_feature_map(); |
michael@0 | 297 | inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >& |
michael@0 | 298 | non_model_feature_map() const; |
michael@0 | 299 | inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >* |
michael@0 | 300 | mutable_non_model_feature_map(); |
michael@0 | 301 | |
michael@0 | 302 | // optional string OBSOLETE_referrer_url = 9; |
michael@0 | 303 | inline bool has_obsolete_referrer_url() const; |
michael@0 | 304 | inline void clear_obsolete_referrer_url(); |
michael@0 | 305 | static const int kOBSOLETEReferrerUrlFieldNumber = 9; |
michael@0 | 306 | inline const ::std::string& obsolete_referrer_url() const; |
michael@0 | 307 | inline void set_obsolete_referrer_url(const ::std::string& value); |
michael@0 | 308 | inline void set_obsolete_referrer_url(const char* value); |
michael@0 | 309 | inline void set_obsolete_referrer_url(const char* value, size_t size); |
michael@0 | 310 | inline ::std::string* mutable_obsolete_referrer_url(); |
michael@0 | 311 | inline ::std::string* release_obsolete_referrer_url(); |
michael@0 | 312 | |
michael@0 | 313 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientPhishingRequest) |
michael@0 | 314 | private: |
michael@0 | 315 | inline void set_has_url(); |
michael@0 | 316 | inline void clear_has_url(); |
michael@0 | 317 | inline void set_has_obsolete_hash_prefix(); |
michael@0 | 318 | inline void clear_has_obsolete_hash_prefix(); |
michael@0 | 319 | inline void set_has_client_score(); |
michael@0 | 320 | inline void clear_has_client_score(); |
michael@0 | 321 | inline void set_has_is_phishing(); |
michael@0 | 322 | inline void clear_has_is_phishing(); |
michael@0 | 323 | inline void set_has_model_version(); |
michael@0 | 324 | inline void clear_has_model_version(); |
michael@0 | 325 | inline void set_has_obsolete_referrer_url(); |
michael@0 | 326 | inline void clear_has_obsolete_referrer_url(); |
michael@0 | 327 | |
michael@0 | 328 | ::std::string* url_; |
michael@0 | 329 | ::std::string* obsolete_hash_prefix_; |
michael@0 | 330 | float client_score_; |
michael@0 | 331 | bool is_phishing_; |
michael@0 | 332 | ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature > feature_map_; |
michael@0 | 333 | ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature > non_model_feature_map_; |
michael@0 | 334 | ::std::string* obsolete_referrer_url_; |
michael@0 | 335 | ::google::protobuf::int32 model_version_; |
michael@0 | 336 | |
michael@0 | 337 | mutable int _cached_size_; |
michael@0 | 338 | ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; |
michael@0 | 339 | |
michael@0 | 340 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 341 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 342 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 343 | |
michael@0 | 344 | void InitAsDefaultInstance(); |
michael@0 | 345 | static ClientPhishingRequest* default_instance_; |
michael@0 | 346 | }; |
michael@0 | 347 | // ------------------------------------------------------------------- |
michael@0 | 348 | |
michael@0 | 349 | class ClientPhishingResponse : public ::google::protobuf::MessageLite { |
michael@0 | 350 | public: |
michael@0 | 351 | ClientPhishingResponse(); |
michael@0 | 352 | virtual ~ClientPhishingResponse(); |
michael@0 | 353 | |
michael@0 | 354 | ClientPhishingResponse(const ClientPhishingResponse& from); |
michael@0 | 355 | |
michael@0 | 356 | inline ClientPhishingResponse& operator=(const ClientPhishingResponse& from) { |
michael@0 | 357 | CopyFrom(from); |
michael@0 | 358 | return *this; |
michael@0 | 359 | } |
michael@0 | 360 | |
michael@0 | 361 | static const ClientPhishingResponse& default_instance(); |
michael@0 | 362 | |
michael@0 | 363 | void Swap(ClientPhishingResponse* other); |
michael@0 | 364 | |
michael@0 | 365 | // implements Message ---------------------------------------------- |
michael@0 | 366 | |
michael@0 | 367 | ClientPhishingResponse* New() const; |
michael@0 | 368 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 369 | void CopyFrom(const ClientPhishingResponse& from); |
michael@0 | 370 | void MergeFrom(const ClientPhishingResponse& from); |
michael@0 | 371 | void Clear(); |
michael@0 | 372 | bool IsInitialized() const; |
michael@0 | 373 | |
michael@0 | 374 | int ByteSize() const; |
michael@0 | 375 | bool MergePartialFromCodedStream( |
michael@0 | 376 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 377 | void SerializeWithCachedSizes( |
michael@0 | 378 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 379 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 380 | private: |
michael@0 | 381 | void SharedCtor(); |
michael@0 | 382 | void SharedDtor(); |
michael@0 | 383 | void SetCachedSize(int size) const; |
michael@0 | 384 | public: |
michael@0 | 385 | |
michael@0 | 386 | ::std::string GetTypeName() const; |
michael@0 | 387 | |
michael@0 | 388 | // nested types ---------------------------------------------------- |
michael@0 | 389 | |
michael@0 | 390 | // accessors ------------------------------------------------------- |
michael@0 | 391 | |
michael@0 | 392 | // required bool phishy = 1; |
michael@0 | 393 | inline bool has_phishy() const; |
michael@0 | 394 | inline void clear_phishy(); |
michael@0 | 395 | static const int kPhishyFieldNumber = 1; |
michael@0 | 396 | inline bool phishy() const; |
michael@0 | 397 | inline void set_phishy(bool value); |
michael@0 | 398 | |
michael@0 | 399 | // repeated string OBSOLETE_whitelist_expression = 2; |
michael@0 | 400 | inline int obsolete_whitelist_expression_size() const; |
michael@0 | 401 | inline void clear_obsolete_whitelist_expression(); |
michael@0 | 402 | static const int kOBSOLETEWhitelistExpressionFieldNumber = 2; |
michael@0 | 403 | inline const ::std::string& obsolete_whitelist_expression(int index) const; |
michael@0 | 404 | inline ::std::string* mutable_obsolete_whitelist_expression(int index); |
michael@0 | 405 | inline void set_obsolete_whitelist_expression(int index, const ::std::string& value); |
michael@0 | 406 | inline void set_obsolete_whitelist_expression(int index, const char* value); |
michael@0 | 407 | inline void set_obsolete_whitelist_expression(int index, const char* value, size_t size); |
michael@0 | 408 | inline ::std::string* add_obsolete_whitelist_expression(); |
michael@0 | 409 | inline void add_obsolete_whitelist_expression(const ::std::string& value); |
michael@0 | 410 | inline void add_obsolete_whitelist_expression(const char* value); |
michael@0 | 411 | inline void add_obsolete_whitelist_expression(const char* value, size_t size); |
michael@0 | 412 | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& obsolete_whitelist_expression() const; |
michael@0 | 413 | inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_obsolete_whitelist_expression(); |
michael@0 | 414 | |
michael@0 | 415 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientPhishingResponse) |
michael@0 | 416 | private: |
michael@0 | 417 | inline void set_has_phishy(); |
michael@0 | 418 | inline void clear_has_phishy(); |
michael@0 | 419 | |
michael@0 | 420 | ::google::protobuf::RepeatedPtrField< ::std::string> obsolete_whitelist_expression_; |
michael@0 | 421 | bool phishy_; |
michael@0 | 422 | |
michael@0 | 423 | mutable int _cached_size_; |
michael@0 | 424 | ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
michael@0 | 425 | |
michael@0 | 426 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 427 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 428 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 429 | |
michael@0 | 430 | void InitAsDefaultInstance(); |
michael@0 | 431 | static ClientPhishingResponse* default_instance_; |
michael@0 | 432 | }; |
michael@0 | 433 | // ------------------------------------------------------------------- |
michael@0 | 434 | |
michael@0 | 435 | class ClientMalwareRequest_Feature : public ::google::protobuf::MessageLite { |
michael@0 | 436 | public: |
michael@0 | 437 | ClientMalwareRequest_Feature(); |
michael@0 | 438 | virtual ~ClientMalwareRequest_Feature(); |
michael@0 | 439 | |
michael@0 | 440 | ClientMalwareRequest_Feature(const ClientMalwareRequest_Feature& from); |
michael@0 | 441 | |
michael@0 | 442 | inline ClientMalwareRequest_Feature& operator=(const ClientMalwareRequest_Feature& from) { |
michael@0 | 443 | CopyFrom(from); |
michael@0 | 444 | return *this; |
michael@0 | 445 | } |
michael@0 | 446 | |
michael@0 | 447 | static const ClientMalwareRequest_Feature& default_instance(); |
michael@0 | 448 | |
michael@0 | 449 | void Swap(ClientMalwareRequest_Feature* other); |
michael@0 | 450 | |
michael@0 | 451 | // implements Message ---------------------------------------------- |
michael@0 | 452 | |
michael@0 | 453 | ClientMalwareRequest_Feature* New() const; |
michael@0 | 454 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 455 | void CopyFrom(const ClientMalwareRequest_Feature& from); |
michael@0 | 456 | void MergeFrom(const ClientMalwareRequest_Feature& from); |
michael@0 | 457 | void Clear(); |
michael@0 | 458 | bool IsInitialized() const; |
michael@0 | 459 | |
michael@0 | 460 | int ByteSize() const; |
michael@0 | 461 | bool MergePartialFromCodedStream( |
michael@0 | 462 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 463 | void SerializeWithCachedSizes( |
michael@0 | 464 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 465 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 466 | private: |
michael@0 | 467 | void SharedCtor(); |
michael@0 | 468 | void SharedDtor(); |
michael@0 | 469 | void SetCachedSize(int size) const; |
michael@0 | 470 | public: |
michael@0 | 471 | |
michael@0 | 472 | ::std::string GetTypeName() const; |
michael@0 | 473 | |
michael@0 | 474 | // nested types ---------------------------------------------------- |
michael@0 | 475 | |
michael@0 | 476 | // accessors ------------------------------------------------------- |
michael@0 | 477 | |
michael@0 | 478 | // required string name = 1; |
michael@0 | 479 | inline bool has_name() const; |
michael@0 | 480 | inline void clear_name(); |
michael@0 | 481 | static const int kNameFieldNumber = 1; |
michael@0 | 482 | inline const ::std::string& name() const; |
michael@0 | 483 | inline void set_name(const ::std::string& value); |
michael@0 | 484 | inline void set_name(const char* value); |
michael@0 | 485 | inline void set_name(const char* value, size_t size); |
michael@0 | 486 | inline ::std::string* mutable_name(); |
michael@0 | 487 | inline ::std::string* release_name(); |
michael@0 | 488 | |
michael@0 | 489 | // required double value = 2; |
michael@0 | 490 | inline bool has_value() const; |
michael@0 | 491 | inline void clear_value(); |
michael@0 | 492 | static const int kValueFieldNumber = 2; |
michael@0 | 493 | inline double value() const; |
michael@0 | 494 | inline void set_value(double value); |
michael@0 | 495 | |
michael@0 | 496 | // repeated string metainfo = 3; |
michael@0 | 497 | inline int metainfo_size() const; |
michael@0 | 498 | inline void clear_metainfo(); |
michael@0 | 499 | static const int kMetainfoFieldNumber = 3; |
michael@0 | 500 | inline const ::std::string& metainfo(int index) const; |
michael@0 | 501 | inline ::std::string* mutable_metainfo(int index); |
michael@0 | 502 | inline void set_metainfo(int index, const ::std::string& value); |
michael@0 | 503 | inline void set_metainfo(int index, const char* value); |
michael@0 | 504 | inline void set_metainfo(int index, const char* value, size_t size); |
michael@0 | 505 | inline ::std::string* add_metainfo(); |
michael@0 | 506 | inline void add_metainfo(const ::std::string& value); |
michael@0 | 507 | inline void add_metainfo(const char* value); |
michael@0 | 508 | inline void add_metainfo(const char* value, size_t size); |
michael@0 | 509 | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& metainfo() const; |
michael@0 | 510 | inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_metainfo(); |
michael@0 | 511 | |
michael@0 | 512 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientMalwareRequest.Feature) |
michael@0 | 513 | private: |
michael@0 | 514 | inline void set_has_name(); |
michael@0 | 515 | inline void clear_has_name(); |
michael@0 | 516 | inline void set_has_value(); |
michael@0 | 517 | inline void clear_has_value(); |
michael@0 | 518 | |
michael@0 | 519 | ::std::string* name_; |
michael@0 | 520 | double value_; |
michael@0 | 521 | ::google::protobuf::RepeatedPtrField< ::std::string> metainfo_; |
michael@0 | 522 | |
michael@0 | 523 | mutable int _cached_size_; |
michael@0 | 524 | ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
michael@0 | 525 | |
michael@0 | 526 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 527 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 528 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 529 | |
michael@0 | 530 | void InitAsDefaultInstance(); |
michael@0 | 531 | static ClientMalwareRequest_Feature* default_instance_; |
michael@0 | 532 | }; |
michael@0 | 533 | // ------------------------------------------------------------------- |
michael@0 | 534 | |
michael@0 | 535 | class ClientMalwareRequest : public ::google::protobuf::MessageLite { |
michael@0 | 536 | public: |
michael@0 | 537 | ClientMalwareRequest(); |
michael@0 | 538 | virtual ~ClientMalwareRequest(); |
michael@0 | 539 | |
michael@0 | 540 | ClientMalwareRequest(const ClientMalwareRequest& from); |
michael@0 | 541 | |
michael@0 | 542 | inline ClientMalwareRequest& operator=(const ClientMalwareRequest& from) { |
michael@0 | 543 | CopyFrom(from); |
michael@0 | 544 | return *this; |
michael@0 | 545 | } |
michael@0 | 546 | |
michael@0 | 547 | static const ClientMalwareRequest& default_instance(); |
michael@0 | 548 | |
michael@0 | 549 | void Swap(ClientMalwareRequest* other); |
michael@0 | 550 | |
michael@0 | 551 | // implements Message ---------------------------------------------- |
michael@0 | 552 | |
michael@0 | 553 | ClientMalwareRequest* New() const; |
michael@0 | 554 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 555 | void CopyFrom(const ClientMalwareRequest& from); |
michael@0 | 556 | void MergeFrom(const ClientMalwareRequest& from); |
michael@0 | 557 | void Clear(); |
michael@0 | 558 | bool IsInitialized() const; |
michael@0 | 559 | |
michael@0 | 560 | int ByteSize() const; |
michael@0 | 561 | bool MergePartialFromCodedStream( |
michael@0 | 562 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 563 | void SerializeWithCachedSizes( |
michael@0 | 564 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 565 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 566 | private: |
michael@0 | 567 | void SharedCtor(); |
michael@0 | 568 | void SharedDtor(); |
michael@0 | 569 | void SetCachedSize(int size) const; |
michael@0 | 570 | public: |
michael@0 | 571 | |
michael@0 | 572 | ::std::string GetTypeName() const; |
michael@0 | 573 | |
michael@0 | 574 | // nested types ---------------------------------------------------- |
michael@0 | 575 | |
michael@0 | 576 | typedef ClientMalwareRequest_Feature Feature; |
michael@0 | 577 | |
michael@0 | 578 | // accessors ------------------------------------------------------- |
michael@0 | 579 | |
michael@0 | 580 | // required string url = 1; |
michael@0 | 581 | inline bool has_url() const; |
michael@0 | 582 | inline void clear_url(); |
michael@0 | 583 | static const int kUrlFieldNumber = 1; |
michael@0 | 584 | inline const ::std::string& url() const; |
michael@0 | 585 | inline void set_url(const ::std::string& value); |
michael@0 | 586 | inline void set_url(const char* value); |
michael@0 | 587 | inline void set_url(const char* value, size_t size); |
michael@0 | 588 | inline ::std::string* mutable_url(); |
michael@0 | 589 | inline ::std::string* release_url(); |
michael@0 | 590 | |
michael@0 | 591 | // repeated .safe_browsing.ClientMalwareRequest.Feature feature_map = 2; |
michael@0 | 592 | inline int feature_map_size() const; |
michael@0 | 593 | inline void clear_feature_map(); |
michael@0 | 594 | static const int kFeatureMapFieldNumber = 2; |
michael@0 | 595 | inline const ::safe_browsing::ClientMalwareRequest_Feature& feature_map(int index) const; |
michael@0 | 596 | inline ::safe_browsing::ClientMalwareRequest_Feature* mutable_feature_map(int index); |
michael@0 | 597 | inline ::safe_browsing::ClientMalwareRequest_Feature* add_feature_map(); |
michael@0 | 598 | inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientMalwareRequest_Feature >& |
michael@0 | 599 | feature_map() const; |
michael@0 | 600 | inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientMalwareRequest_Feature >* |
michael@0 | 601 | mutable_feature_map(); |
michael@0 | 602 | |
michael@0 | 603 | // optional string referrer_url = 4; |
michael@0 | 604 | inline bool has_referrer_url() const; |
michael@0 | 605 | inline void clear_referrer_url(); |
michael@0 | 606 | static const int kReferrerUrlFieldNumber = 4; |
michael@0 | 607 | inline const ::std::string& referrer_url() const; |
michael@0 | 608 | inline void set_referrer_url(const ::std::string& value); |
michael@0 | 609 | inline void set_referrer_url(const char* value); |
michael@0 | 610 | inline void set_referrer_url(const char* value, size_t size); |
michael@0 | 611 | inline ::std::string* mutable_referrer_url(); |
michael@0 | 612 | inline ::std::string* release_referrer_url(); |
michael@0 | 613 | |
michael@0 | 614 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientMalwareRequest) |
michael@0 | 615 | private: |
michael@0 | 616 | inline void set_has_url(); |
michael@0 | 617 | inline void clear_has_url(); |
michael@0 | 618 | inline void set_has_referrer_url(); |
michael@0 | 619 | inline void clear_has_referrer_url(); |
michael@0 | 620 | |
michael@0 | 621 | ::std::string* url_; |
michael@0 | 622 | ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientMalwareRequest_Feature > feature_map_; |
michael@0 | 623 | ::std::string* referrer_url_; |
michael@0 | 624 | |
michael@0 | 625 | mutable int _cached_size_; |
michael@0 | 626 | ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
michael@0 | 627 | |
michael@0 | 628 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 629 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 630 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 631 | |
michael@0 | 632 | void InitAsDefaultInstance(); |
michael@0 | 633 | static ClientMalwareRequest* default_instance_; |
michael@0 | 634 | }; |
michael@0 | 635 | // ------------------------------------------------------------------- |
michael@0 | 636 | |
michael@0 | 637 | class ClientMalwareResponse : public ::google::protobuf::MessageLite { |
michael@0 | 638 | public: |
michael@0 | 639 | ClientMalwareResponse(); |
michael@0 | 640 | virtual ~ClientMalwareResponse(); |
michael@0 | 641 | |
michael@0 | 642 | ClientMalwareResponse(const ClientMalwareResponse& from); |
michael@0 | 643 | |
michael@0 | 644 | inline ClientMalwareResponse& operator=(const ClientMalwareResponse& from) { |
michael@0 | 645 | CopyFrom(from); |
michael@0 | 646 | return *this; |
michael@0 | 647 | } |
michael@0 | 648 | |
michael@0 | 649 | static const ClientMalwareResponse& default_instance(); |
michael@0 | 650 | |
michael@0 | 651 | void Swap(ClientMalwareResponse* other); |
michael@0 | 652 | |
michael@0 | 653 | // implements Message ---------------------------------------------- |
michael@0 | 654 | |
michael@0 | 655 | ClientMalwareResponse* New() const; |
michael@0 | 656 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 657 | void CopyFrom(const ClientMalwareResponse& from); |
michael@0 | 658 | void MergeFrom(const ClientMalwareResponse& from); |
michael@0 | 659 | void Clear(); |
michael@0 | 660 | bool IsInitialized() const; |
michael@0 | 661 | |
michael@0 | 662 | int ByteSize() const; |
michael@0 | 663 | bool MergePartialFromCodedStream( |
michael@0 | 664 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 665 | void SerializeWithCachedSizes( |
michael@0 | 666 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 667 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 668 | private: |
michael@0 | 669 | void SharedCtor(); |
michael@0 | 670 | void SharedDtor(); |
michael@0 | 671 | void SetCachedSize(int size) const; |
michael@0 | 672 | public: |
michael@0 | 673 | |
michael@0 | 674 | ::std::string GetTypeName() const; |
michael@0 | 675 | |
michael@0 | 676 | // nested types ---------------------------------------------------- |
michael@0 | 677 | |
michael@0 | 678 | // accessors ------------------------------------------------------- |
michael@0 | 679 | |
michael@0 | 680 | // required bool blacklist = 1; |
michael@0 | 681 | inline bool has_blacklist() const; |
michael@0 | 682 | inline void clear_blacklist(); |
michael@0 | 683 | static const int kBlacklistFieldNumber = 1; |
michael@0 | 684 | inline bool blacklist() const; |
michael@0 | 685 | inline void set_blacklist(bool value); |
michael@0 | 686 | |
michael@0 | 687 | // optional string bad_ip = 2; |
michael@0 | 688 | inline bool has_bad_ip() const; |
michael@0 | 689 | inline void clear_bad_ip(); |
michael@0 | 690 | static const int kBadIpFieldNumber = 2; |
michael@0 | 691 | inline const ::std::string& bad_ip() const; |
michael@0 | 692 | inline void set_bad_ip(const ::std::string& value); |
michael@0 | 693 | inline void set_bad_ip(const char* value); |
michael@0 | 694 | inline void set_bad_ip(const char* value, size_t size); |
michael@0 | 695 | inline ::std::string* mutable_bad_ip(); |
michael@0 | 696 | inline ::std::string* release_bad_ip(); |
michael@0 | 697 | |
michael@0 | 698 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientMalwareResponse) |
michael@0 | 699 | private: |
michael@0 | 700 | inline void set_has_blacklist(); |
michael@0 | 701 | inline void clear_has_blacklist(); |
michael@0 | 702 | inline void set_has_bad_ip(); |
michael@0 | 703 | inline void clear_has_bad_ip(); |
michael@0 | 704 | |
michael@0 | 705 | ::std::string* bad_ip_; |
michael@0 | 706 | bool blacklist_; |
michael@0 | 707 | |
michael@0 | 708 | mutable int _cached_size_; |
michael@0 | 709 | ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
michael@0 | 710 | |
michael@0 | 711 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 712 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 713 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 714 | |
michael@0 | 715 | void InitAsDefaultInstance(); |
michael@0 | 716 | static ClientMalwareResponse* default_instance_; |
michael@0 | 717 | }; |
michael@0 | 718 | // ------------------------------------------------------------------- |
michael@0 | 719 | |
michael@0 | 720 | class ClientDownloadRequest_Digests : public ::google::protobuf::MessageLite { |
michael@0 | 721 | public: |
michael@0 | 722 | ClientDownloadRequest_Digests(); |
michael@0 | 723 | virtual ~ClientDownloadRequest_Digests(); |
michael@0 | 724 | |
michael@0 | 725 | ClientDownloadRequest_Digests(const ClientDownloadRequest_Digests& from); |
michael@0 | 726 | |
michael@0 | 727 | inline ClientDownloadRequest_Digests& operator=(const ClientDownloadRequest_Digests& from) { |
michael@0 | 728 | CopyFrom(from); |
michael@0 | 729 | return *this; |
michael@0 | 730 | } |
michael@0 | 731 | |
michael@0 | 732 | static const ClientDownloadRequest_Digests& default_instance(); |
michael@0 | 733 | |
michael@0 | 734 | void Swap(ClientDownloadRequest_Digests* other); |
michael@0 | 735 | |
michael@0 | 736 | // implements Message ---------------------------------------------- |
michael@0 | 737 | |
michael@0 | 738 | ClientDownloadRequest_Digests* New() const; |
michael@0 | 739 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 740 | void CopyFrom(const ClientDownloadRequest_Digests& from); |
michael@0 | 741 | void MergeFrom(const ClientDownloadRequest_Digests& from); |
michael@0 | 742 | void Clear(); |
michael@0 | 743 | bool IsInitialized() const; |
michael@0 | 744 | |
michael@0 | 745 | int ByteSize() const; |
michael@0 | 746 | bool MergePartialFromCodedStream( |
michael@0 | 747 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 748 | void SerializeWithCachedSizes( |
michael@0 | 749 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 750 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 751 | private: |
michael@0 | 752 | void SharedCtor(); |
michael@0 | 753 | void SharedDtor(); |
michael@0 | 754 | void SetCachedSize(int size) const; |
michael@0 | 755 | public: |
michael@0 | 756 | |
michael@0 | 757 | ::std::string GetTypeName() const; |
michael@0 | 758 | |
michael@0 | 759 | // nested types ---------------------------------------------------- |
michael@0 | 760 | |
michael@0 | 761 | // accessors ------------------------------------------------------- |
michael@0 | 762 | |
michael@0 | 763 | // optional bytes sha256 = 1; |
michael@0 | 764 | inline bool has_sha256() const; |
michael@0 | 765 | inline void clear_sha256(); |
michael@0 | 766 | static const int kSha256FieldNumber = 1; |
michael@0 | 767 | inline const ::std::string& sha256() const; |
michael@0 | 768 | inline void set_sha256(const ::std::string& value); |
michael@0 | 769 | inline void set_sha256(const char* value); |
michael@0 | 770 | inline void set_sha256(const void* value, size_t size); |
michael@0 | 771 | inline ::std::string* mutable_sha256(); |
michael@0 | 772 | inline ::std::string* release_sha256(); |
michael@0 | 773 | |
michael@0 | 774 | // optional bytes sha1 = 2; |
michael@0 | 775 | inline bool has_sha1() const; |
michael@0 | 776 | inline void clear_sha1(); |
michael@0 | 777 | static const int kSha1FieldNumber = 2; |
michael@0 | 778 | inline const ::std::string& sha1() const; |
michael@0 | 779 | inline void set_sha1(const ::std::string& value); |
michael@0 | 780 | inline void set_sha1(const char* value); |
michael@0 | 781 | inline void set_sha1(const void* value, size_t size); |
michael@0 | 782 | inline ::std::string* mutable_sha1(); |
michael@0 | 783 | inline ::std::string* release_sha1(); |
michael@0 | 784 | |
michael@0 | 785 | // optional bytes md5 = 3; |
michael@0 | 786 | inline bool has_md5() const; |
michael@0 | 787 | inline void clear_md5(); |
michael@0 | 788 | static const int kMd5FieldNumber = 3; |
michael@0 | 789 | inline const ::std::string& md5() const; |
michael@0 | 790 | inline void set_md5(const ::std::string& value); |
michael@0 | 791 | inline void set_md5(const char* value); |
michael@0 | 792 | inline void set_md5(const void* value, size_t size); |
michael@0 | 793 | inline ::std::string* mutable_md5(); |
michael@0 | 794 | inline ::std::string* release_md5(); |
michael@0 | 795 | |
michael@0 | 796 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadRequest.Digests) |
michael@0 | 797 | private: |
michael@0 | 798 | inline void set_has_sha256(); |
michael@0 | 799 | inline void clear_has_sha256(); |
michael@0 | 800 | inline void set_has_sha1(); |
michael@0 | 801 | inline void clear_has_sha1(); |
michael@0 | 802 | inline void set_has_md5(); |
michael@0 | 803 | inline void clear_has_md5(); |
michael@0 | 804 | |
michael@0 | 805 | ::std::string* sha256_; |
michael@0 | 806 | ::std::string* sha1_; |
michael@0 | 807 | ::std::string* md5_; |
michael@0 | 808 | |
michael@0 | 809 | mutable int _cached_size_; |
michael@0 | 810 | ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
michael@0 | 811 | |
michael@0 | 812 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 813 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 814 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 815 | |
michael@0 | 816 | void InitAsDefaultInstance(); |
michael@0 | 817 | static ClientDownloadRequest_Digests* default_instance_; |
michael@0 | 818 | }; |
michael@0 | 819 | // ------------------------------------------------------------------- |
michael@0 | 820 | |
michael@0 | 821 | class ClientDownloadRequest_Resource : public ::google::protobuf::MessageLite { |
michael@0 | 822 | public: |
michael@0 | 823 | ClientDownloadRequest_Resource(); |
michael@0 | 824 | virtual ~ClientDownloadRequest_Resource(); |
michael@0 | 825 | |
michael@0 | 826 | ClientDownloadRequest_Resource(const ClientDownloadRequest_Resource& from); |
michael@0 | 827 | |
michael@0 | 828 | inline ClientDownloadRequest_Resource& operator=(const ClientDownloadRequest_Resource& from) { |
michael@0 | 829 | CopyFrom(from); |
michael@0 | 830 | return *this; |
michael@0 | 831 | } |
michael@0 | 832 | |
michael@0 | 833 | static const ClientDownloadRequest_Resource& default_instance(); |
michael@0 | 834 | |
michael@0 | 835 | void Swap(ClientDownloadRequest_Resource* other); |
michael@0 | 836 | |
michael@0 | 837 | // implements Message ---------------------------------------------- |
michael@0 | 838 | |
michael@0 | 839 | ClientDownloadRequest_Resource* New() const; |
michael@0 | 840 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 841 | void CopyFrom(const ClientDownloadRequest_Resource& from); |
michael@0 | 842 | void MergeFrom(const ClientDownloadRequest_Resource& from); |
michael@0 | 843 | void Clear(); |
michael@0 | 844 | bool IsInitialized() const; |
michael@0 | 845 | |
michael@0 | 846 | int ByteSize() const; |
michael@0 | 847 | bool MergePartialFromCodedStream( |
michael@0 | 848 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 849 | void SerializeWithCachedSizes( |
michael@0 | 850 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 851 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 852 | private: |
michael@0 | 853 | void SharedCtor(); |
michael@0 | 854 | void SharedDtor(); |
michael@0 | 855 | void SetCachedSize(int size) const; |
michael@0 | 856 | public: |
michael@0 | 857 | |
michael@0 | 858 | ::std::string GetTypeName() const; |
michael@0 | 859 | |
michael@0 | 860 | // nested types ---------------------------------------------------- |
michael@0 | 861 | |
michael@0 | 862 | // accessors ------------------------------------------------------- |
michael@0 | 863 | |
michael@0 | 864 | // required string url = 1; |
michael@0 | 865 | inline bool has_url() const; |
michael@0 | 866 | inline void clear_url(); |
michael@0 | 867 | static const int kUrlFieldNumber = 1; |
michael@0 | 868 | inline const ::std::string& url() const; |
michael@0 | 869 | inline void set_url(const ::std::string& value); |
michael@0 | 870 | inline void set_url(const char* value); |
michael@0 | 871 | inline void set_url(const char* value, size_t size); |
michael@0 | 872 | inline ::std::string* mutable_url(); |
michael@0 | 873 | inline ::std::string* release_url(); |
michael@0 | 874 | |
michael@0 | 875 | // required .safe_browsing.ClientDownloadRequest.ResourceType type = 2; |
michael@0 | 876 | inline bool has_type() const; |
michael@0 | 877 | inline void clear_type(); |
michael@0 | 878 | static const int kTypeFieldNumber = 2; |
michael@0 | 879 | inline ::safe_browsing::ClientDownloadRequest_ResourceType type() const; |
michael@0 | 880 | inline void set_type(::safe_browsing::ClientDownloadRequest_ResourceType value); |
michael@0 | 881 | |
michael@0 | 882 | // optional bytes remote_ip = 3; |
michael@0 | 883 | inline bool has_remote_ip() const; |
michael@0 | 884 | inline void clear_remote_ip(); |
michael@0 | 885 | static const int kRemoteIpFieldNumber = 3; |
michael@0 | 886 | inline const ::std::string& remote_ip() const; |
michael@0 | 887 | inline void set_remote_ip(const ::std::string& value); |
michael@0 | 888 | inline void set_remote_ip(const char* value); |
michael@0 | 889 | inline void set_remote_ip(const void* value, size_t size); |
michael@0 | 890 | inline ::std::string* mutable_remote_ip(); |
michael@0 | 891 | inline ::std::string* release_remote_ip(); |
michael@0 | 892 | |
michael@0 | 893 | // optional string referrer = 4; |
michael@0 | 894 | inline bool has_referrer() const; |
michael@0 | 895 | inline void clear_referrer(); |
michael@0 | 896 | static const int kReferrerFieldNumber = 4; |
michael@0 | 897 | inline const ::std::string& referrer() const; |
michael@0 | 898 | inline void set_referrer(const ::std::string& value); |
michael@0 | 899 | inline void set_referrer(const char* value); |
michael@0 | 900 | inline void set_referrer(const char* value, size_t size); |
michael@0 | 901 | inline ::std::string* mutable_referrer(); |
michael@0 | 902 | inline ::std::string* release_referrer(); |
michael@0 | 903 | |
michael@0 | 904 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadRequest.Resource) |
michael@0 | 905 | private: |
michael@0 | 906 | inline void set_has_url(); |
michael@0 | 907 | inline void clear_has_url(); |
michael@0 | 908 | inline void set_has_type(); |
michael@0 | 909 | inline void clear_has_type(); |
michael@0 | 910 | inline void set_has_remote_ip(); |
michael@0 | 911 | inline void clear_has_remote_ip(); |
michael@0 | 912 | inline void set_has_referrer(); |
michael@0 | 913 | inline void clear_has_referrer(); |
michael@0 | 914 | |
michael@0 | 915 | ::std::string* url_; |
michael@0 | 916 | ::std::string* remote_ip_; |
michael@0 | 917 | ::std::string* referrer_; |
michael@0 | 918 | int type_; |
michael@0 | 919 | |
michael@0 | 920 | mutable int _cached_size_; |
michael@0 | 921 | ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; |
michael@0 | 922 | |
michael@0 | 923 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 924 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 925 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 926 | |
michael@0 | 927 | void InitAsDefaultInstance(); |
michael@0 | 928 | static ClientDownloadRequest_Resource* default_instance_; |
michael@0 | 929 | }; |
michael@0 | 930 | // ------------------------------------------------------------------- |
michael@0 | 931 | |
michael@0 | 932 | class ClientDownloadRequest_CertificateChain_Element : public ::google::protobuf::MessageLite { |
michael@0 | 933 | public: |
michael@0 | 934 | ClientDownloadRequest_CertificateChain_Element(); |
michael@0 | 935 | virtual ~ClientDownloadRequest_CertificateChain_Element(); |
michael@0 | 936 | |
michael@0 | 937 | ClientDownloadRequest_CertificateChain_Element(const ClientDownloadRequest_CertificateChain_Element& from); |
michael@0 | 938 | |
michael@0 | 939 | inline ClientDownloadRequest_CertificateChain_Element& operator=(const ClientDownloadRequest_CertificateChain_Element& from) { |
michael@0 | 940 | CopyFrom(from); |
michael@0 | 941 | return *this; |
michael@0 | 942 | } |
michael@0 | 943 | |
michael@0 | 944 | static const ClientDownloadRequest_CertificateChain_Element& default_instance(); |
michael@0 | 945 | |
michael@0 | 946 | void Swap(ClientDownloadRequest_CertificateChain_Element* other); |
michael@0 | 947 | |
michael@0 | 948 | // implements Message ---------------------------------------------- |
michael@0 | 949 | |
michael@0 | 950 | ClientDownloadRequest_CertificateChain_Element* New() const; |
michael@0 | 951 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 952 | void CopyFrom(const ClientDownloadRequest_CertificateChain_Element& from); |
michael@0 | 953 | void MergeFrom(const ClientDownloadRequest_CertificateChain_Element& from); |
michael@0 | 954 | void Clear(); |
michael@0 | 955 | bool IsInitialized() const; |
michael@0 | 956 | |
michael@0 | 957 | int ByteSize() const; |
michael@0 | 958 | bool MergePartialFromCodedStream( |
michael@0 | 959 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 960 | void SerializeWithCachedSizes( |
michael@0 | 961 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 962 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 963 | private: |
michael@0 | 964 | void SharedCtor(); |
michael@0 | 965 | void SharedDtor(); |
michael@0 | 966 | void SetCachedSize(int size) const; |
michael@0 | 967 | public: |
michael@0 | 968 | |
michael@0 | 969 | ::std::string GetTypeName() const; |
michael@0 | 970 | |
michael@0 | 971 | // nested types ---------------------------------------------------- |
michael@0 | 972 | |
michael@0 | 973 | // accessors ------------------------------------------------------- |
michael@0 | 974 | |
michael@0 | 975 | // optional bytes certificate = 1; |
michael@0 | 976 | inline bool has_certificate() const; |
michael@0 | 977 | inline void clear_certificate(); |
michael@0 | 978 | static const int kCertificateFieldNumber = 1; |
michael@0 | 979 | inline const ::std::string& certificate() const; |
michael@0 | 980 | inline void set_certificate(const ::std::string& value); |
michael@0 | 981 | inline void set_certificate(const char* value); |
michael@0 | 982 | inline void set_certificate(const void* value, size_t size); |
michael@0 | 983 | inline ::std::string* mutable_certificate(); |
michael@0 | 984 | inline ::std::string* release_certificate(); |
michael@0 | 985 | |
michael@0 | 986 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadRequest.CertificateChain.Element) |
michael@0 | 987 | private: |
michael@0 | 988 | inline void set_has_certificate(); |
michael@0 | 989 | inline void clear_has_certificate(); |
michael@0 | 990 | |
michael@0 | 991 | ::std::string* certificate_; |
michael@0 | 992 | |
michael@0 | 993 | mutable int _cached_size_; |
michael@0 | 994 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
michael@0 | 995 | |
michael@0 | 996 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 997 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 998 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 999 | |
michael@0 | 1000 | void InitAsDefaultInstance(); |
michael@0 | 1001 | static ClientDownloadRequest_CertificateChain_Element* default_instance_; |
michael@0 | 1002 | }; |
michael@0 | 1003 | // ------------------------------------------------------------------- |
michael@0 | 1004 | |
michael@0 | 1005 | class ClientDownloadRequest_CertificateChain : public ::google::protobuf::MessageLite { |
michael@0 | 1006 | public: |
michael@0 | 1007 | ClientDownloadRequest_CertificateChain(); |
michael@0 | 1008 | virtual ~ClientDownloadRequest_CertificateChain(); |
michael@0 | 1009 | |
michael@0 | 1010 | ClientDownloadRequest_CertificateChain(const ClientDownloadRequest_CertificateChain& from); |
michael@0 | 1011 | |
michael@0 | 1012 | inline ClientDownloadRequest_CertificateChain& operator=(const ClientDownloadRequest_CertificateChain& from) { |
michael@0 | 1013 | CopyFrom(from); |
michael@0 | 1014 | return *this; |
michael@0 | 1015 | } |
michael@0 | 1016 | |
michael@0 | 1017 | static const ClientDownloadRequest_CertificateChain& default_instance(); |
michael@0 | 1018 | |
michael@0 | 1019 | void Swap(ClientDownloadRequest_CertificateChain* other); |
michael@0 | 1020 | |
michael@0 | 1021 | // implements Message ---------------------------------------------- |
michael@0 | 1022 | |
michael@0 | 1023 | ClientDownloadRequest_CertificateChain* New() const; |
michael@0 | 1024 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 1025 | void CopyFrom(const ClientDownloadRequest_CertificateChain& from); |
michael@0 | 1026 | void MergeFrom(const ClientDownloadRequest_CertificateChain& from); |
michael@0 | 1027 | void Clear(); |
michael@0 | 1028 | bool IsInitialized() const; |
michael@0 | 1029 | |
michael@0 | 1030 | int ByteSize() const; |
michael@0 | 1031 | bool MergePartialFromCodedStream( |
michael@0 | 1032 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 1033 | void SerializeWithCachedSizes( |
michael@0 | 1034 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 1035 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 1036 | private: |
michael@0 | 1037 | void SharedCtor(); |
michael@0 | 1038 | void SharedDtor(); |
michael@0 | 1039 | void SetCachedSize(int size) const; |
michael@0 | 1040 | public: |
michael@0 | 1041 | |
michael@0 | 1042 | ::std::string GetTypeName() const; |
michael@0 | 1043 | |
michael@0 | 1044 | // nested types ---------------------------------------------------- |
michael@0 | 1045 | |
michael@0 | 1046 | typedef ClientDownloadRequest_CertificateChain_Element Element; |
michael@0 | 1047 | |
michael@0 | 1048 | // accessors ------------------------------------------------------- |
michael@0 | 1049 | |
michael@0 | 1050 | // repeated .safe_browsing.ClientDownloadRequest.CertificateChain.Element element = 1; |
michael@0 | 1051 | inline int element_size() const; |
michael@0 | 1052 | inline void clear_element(); |
michael@0 | 1053 | static const int kElementFieldNumber = 1; |
michael@0 | 1054 | inline const ::safe_browsing::ClientDownloadRequest_CertificateChain_Element& element(int index) const; |
michael@0 | 1055 | inline ::safe_browsing::ClientDownloadRequest_CertificateChain_Element* mutable_element(int index); |
michael@0 | 1056 | inline ::safe_browsing::ClientDownloadRequest_CertificateChain_Element* add_element(); |
michael@0 | 1057 | inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain_Element >& |
michael@0 | 1058 | element() const; |
michael@0 | 1059 | inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain_Element >* |
michael@0 | 1060 | mutable_element(); |
michael@0 | 1061 | |
michael@0 | 1062 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadRequest.CertificateChain) |
michael@0 | 1063 | private: |
michael@0 | 1064 | |
michael@0 | 1065 | ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain_Element > element_; |
michael@0 | 1066 | |
michael@0 | 1067 | mutable int _cached_size_; |
michael@0 | 1068 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
michael@0 | 1069 | |
michael@0 | 1070 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 1071 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 1072 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 1073 | |
michael@0 | 1074 | void InitAsDefaultInstance(); |
michael@0 | 1075 | static ClientDownloadRequest_CertificateChain* default_instance_; |
michael@0 | 1076 | }; |
michael@0 | 1077 | // ------------------------------------------------------------------- |
michael@0 | 1078 | |
michael@0 | 1079 | class ClientDownloadRequest_SignatureInfo : public ::google::protobuf::MessageLite { |
michael@0 | 1080 | public: |
michael@0 | 1081 | ClientDownloadRequest_SignatureInfo(); |
michael@0 | 1082 | virtual ~ClientDownloadRequest_SignatureInfo(); |
michael@0 | 1083 | |
michael@0 | 1084 | ClientDownloadRequest_SignatureInfo(const ClientDownloadRequest_SignatureInfo& from); |
michael@0 | 1085 | |
michael@0 | 1086 | inline ClientDownloadRequest_SignatureInfo& operator=(const ClientDownloadRequest_SignatureInfo& from) { |
michael@0 | 1087 | CopyFrom(from); |
michael@0 | 1088 | return *this; |
michael@0 | 1089 | } |
michael@0 | 1090 | |
michael@0 | 1091 | static const ClientDownloadRequest_SignatureInfo& default_instance(); |
michael@0 | 1092 | |
michael@0 | 1093 | void Swap(ClientDownloadRequest_SignatureInfo* other); |
michael@0 | 1094 | |
michael@0 | 1095 | // implements Message ---------------------------------------------- |
michael@0 | 1096 | |
michael@0 | 1097 | ClientDownloadRequest_SignatureInfo* New() const; |
michael@0 | 1098 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 1099 | void CopyFrom(const ClientDownloadRequest_SignatureInfo& from); |
michael@0 | 1100 | void MergeFrom(const ClientDownloadRequest_SignatureInfo& from); |
michael@0 | 1101 | void Clear(); |
michael@0 | 1102 | bool IsInitialized() const; |
michael@0 | 1103 | |
michael@0 | 1104 | int ByteSize() const; |
michael@0 | 1105 | bool MergePartialFromCodedStream( |
michael@0 | 1106 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 1107 | void SerializeWithCachedSizes( |
michael@0 | 1108 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 1109 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 1110 | private: |
michael@0 | 1111 | void SharedCtor(); |
michael@0 | 1112 | void SharedDtor(); |
michael@0 | 1113 | void SetCachedSize(int size) const; |
michael@0 | 1114 | public: |
michael@0 | 1115 | |
michael@0 | 1116 | ::std::string GetTypeName() const; |
michael@0 | 1117 | |
michael@0 | 1118 | // nested types ---------------------------------------------------- |
michael@0 | 1119 | |
michael@0 | 1120 | // accessors ------------------------------------------------------- |
michael@0 | 1121 | |
michael@0 | 1122 | // repeated .safe_browsing.ClientDownloadRequest.CertificateChain certificate_chain = 1; |
michael@0 | 1123 | inline int certificate_chain_size() const; |
michael@0 | 1124 | inline void clear_certificate_chain(); |
michael@0 | 1125 | static const int kCertificateChainFieldNumber = 1; |
michael@0 | 1126 | inline const ::safe_browsing::ClientDownloadRequest_CertificateChain& certificate_chain(int index) const; |
michael@0 | 1127 | inline ::safe_browsing::ClientDownloadRequest_CertificateChain* mutable_certificate_chain(int index); |
michael@0 | 1128 | inline ::safe_browsing::ClientDownloadRequest_CertificateChain* add_certificate_chain(); |
michael@0 | 1129 | inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain >& |
michael@0 | 1130 | certificate_chain() const; |
michael@0 | 1131 | inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain >* |
michael@0 | 1132 | mutable_certificate_chain(); |
michael@0 | 1133 | |
michael@0 | 1134 | // optional bool trusted = 2; |
michael@0 | 1135 | inline bool has_trusted() const; |
michael@0 | 1136 | inline void clear_trusted(); |
michael@0 | 1137 | static const int kTrustedFieldNumber = 2; |
michael@0 | 1138 | inline bool trusted() const; |
michael@0 | 1139 | inline void set_trusted(bool value); |
michael@0 | 1140 | |
michael@0 | 1141 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadRequest.SignatureInfo) |
michael@0 | 1142 | private: |
michael@0 | 1143 | inline void set_has_trusted(); |
michael@0 | 1144 | inline void clear_has_trusted(); |
michael@0 | 1145 | |
michael@0 | 1146 | ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain > certificate_chain_; |
michael@0 | 1147 | bool trusted_; |
michael@0 | 1148 | |
michael@0 | 1149 | mutable int _cached_size_; |
michael@0 | 1150 | ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
michael@0 | 1151 | |
michael@0 | 1152 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 1153 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 1154 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 1155 | |
michael@0 | 1156 | void InitAsDefaultInstance(); |
michael@0 | 1157 | static ClientDownloadRequest_SignatureInfo* default_instance_; |
michael@0 | 1158 | }; |
michael@0 | 1159 | // ------------------------------------------------------------------- |
michael@0 | 1160 | |
michael@0 | 1161 | class ClientDownloadRequest : public ::google::protobuf::MessageLite { |
michael@0 | 1162 | public: |
michael@0 | 1163 | ClientDownloadRequest(); |
michael@0 | 1164 | virtual ~ClientDownloadRequest(); |
michael@0 | 1165 | |
michael@0 | 1166 | ClientDownloadRequest(const ClientDownloadRequest& from); |
michael@0 | 1167 | |
michael@0 | 1168 | inline ClientDownloadRequest& operator=(const ClientDownloadRequest& from) { |
michael@0 | 1169 | CopyFrom(from); |
michael@0 | 1170 | return *this; |
michael@0 | 1171 | } |
michael@0 | 1172 | |
michael@0 | 1173 | static const ClientDownloadRequest& default_instance(); |
michael@0 | 1174 | |
michael@0 | 1175 | void Swap(ClientDownloadRequest* other); |
michael@0 | 1176 | |
michael@0 | 1177 | // implements Message ---------------------------------------------- |
michael@0 | 1178 | |
michael@0 | 1179 | ClientDownloadRequest* New() const; |
michael@0 | 1180 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 1181 | void CopyFrom(const ClientDownloadRequest& from); |
michael@0 | 1182 | void MergeFrom(const ClientDownloadRequest& from); |
michael@0 | 1183 | void Clear(); |
michael@0 | 1184 | bool IsInitialized() const; |
michael@0 | 1185 | |
michael@0 | 1186 | int ByteSize() const; |
michael@0 | 1187 | bool MergePartialFromCodedStream( |
michael@0 | 1188 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 1189 | void SerializeWithCachedSizes( |
michael@0 | 1190 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 1191 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 1192 | private: |
michael@0 | 1193 | void SharedCtor(); |
michael@0 | 1194 | void SharedDtor(); |
michael@0 | 1195 | void SetCachedSize(int size) const; |
michael@0 | 1196 | public: |
michael@0 | 1197 | |
michael@0 | 1198 | ::std::string GetTypeName() const; |
michael@0 | 1199 | |
michael@0 | 1200 | // nested types ---------------------------------------------------- |
michael@0 | 1201 | |
michael@0 | 1202 | typedef ClientDownloadRequest_Digests Digests; |
michael@0 | 1203 | typedef ClientDownloadRequest_Resource Resource; |
michael@0 | 1204 | typedef ClientDownloadRequest_CertificateChain CertificateChain; |
michael@0 | 1205 | typedef ClientDownloadRequest_SignatureInfo SignatureInfo; |
michael@0 | 1206 | |
michael@0 | 1207 | typedef ClientDownloadRequest_ResourceType ResourceType; |
michael@0 | 1208 | static const ResourceType DOWNLOAD_URL = ClientDownloadRequest_ResourceType_DOWNLOAD_URL; |
michael@0 | 1209 | static const ResourceType DOWNLOAD_REDIRECT = ClientDownloadRequest_ResourceType_DOWNLOAD_REDIRECT; |
michael@0 | 1210 | static const ResourceType TAB_URL = ClientDownloadRequest_ResourceType_TAB_URL; |
michael@0 | 1211 | static const ResourceType TAB_REDIRECT = ClientDownloadRequest_ResourceType_TAB_REDIRECT; |
michael@0 | 1212 | static inline bool ResourceType_IsValid(int value) { |
michael@0 | 1213 | return ClientDownloadRequest_ResourceType_IsValid(value); |
michael@0 | 1214 | } |
michael@0 | 1215 | static const ResourceType ResourceType_MIN = |
michael@0 | 1216 | ClientDownloadRequest_ResourceType_ResourceType_MIN; |
michael@0 | 1217 | static const ResourceType ResourceType_MAX = |
michael@0 | 1218 | ClientDownloadRequest_ResourceType_ResourceType_MAX; |
michael@0 | 1219 | static const int ResourceType_ARRAYSIZE = |
michael@0 | 1220 | ClientDownloadRequest_ResourceType_ResourceType_ARRAYSIZE; |
michael@0 | 1221 | |
michael@0 | 1222 | typedef ClientDownloadRequest_DownloadType DownloadType; |
michael@0 | 1223 | static const DownloadType WIN_EXECUTABLE = ClientDownloadRequest_DownloadType_WIN_EXECUTABLE; |
michael@0 | 1224 | static const DownloadType CHROME_EXTENSION = ClientDownloadRequest_DownloadType_CHROME_EXTENSION; |
michael@0 | 1225 | static const DownloadType ANDROID_APK = ClientDownloadRequest_DownloadType_ANDROID_APK; |
michael@0 | 1226 | static const DownloadType ZIPPED_EXECUTABLE = ClientDownloadRequest_DownloadType_ZIPPED_EXECUTABLE; |
michael@0 | 1227 | static inline bool DownloadType_IsValid(int value) { |
michael@0 | 1228 | return ClientDownloadRequest_DownloadType_IsValid(value); |
michael@0 | 1229 | } |
michael@0 | 1230 | static const DownloadType DownloadType_MIN = |
michael@0 | 1231 | ClientDownloadRequest_DownloadType_DownloadType_MIN; |
michael@0 | 1232 | static const DownloadType DownloadType_MAX = |
michael@0 | 1233 | ClientDownloadRequest_DownloadType_DownloadType_MAX; |
michael@0 | 1234 | static const int DownloadType_ARRAYSIZE = |
michael@0 | 1235 | ClientDownloadRequest_DownloadType_DownloadType_ARRAYSIZE; |
michael@0 | 1236 | |
michael@0 | 1237 | // accessors ------------------------------------------------------- |
michael@0 | 1238 | |
michael@0 | 1239 | // required string url = 1; |
michael@0 | 1240 | inline bool has_url() const; |
michael@0 | 1241 | inline void clear_url(); |
michael@0 | 1242 | static const int kUrlFieldNumber = 1; |
michael@0 | 1243 | inline const ::std::string& url() const; |
michael@0 | 1244 | inline void set_url(const ::std::string& value); |
michael@0 | 1245 | inline void set_url(const char* value); |
michael@0 | 1246 | inline void set_url(const char* value, size_t size); |
michael@0 | 1247 | inline ::std::string* mutable_url(); |
michael@0 | 1248 | inline ::std::string* release_url(); |
michael@0 | 1249 | |
michael@0 | 1250 | // required .safe_browsing.ClientDownloadRequest.Digests digests = 2; |
michael@0 | 1251 | inline bool has_digests() const; |
michael@0 | 1252 | inline void clear_digests(); |
michael@0 | 1253 | static const int kDigestsFieldNumber = 2; |
michael@0 | 1254 | inline const ::safe_browsing::ClientDownloadRequest_Digests& digests() const; |
michael@0 | 1255 | inline ::safe_browsing::ClientDownloadRequest_Digests* mutable_digests(); |
michael@0 | 1256 | inline ::safe_browsing::ClientDownloadRequest_Digests* release_digests(); |
michael@0 | 1257 | |
michael@0 | 1258 | // required int64 length = 3; |
michael@0 | 1259 | inline bool has_length() const; |
michael@0 | 1260 | inline void clear_length(); |
michael@0 | 1261 | static const int kLengthFieldNumber = 3; |
michael@0 | 1262 | inline ::google::protobuf::int64 length() const; |
michael@0 | 1263 | inline void set_length(::google::protobuf::int64 value); |
michael@0 | 1264 | |
michael@0 | 1265 | // repeated .safe_browsing.ClientDownloadRequest.Resource resources = 4; |
michael@0 | 1266 | inline int resources_size() const; |
michael@0 | 1267 | inline void clear_resources(); |
michael@0 | 1268 | static const int kResourcesFieldNumber = 4; |
michael@0 | 1269 | inline const ::safe_browsing::ClientDownloadRequest_Resource& resources(int index) const; |
michael@0 | 1270 | inline ::safe_browsing::ClientDownloadRequest_Resource* mutable_resources(int index); |
michael@0 | 1271 | inline ::safe_browsing::ClientDownloadRequest_Resource* add_resources(); |
michael@0 | 1272 | inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_Resource >& |
michael@0 | 1273 | resources() const; |
michael@0 | 1274 | inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_Resource >* |
michael@0 | 1275 | mutable_resources(); |
michael@0 | 1276 | |
michael@0 | 1277 | // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5; |
michael@0 | 1278 | inline bool has_signature() const; |
michael@0 | 1279 | inline void clear_signature(); |
michael@0 | 1280 | static const int kSignatureFieldNumber = 5; |
michael@0 | 1281 | inline const ::safe_browsing::ClientDownloadRequest_SignatureInfo& signature() const; |
michael@0 | 1282 | inline ::safe_browsing::ClientDownloadRequest_SignatureInfo* mutable_signature(); |
michael@0 | 1283 | inline ::safe_browsing::ClientDownloadRequest_SignatureInfo* release_signature(); |
michael@0 | 1284 | |
michael@0 | 1285 | // optional bool user_initiated = 6; |
michael@0 | 1286 | inline bool has_user_initiated() const; |
michael@0 | 1287 | inline void clear_user_initiated(); |
michael@0 | 1288 | static const int kUserInitiatedFieldNumber = 6; |
michael@0 | 1289 | inline bool user_initiated() const; |
michael@0 | 1290 | inline void set_user_initiated(bool value); |
michael@0 | 1291 | |
michael@0 | 1292 | // optional string file_basename = 9; |
michael@0 | 1293 | inline bool has_file_basename() const; |
michael@0 | 1294 | inline void clear_file_basename(); |
michael@0 | 1295 | static const int kFileBasenameFieldNumber = 9; |
michael@0 | 1296 | inline const ::std::string& file_basename() const; |
michael@0 | 1297 | inline void set_file_basename(const ::std::string& value); |
michael@0 | 1298 | inline void set_file_basename(const char* value); |
michael@0 | 1299 | inline void set_file_basename(const char* value, size_t size); |
michael@0 | 1300 | inline ::std::string* mutable_file_basename(); |
michael@0 | 1301 | inline ::std::string* release_file_basename(); |
michael@0 | 1302 | |
michael@0 | 1303 | // optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 10 [default = WIN_EXECUTABLE]; |
michael@0 | 1304 | inline bool has_download_type() const; |
michael@0 | 1305 | inline void clear_download_type(); |
michael@0 | 1306 | static const int kDownloadTypeFieldNumber = 10; |
michael@0 | 1307 | inline ::safe_browsing::ClientDownloadRequest_DownloadType download_type() const; |
michael@0 | 1308 | inline void set_download_type(::safe_browsing::ClientDownloadRequest_DownloadType value); |
michael@0 | 1309 | |
michael@0 | 1310 | // optional string locale = 11; |
michael@0 | 1311 | inline bool has_locale() const; |
michael@0 | 1312 | inline void clear_locale(); |
michael@0 | 1313 | static const int kLocaleFieldNumber = 11; |
michael@0 | 1314 | inline const ::std::string& locale() const; |
michael@0 | 1315 | inline void set_locale(const ::std::string& value); |
michael@0 | 1316 | inline void set_locale(const char* value); |
michael@0 | 1317 | inline void set_locale(const char* value, size_t size); |
michael@0 | 1318 | inline ::std::string* mutable_locale(); |
michael@0 | 1319 | inline ::std::string* release_locale(); |
michael@0 | 1320 | |
michael@0 | 1321 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadRequest) |
michael@0 | 1322 | private: |
michael@0 | 1323 | inline void set_has_url(); |
michael@0 | 1324 | inline void clear_has_url(); |
michael@0 | 1325 | inline void set_has_digests(); |
michael@0 | 1326 | inline void clear_has_digests(); |
michael@0 | 1327 | inline void set_has_length(); |
michael@0 | 1328 | inline void clear_has_length(); |
michael@0 | 1329 | inline void set_has_signature(); |
michael@0 | 1330 | inline void clear_has_signature(); |
michael@0 | 1331 | inline void set_has_user_initiated(); |
michael@0 | 1332 | inline void clear_has_user_initiated(); |
michael@0 | 1333 | inline void set_has_file_basename(); |
michael@0 | 1334 | inline void clear_has_file_basename(); |
michael@0 | 1335 | inline void set_has_download_type(); |
michael@0 | 1336 | inline void clear_has_download_type(); |
michael@0 | 1337 | inline void set_has_locale(); |
michael@0 | 1338 | inline void clear_has_locale(); |
michael@0 | 1339 | |
michael@0 | 1340 | ::std::string* url_; |
michael@0 | 1341 | ::safe_browsing::ClientDownloadRequest_Digests* digests_; |
michael@0 | 1342 | ::google::protobuf::int64 length_; |
michael@0 | 1343 | ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_Resource > resources_; |
michael@0 | 1344 | ::safe_browsing::ClientDownloadRequest_SignatureInfo* signature_; |
michael@0 | 1345 | ::std::string* file_basename_; |
michael@0 | 1346 | bool user_initiated_; |
michael@0 | 1347 | int download_type_; |
michael@0 | 1348 | ::std::string* locale_; |
michael@0 | 1349 | |
michael@0 | 1350 | mutable int _cached_size_; |
michael@0 | 1351 | ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32]; |
michael@0 | 1352 | |
michael@0 | 1353 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 1354 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 1355 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 1356 | |
michael@0 | 1357 | void InitAsDefaultInstance(); |
michael@0 | 1358 | static ClientDownloadRequest* default_instance_; |
michael@0 | 1359 | }; |
michael@0 | 1360 | // ------------------------------------------------------------------- |
michael@0 | 1361 | |
michael@0 | 1362 | class ClientDownloadResponse_MoreInfo : public ::google::protobuf::MessageLite { |
michael@0 | 1363 | public: |
michael@0 | 1364 | ClientDownloadResponse_MoreInfo(); |
michael@0 | 1365 | virtual ~ClientDownloadResponse_MoreInfo(); |
michael@0 | 1366 | |
michael@0 | 1367 | ClientDownloadResponse_MoreInfo(const ClientDownloadResponse_MoreInfo& from); |
michael@0 | 1368 | |
michael@0 | 1369 | inline ClientDownloadResponse_MoreInfo& operator=(const ClientDownloadResponse_MoreInfo& from) { |
michael@0 | 1370 | CopyFrom(from); |
michael@0 | 1371 | return *this; |
michael@0 | 1372 | } |
michael@0 | 1373 | |
michael@0 | 1374 | static const ClientDownloadResponse_MoreInfo& default_instance(); |
michael@0 | 1375 | |
michael@0 | 1376 | void Swap(ClientDownloadResponse_MoreInfo* other); |
michael@0 | 1377 | |
michael@0 | 1378 | // implements Message ---------------------------------------------- |
michael@0 | 1379 | |
michael@0 | 1380 | ClientDownloadResponse_MoreInfo* New() const; |
michael@0 | 1381 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 1382 | void CopyFrom(const ClientDownloadResponse_MoreInfo& from); |
michael@0 | 1383 | void MergeFrom(const ClientDownloadResponse_MoreInfo& from); |
michael@0 | 1384 | void Clear(); |
michael@0 | 1385 | bool IsInitialized() const; |
michael@0 | 1386 | |
michael@0 | 1387 | int ByteSize() const; |
michael@0 | 1388 | bool MergePartialFromCodedStream( |
michael@0 | 1389 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 1390 | void SerializeWithCachedSizes( |
michael@0 | 1391 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 1392 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 1393 | private: |
michael@0 | 1394 | void SharedCtor(); |
michael@0 | 1395 | void SharedDtor(); |
michael@0 | 1396 | void SetCachedSize(int size) const; |
michael@0 | 1397 | public: |
michael@0 | 1398 | |
michael@0 | 1399 | ::std::string GetTypeName() const; |
michael@0 | 1400 | |
michael@0 | 1401 | // nested types ---------------------------------------------------- |
michael@0 | 1402 | |
michael@0 | 1403 | // accessors ------------------------------------------------------- |
michael@0 | 1404 | |
michael@0 | 1405 | // optional string description = 1; |
michael@0 | 1406 | inline bool has_description() const; |
michael@0 | 1407 | inline void clear_description(); |
michael@0 | 1408 | static const int kDescriptionFieldNumber = 1; |
michael@0 | 1409 | inline const ::std::string& description() const; |
michael@0 | 1410 | inline void set_description(const ::std::string& value); |
michael@0 | 1411 | inline void set_description(const char* value); |
michael@0 | 1412 | inline void set_description(const char* value, size_t size); |
michael@0 | 1413 | inline ::std::string* mutable_description(); |
michael@0 | 1414 | inline ::std::string* release_description(); |
michael@0 | 1415 | |
michael@0 | 1416 | // optional string url = 2; |
michael@0 | 1417 | inline bool has_url() const; |
michael@0 | 1418 | inline void clear_url(); |
michael@0 | 1419 | static const int kUrlFieldNumber = 2; |
michael@0 | 1420 | inline const ::std::string& url() const; |
michael@0 | 1421 | inline void set_url(const ::std::string& value); |
michael@0 | 1422 | inline void set_url(const char* value); |
michael@0 | 1423 | inline void set_url(const char* value, size_t size); |
michael@0 | 1424 | inline ::std::string* mutable_url(); |
michael@0 | 1425 | inline ::std::string* release_url(); |
michael@0 | 1426 | |
michael@0 | 1427 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadResponse.MoreInfo) |
michael@0 | 1428 | private: |
michael@0 | 1429 | inline void set_has_description(); |
michael@0 | 1430 | inline void clear_has_description(); |
michael@0 | 1431 | inline void set_has_url(); |
michael@0 | 1432 | inline void clear_has_url(); |
michael@0 | 1433 | |
michael@0 | 1434 | ::std::string* description_; |
michael@0 | 1435 | ::std::string* url_; |
michael@0 | 1436 | |
michael@0 | 1437 | mutable int _cached_size_; |
michael@0 | 1438 | ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
michael@0 | 1439 | |
michael@0 | 1440 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 1441 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 1442 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 1443 | |
michael@0 | 1444 | void InitAsDefaultInstance(); |
michael@0 | 1445 | static ClientDownloadResponse_MoreInfo* default_instance_; |
michael@0 | 1446 | }; |
michael@0 | 1447 | // ------------------------------------------------------------------- |
michael@0 | 1448 | |
michael@0 | 1449 | class ClientDownloadResponse : public ::google::protobuf::MessageLite { |
michael@0 | 1450 | public: |
michael@0 | 1451 | ClientDownloadResponse(); |
michael@0 | 1452 | virtual ~ClientDownloadResponse(); |
michael@0 | 1453 | |
michael@0 | 1454 | ClientDownloadResponse(const ClientDownloadResponse& from); |
michael@0 | 1455 | |
michael@0 | 1456 | inline ClientDownloadResponse& operator=(const ClientDownloadResponse& from) { |
michael@0 | 1457 | CopyFrom(from); |
michael@0 | 1458 | return *this; |
michael@0 | 1459 | } |
michael@0 | 1460 | |
michael@0 | 1461 | static const ClientDownloadResponse& default_instance(); |
michael@0 | 1462 | |
michael@0 | 1463 | void Swap(ClientDownloadResponse* other); |
michael@0 | 1464 | |
michael@0 | 1465 | // implements Message ---------------------------------------------- |
michael@0 | 1466 | |
michael@0 | 1467 | ClientDownloadResponse* New() const; |
michael@0 | 1468 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 1469 | void CopyFrom(const ClientDownloadResponse& from); |
michael@0 | 1470 | void MergeFrom(const ClientDownloadResponse& from); |
michael@0 | 1471 | void Clear(); |
michael@0 | 1472 | bool IsInitialized() const; |
michael@0 | 1473 | |
michael@0 | 1474 | int ByteSize() const; |
michael@0 | 1475 | bool MergePartialFromCodedStream( |
michael@0 | 1476 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 1477 | void SerializeWithCachedSizes( |
michael@0 | 1478 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 1479 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 1480 | private: |
michael@0 | 1481 | void SharedCtor(); |
michael@0 | 1482 | void SharedDtor(); |
michael@0 | 1483 | void SetCachedSize(int size) const; |
michael@0 | 1484 | public: |
michael@0 | 1485 | |
michael@0 | 1486 | ::std::string GetTypeName() const; |
michael@0 | 1487 | |
michael@0 | 1488 | // nested types ---------------------------------------------------- |
michael@0 | 1489 | |
michael@0 | 1490 | typedef ClientDownloadResponse_MoreInfo MoreInfo; |
michael@0 | 1491 | |
michael@0 | 1492 | typedef ClientDownloadResponse_Verdict Verdict; |
michael@0 | 1493 | static const Verdict SAFE = ClientDownloadResponse_Verdict_SAFE; |
michael@0 | 1494 | static const Verdict DANGEROUS = ClientDownloadResponse_Verdict_DANGEROUS; |
michael@0 | 1495 | static const Verdict UNCOMMON = ClientDownloadResponse_Verdict_UNCOMMON; |
michael@0 | 1496 | static const Verdict POTENTIALLY_UNWANTED = ClientDownloadResponse_Verdict_POTENTIALLY_UNWANTED; |
michael@0 | 1497 | static const Verdict DANGEROUS_HOST = ClientDownloadResponse_Verdict_DANGEROUS_HOST; |
michael@0 | 1498 | static inline bool Verdict_IsValid(int value) { |
michael@0 | 1499 | return ClientDownloadResponse_Verdict_IsValid(value); |
michael@0 | 1500 | } |
michael@0 | 1501 | static const Verdict Verdict_MIN = |
michael@0 | 1502 | ClientDownloadResponse_Verdict_Verdict_MIN; |
michael@0 | 1503 | static const Verdict Verdict_MAX = |
michael@0 | 1504 | ClientDownloadResponse_Verdict_Verdict_MAX; |
michael@0 | 1505 | static const int Verdict_ARRAYSIZE = |
michael@0 | 1506 | ClientDownloadResponse_Verdict_Verdict_ARRAYSIZE; |
michael@0 | 1507 | |
michael@0 | 1508 | // accessors ------------------------------------------------------- |
michael@0 | 1509 | |
michael@0 | 1510 | // required .safe_browsing.ClientDownloadResponse.Verdict verdict = 1; |
michael@0 | 1511 | inline bool has_verdict() const; |
michael@0 | 1512 | inline void clear_verdict(); |
michael@0 | 1513 | static const int kVerdictFieldNumber = 1; |
michael@0 | 1514 | inline ::safe_browsing::ClientDownloadResponse_Verdict verdict() const; |
michael@0 | 1515 | inline void set_verdict(::safe_browsing::ClientDownloadResponse_Verdict value); |
michael@0 | 1516 | |
michael@0 | 1517 | // optional .safe_browsing.ClientDownloadResponse.MoreInfo more_info = 2; |
michael@0 | 1518 | inline bool has_more_info() const; |
michael@0 | 1519 | inline void clear_more_info(); |
michael@0 | 1520 | static const int kMoreInfoFieldNumber = 2; |
michael@0 | 1521 | inline const ::safe_browsing::ClientDownloadResponse_MoreInfo& more_info() const; |
michael@0 | 1522 | inline ::safe_browsing::ClientDownloadResponse_MoreInfo* mutable_more_info(); |
michael@0 | 1523 | inline ::safe_browsing::ClientDownloadResponse_MoreInfo* release_more_info(); |
michael@0 | 1524 | |
michael@0 | 1525 | // optional bytes token = 3; |
michael@0 | 1526 | inline bool has_token() const; |
michael@0 | 1527 | inline void clear_token(); |
michael@0 | 1528 | static const int kTokenFieldNumber = 3; |
michael@0 | 1529 | inline const ::std::string& token() const; |
michael@0 | 1530 | inline void set_token(const ::std::string& value); |
michael@0 | 1531 | inline void set_token(const char* value); |
michael@0 | 1532 | inline void set_token(const void* value, size_t size); |
michael@0 | 1533 | inline ::std::string* mutable_token(); |
michael@0 | 1534 | inline ::std::string* release_token(); |
michael@0 | 1535 | |
michael@0 | 1536 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadResponse) |
michael@0 | 1537 | private: |
michael@0 | 1538 | inline void set_has_verdict(); |
michael@0 | 1539 | inline void clear_has_verdict(); |
michael@0 | 1540 | inline void set_has_more_info(); |
michael@0 | 1541 | inline void clear_has_more_info(); |
michael@0 | 1542 | inline void set_has_token(); |
michael@0 | 1543 | inline void clear_has_token(); |
michael@0 | 1544 | |
michael@0 | 1545 | ::safe_browsing::ClientDownloadResponse_MoreInfo* more_info_; |
michael@0 | 1546 | ::std::string* token_; |
michael@0 | 1547 | int verdict_; |
michael@0 | 1548 | |
michael@0 | 1549 | mutable int _cached_size_; |
michael@0 | 1550 | ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
michael@0 | 1551 | |
michael@0 | 1552 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 1553 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 1554 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 1555 | |
michael@0 | 1556 | void InitAsDefaultInstance(); |
michael@0 | 1557 | static ClientDownloadResponse* default_instance_; |
michael@0 | 1558 | }; |
michael@0 | 1559 | // ------------------------------------------------------------------- |
michael@0 | 1560 | |
michael@0 | 1561 | class ClientDownloadReport_UserInformation : public ::google::protobuf::MessageLite { |
michael@0 | 1562 | public: |
michael@0 | 1563 | ClientDownloadReport_UserInformation(); |
michael@0 | 1564 | virtual ~ClientDownloadReport_UserInformation(); |
michael@0 | 1565 | |
michael@0 | 1566 | ClientDownloadReport_UserInformation(const ClientDownloadReport_UserInformation& from); |
michael@0 | 1567 | |
michael@0 | 1568 | inline ClientDownloadReport_UserInformation& operator=(const ClientDownloadReport_UserInformation& from) { |
michael@0 | 1569 | CopyFrom(from); |
michael@0 | 1570 | return *this; |
michael@0 | 1571 | } |
michael@0 | 1572 | |
michael@0 | 1573 | static const ClientDownloadReport_UserInformation& default_instance(); |
michael@0 | 1574 | |
michael@0 | 1575 | void Swap(ClientDownloadReport_UserInformation* other); |
michael@0 | 1576 | |
michael@0 | 1577 | // implements Message ---------------------------------------------- |
michael@0 | 1578 | |
michael@0 | 1579 | ClientDownloadReport_UserInformation* New() const; |
michael@0 | 1580 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 1581 | void CopyFrom(const ClientDownloadReport_UserInformation& from); |
michael@0 | 1582 | void MergeFrom(const ClientDownloadReport_UserInformation& from); |
michael@0 | 1583 | void Clear(); |
michael@0 | 1584 | bool IsInitialized() const; |
michael@0 | 1585 | |
michael@0 | 1586 | int ByteSize() const; |
michael@0 | 1587 | bool MergePartialFromCodedStream( |
michael@0 | 1588 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 1589 | void SerializeWithCachedSizes( |
michael@0 | 1590 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 1591 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 1592 | private: |
michael@0 | 1593 | void SharedCtor(); |
michael@0 | 1594 | void SharedDtor(); |
michael@0 | 1595 | void SetCachedSize(int size) const; |
michael@0 | 1596 | public: |
michael@0 | 1597 | |
michael@0 | 1598 | ::std::string GetTypeName() const; |
michael@0 | 1599 | |
michael@0 | 1600 | // nested types ---------------------------------------------------- |
michael@0 | 1601 | |
michael@0 | 1602 | // accessors ------------------------------------------------------- |
michael@0 | 1603 | |
michael@0 | 1604 | // optional string email = 1; |
michael@0 | 1605 | inline bool has_email() const; |
michael@0 | 1606 | inline void clear_email(); |
michael@0 | 1607 | static const int kEmailFieldNumber = 1; |
michael@0 | 1608 | inline const ::std::string& email() const; |
michael@0 | 1609 | inline void set_email(const ::std::string& value); |
michael@0 | 1610 | inline void set_email(const char* value); |
michael@0 | 1611 | inline void set_email(const char* value, size_t size); |
michael@0 | 1612 | inline ::std::string* mutable_email(); |
michael@0 | 1613 | inline ::std::string* release_email(); |
michael@0 | 1614 | |
michael@0 | 1615 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadReport.UserInformation) |
michael@0 | 1616 | private: |
michael@0 | 1617 | inline void set_has_email(); |
michael@0 | 1618 | inline void clear_has_email(); |
michael@0 | 1619 | |
michael@0 | 1620 | ::std::string* email_; |
michael@0 | 1621 | |
michael@0 | 1622 | mutable int _cached_size_; |
michael@0 | 1623 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
michael@0 | 1624 | |
michael@0 | 1625 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 1626 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 1627 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 1628 | |
michael@0 | 1629 | void InitAsDefaultInstance(); |
michael@0 | 1630 | static ClientDownloadReport_UserInformation* default_instance_; |
michael@0 | 1631 | }; |
michael@0 | 1632 | // ------------------------------------------------------------------- |
michael@0 | 1633 | |
michael@0 | 1634 | class ClientDownloadReport : public ::google::protobuf::MessageLite { |
michael@0 | 1635 | public: |
michael@0 | 1636 | ClientDownloadReport(); |
michael@0 | 1637 | virtual ~ClientDownloadReport(); |
michael@0 | 1638 | |
michael@0 | 1639 | ClientDownloadReport(const ClientDownloadReport& from); |
michael@0 | 1640 | |
michael@0 | 1641 | inline ClientDownloadReport& operator=(const ClientDownloadReport& from) { |
michael@0 | 1642 | CopyFrom(from); |
michael@0 | 1643 | return *this; |
michael@0 | 1644 | } |
michael@0 | 1645 | |
michael@0 | 1646 | static const ClientDownloadReport& default_instance(); |
michael@0 | 1647 | |
michael@0 | 1648 | void Swap(ClientDownloadReport* other); |
michael@0 | 1649 | |
michael@0 | 1650 | // implements Message ---------------------------------------------- |
michael@0 | 1651 | |
michael@0 | 1652 | ClientDownloadReport* New() const; |
michael@0 | 1653 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 1654 | void CopyFrom(const ClientDownloadReport& from); |
michael@0 | 1655 | void MergeFrom(const ClientDownloadReport& from); |
michael@0 | 1656 | void Clear(); |
michael@0 | 1657 | bool IsInitialized() const; |
michael@0 | 1658 | |
michael@0 | 1659 | int ByteSize() const; |
michael@0 | 1660 | bool MergePartialFromCodedStream( |
michael@0 | 1661 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 1662 | void SerializeWithCachedSizes( |
michael@0 | 1663 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 1664 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 1665 | private: |
michael@0 | 1666 | void SharedCtor(); |
michael@0 | 1667 | void SharedDtor(); |
michael@0 | 1668 | void SetCachedSize(int size) const; |
michael@0 | 1669 | public: |
michael@0 | 1670 | |
michael@0 | 1671 | ::std::string GetTypeName() const; |
michael@0 | 1672 | |
michael@0 | 1673 | // nested types ---------------------------------------------------- |
michael@0 | 1674 | |
michael@0 | 1675 | typedef ClientDownloadReport_UserInformation UserInformation; |
michael@0 | 1676 | |
michael@0 | 1677 | typedef ClientDownloadReport_Reason Reason; |
michael@0 | 1678 | static const Reason SHARE = ClientDownloadReport_Reason_SHARE; |
michael@0 | 1679 | static const Reason FALSE_POSITIVE = ClientDownloadReport_Reason_FALSE_POSITIVE; |
michael@0 | 1680 | static const Reason APPEAL = ClientDownloadReport_Reason_APPEAL; |
michael@0 | 1681 | static inline bool Reason_IsValid(int value) { |
michael@0 | 1682 | return ClientDownloadReport_Reason_IsValid(value); |
michael@0 | 1683 | } |
michael@0 | 1684 | static const Reason Reason_MIN = |
michael@0 | 1685 | ClientDownloadReport_Reason_Reason_MIN; |
michael@0 | 1686 | static const Reason Reason_MAX = |
michael@0 | 1687 | ClientDownloadReport_Reason_Reason_MAX; |
michael@0 | 1688 | static const int Reason_ARRAYSIZE = |
michael@0 | 1689 | ClientDownloadReport_Reason_Reason_ARRAYSIZE; |
michael@0 | 1690 | |
michael@0 | 1691 | // accessors ------------------------------------------------------- |
michael@0 | 1692 | |
michael@0 | 1693 | // optional .safe_browsing.ClientDownloadReport.Reason reason = 1; |
michael@0 | 1694 | inline bool has_reason() const; |
michael@0 | 1695 | inline void clear_reason(); |
michael@0 | 1696 | static const int kReasonFieldNumber = 1; |
michael@0 | 1697 | inline ::safe_browsing::ClientDownloadReport_Reason reason() const; |
michael@0 | 1698 | inline void set_reason(::safe_browsing::ClientDownloadReport_Reason value); |
michael@0 | 1699 | |
michael@0 | 1700 | // optional .safe_browsing.ClientDownloadRequest download_request = 2; |
michael@0 | 1701 | inline bool has_download_request() const; |
michael@0 | 1702 | inline void clear_download_request(); |
michael@0 | 1703 | static const int kDownloadRequestFieldNumber = 2; |
michael@0 | 1704 | inline const ::safe_browsing::ClientDownloadRequest& download_request() const; |
michael@0 | 1705 | inline ::safe_browsing::ClientDownloadRequest* mutable_download_request(); |
michael@0 | 1706 | inline ::safe_browsing::ClientDownloadRequest* release_download_request(); |
michael@0 | 1707 | |
michael@0 | 1708 | // optional .safe_browsing.ClientDownloadReport.UserInformation user_information = 3; |
michael@0 | 1709 | inline bool has_user_information() const; |
michael@0 | 1710 | inline void clear_user_information(); |
michael@0 | 1711 | static const int kUserInformationFieldNumber = 3; |
michael@0 | 1712 | inline const ::safe_browsing::ClientDownloadReport_UserInformation& user_information() const; |
michael@0 | 1713 | inline ::safe_browsing::ClientDownloadReport_UserInformation* mutable_user_information(); |
michael@0 | 1714 | inline ::safe_browsing::ClientDownloadReport_UserInformation* release_user_information(); |
michael@0 | 1715 | |
michael@0 | 1716 | // optional bytes comment = 4; |
michael@0 | 1717 | inline bool has_comment() const; |
michael@0 | 1718 | inline void clear_comment(); |
michael@0 | 1719 | static const int kCommentFieldNumber = 4; |
michael@0 | 1720 | inline const ::std::string& comment() const; |
michael@0 | 1721 | inline void set_comment(const ::std::string& value); |
michael@0 | 1722 | inline void set_comment(const char* value); |
michael@0 | 1723 | inline void set_comment(const void* value, size_t size); |
michael@0 | 1724 | inline ::std::string* mutable_comment(); |
michael@0 | 1725 | inline ::std::string* release_comment(); |
michael@0 | 1726 | |
michael@0 | 1727 | // optional .safe_browsing.ClientDownloadResponse download_response = 5; |
michael@0 | 1728 | inline bool has_download_response() const; |
michael@0 | 1729 | inline void clear_download_response(); |
michael@0 | 1730 | static const int kDownloadResponseFieldNumber = 5; |
michael@0 | 1731 | inline const ::safe_browsing::ClientDownloadResponse& download_response() const; |
michael@0 | 1732 | inline ::safe_browsing::ClientDownloadResponse* mutable_download_response(); |
michael@0 | 1733 | inline ::safe_browsing::ClientDownloadResponse* release_download_response(); |
michael@0 | 1734 | |
michael@0 | 1735 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientDownloadReport) |
michael@0 | 1736 | private: |
michael@0 | 1737 | inline void set_has_reason(); |
michael@0 | 1738 | inline void clear_has_reason(); |
michael@0 | 1739 | inline void set_has_download_request(); |
michael@0 | 1740 | inline void clear_has_download_request(); |
michael@0 | 1741 | inline void set_has_user_information(); |
michael@0 | 1742 | inline void clear_has_user_information(); |
michael@0 | 1743 | inline void set_has_comment(); |
michael@0 | 1744 | inline void clear_has_comment(); |
michael@0 | 1745 | inline void set_has_download_response(); |
michael@0 | 1746 | inline void clear_has_download_response(); |
michael@0 | 1747 | |
michael@0 | 1748 | ::safe_browsing::ClientDownloadRequest* download_request_; |
michael@0 | 1749 | ::safe_browsing::ClientDownloadReport_UserInformation* user_information_; |
michael@0 | 1750 | ::std::string* comment_; |
michael@0 | 1751 | ::safe_browsing::ClientDownloadResponse* download_response_; |
michael@0 | 1752 | int reason_; |
michael@0 | 1753 | |
michael@0 | 1754 | mutable int _cached_size_; |
michael@0 | 1755 | ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; |
michael@0 | 1756 | |
michael@0 | 1757 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 1758 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 1759 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 1760 | |
michael@0 | 1761 | void InitAsDefaultInstance(); |
michael@0 | 1762 | static ClientDownloadReport* default_instance_; |
michael@0 | 1763 | }; |
michael@0 | 1764 | // ------------------------------------------------------------------- |
michael@0 | 1765 | |
michael@0 | 1766 | class ClientUploadResponse : public ::google::protobuf::MessageLite { |
michael@0 | 1767 | public: |
michael@0 | 1768 | ClientUploadResponse(); |
michael@0 | 1769 | virtual ~ClientUploadResponse(); |
michael@0 | 1770 | |
michael@0 | 1771 | ClientUploadResponse(const ClientUploadResponse& from); |
michael@0 | 1772 | |
michael@0 | 1773 | inline ClientUploadResponse& operator=(const ClientUploadResponse& from) { |
michael@0 | 1774 | CopyFrom(from); |
michael@0 | 1775 | return *this; |
michael@0 | 1776 | } |
michael@0 | 1777 | |
michael@0 | 1778 | static const ClientUploadResponse& default_instance(); |
michael@0 | 1779 | |
michael@0 | 1780 | void Swap(ClientUploadResponse* other); |
michael@0 | 1781 | |
michael@0 | 1782 | // implements Message ---------------------------------------------- |
michael@0 | 1783 | |
michael@0 | 1784 | ClientUploadResponse* New() const; |
michael@0 | 1785 | void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); |
michael@0 | 1786 | void CopyFrom(const ClientUploadResponse& from); |
michael@0 | 1787 | void MergeFrom(const ClientUploadResponse& from); |
michael@0 | 1788 | void Clear(); |
michael@0 | 1789 | bool IsInitialized() const; |
michael@0 | 1790 | |
michael@0 | 1791 | int ByteSize() const; |
michael@0 | 1792 | bool MergePartialFromCodedStream( |
michael@0 | 1793 | ::google::protobuf::io::CodedInputStream* input); |
michael@0 | 1794 | void SerializeWithCachedSizes( |
michael@0 | 1795 | ::google::protobuf::io::CodedOutputStream* output) const; |
michael@0 | 1796 | int GetCachedSize() const { return _cached_size_; } |
michael@0 | 1797 | private: |
michael@0 | 1798 | void SharedCtor(); |
michael@0 | 1799 | void SharedDtor(); |
michael@0 | 1800 | void SetCachedSize(int size) const; |
michael@0 | 1801 | public: |
michael@0 | 1802 | |
michael@0 | 1803 | ::std::string GetTypeName() const; |
michael@0 | 1804 | |
michael@0 | 1805 | // nested types ---------------------------------------------------- |
michael@0 | 1806 | |
michael@0 | 1807 | typedef ClientUploadResponse_UploadStatus UploadStatus; |
michael@0 | 1808 | static const UploadStatus SUCCESS = ClientUploadResponse_UploadStatus_SUCCESS; |
michael@0 | 1809 | static const UploadStatus UPLOAD_FAILURE = ClientUploadResponse_UploadStatus_UPLOAD_FAILURE; |
michael@0 | 1810 | static inline bool UploadStatus_IsValid(int value) { |
michael@0 | 1811 | return ClientUploadResponse_UploadStatus_IsValid(value); |
michael@0 | 1812 | } |
michael@0 | 1813 | static const UploadStatus UploadStatus_MIN = |
michael@0 | 1814 | ClientUploadResponse_UploadStatus_UploadStatus_MIN; |
michael@0 | 1815 | static const UploadStatus UploadStatus_MAX = |
michael@0 | 1816 | ClientUploadResponse_UploadStatus_UploadStatus_MAX; |
michael@0 | 1817 | static const int UploadStatus_ARRAYSIZE = |
michael@0 | 1818 | ClientUploadResponse_UploadStatus_UploadStatus_ARRAYSIZE; |
michael@0 | 1819 | |
michael@0 | 1820 | // accessors ------------------------------------------------------- |
michael@0 | 1821 | |
michael@0 | 1822 | // optional .safe_browsing.ClientUploadResponse.UploadStatus status = 1; |
michael@0 | 1823 | inline bool has_status() const; |
michael@0 | 1824 | inline void clear_status(); |
michael@0 | 1825 | static const int kStatusFieldNumber = 1; |
michael@0 | 1826 | inline ::safe_browsing::ClientUploadResponse_UploadStatus status() const; |
michael@0 | 1827 | inline void set_status(::safe_browsing::ClientUploadResponse_UploadStatus value); |
michael@0 | 1828 | |
michael@0 | 1829 | // optional string permalink = 2; |
michael@0 | 1830 | inline bool has_permalink() const; |
michael@0 | 1831 | inline void clear_permalink(); |
michael@0 | 1832 | static const int kPermalinkFieldNumber = 2; |
michael@0 | 1833 | inline const ::std::string& permalink() const; |
michael@0 | 1834 | inline void set_permalink(const ::std::string& value); |
michael@0 | 1835 | inline void set_permalink(const char* value); |
michael@0 | 1836 | inline void set_permalink(const char* value, size_t size); |
michael@0 | 1837 | inline ::std::string* mutable_permalink(); |
michael@0 | 1838 | inline ::std::string* release_permalink(); |
michael@0 | 1839 | |
michael@0 | 1840 | // @@protoc_insertion_point(class_scope:safe_browsing.ClientUploadResponse) |
michael@0 | 1841 | private: |
michael@0 | 1842 | inline void set_has_status(); |
michael@0 | 1843 | inline void clear_has_status(); |
michael@0 | 1844 | inline void set_has_permalink(); |
michael@0 | 1845 | inline void clear_has_permalink(); |
michael@0 | 1846 | |
michael@0 | 1847 | ::std::string* permalink_; |
michael@0 | 1848 | int status_; |
michael@0 | 1849 | |
michael@0 | 1850 | mutable int _cached_size_; |
michael@0 | 1851 | ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
michael@0 | 1852 | |
michael@0 | 1853 | friend void protobuf_AddDesc_csd_2eproto(); |
michael@0 | 1854 | friend void protobuf_AssignDesc_csd_2eproto(); |
michael@0 | 1855 | friend void protobuf_ShutdownFile_csd_2eproto(); |
michael@0 | 1856 | |
michael@0 | 1857 | void InitAsDefaultInstance(); |
michael@0 | 1858 | static ClientUploadResponse* default_instance_; |
michael@0 | 1859 | }; |
michael@0 | 1860 | // =================================================================== |
michael@0 | 1861 | |
michael@0 | 1862 | |
michael@0 | 1863 | // =================================================================== |
michael@0 | 1864 | |
michael@0 | 1865 | // ClientPhishingRequest_Feature |
michael@0 | 1866 | |
michael@0 | 1867 | // required string name = 1; |
michael@0 | 1868 | inline bool ClientPhishingRequest_Feature::has_name() const { |
michael@0 | 1869 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 1870 | } |
michael@0 | 1871 | inline void ClientPhishingRequest_Feature::set_has_name() { |
michael@0 | 1872 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 1873 | } |
michael@0 | 1874 | inline void ClientPhishingRequest_Feature::clear_has_name() { |
michael@0 | 1875 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 1876 | } |
michael@0 | 1877 | inline void ClientPhishingRequest_Feature::clear_name() { |
michael@0 | 1878 | if (name_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 1879 | name_->clear(); |
michael@0 | 1880 | } |
michael@0 | 1881 | clear_has_name(); |
michael@0 | 1882 | } |
michael@0 | 1883 | inline const ::std::string& ClientPhishingRequest_Feature::name() const { |
michael@0 | 1884 | return *name_; |
michael@0 | 1885 | } |
michael@0 | 1886 | inline void ClientPhishingRequest_Feature::set_name(const ::std::string& value) { |
michael@0 | 1887 | set_has_name(); |
michael@0 | 1888 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 1889 | name_ = new ::std::string; |
michael@0 | 1890 | } |
michael@0 | 1891 | name_->assign(value); |
michael@0 | 1892 | } |
michael@0 | 1893 | inline void ClientPhishingRequest_Feature::set_name(const char* value) { |
michael@0 | 1894 | set_has_name(); |
michael@0 | 1895 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 1896 | name_ = new ::std::string; |
michael@0 | 1897 | } |
michael@0 | 1898 | name_->assign(value); |
michael@0 | 1899 | } |
michael@0 | 1900 | inline void ClientPhishingRequest_Feature::set_name(const char* value, size_t size) { |
michael@0 | 1901 | set_has_name(); |
michael@0 | 1902 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 1903 | name_ = new ::std::string; |
michael@0 | 1904 | } |
michael@0 | 1905 | name_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 1906 | } |
michael@0 | 1907 | inline ::std::string* ClientPhishingRequest_Feature::mutable_name() { |
michael@0 | 1908 | set_has_name(); |
michael@0 | 1909 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 1910 | name_ = new ::std::string; |
michael@0 | 1911 | } |
michael@0 | 1912 | return name_; |
michael@0 | 1913 | } |
michael@0 | 1914 | inline ::std::string* ClientPhishingRequest_Feature::release_name() { |
michael@0 | 1915 | clear_has_name(); |
michael@0 | 1916 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 1917 | return NULL; |
michael@0 | 1918 | } else { |
michael@0 | 1919 | ::std::string* temp = name_; |
michael@0 | 1920 | name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 1921 | return temp; |
michael@0 | 1922 | } |
michael@0 | 1923 | } |
michael@0 | 1924 | |
michael@0 | 1925 | // required double value = 2; |
michael@0 | 1926 | inline bool ClientPhishingRequest_Feature::has_value() const { |
michael@0 | 1927 | return (_has_bits_[0] & 0x00000002u) != 0; |
michael@0 | 1928 | } |
michael@0 | 1929 | inline void ClientPhishingRequest_Feature::set_has_value() { |
michael@0 | 1930 | _has_bits_[0] |= 0x00000002u; |
michael@0 | 1931 | } |
michael@0 | 1932 | inline void ClientPhishingRequest_Feature::clear_has_value() { |
michael@0 | 1933 | _has_bits_[0] &= ~0x00000002u; |
michael@0 | 1934 | } |
michael@0 | 1935 | inline void ClientPhishingRequest_Feature::clear_value() { |
michael@0 | 1936 | value_ = 0; |
michael@0 | 1937 | clear_has_value(); |
michael@0 | 1938 | } |
michael@0 | 1939 | inline double ClientPhishingRequest_Feature::value() const { |
michael@0 | 1940 | return value_; |
michael@0 | 1941 | } |
michael@0 | 1942 | inline void ClientPhishingRequest_Feature::set_value(double value) { |
michael@0 | 1943 | set_has_value(); |
michael@0 | 1944 | value_ = value; |
michael@0 | 1945 | } |
michael@0 | 1946 | |
michael@0 | 1947 | // ------------------------------------------------------------------- |
michael@0 | 1948 | |
michael@0 | 1949 | // ClientPhishingRequest |
michael@0 | 1950 | |
michael@0 | 1951 | // optional string url = 1; |
michael@0 | 1952 | inline bool ClientPhishingRequest::has_url() const { |
michael@0 | 1953 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 1954 | } |
michael@0 | 1955 | inline void ClientPhishingRequest::set_has_url() { |
michael@0 | 1956 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 1957 | } |
michael@0 | 1958 | inline void ClientPhishingRequest::clear_has_url() { |
michael@0 | 1959 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 1960 | } |
michael@0 | 1961 | inline void ClientPhishingRequest::clear_url() { |
michael@0 | 1962 | if (url_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 1963 | url_->clear(); |
michael@0 | 1964 | } |
michael@0 | 1965 | clear_has_url(); |
michael@0 | 1966 | } |
michael@0 | 1967 | inline const ::std::string& ClientPhishingRequest::url() const { |
michael@0 | 1968 | return *url_; |
michael@0 | 1969 | } |
michael@0 | 1970 | inline void ClientPhishingRequest::set_url(const ::std::string& value) { |
michael@0 | 1971 | set_has_url(); |
michael@0 | 1972 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 1973 | url_ = new ::std::string; |
michael@0 | 1974 | } |
michael@0 | 1975 | url_->assign(value); |
michael@0 | 1976 | } |
michael@0 | 1977 | inline void ClientPhishingRequest::set_url(const char* value) { |
michael@0 | 1978 | set_has_url(); |
michael@0 | 1979 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 1980 | url_ = new ::std::string; |
michael@0 | 1981 | } |
michael@0 | 1982 | url_->assign(value); |
michael@0 | 1983 | } |
michael@0 | 1984 | inline void ClientPhishingRequest::set_url(const char* value, size_t size) { |
michael@0 | 1985 | set_has_url(); |
michael@0 | 1986 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 1987 | url_ = new ::std::string; |
michael@0 | 1988 | } |
michael@0 | 1989 | url_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 1990 | } |
michael@0 | 1991 | inline ::std::string* ClientPhishingRequest::mutable_url() { |
michael@0 | 1992 | set_has_url(); |
michael@0 | 1993 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 1994 | url_ = new ::std::string; |
michael@0 | 1995 | } |
michael@0 | 1996 | return url_; |
michael@0 | 1997 | } |
michael@0 | 1998 | inline ::std::string* ClientPhishingRequest::release_url() { |
michael@0 | 1999 | clear_has_url(); |
michael@0 | 2000 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2001 | return NULL; |
michael@0 | 2002 | } else { |
michael@0 | 2003 | ::std::string* temp = url_; |
michael@0 | 2004 | url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 2005 | return temp; |
michael@0 | 2006 | } |
michael@0 | 2007 | } |
michael@0 | 2008 | |
michael@0 | 2009 | // optional bytes OBSOLETE_hash_prefix = 10; |
michael@0 | 2010 | inline bool ClientPhishingRequest::has_obsolete_hash_prefix() const { |
michael@0 | 2011 | return (_has_bits_[0] & 0x00000002u) != 0; |
michael@0 | 2012 | } |
michael@0 | 2013 | inline void ClientPhishingRequest::set_has_obsolete_hash_prefix() { |
michael@0 | 2014 | _has_bits_[0] |= 0x00000002u; |
michael@0 | 2015 | } |
michael@0 | 2016 | inline void ClientPhishingRequest::clear_has_obsolete_hash_prefix() { |
michael@0 | 2017 | _has_bits_[0] &= ~0x00000002u; |
michael@0 | 2018 | } |
michael@0 | 2019 | inline void ClientPhishingRequest::clear_obsolete_hash_prefix() { |
michael@0 | 2020 | if (obsolete_hash_prefix_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2021 | obsolete_hash_prefix_->clear(); |
michael@0 | 2022 | } |
michael@0 | 2023 | clear_has_obsolete_hash_prefix(); |
michael@0 | 2024 | } |
michael@0 | 2025 | inline const ::std::string& ClientPhishingRequest::obsolete_hash_prefix() const { |
michael@0 | 2026 | return *obsolete_hash_prefix_; |
michael@0 | 2027 | } |
michael@0 | 2028 | inline void ClientPhishingRequest::set_obsolete_hash_prefix(const ::std::string& value) { |
michael@0 | 2029 | set_has_obsolete_hash_prefix(); |
michael@0 | 2030 | if (obsolete_hash_prefix_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2031 | obsolete_hash_prefix_ = new ::std::string; |
michael@0 | 2032 | } |
michael@0 | 2033 | obsolete_hash_prefix_->assign(value); |
michael@0 | 2034 | } |
michael@0 | 2035 | inline void ClientPhishingRequest::set_obsolete_hash_prefix(const char* value) { |
michael@0 | 2036 | set_has_obsolete_hash_prefix(); |
michael@0 | 2037 | if (obsolete_hash_prefix_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2038 | obsolete_hash_prefix_ = new ::std::string; |
michael@0 | 2039 | } |
michael@0 | 2040 | obsolete_hash_prefix_->assign(value); |
michael@0 | 2041 | } |
michael@0 | 2042 | inline void ClientPhishingRequest::set_obsolete_hash_prefix(const void* value, size_t size) { |
michael@0 | 2043 | set_has_obsolete_hash_prefix(); |
michael@0 | 2044 | if (obsolete_hash_prefix_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2045 | obsolete_hash_prefix_ = new ::std::string; |
michael@0 | 2046 | } |
michael@0 | 2047 | obsolete_hash_prefix_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2048 | } |
michael@0 | 2049 | inline ::std::string* ClientPhishingRequest::mutable_obsolete_hash_prefix() { |
michael@0 | 2050 | set_has_obsolete_hash_prefix(); |
michael@0 | 2051 | if (obsolete_hash_prefix_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2052 | obsolete_hash_prefix_ = new ::std::string; |
michael@0 | 2053 | } |
michael@0 | 2054 | return obsolete_hash_prefix_; |
michael@0 | 2055 | } |
michael@0 | 2056 | inline ::std::string* ClientPhishingRequest::release_obsolete_hash_prefix() { |
michael@0 | 2057 | clear_has_obsolete_hash_prefix(); |
michael@0 | 2058 | if (obsolete_hash_prefix_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2059 | return NULL; |
michael@0 | 2060 | } else { |
michael@0 | 2061 | ::std::string* temp = obsolete_hash_prefix_; |
michael@0 | 2062 | obsolete_hash_prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 2063 | return temp; |
michael@0 | 2064 | } |
michael@0 | 2065 | } |
michael@0 | 2066 | |
michael@0 | 2067 | // required float client_score = 2; |
michael@0 | 2068 | inline bool ClientPhishingRequest::has_client_score() const { |
michael@0 | 2069 | return (_has_bits_[0] & 0x00000004u) != 0; |
michael@0 | 2070 | } |
michael@0 | 2071 | inline void ClientPhishingRequest::set_has_client_score() { |
michael@0 | 2072 | _has_bits_[0] |= 0x00000004u; |
michael@0 | 2073 | } |
michael@0 | 2074 | inline void ClientPhishingRequest::clear_has_client_score() { |
michael@0 | 2075 | _has_bits_[0] &= ~0x00000004u; |
michael@0 | 2076 | } |
michael@0 | 2077 | inline void ClientPhishingRequest::clear_client_score() { |
michael@0 | 2078 | client_score_ = 0; |
michael@0 | 2079 | clear_has_client_score(); |
michael@0 | 2080 | } |
michael@0 | 2081 | inline float ClientPhishingRequest::client_score() const { |
michael@0 | 2082 | return client_score_; |
michael@0 | 2083 | } |
michael@0 | 2084 | inline void ClientPhishingRequest::set_client_score(float value) { |
michael@0 | 2085 | set_has_client_score(); |
michael@0 | 2086 | client_score_ = value; |
michael@0 | 2087 | } |
michael@0 | 2088 | |
michael@0 | 2089 | // optional bool is_phishing = 4; |
michael@0 | 2090 | inline bool ClientPhishingRequest::has_is_phishing() const { |
michael@0 | 2091 | return (_has_bits_[0] & 0x00000008u) != 0; |
michael@0 | 2092 | } |
michael@0 | 2093 | inline void ClientPhishingRequest::set_has_is_phishing() { |
michael@0 | 2094 | _has_bits_[0] |= 0x00000008u; |
michael@0 | 2095 | } |
michael@0 | 2096 | inline void ClientPhishingRequest::clear_has_is_phishing() { |
michael@0 | 2097 | _has_bits_[0] &= ~0x00000008u; |
michael@0 | 2098 | } |
michael@0 | 2099 | inline void ClientPhishingRequest::clear_is_phishing() { |
michael@0 | 2100 | is_phishing_ = false; |
michael@0 | 2101 | clear_has_is_phishing(); |
michael@0 | 2102 | } |
michael@0 | 2103 | inline bool ClientPhishingRequest::is_phishing() const { |
michael@0 | 2104 | return is_phishing_; |
michael@0 | 2105 | } |
michael@0 | 2106 | inline void ClientPhishingRequest::set_is_phishing(bool value) { |
michael@0 | 2107 | set_has_is_phishing(); |
michael@0 | 2108 | is_phishing_ = value; |
michael@0 | 2109 | } |
michael@0 | 2110 | |
michael@0 | 2111 | // repeated .safe_browsing.ClientPhishingRequest.Feature feature_map = 5; |
michael@0 | 2112 | inline int ClientPhishingRequest::feature_map_size() const { |
michael@0 | 2113 | return feature_map_.size(); |
michael@0 | 2114 | } |
michael@0 | 2115 | inline void ClientPhishingRequest::clear_feature_map() { |
michael@0 | 2116 | feature_map_.Clear(); |
michael@0 | 2117 | } |
michael@0 | 2118 | inline const ::safe_browsing::ClientPhishingRequest_Feature& ClientPhishingRequest::feature_map(int index) const { |
michael@0 | 2119 | return feature_map_.Get(index); |
michael@0 | 2120 | } |
michael@0 | 2121 | inline ::safe_browsing::ClientPhishingRequest_Feature* ClientPhishingRequest::mutable_feature_map(int index) { |
michael@0 | 2122 | return feature_map_.Mutable(index); |
michael@0 | 2123 | } |
michael@0 | 2124 | inline ::safe_browsing::ClientPhishingRequest_Feature* ClientPhishingRequest::add_feature_map() { |
michael@0 | 2125 | return feature_map_.Add(); |
michael@0 | 2126 | } |
michael@0 | 2127 | inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >& |
michael@0 | 2128 | ClientPhishingRequest::feature_map() const { |
michael@0 | 2129 | return feature_map_; |
michael@0 | 2130 | } |
michael@0 | 2131 | inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >* |
michael@0 | 2132 | ClientPhishingRequest::mutable_feature_map() { |
michael@0 | 2133 | return &feature_map_; |
michael@0 | 2134 | } |
michael@0 | 2135 | |
michael@0 | 2136 | // optional int32 model_version = 6; |
michael@0 | 2137 | inline bool ClientPhishingRequest::has_model_version() const { |
michael@0 | 2138 | return (_has_bits_[0] & 0x00000020u) != 0; |
michael@0 | 2139 | } |
michael@0 | 2140 | inline void ClientPhishingRequest::set_has_model_version() { |
michael@0 | 2141 | _has_bits_[0] |= 0x00000020u; |
michael@0 | 2142 | } |
michael@0 | 2143 | inline void ClientPhishingRequest::clear_has_model_version() { |
michael@0 | 2144 | _has_bits_[0] &= ~0x00000020u; |
michael@0 | 2145 | } |
michael@0 | 2146 | inline void ClientPhishingRequest::clear_model_version() { |
michael@0 | 2147 | model_version_ = 0; |
michael@0 | 2148 | clear_has_model_version(); |
michael@0 | 2149 | } |
michael@0 | 2150 | inline ::google::protobuf::int32 ClientPhishingRequest::model_version() const { |
michael@0 | 2151 | return model_version_; |
michael@0 | 2152 | } |
michael@0 | 2153 | inline void ClientPhishingRequest::set_model_version(::google::protobuf::int32 value) { |
michael@0 | 2154 | set_has_model_version(); |
michael@0 | 2155 | model_version_ = value; |
michael@0 | 2156 | } |
michael@0 | 2157 | |
michael@0 | 2158 | // repeated .safe_browsing.ClientPhishingRequest.Feature non_model_feature_map = 8; |
michael@0 | 2159 | inline int ClientPhishingRequest::non_model_feature_map_size() const { |
michael@0 | 2160 | return non_model_feature_map_.size(); |
michael@0 | 2161 | } |
michael@0 | 2162 | inline void ClientPhishingRequest::clear_non_model_feature_map() { |
michael@0 | 2163 | non_model_feature_map_.Clear(); |
michael@0 | 2164 | } |
michael@0 | 2165 | inline const ::safe_browsing::ClientPhishingRequest_Feature& ClientPhishingRequest::non_model_feature_map(int index) const { |
michael@0 | 2166 | return non_model_feature_map_.Get(index); |
michael@0 | 2167 | } |
michael@0 | 2168 | inline ::safe_browsing::ClientPhishingRequest_Feature* ClientPhishingRequest::mutable_non_model_feature_map(int index) { |
michael@0 | 2169 | return non_model_feature_map_.Mutable(index); |
michael@0 | 2170 | } |
michael@0 | 2171 | inline ::safe_browsing::ClientPhishingRequest_Feature* ClientPhishingRequest::add_non_model_feature_map() { |
michael@0 | 2172 | return non_model_feature_map_.Add(); |
michael@0 | 2173 | } |
michael@0 | 2174 | inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >& |
michael@0 | 2175 | ClientPhishingRequest::non_model_feature_map() const { |
michael@0 | 2176 | return non_model_feature_map_; |
michael@0 | 2177 | } |
michael@0 | 2178 | inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientPhishingRequest_Feature >* |
michael@0 | 2179 | ClientPhishingRequest::mutable_non_model_feature_map() { |
michael@0 | 2180 | return &non_model_feature_map_; |
michael@0 | 2181 | } |
michael@0 | 2182 | |
michael@0 | 2183 | // optional string OBSOLETE_referrer_url = 9; |
michael@0 | 2184 | inline bool ClientPhishingRequest::has_obsolete_referrer_url() const { |
michael@0 | 2185 | return (_has_bits_[0] & 0x00000080u) != 0; |
michael@0 | 2186 | } |
michael@0 | 2187 | inline void ClientPhishingRequest::set_has_obsolete_referrer_url() { |
michael@0 | 2188 | _has_bits_[0] |= 0x00000080u; |
michael@0 | 2189 | } |
michael@0 | 2190 | inline void ClientPhishingRequest::clear_has_obsolete_referrer_url() { |
michael@0 | 2191 | _has_bits_[0] &= ~0x00000080u; |
michael@0 | 2192 | } |
michael@0 | 2193 | inline void ClientPhishingRequest::clear_obsolete_referrer_url() { |
michael@0 | 2194 | if (obsolete_referrer_url_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2195 | obsolete_referrer_url_->clear(); |
michael@0 | 2196 | } |
michael@0 | 2197 | clear_has_obsolete_referrer_url(); |
michael@0 | 2198 | } |
michael@0 | 2199 | inline const ::std::string& ClientPhishingRequest::obsolete_referrer_url() const { |
michael@0 | 2200 | return *obsolete_referrer_url_; |
michael@0 | 2201 | } |
michael@0 | 2202 | inline void ClientPhishingRequest::set_obsolete_referrer_url(const ::std::string& value) { |
michael@0 | 2203 | set_has_obsolete_referrer_url(); |
michael@0 | 2204 | if (obsolete_referrer_url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2205 | obsolete_referrer_url_ = new ::std::string; |
michael@0 | 2206 | } |
michael@0 | 2207 | obsolete_referrer_url_->assign(value); |
michael@0 | 2208 | } |
michael@0 | 2209 | inline void ClientPhishingRequest::set_obsolete_referrer_url(const char* value) { |
michael@0 | 2210 | set_has_obsolete_referrer_url(); |
michael@0 | 2211 | if (obsolete_referrer_url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2212 | obsolete_referrer_url_ = new ::std::string; |
michael@0 | 2213 | } |
michael@0 | 2214 | obsolete_referrer_url_->assign(value); |
michael@0 | 2215 | } |
michael@0 | 2216 | inline void ClientPhishingRequest::set_obsolete_referrer_url(const char* value, size_t size) { |
michael@0 | 2217 | set_has_obsolete_referrer_url(); |
michael@0 | 2218 | if (obsolete_referrer_url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2219 | obsolete_referrer_url_ = new ::std::string; |
michael@0 | 2220 | } |
michael@0 | 2221 | obsolete_referrer_url_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2222 | } |
michael@0 | 2223 | inline ::std::string* ClientPhishingRequest::mutable_obsolete_referrer_url() { |
michael@0 | 2224 | set_has_obsolete_referrer_url(); |
michael@0 | 2225 | if (obsolete_referrer_url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2226 | obsolete_referrer_url_ = new ::std::string; |
michael@0 | 2227 | } |
michael@0 | 2228 | return obsolete_referrer_url_; |
michael@0 | 2229 | } |
michael@0 | 2230 | inline ::std::string* ClientPhishingRequest::release_obsolete_referrer_url() { |
michael@0 | 2231 | clear_has_obsolete_referrer_url(); |
michael@0 | 2232 | if (obsolete_referrer_url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2233 | return NULL; |
michael@0 | 2234 | } else { |
michael@0 | 2235 | ::std::string* temp = obsolete_referrer_url_; |
michael@0 | 2236 | obsolete_referrer_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 2237 | return temp; |
michael@0 | 2238 | } |
michael@0 | 2239 | } |
michael@0 | 2240 | |
michael@0 | 2241 | // ------------------------------------------------------------------- |
michael@0 | 2242 | |
michael@0 | 2243 | // ClientPhishingResponse |
michael@0 | 2244 | |
michael@0 | 2245 | // required bool phishy = 1; |
michael@0 | 2246 | inline bool ClientPhishingResponse::has_phishy() const { |
michael@0 | 2247 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 2248 | } |
michael@0 | 2249 | inline void ClientPhishingResponse::set_has_phishy() { |
michael@0 | 2250 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 2251 | } |
michael@0 | 2252 | inline void ClientPhishingResponse::clear_has_phishy() { |
michael@0 | 2253 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 2254 | } |
michael@0 | 2255 | inline void ClientPhishingResponse::clear_phishy() { |
michael@0 | 2256 | phishy_ = false; |
michael@0 | 2257 | clear_has_phishy(); |
michael@0 | 2258 | } |
michael@0 | 2259 | inline bool ClientPhishingResponse::phishy() const { |
michael@0 | 2260 | return phishy_; |
michael@0 | 2261 | } |
michael@0 | 2262 | inline void ClientPhishingResponse::set_phishy(bool value) { |
michael@0 | 2263 | set_has_phishy(); |
michael@0 | 2264 | phishy_ = value; |
michael@0 | 2265 | } |
michael@0 | 2266 | |
michael@0 | 2267 | // repeated string OBSOLETE_whitelist_expression = 2; |
michael@0 | 2268 | inline int ClientPhishingResponse::obsolete_whitelist_expression_size() const { |
michael@0 | 2269 | return obsolete_whitelist_expression_.size(); |
michael@0 | 2270 | } |
michael@0 | 2271 | inline void ClientPhishingResponse::clear_obsolete_whitelist_expression() { |
michael@0 | 2272 | obsolete_whitelist_expression_.Clear(); |
michael@0 | 2273 | } |
michael@0 | 2274 | inline const ::std::string& ClientPhishingResponse::obsolete_whitelist_expression(int index) const { |
michael@0 | 2275 | return obsolete_whitelist_expression_.Get(index); |
michael@0 | 2276 | } |
michael@0 | 2277 | inline ::std::string* ClientPhishingResponse::mutable_obsolete_whitelist_expression(int index) { |
michael@0 | 2278 | return obsolete_whitelist_expression_.Mutable(index); |
michael@0 | 2279 | } |
michael@0 | 2280 | inline void ClientPhishingResponse::set_obsolete_whitelist_expression(int index, const ::std::string& value) { |
michael@0 | 2281 | obsolete_whitelist_expression_.Mutable(index)->assign(value); |
michael@0 | 2282 | } |
michael@0 | 2283 | inline void ClientPhishingResponse::set_obsolete_whitelist_expression(int index, const char* value) { |
michael@0 | 2284 | obsolete_whitelist_expression_.Mutable(index)->assign(value); |
michael@0 | 2285 | } |
michael@0 | 2286 | inline void ClientPhishingResponse::set_obsolete_whitelist_expression(int index, const char* value, size_t size) { |
michael@0 | 2287 | obsolete_whitelist_expression_.Mutable(index)->assign( |
michael@0 | 2288 | reinterpret_cast<const char*>(value), size); |
michael@0 | 2289 | } |
michael@0 | 2290 | inline ::std::string* ClientPhishingResponse::add_obsolete_whitelist_expression() { |
michael@0 | 2291 | return obsolete_whitelist_expression_.Add(); |
michael@0 | 2292 | } |
michael@0 | 2293 | inline void ClientPhishingResponse::add_obsolete_whitelist_expression(const ::std::string& value) { |
michael@0 | 2294 | obsolete_whitelist_expression_.Add()->assign(value); |
michael@0 | 2295 | } |
michael@0 | 2296 | inline void ClientPhishingResponse::add_obsolete_whitelist_expression(const char* value) { |
michael@0 | 2297 | obsolete_whitelist_expression_.Add()->assign(value); |
michael@0 | 2298 | } |
michael@0 | 2299 | inline void ClientPhishingResponse::add_obsolete_whitelist_expression(const char* value, size_t size) { |
michael@0 | 2300 | obsolete_whitelist_expression_.Add()->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2301 | } |
michael@0 | 2302 | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& |
michael@0 | 2303 | ClientPhishingResponse::obsolete_whitelist_expression() const { |
michael@0 | 2304 | return obsolete_whitelist_expression_; |
michael@0 | 2305 | } |
michael@0 | 2306 | inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
michael@0 | 2307 | ClientPhishingResponse::mutable_obsolete_whitelist_expression() { |
michael@0 | 2308 | return &obsolete_whitelist_expression_; |
michael@0 | 2309 | } |
michael@0 | 2310 | |
michael@0 | 2311 | // ------------------------------------------------------------------- |
michael@0 | 2312 | |
michael@0 | 2313 | // ClientMalwareRequest_Feature |
michael@0 | 2314 | |
michael@0 | 2315 | // required string name = 1; |
michael@0 | 2316 | inline bool ClientMalwareRequest_Feature::has_name() const { |
michael@0 | 2317 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 2318 | } |
michael@0 | 2319 | inline void ClientMalwareRequest_Feature::set_has_name() { |
michael@0 | 2320 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 2321 | } |
michael@0 | 2322 | inline void ClientMalwareRequest_Feature::clear_has_name() { |
michael@0 | 2323 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 2324 | } |
michael@0 | 2325 | inline void ClientMalwareRequest_Feature::clear_name() { |
michael@0 | 2326 | if (name_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2327 | name_->clear(); |
michael@0 | 2328 | } |
michael@0 | 2329 | clear_has_name(); |
michael@0 | 2330 | } |
michael@0 | 2331 | inline const ::std::string& ClientMalwareRequest_Feature::name() const { |
michael@0 | 2332 | return *name_; |
michael@0 | 2333 | } |
michael@0 | 2334 | inline void ClientMalwareRequest_Feature::set_name(const ::std::string& value) { |
michael@0 | 2335 | set_has_name(); |
michael@0 | 2336 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2337 | name_ = new ::std::string; |
michael@0 | 2338 | } |
michael@0 | 2339 | name_->assign(value); |
michael@0 | 2340 | } |
michael@0 | 2341 | inline void ClientMalwareRequest_Feature::set_name(const char* value) { |
michael@0 | 2342 | set_has_name(); |
michael@0 | 2343 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2344 | name_ = new ::std::string; |
michael@0 | 2345 | } |
michael@0 | 2346 | name_->assign(value); |
michael@0 | 2347 | } |
michael@0 | 2348 | inline void ClientMalwareRequest_Feature::set_name(const char* value, size_t size) { |
michael@0 | 2349 | set_has_name(); |
michael@0 | 2350 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2351 | name_ = new ::std::string; |
michael@0 | 2352 | } |
michael@0 | 2353 | name_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2354 | } |
michael@0 | 2355 | inline ::std::string* ClientMalwareRequest_Feature::mutable_name() { |
michael@0 | 2356 | set_has_name(); |
michael@0 | 2357 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2358 | name_ = new ::std::string; |
michael@0 | 2359 | } |
michael@0 | 2360 | return name_; |
michael@0 | 2361 | } |
michael@0 | 2362 | inline ::std::string* ClientMalwareRequest_Feature::release_name() { |
michael@0 | 2363 | clear_has_name(); |
michael@0 | 2364 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2365 | return NULL; |
michael@0 | 2366 | } else { |
michael@0 | 2367 | ::std::string* temp = name_; |
michael@0 | 2368 | name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 2369 | return temp; |
michael@0 | 2370 | } |
michael@0 | 2371 | } |
michael@0 | 2372 | |
michael@0 | 2373 | // required double value = 2; |
michael@0 | 2374 | inline bool ClientMalwareRequest_Feature::has_value() const { |
michael@0 | 2375 | return (_has_bits_[0] & 0x00000002u) != 0; |
michael@0 | 2376 | } |
michael@0 | 2377 | inline void ClientMalwareRequest_Feature::set_has_value() { |
michael@0 | 2378 | _has_bits_[0] |= 0x00000002u; |
michael@0 | 2379 | } |
michael@0 | 2380 | inline void ClientMalwareRequest_Feature::clear_has_value() { |
michael@0 | 2381 | _has_bits_[0] &= ~0x00000002u; |
michael@0 | 2382 | } |
michael@0 | 2383 | inline void ClientMalwareRequest_Feature::clear_value() { |
michael@0 | 2384 | value_ = 0; |
michael@0 | 2385 | clear_has_value(); |
michael@0 | 2386 | } |
michael@0 | 2387 | inline double ClientMalwareRequest_Feature::value() const { |
michael@0 | 2388 | return value_; |
michael@0 | 2389 | } |
michael@0 | 2390 | inline void ClientMalwareRequest_Feature::set_value(double value) { |
michael@0 | 2391 | set_has_value(); |
michael@0 | 2392 | value_ = value; |
michael@0 | 2393 | } |
michael@0 | 2394 | |
michael@0 | 2395 | // repeated string metainfo = 3; |
michael@0 | 2396 | inline int ClientMalwareRequest_Feature::metainfo_size() const { |
michael@0 | 2397 | return metainfo_.size(); |
michael@0 | 2398 | } |
michael@0 | 2399 | inline void ClientMalwareRequest_Feature::clear_metainfo() { |
michael@0 | 2400 | metainfo_.Clear(); |
michael@0 | 2401 | } |
michael@0 | 2402 | inline const ::std::string& ClientMalwareRequest_Feature::metainfo(int index) const { |
michael@0 | 2403 | return metainfo_.Get(index); |
michael@0 | 2404 | } |
michael@0 | 2405 | inline ::std::string* ClientMalwareRequest_Feature::mutable_metainfo(int index) { |
michael@0 | 2406 | return metainfo_.Mutable(index); |
michael@0 | 2407 | } |
michael@0 | 2408 | inline void ClientMalwareRequest_Feature::set_metainfo(int index, const ::std::string& value) { |
michael@0 | 2409 | metainfo_.Mutable(index)->assign(value); |
michael@0 | 2410 | } |
michael@0 | 2411 | inline void ClientMalwareRequest_Feature::set_metainfo(int index, const char* value) { |
michael@0 | 2412 | metainfo_.Mutable(index)->assign(value); |
michael@0 | 2413 | } |
michael@0 | 2414 | inline void ClientMalwareRequest_Feature::set_metainfo(int index, const char* value, size_t size) { |
michael@0 | 2415 | metainfo_.Mutable(index)->assign( |
michael@0 | 2416 | reinterpret_cast<const char*>(value), size); |
michael@0 | 2417 | } |
michael@0 | 2418 | inline ::std::string* ClientMalwareRequest_Feature::add_metainfo() { |
michael@0 | 2419 | return metainfo_.Add(); |
michael@0 | 2420 | } |
michael@0 | 2421 | inline void ClientMalwareRequest_Feature::add_metainfo(const ::std::string& value) { |
michael@0 | 2422 | metainfo_.Add()->assign(value); |
michael@0 | 2423 | } |
michael@0 | 2424 | inline void ClientMalwareRequest_Feature::add_metainfo(const char* value) { |
michael@0 | 2425 | metainfo_.Add()->assign(value); |
michael@0 | 2426 | } |
michael@0 | 2427 | inline void ClientMalwareRequest_Feature::add_metainfo(const char* value, size_t size) { |
michael@0 | 2428 | metainfo_.Add()->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2429 | } |
michael@0 | 2430 | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& |
michael@0 | 2431 | ClientMalwareRequest_Feature::metainfo() const { |
michael@0 | 2432 | return metainfo_; |
michael@0 | 2433 | } |
michael@0 | 2434 | inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
michael@0 | 2435 | ClientMalwareRequest_Feature::mutable_metainfo() { |
michael@0 | 2436 | return &metainfo_; |
michael@0 | 2437 | } |
michael@0 | 2438 | |
michael@0 | 2439 | // ------------------------------------------------------------------- |
michael@0 | 2440 | |
michael@0 | 2441 | // ClientMalwareRequest |
michael@0 | 2442 | |
michael@0 | 2443 | // required string url = 1; |
michael@0 | 2444 | inline bool ClientMalwareRequest::has_url() const { |
michael@0 | 2445 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 2446 | } |
michael@0 | 2447 | inline void ClientMalwareRequest::set_has_url() { |
michael@0 | 2448 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 2449 | } |
michael@0 | 2450 | inline void ClientMalwareRequest::clear_has_url() { |
michael@0 | 2451 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 2452 | } |
michael@0 | 2453 | inline void ClientMalwareRequest::clear_url() { |
michael@0 | 2454 | if (url_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2455 | url_->clear(); |
michael@0 | 2456 | } |
michael@0 | 2457 | clear_has_url(); |
michael@0 | 2458 | } |
michael@0 | 2459 | inline const ::std::string& ClientMalwareRequest::url() const { |
michael@0 | 2460 | return *url_; |
michael@0 | 2461 | } |
michael@0 | 2462 | inline void ClientMalwareRequest::set_url(const ::std::string& value) { |
michael@0 | 2463 | set_has_url(); |
michael@0 | 2464 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2465 | url_ = new ::std::string; |
michael@0 | 2466 | } |
michael@0 | 2467 | url_->assign(value); |
michael@0 | 2468 | } |
michael@0 | 2469 | inline void ClientMalwareRequest::set_url(const char* value) { |
michael@0 | 2470 | set_has_url(); |
michael@0 | 2471 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2472 | url_ = new ::std::string; |
michael@0 | 2473 | } |
michael@0 | 2474 | url_->assign(value); |
michael@0 | 2475 | } |
michael@0 | 2476 | inline void ClientMalwareRequest::set_url(const char* value, size_t size) { |
michael@0 | 2477 | set_has_url(); |
michael@0 | 2478 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2479 | url_ = new ::std::string; |
michael@0 | 2480 | } |
michael@0 | 2481 | url_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2482 | } |
michael@0 | 2483 | inline ::std::string* ClientMalwareRequest::mutable_url() { |
michael@0 | 2484 | set_has_url(); |
michael@0 | 2485 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2486 | url_ = new ::std::string; |
michael@0 | 2487 | } |
michael@0 | 2488 | return url_; |
michael@0 | 2489 | } |
michael@0 | 2490 | inline ::std::string* ClientMalwareRequest::release_url() { |
michael@0 | 2491 | clear_has_url(); |
michael@0 | 2492 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2493 | return NULL; |
michael@0 | 2494 | } else { |
michael@0 | 2495 | ::std::string* temp = url_; |
michael@0 | 2496 | url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 2497 | return temp; |
michael@0 | 2498 | } |
michael@0 | 2499 | } |
michael@0 | 2500 | |
michael@0 | 2501 | // repeated .safe_browsing.ClientMalwareRequest.Feature feature_map = 2; |
michael@0 | 2502 | inline int ClientMalwareRequest::feature_map_size() const { |
michael@0 | 2503 | return feature_map_.size(); |
michael@0 | 2504 | } |
michael@0 | 2505 | inline void ClientMalwareRequest::clear_feature_map() { |
michael@0 | 2506 | feature_map_.Clear(); |
michael@0 | 2507 | } |
michael@0 | 2508 | inline const ::safe_browsing::ClientMalwareRequest_Feature& ClientMalwareRequest::feature_map(int index) const { |
michael@0 | 2509 | return feature_map_.Get(index); |
michael@0 | 2510 | } |
michael@0 | 2511 | inline ::safe_browsing::ClientMalwareRequest_Feature* ClientMalwareRequest::mutable_feature_map(int index) { |
michael@0 | 2512 | return feature_map_.Mutable(index); |
michael@0 | 2513 | } |
michael@0 | 2514 | inline ::safe_browsing::ClientMalwareRequest_Feature* ClientMalwareRequest::add_feature_map() { |
michael@0 | 2515 | return feature_map_.Add(); |
michael@0 | 2516 | } |
michael@0 | 2517 | inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientMalwareRequest_Feature >& |
michael@0 | 2518 | ClientMalwareRequest::feature_map() const { |
michael@0 | 2519 | return feature_map_; |
michael@0 | 2520 | } |
michael@0 | 2521 | inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientMalwareRequest_Feature >* |
michael@0 | 2522 | ClientMalwareRequest::mutable_feature_map() { |
michael@0 | 2523 | return &feature_map_; |
michael@0 | 2524 | } |
michael@0 | 2525 | |
michael@0 | 2526 | // optional string referrer_url = 4; |
michael@0 | 2527 | inline bool ClientMalwareRequest::has_referrer_url() const { |
michael@0 | 2528 | return (_has_bits_[0] & 0x00000004u) != 0; |
michael@0 | 2529 | } |
michael@0 | 2530 | inline void ClientMalwareRequest::set_has_referrer_url() { |
michael@0 | 2531 | _has_bits_[0] |= 0x00000004u; |
michael@0 | 2532 | } |
michael@0 | 2533 | inline void ClientMalwareRequest::clear_has_referrer_url() { |
michael@0 | 2534 | _has_bits_[0] &= ~0x00000004u; |
michael@0 | 2535 | } |
michael@0 | 2536 | inline void ClientMalwareRequest::clear_referrer_url() { |
michael@0 | 2537 | if (referrer_url_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2538 | referrer_url_->clear(); |
michael@0 | 2539 | } |
michael@0 | 2540 | clear_has_referrer_url(); |
michael@0 | 2541 | } |
michael@0 | 2542 | inline const ::std::string& ClientMalwareRequest::referrer_url() const { |
michael@0 | 2543 | return *referrer_url_; |
michael@0 | 2544 | } |
michael@0 | 2545 | inline void ClientMalwareRequest::set_referrer_url(const ::std::string& value) { |
michael@0 | 2546 | set_has_referrer_url(); |
michael@0 | 2547 | if (referrer_url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2548 | referrer_url_ = new ::std::string; |
michael@0 | 2549 | } |
michael@0 | 2550 | referrer_url_->assign(value); |
michael@0 | 2551 | } |
michael@0 | 2552 | inline void ClientMalwareRequest::set_referrer_url(const char* value) { |
michael@0 | 2553 | set_has_referrer_url(); |
michael@0 | 2554 | if (referrer_url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2555 | referrer_url_ = new ::std::string; |
michael@0 | 2556 | } |
michael@0 | 2557 | referrer_url_->assign(value); |
michael@0 | 2558 | } |
michael@0 | 2559 | inline void ClientMalwareRequest::set_referrer_url(const char* value, size_t size) { |
michael@0 | 2560 | set_has_referrer_url(); |
michael@0 | 2561 | if (referrer_url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2562 | referrer_url_ = new ::std::string; |
michael@0 | 2563 | } |
michael@0 | 2564 | referrer_url_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2565 | } |
michael@0 | 2566 | inline ::std::string* ClientMalwareRequest::mutable_referrer_url() { |
michael@0 | 2567 | set_has_referrer_url(); |
michael@0 | 2568 | if (referrer_url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2569 | referrer_url_ = new ::std::string; |
michael@0 | 2570 | } |
michael@0 | 2571 | return referrer_url_; |
michael@0 | 2572 | } |
michael@0 | 2573 | inline ::std::string* ClientMalwareRequest::release_referrer_url() { |
michael@0 | 2574 | clear_has_referrer_url(); |
michael@0 | 2575 | if (referrer_url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2576 | return NULL; |
michael@0 | 2577 | } else { |
michael@0 | 2578 | ::std::string* temp = referrer_url_; |
michael@0 | 2579 | referrer_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 2580 | return temp; |
michael@0 | 2581 | } |
michael@0 | 2582 | } |
michael@0 | 2583 | |
michael@0 | 2584 | // ------------------------------------------------------------------- |
michael@0 | 2585 | |
michael@0 | 2586 | // ClientMalwareResponse |
michael@0 | 2587 | |
michael@0 | 2588 | // required bool blacklist = 1; |
michael@0 | 2589 | inline bool ClientMalwareResponse::has_blacklist() const { |
michael@0 | 2590 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 2591 | } |
michael@0 | 2592 | inline void ClientMalwareResponse::set_has_blacklist() { |
michael@0 | 2593 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 2594 | } |
michael@0 | 2595 | inline void ClientMalwareResponse::clear_has_blacklist() { |
michael@0 | 2596 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 2597 | } |
michael@0 | 2598 | inline void ClientMalwareResponse::clear_blacklist() { |
michael@0 | 2599 | blacklist_ = false; |
michael@0 | 2600 | clear_has_blacklist(); |
michael@0 | 2601 | } |
michael@0 | 2602 | inline bool ClientMalwareResponse::blacklist() const { |
michael@0 | 2603 | return blacklist_; |
michael@0 | 2604 | } |
michael@0 | 2605 | inline void ClientMalwareResponse::set_blacklist(bool value) { |
michael@0 | 2606 | set_has_blacklist(); |
michael@0 | 2607 | blacklist_ = value; |
michael@0 | 2608 | } |
michael@0 | 2609 | |
michael@0 | 2610 | // optional string bad_ip = 2; |
michael@0 | 2611 | inline bool ClientMalwareResponse::has_bad_ip() const { |
michael@0 | 2612 | return (_has_bits_[0] & 0x00000002u) != 0; |
michael@0 | 2613 | } |
michael@0 | 2614 | inline void ClientMalwareResponse::set_has_bad_ip() { |
michael@0 | 2615 | _has_bits_[0] |= 0x00000002u; |
michael@0 | 2616 | } |
michael@0 | 2617 | inline void ClientMalwareResponse::clear_has_bad_ip() { |
michael@0 | 2618 | _has_bits_[0] &= ~0x00000002u; |
michael@0 | 2619 | } |
michael@0 | 2620 | inline void ClientMalwareResponse::clear_bad_ip() { |
michael@0 | 2621 | if (bad_ip_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2622 | bad_ip_->clear(); |
michael@0 | 2623 | } |
michael@0 | 2624 | clear_has_bad_ip(); |
michael@0 | 2625 | } |
michael@0 | 2626 | inline const ::std::string& ClientMalwareResponse::bad_ip() const { |
michael@0 | 2627 | return *bad_ip_; |
michael@0 | 2628 | } |
michael@0 | 2629 | inline void ClientMalwareResponse::set_bad_ip(const ::std::string& value) { |
michael@0 | 2630 | set_has_bad_ip(); |
michael@0 | 2631 | if (bad_ip_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2632 | bad_ip_ = new ::std::string; |
michael@0 | 2633 | } |
michael@0 | 2634 | bad_ip_->assign(value); |
michael@0 | 2635 | } |
michael@0 | 2636 | inline void ClientMalwareResponse::set_bad_ip(const char* value) { |
michael@0 | 2637 | set_has_bad_ip(); |
michael@0 | 2638 | if (bad_ip_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2639 | bad_ip_ = new ::std::string; |
michael@0 | 2640 | } |
michael@0 | 2641 | bad_ip_->assign(value); |
michael@0 | 2642 | } |
michael@0 | 2643 | inline void ClientMalwareResponse::set_bad_ip(const char* value, size_t size) { |
michael@0 | 2644 | set_has_bad_ip(); |
michael@0 | 2645 | if (bad_ip_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2646 | bad_ip_ = new ::std::string; |
michael@0 | 2647 | } |
michael@0 | 2648 | bad_ip_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2649 | } |
michael@0 | 2650 | inline ::std::string* ClientMalwareResponse::mutable_bad_ip() { |
michael@0 | 2651 | set_has_bad_ip(); |
michael@0 | 2652 | if (bad_ip_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2653 | bad_ip_ = new ::std::string; |
michael@0 | 2654 | } |
michael@0 | 2655 | return bad_ip_; |
michael@0 | 2656 | } |
michael@0 | 2657 | inline ::std::string* ClientMalwareResponse::release_bad_ip() { |
michael@0 | 2658 | clear_has_bad_ip(); |
michael@0 | 2659 | if (bad_ip_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2660 | return NULL; |
michael@0 | 2661 | } else { |
michael@0 | 2662 | ::std::string* temp = bad_ip_; |
michael@0 | 2663 | bad_ip_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 2664 | return temp; |
michael@0 | 2665 | } |
michael@0 | 2666 | } |
michael@0 | 2667 | |
michael@0 | 2668 | // ------------------------------------------------------------------- |
michael@0 | 2669 | |
michael@0 | 2670 | // ClientDownloadRequest_Digests |
michael@0 | 2671 | |
michael@0 | 2672 | // optional bytes sha256 = 1; |
michael@0 | 2673 | inline bool ClientDownloadRequest_Digests::has_sha256() const { |
michael@0 | 2674 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 2675 | } |
michael@0 | 2676 | inline void ClientDownloadRequest_Digests::set_has_sha256() { |
michael@0 | 2677 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 2678 | } |
michael@0 | 2679 | inline void ClientDownloadRequest_Digests::clear_has_sha256() { |
michael@0 | 2680 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 2681 | } |
michael@0 | 2682 | inline void ClientDownloadRequest_Digests::clear_sha256() { |
michael@0 | 2683 | if (sha256_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2684 | sha256_->clear(); |
michael@0 | 2685 | } |
michael@0 | 2686 | clear_has_sha256(); |
michael@0 | 2687 | } |
michael@0 | 2688 | inline const ::std::string& ClientDownloadRequest_Digests::sha256() const { |
michael@0 | 2689 | return *sha256_; |
michael@0 | 2690 | } |
michael@0 | 2691 | inline void ClientDownloadRequest_Digests::set_sha256(const ::std::string& value) { |
michael@0 | 2692 | set_has_sha256(); |
michael@0 | 2693 | if (sha256_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2694 | sha256_ = new ::std::string; |
michael@0 | 2695 | } |
michael@0 | 2696 | sha256_->assign(value); |
michael@0 | 2697 | } |
michael@0 | 2698 | inline void ClientDownloadRequest_Digests::set_sha256(const char* value) { |
michael@0 | 2699 | set_has_sha256(); |
michael@0 | 2700 | if (sha256_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2701 | sha256_ = new ::std::string; |
michael@0 | 2702 | } |
michael@0 | 2703 | sha256_->assign(value); |
michael@0 | 2704 | } |
michael@0 | 2705 | inline void ClientDownloadRequest_Digests::set_sha256(const void* value, size_t size) { |
michael@0 | 2706 | set_has_sha256(); |
michael@0 | 2707 | if (sha256_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2708 | sha256_ = new ::std::string; |
michael@0 | 2709 | } |
michael@0 | 2710 | sha256_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2711 | } |
michael@0 | 2712 | inline ::std::string* ClientDownloadRequest_Digests::mutable_sha256() { |
michael@0 | 2713 | set_has_sha256(); |
michael@0 | 2714 | if (sha256_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2715 | sha256_ = new ::std::string; |
michael@0 | 2716 | } |
michael@0 | 2717 | return sha256_; |
michael@0 | 2718 | } |
michael@0 | 2719 | inline ::std::string* ClientDownloadRequest_Digests::release_sha256() { |
michael@0 | 2720 | clear_has_sha256(); |
michael@0 | 2721 | if (sha256_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2722 | return NULL; |
michael@0 | 2723 | } else { |
michael@0 | 2724 | ::std::string* temp = sha256_; |
michael@0 | 2725 | sha256_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 2726 | return temp; |
michael@0 | 2727 | } |
michael@0 | 2728 | } |
michael@0 | 2729 | |
michael@0 | 2730 | // optional bytes sha1 = 2; |
michael@0 | 2731 | inline bool ClientDownloadRequest_Digests::has_sha1() const { |
michael@0 | 2732 | return (_has_bits_[0] & 0x00000002u) != 0; |
michael@0 | 2733 | } |
michael@0 | 2734 | inline void ClientDownloadRequest_Digests::set_has_sha1() { |
michael@0 | 2735 | _has_bits_[0] |= 0x00000002u; |
michael@0 | 2736 | } |
michael@0 | 2737 | inline void ClientDownloadRequest_Digests::clear_has_sha1() { |
michael@0 | 2738 | _has_bits_[0] &= ~0x00000002u; |
michael@0 | 2739 | } |
michael@0 | 2740 | inline void ClientDownloadRequest_Digests::clear_sha1() { |
michael@0 | 2741 | if (sha1_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2742 | sha1_->clear(); |
michael@0 | 2743 | } |
michael@0 | 2744 | clear_has_sha1(); |
michael@0 | 2745 | } |
michael@0 | 2746 | inline const ::std::string& ClientDownloadRequest_Digests::sha1() const { |
michael@0 | 2747 | return *sha1_; |
michael@0 | 2748 | } |
michael@0 | 2749 | inline void ClientDownloadRequest_Digests::set_sha1(const ::std::string& value) { |
michael@0 | 2750 | set_has_sha1(); |
michael@0 | 2751 | if (sha1_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2752 | sha1_ = new ::std::string; |
michael@0 | 2753 | } |
michael@0 | 2754 | sha1_->assign(value); |
michael@0 | 2755 | } |
michael@0 | 2756 | inline void ClientDownloadRequest_Digests::set_sha1(const char* value) { |
michael@0 | 2757 | set_has_sha1(); |
michael@0 | 2758 | if (sha1_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2759 | sha1_ = new ::std::string; |
michael@0 | 2760 | } |
michael@0 | 2761 | sha1_->assign(value); |
michael@0 | 2762 | } |
michael@0 | 2763 | inline void ClientDownloadRequest_Digests::set_sha1(const void* value, size_t size) { |
michael@0 | 2764 | set_has_sha1(); |
michael@0 | 2765 | if (sha1_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2766 | sha1_ = new ::std::string; |
michael@0 | 2767 | } |
michael@0 | 2768 | sha1_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2769 | } |
michael@0 | 2770 | inline ::std::string* ClientDownloadRequest_Digests::mutable_sha1() { |
michael@0 | 2771 | set_has_sha1(); |
michael@0 | 2772 | if (sha1_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2773 | sha1_ = new ::std::string; |
michael@0 | 2774 | } |
michael@0 | 2775 | return sha1_; |
michael@0 | 2776 | } |
michael@0 | 2777 | inline ::std::string* ClientDownloadRequest_Digests::release_sha1() { |
michael@0 | 2778 | clear_has_sha1(); |
michael@0 | 2779 | if (sha1_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2780 | return NULL; |
michael@0 | 2781 | } else { |
michael@0 | 2782 | ::std::string* temp = sha1_; |
michael@0 | 2783 | sha1_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 2784 | return temp; |
michael@0 | 2785 | } |
michael@0 | 2786 | } |
michael@0 | 2787 | |
michael@0 | 2788 | // optional bytes md5 = 3; |
michael@0 | 2789 | inline bool ClientDownloadRequest_Digests::has_md5() const { |
michael@0 | 2790 | return (_has_bits_[0] & 0x00000004u) != 0; |
michael@0 | 2791 | } |
michael@0 | 2792 | inline void ClientDownloadRequest_Digests::set_has_md5() { |
michael@0 | 2793 | _has_bits_[0] |= 0x00000004u; |
michael@0 | 2794 | } |
michael@0 | 2795 | inline void ClientDownloadRequest_Digests::clear_has_md5() { |
michael@0 | 2796 | _has_bits_[0] &= ~0x00000004u; |
michael@0 | 2797 | } |
michael@0 | 2798 | inline void ClientDownloadRequest_Digests::clear_md5() { |
michael@0 | 2799 | if (md5_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2800 | md5_->clear(); |
michael@0 | 2801 | } |
michael@0 | 2802 | clear_has_md5(); |
michael@0 | 2803 | } |
michael@0 | 2804 | inline const ::std::string& ClientDownloadRequest_Digests::md5() const { |
michael@0 | 2805 | return *md5_; |
michael@0 | 2806 | } |
michael@0 | 2807 | inline void ClientDownloadRequest_Digests::set_md5(const ::std::string& value) { |
michael@0 | 2808 | set_has_md5(); |
michael@0 | 2809 | if (md5_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2810 | md5_ = new ::std::string; |
michael@0 | 2811 | } |
michael@0 | 2812 | md5_->assign(value); |
michael@0 | 2813 | } |
michael@0 | 2814 | inline void ClientDownloadRequest_Digests::set_md5(const char* value) { |
michael@0 | 2815 | set_has_md5(); |
michael@0 | 2816 | if (md5_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2817 | md5_ = new ::std::string; |
michael@0 | 2818 | } |
michael@0 | 2819 | md5_->assign(value); |
michael@0 | 2820 | } |
michael@0 | 2821 | inline void ClientDownloadRequest_Digests::set_md5(const void* value, size_t size) { |
michael@0 | 2822 | set_has_md5(); |
michael@0 | 2823 | if (md5_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2824 | md5_ = new ::std::string; |
michael@0 | 2825 | } |
michael@0 | 2826 | md5_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2827 | } |
michael@0 | 2828 | inline ::std::string* ClientDownloadRequest_Digests::mutable_md5() { |
michael@0 | 2829 | set_has_md5(); |
michael@0 | 2830 | if (md5_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2831 | md5_ = new ::std::string; |
michael@0 | 2832 | } |
michael@0 | 2833 | return md5_; |
michael@0 | 2834 | } |
michael@0 | 2835 | inline ::std::string* ClientDownloadRequest_Digests::release_md5() { |
michael@0 | 2836 | clear_has_md5(); |
michael@0 | 2837 | if (md5_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2838 | return NULL; |
michael@0 | 2839 | } else { |
michael@0 | 2840 | ::std::string* temp = md5_; |
michael@0 | 2841 | md5_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 2842 | return temp; |
michael@0 | 2843 | } |
michael@0 | 2844 | } |
michael@0 | 2845 | |
michael@0 | 2846 | // ------------------------------------------------------------------- |
michael@0 | 2847 | |
michael@0 | 2848 | // ClientDownloadRequest_Resource |
michael@0 | 2849 | |
michael@0 | 2850 | // required string url = 1; |
michael@0 | 2851 | inline bool ClientDownloadRequest_Resource::has_url() const { |
michael@0 | 2852 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 2853 | } |
michael@0 | 2854 | inline void ClientDownloadRequest_Resource::set_has_url() { |
michael@0 | 2855 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 2856 | } |
michael@0 | 2857 | inline void ClientDownloadRequest_Resource::clear_has_url() { |
michael@0 | 2858 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 2859 | } |
michael@0 | 2860 | inline void ClientDownloadRequest_Resource::clear_url() { |
michael@0 | 2861 | if (url_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2862 | url_->clear(); |
michael@0 | 2863 | } |
michael@0 | 2864 | clear_has_url(); |
michael@0 | 2865 | } |
michael@0 | 2866 | inline const ::std::string& ClientDownloadRequest_Resource::url() const { |
michael@0 | 2867 | return *url_; |
michael@0 | 2868 | } |
michael@0 | 2869 | inline void ClientDownloadRequest_Resource::set_url(const ::std::string& value) { |
michael@0 | 2870 | set_has_url(); |
michael@0 | 2871 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2872 | url_ = new ::std::string; |
michael@0 | 2873 | } |
michael@0 | 2874 | url_->assign(value); |
michael@0 | 2875 | } |
michael@0 | 2876 | inline void ClientDownloadRequest_Resource::set_url(const char* value) { |
michael@0 | 2877 | set_has_url(); |
michael@0 | 2878 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2879 | url_ = new ::std::string; |
michael@0 | 2880 | } |
michael@0 | 2881 | url_->assign(value); |
michael@0 | 2882 | } |
michael@0 | 2883 | inline void ClientDownloadRequest_Resource::set_url(const char* value, size_t size) { |
michael@0 | 2884 | set_has_url(); |
michael@0 | 2885 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2886 | url_ = new ::std::string; |
michael@0 | 2887 | } |
michael@0 | 2888 | url_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2889 | } |
michael@0 | 2890 | inline ::std::string* ClientDownloadRequest_Resource::mutable_url() { |
michael@0 | 2891 | set_has_url(); |
michael@0 | 2892 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2893 | url_ = new ::std::string; |
michael@0 | 2894 | } |
michael@0 | 2895 | return url_; |
michael@0 | 2896 | } |
michael@0 | 2897 | inline ::std::string* ClientDownloadRequest_Resource::release_url() { |
michael@0 | 2898 | clear_has_url(); |
michael@0 | 2899 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2900 | return NULL; |
michael@0 | 2901 | } else { |
michael@0 | 2902 | ::std::string* temp = url_; |
michael@0 | 2903 | url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 2904 | return temp; |
michael@0 | 2905 | } |
michael@0 | 2906 | } |
michael@0 | 2907 | |
michael@0 | 2908 | // required .safe_browsing.ClientDownloadRequest.ResourceType type = 2; |
michael@0 | 2909 | inline bool ClientDownloadRequest_Resource::has_type() const { |
michael@0 | 2910 | return (_has_bits_[0] & 0x00000002u) != 0; |
michael@0 | 2911 | } |
michael@0 | 2912 | inline void ClientDownloadRequest_Resource::set_has_type() { |
michael@0 | 2913 | _has_bits_[0] |= 0x00000002u; |
michael@0 | 2914 | } |
michael@0 | 2915 | inline void ClientDownloadRequest_Resource::clear_has_type() { |
michael@0 | 2916 | _has_bits_[0] &= ~0x00000002u; |
michael@0 | 2917 | } |
michael@0 | 2918 | inline void ClientDownloadRequest_Resource::clear_type() { |
michael@0 | 2919 | type_ = 0; |
michael@0 | 2920 | clear_has_type(); |
michael@0 | 2921 | } |
michael@0 | 2922 | inline ::safe_browsing::ClientDownloadRequest_ResourceType ClientDownloadRequest_Resource::type() const { |
michael@0 | 2923 | return static_cast< ::safe_browsing::ClientDownloadRequest_ResourceType >(type_); |
michael@0 | 2924 | } |
michael@0 | 2925 | inline void ClientDownloadRequest_Resource::set_type(::safe_browsing::ClientDownloadRequest_ResourceType value) { |
michael@0 | 2926 | GOOGLE_DCHECK(::safe_browsing::ClientDownloadRequest_ResourceType_IsValid(value)); |
michael@0 | 2927 | set_has_type(); |
michael@0 | 2928 | type_ = value; |
michael@0 | 2929 | } |
michael@0 | 2930 | |
michael@0 | 2931 | // optional bytes remote_ip = 3; |
michael@0 | 2932 | inline bool ClientDownloadRequest_Resource::has_remote_ip() const { |
michael@0 | 2933 | return (_has_bits_[0] & 0x00000004u) != 0; |
michael@0 | 2934 | } |
michael@0 | 2935 | inline void ClientDownloadRequest_Resource::set_has_remote_ip() { |
michael@0 | 2936 | _has_bits_[0] |= 0x00000004u; |
michael@0 | 2937 | } |
michael@0 | 2938 | inline void ClientDownloadRequest_Resource::clear_has_remote_ip() { |
michael@0 | 2939 | _has_bits_[0] &= ~0x00000004u; |
michael@0 | 2940 | } |
michael@0 | 2941 | inline void ClientDownloadRequest_Resource::clear_remote_ip() { |
michael@0 | 2942 | if (remote_ip_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2943 | remote_ip_->clear(); |
michael@0 | 2944 | } |
michael@0 | 2945 | clear_has_remote_ip(); |
michael@0 | 2946 | } |
michael@0 | 2947 | inline const ::std::string& ClientDownloadRequest_Resource::remote_ip() const { |
michael@0 | 2948 | return *remote_ip_; |
michael@0 | 2949 | } |
michael@0 | 2950 | inline void ClientDownloadRequest_Resource::set_remote_ip(const ::std::string& value) { |
michael@0 | 2951 | set_has_remote_ip(); |
michael@0 | 2952 | if (remote_ip_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2953 | remote_ip_ = new ::std::string; |
michael@0 | 2954 | } |
michael@0 | 2955 | remote_ip_->assign(value); |
michael@0 | 2956 | } |
michael@0 | 2957 | inline void ClientDownloadRequest_Resource::set_remote_ip(const char* value) { |
michael@0 | 2958 | set_has_remote_ip(); |
michael@0 | 2959 | if (remote_ip_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2960 | remote_ip_ = new ::std::string; |
michael@0 | 2961 | } |
michael@0 | 2962 | remote_ip_->assign(value); |
michael@0 | 2963 | } |
michael@0 | 2964 | inline void ClientDownloadRequest_Resource::set_remote_ip(const void* value, size_t size) { |
michael@0 | 2965 | set_has_remote_ip(); |
michael@0 | 2966 | if (remote_ip_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2967 | remote_ip_ = new ::std::string; |
michael@0 | 2968 | } |
michael@0 | 2969 | remote_ip_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 2970 | } |
michael@0 | 2971 | inline ::std::string* ClientDownloadRequest_Resource::mutable_remote_ip() { |
michael@0 | 2972 | set_has_remote_ip(); |
michael@0 | 2973 | if (remote_ip_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2974 | remote_ip_ = new ::std::string; |
michael@0 | 2975 | } |
michael@0 | 2976 | return remote_ip_; |
michael@0 | 2977 | } |
michael@0 | 2978 | inline ::std::string* ClientDownloadRequest_Resource::release_remote_ip() { |
michael@0 | 2979 | clear_has_remote_ip(); |
michael@0 | 2980 | if (remote_ip_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 2981 | return NULL; |
michael@0 | 2982 | } else { |
michael@0 | 2983 | ::std::string* temp = remote_ip_; |
michael@0 | 2984 | remote_ip_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 2985 | return temp; |
michael@0 | 2986 | } |
michael@0 | 2987 | } |
michael@0 | 2988 | |
michael@0 | 2989 | // optional string referrer = 4; |
michael@0 | 2990 | inline bool ClientDownloadRequest_Resource::has_referrer() const { |
michael@0 | 2991 | return (_has_bits_[0] & 0x00000008u) != 0; |
michael@0 | 2992 | } |
michael@0 | 2993 | inline void ClientDownloadRequest_Resource::set_has_referrer() { |
michael@0 | 2994 | _has_bits_[0] |= 0x00000008u; |
michael@0 | 2995 | } |
michael@0 | 2996 | inline void ClientDownloadRequest_Resource::clear_has_referrer() { |
michael@0 | 2997 | _has_bits_[0] &= ~0x00000008u; |
michael@0 | 2998 | } |
michael@0 | 2999 | inline void ClientDownloadRequest_Resource::clear_referrer() { |
michael@0 | 3000 | if (referrer_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3001 | referrer_->clear(); |
michael@0 | 3002 | } |
michael@0 | 3003 | clear_has_referrer(); |
michael@0 | 3004 | } |
michael@0 | 3005 | inline const ::std::string& ClientDownloadRequest_Resource::referrer() const { |
michael@0 | 3006 | return *referrer_; |
michael@0 | 3007 | } |
michael@0 | 3008 | inline void ClientDownloadRequest_Resource::set_referrer(const ::std::string& value) { |
michael@0 | 3009 | set_has_referrer(); |
michael@0 | 3010 | if (referrer_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3011 | referrer_ = new ::std::string; |
michael@0 | 3012 | } |
michael@0 | 3013 | referrer_->assign(value); |
michael@0 | 3014 | } |
michael@0 | 3015 | inline void ClientDownloadRequest_Resource::set_referrer(const char* value) { |
michael@0 | 3016 | set_has_referrer(); |
michael@0 | 3017 | if (referrer_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3018 | referrer_ = new ::std::string; |
michael@0 | 3019 | } |
michael@0 | 3020 | referrer_->assign(value); |
michael@0 | 3021 | } |
michael@0 | 3022 | inline void ClientDownloadRequest_Resource::set_referrer(const char* value, size_t size) { |
michael@0 | 3023 | set_has_referrer(); |
michael@0 | 3024 | if (referrer_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3025 | referrer_ = new ::std::string; |
michael@0 | 3026 | } |
michael@0 | 3027 | referrer_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 3028 | } |
michael@0 | 3029 | inline ::std::string* ClientDownloadRequest_Resource::mutable_referrer() { |
michael@0 | 3030 | set_has_referrer(); |
michael@0 | 3031 | if (referrer_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3032 | referrer_ = new ::std::string; |
michael@0 | 3033 | } |
michael@0 | 3034 | return referrer_; |
michael@0 | 3035 | } |
michael@0 | 3036 | inline ::std::string* ClientDownloadRequest_Resource::release_referrer() { |
michael@0 | 3037 | clear_has_referrer(); |
michael@0 | 3038 | if (referrer_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3039 | return NULL; |
michael@0 | 3040 | } else { |
michael@0 | 3041 | ::std::string* temp = referrer_; |
michael@0 | 3042 | referrer_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 3043 | return temp; |
michael@0 | 3044 | } |
michael@0 | 3045 | } |
michael@0 | 3046 | |
michael@0 | 3047 | // ------------------------------------------------------------------- |
michael@0 | 3048 | |
michael@0 | 3049 | // ClientDownloadRequest_CertificateChain_Element |
michael@0 | 3050 | |
michael@0 | 3051 | // optional bytes certificate = 1; |
michael@0 | 3052 | inline bool ClientDownloadRequest_CertificateChain_Element::has_certificate() const { |
michael@0 | 3053 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 3054 | } |
michael@0 | 3055 | inline void ClientDownloadRequest_CertificateChain_Element::set_has_certificate() { |
michael@0 | 3056 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 3057 | } |
michael@0 | 3058 | inline void ClientDownloadRequest_CertificateChain_Element::clear_has_certificate() { |
michael@0 | 3059 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 3060 | } |
michael@0 | 3061 | inline void ClientDownloadRequest_CertificateChain_Element::clear_certificate() { |
michael@0 | 3062 | if (certificate_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3063 | certificate_->clear(); |
michael@0 | 3064 | } |
michael@0 | 3065 | clear_has_certificate(); |
michael@0 | 3066 | } |
michael@0 | 3067 | inline const ::std::string& ClientDownloadRequest_CertificateChain_Element::certificate() const { |
michael@0 | 3068 | return *certificate_; |
michael@0 | 3069 | } |
michael@0 | 3070 | inline void ClientDownloadRequest_CertificateChain_Element::set_certificate(const ::std::string& value) { |
michael@0 | 3071 | set_has_certificate(); |
michael@0 | 3072 | if (certificate_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3073 | certificate_ = new ::std::string; |
michael@0 | 3074 | } |
michael@0 | 3075 | certificate_->assign(value); |
michael@0 | 3076 | } |
michael@0 | 3077 | inline void ClientDownloadRequest_CertificateChain_Element::set_certificate(const char* value) { |
michael@0 | 3078 | set_has_certificate(); |
michael@0 | 3079 | if (certificate_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3080 | certificate_ = new ::std::string; |
michael@0 | 3081 | } |
michael@0 | 3082 | certificate_->assign(value); |
michael@0 | 3083 | } |
michael@0 | 3084 | inline void ClientDownloadRequest_CertificateChain_Element::set_certificate(const void* value, size_t size) { |
michael@0 | 3085 | set_has_certificate(); |
michael@0 | 3086 | if (certificate_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3087 | certificate_ = new ::std::string; |
michael@0 | 3088 | } |
michael@0 | 3089 | certificate_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 3090 | } |
michael@0 | 3091 | inline ::std::string* ClientDownloadRequest_CertificateChain_Element::mutable_certificate() { |
michael@0 | 3092 | set_has_certificate(); |
michael@0 | 3093 | if (certificate_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3094 | certificate_ = new ::std::string; |
michael@0 | 3095 | } |
michael@0 | 3096 | return certificate_; |
michael@0 | 3097 | } |
michael@0 | 3098 | inline ::std::string* ClientDownloadRequest_CertificateChain_Element::release_certificate() { |
michael@0 | 3099 | clear_has_certificate(); |
michael@0 | 3100 | if (certificate_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3101 | return NULL; |
michael@0 | 3102 | } else { |
michael@0 | 3103 | ::std::string* temp = certificate_; |
michael@0 | 3104 | certificate_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 3105 | return temp; |
michael@0 | 3106 | } |
michael@0 | 3107 | } |
michael@0 | 3108 | |
michael@0 | 3109 | // ------------------------------------------------------------------- |
michael@0 | 3110 | |
michael@0 | 3111 | // ClientDownloadRequest_CertificateChain |
michael@0 | 3112 | |
michael@0 | 3113 | // repeated .safe_browsing.ClientDownloadRequest.CertificateChain.Element element = 1; |
michael@0 | 3114 | inline int ClientDownloadRequest_CertificateChain::element_size() const { |
michael@0 | 3115 | return element_.size(); |
michael@0 | 3116 | } |
michael@0 | 3117 | inline void ClientDownloadRequest_CertificateChain::clear_element() { |
michael@0 | 3118 | element_.Clear(); |
michael@0 | 3119 | } |
michael@0 | 3120 | inline const ::safe_browsing::ClientDownloadRequest_CertificateChain_Element& ClientDownloadRequest_CertificateChain::element(int index) const { |
michael@0 | 3121 | return element_.Get(index); |
michael@0 | 3122 | } |
michael@0 | 3123 | inline ::safe_browsing::ClientDownloadRequest_CertificateChain_Element* ClientDownloadRequest_CertificateChain::mutable_element(int index) { |
michael@0 | 3124 | return element_.Mutable(index); |
michael@0 | 3125 | } |
michael@0 | 3126 | inline ::safe_browsing::ClientDownloadRequest_CertificateChain_Element* ClientDownloadRequest_CertificateChain::add_element() { |
michael@0 | 3127 | return element_.Add(); |
michael@0 | 3128 | } |
michael@0 | 3129 | inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain_Element >& |
michael@0 | 3130 | ClientDownloadRequest_CertificateChain::element() const { |
michael@0 | 3131 | return element_; |
michael@0 | 3132 | } |
michael@0 | 3133 | inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain_Element >* |
michael@0 | 3134 | ClientDownloadRequest_CertificateChain::mutable_element() { |
michael@0 | 3135 | return &element_; |
michael@0 | 3136 | } |
michael@0 | 3137 | |
michael@0 | 3138 | // ------------------------------------------------------------------- |
michael@0 | 3139 | |
michael@0 | 3140 | // ClientDownloadRequest_SignatureInfo |
michael@0 | 3141 | |
michael@0 | 3142 | // repeated .safe_browsing.ClientDownloadRequest.CertificateChain certificate_chain = 1; |
michael@0 | 3143 | inline int ClientDownloadRequest_SignatureInfo::certificate_chain_size() const { |
michael@0 | 3144 | return certificate_chain_.size(); |
michael@0 | 3145 | } |
michael@0 | 3146 | inline void ClientDownloadRequest_SignatureInfo::clear_certificate_chain() { |
michael@0 | 3147 | certificate_chain_.Clear(); |
michael@0 | 3148 | } |
michael@0 | 3149 | inline const ::safe_browsing::ClientDownloadRequest_CertificateChain& ClientDownloadRequest_SignatureInfo::certificate_chain(int index) const { |
michael@0 | 3150 | return certificate_chain_.Get(index); |
michael@0 | 3151 | } |
michael@0 | 3152 | inline ::safe_browsing::ClientDownloadRequest_CertificateChain* ClientDownloadRequest_SignatureInfo::mutable_certificate_chain(int index) { |
michael@0 | 3153 | return certificate_chain_.Mutable(index); |
michael@0 | 3154 | } |
michael@0 | 3155 | inline ::safe_browsing::ClientDownloadRequest_CertificateChain* ClientDownloadRequest_SignatureInfo::add_certificate_chain() { |
michael@0 | 3156 | return certificate_chain_.Add(); |
michael@0 | 3157 | } |
michael@0 | 3158 | inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain >& |
michael@0 | 3159 | ClientDownloadRequest_SignatureInfo::certificate_chain() const { |
michael@0 | 3160 | return certificate_chain_; |
michael@0 | 3161 | } |
michael@0 | 3162 | inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_CertificateChain >* |
michael@0 | 3163 | ClientDownloadRequest_SignatureInfo::mutable_certificate_chain() { |
michael@0 | 3164 | return &certificate_chain_; |
michael@0 | 3165 | } |
michael@0 | 3166 | |
michael@0 | 3167 | // optional bool trusted = 2; |
michael@0 | 3168 | inline bool ClientDownloadRequest_SignatureInfo::has_trusted() const { |
michael@0 | 3169 | return (_has_bits_[0] & 0x00000002u) != 0; |
michael@0 | 3170 | } |
michael@0 | 3171 | inline void ClientDownloadRequest_SignatureInfo::set_has_trusted() { |
michael@0 | 3172 | _has_bits_[0] |= 0x00000002u; |
michael@0 | 3173 | } |
michael@0 | 3174 | inline void ClientDownloadRequest_SignatureInfo::clear_has_trusted() { |
michael@0 | 3175 | _has_bits_[0] &= ~0x00000002u; |
michael@0 | 3176 | } |
michael@0 | 3177 | inline void ClientDownloadRequest_SignatureInfo::clear_trusted() { |
michael@0 | 3178 | trusted_ = false; |
michael@0 | 3179 | clear_has_trusted(); |
michael@0 | 3180 | } |
michael@0 | 3181 | inline bool ClientDownloadRequest_SignatureInfo::trusted() const { |
michael@0 | 3182 | return trusted_; |
michael@0 | 3183 | } |
michael@0 | 3184 | inline void ClientDownloadRequest_SignatureInfo::set_trusted(bool value) { |
michael@0 | 3185 | set_has_trusted(); |
michael@0 | 3186 | trusted_ = value; |
michael@0 | 3187 | } |
michael@0 | 3188 | |
michael@0 | 3189 | // ------------------------------------------------------------------- |
michael@0 | 3190 | |
michael@0 | 3191 | // ClientDownloadRequest |
michael@0 | 3192 | |
michael@0 | 3193 | // required string url = 1; |
michael@0 | 3194 | inline bool ClientDownloadRequest::has_url() const { |
michael@0 | 3195 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 3196 | } |
michael@0 | 3197 | inline void ClientDownloadRequest::set_has_url() { |
michael@0 | 3198 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 3199 | } |
michael@0 | 3200 | inline void ClientDownloadRequest::clear_has_url() { |
michael@0 | 3201 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 3202 | } |
michael@0 | 3203 | inline void ClientDownloadRequest::clear_url() { |
michael@0 | 3204 | if (url_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3205 | url_->clear(); |
michael@0 | 3206 | } |
michael@0 | 3207 | clear_has_url(); |
michael@0 | 3208 | } |
michael@0 | 3209 | inline const ::std::string& ClientDownloadRequest::url() const { |
michael@0 | 3210 | return *url_; |
michael@0 | 3211 | } |
michael@0 | 3212 | inline void ClientDownloadRequest::set_url(const ::std::string& value) { |
michael@0 | 3213 | set_has_url(); |
michael@0 | 3214 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3215 | url_ = new ::std::string; |
michael@0 | 3216 | } |
michael@0 | 3217 | url_->assign(value); |
michael@0 | 3218 | } |
michael@0 | 3219 | inline void ClientDownloadRequest::set_url(const char* value) { |
michael@0 | 3220 | set_has_url(); |
michael@0 | 3221 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3222 | url_ = new ::std::string; |
michael@0 | 3223 | } |
michael@0 | 3224 | url_->assign(value); |
michael@0 | 3225 | } |
michael@0 | 3226 | inline void ClientDownloadRequest::set_url(const char* value, size_t size) { |
michael@0 | 3227 | set_has_url(); |
michael@0 | 3228 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3229 | url_ = new ::std::string; |
michael@0 | 3230 | } |
michael@0 | 3231 | url_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 3232 | } |
michael@0 | 3233 | inline ::std::string* ClientDownloadRequest::mutable_url() { |
michael@0 | 3234 | set_has_url(); |
michael@0 | 3235 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3236 | url_ = new ::std::string; |
michael@0 | 3237 | } |
michael@0 | 3238 | return url_; |
michael@0 | 3239 | } |
michael@0 | 3240 | inline ::std::string* ClientDownloadRequest::release_url() { |
michael@0 | 3241 | clear_has_url(); |
michael@0 | 3242 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3243 | return NULL; |
michael@0 | 3244 | } else { |
michael@0 | 3245 | ::std::string* temp = url_; |
michael@0 | 3246 | url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 3247 | return temp; |
michael@0 | 3248 | } |
michael@0 | 3249 | } |
michael@0 | 3250 | |
michael@0 | 3251 | // required .safe_browsing.ClientDownloadRequest.Digests digests = 2; |
michael@0 | 3252 | inline bool ClientDownloadRequest::has_digests() const { |
michael@0 | 3253 | return (_has_bits_[0] & 0x00000002u) != 0; |
michael@0 | 3254 | } |
michael@0 | 3255 | inline void ClientDownloadRequest::set_has_digests() { |
michael@0 | 3256 | _has_bits_[0] |= 0x00000002u; |
michael@0 | 3257 | } |
michael@0 | 3258 | inline void ClientDownloadRequest::clear_has_digests() { |
michael@0 | 3259 | _has_bits_[0] &= ~0x00000002u; |
michael@0 | 3260 | } |
michael@0 | 3261 | inline void ClientDownloadRequest::clear_digests() { |
michael@0 | 3262 | if (digests_ != NULL) digests_->::safe_browsing::ClientDownloadRequest_Digests::Clear(); |
michael@0 | 3263 | clear_has_digests(); |
michael@0 | 3264 | } |
michael@0 | 3265 | inline const ::safe_browsing::ClientDownloadRequest_Digests& ClientDownloadRequest::digests() const { |
michael@0 | 3266 | return digests_ != NULL ? *digests_ : *default_instance_->digests_; |
michael@0 | 3267 | } |
michael@0 | 3268 | inline ::safe_browsing::ClientDownloadRequest_Digests* ClientDownloadRequest::mutable_digests() { |
michael@0 | 3269 | set_has_digests(); |
michael@0 | 3270 | if (digests_ == NULL) digests_ = new ::safe_browsing::ClientDownloadRequest_Digests; |
michael@0 | 3271 | return digests_; |
michael@0 | 3272 | } |
michael@0 | 3273 | inline ::safe_browsing::ClientDownloadRequest_Digests* ClientDownloadRequest::release_digests() { |
michael@0 | 3274 | clear_has_digests(); |
michael@0 | 3275 | ::safe_browsing::ClientDownloadRequest_Digests* temp = digests_; |
michael@0 | 3276 | digests_ = NULL; |
michael@0 | 3277 | return temp; |
michael@0 | 3278 | } |
michael@0 | 3279 | |
michael@0 | 3280 | // required int64 length = 3; |
michael@0 | 3281 | inline bool ClientDownloadRequest::has_length() const { |
michael@0 | 3282 | return (_has_bits_[0] & 0x00000004u) != 0; |
michael@0 | 3283 | } |
michael@0 | 3284 | inline void ClientDownloadRequest::set_has_length() { |
michael@0 | 3285 | _has_bits_[0] |= 0x00000004u; |
michael@0 | 3286 | } |
michael@0 | 3287 | inline void ClientDownloadRequest::clear_has_length() { |
michael@0 | 3288 | _has_bits_[0] &= ~0x00000004u; |
michael@0 | 3289 | } |
michael@0 | 3290 | inline void ClientDownloadRequest::clear_length() { |
michael@0 | 3291 | length_ = GOOGLE_LONGLONG(0); |
michael@0 | 3292 | clear_has_length(); |
michael@0 | 3293 | } |
michael@0 | 3294 | inline ::google::protobuf::int64 ClientDownloadRequest::length() const { |
michael@0 | 3295 | return length_; |
michael@0 | 3296 | } |
michael@0 | 3297 | inline void ClientDownloadRequest::set_length(::google::protobuf::int64 value) { |
michael@0 | 3298 | set_has_length(); |
michael@0 | 3299 | length_ = value; |
michael@0 | 3300 | } |
michael@0 | 3301 | |
michael@0 | 3302 | // repeated .safe_browsing.ClientDownloadRequest.Resource resources = 4; |
michael@0 | 3303 | inline int ClientDownloadRequest::resources_size() const { |
michael@0 | 3304 | return resources_.size(); |
michael@0 | 3305 | } |
michael@0 | 3306 | inline void ClientDownloadRequest::clear_resources() { |
michael@0 | 3307 | resources_.Clear(); |
michael@0 | 3308 | } |
michael@0 | 3309 | inline const ::safe_browsing::ClientDownloadRequest_Resource& ClientDownloadRequest::resources(int index) const { |
michael@0 | 3310 | return resources_.Get(index); |
michael@0 | 3311 | } |
michael@0 | 3312 | inline ::safe_browsing::ClientDownloadRequest_Resource* ClientDownloadRequest::mutable_resources(int index) { |
michael@0 | 3313 | return resources_.Mutable(index); |
michael@0 | 3314 | } |
michael@0 | 3315 | inline ::safe_browsing::ClientDownloadRequest_Resource* ClientDownloadRequest::add_resources() { |
michael@0 | 3316 | return resources_.Add(); |
michael@0 | 3317 | } |
michael@0 | 3318 | inline const ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_Resource >& |
michael@0 | 3319 | ClientDownloadRequest::resources() const { |
michael@0 | 3320 | return resources_; |
michael@0 | 3321 | } |
michael@0 | 3322 | inline ::google::protobuf::RepeatedPtrField< ::safe_browsing::ClientDownloadRequest_Resource >* |
michael@0 | 3323 | ClientDownloadRequest::mutable_resources() { |
michael@0 | 3324 | return &resources_; |
michael@0 | 3325 | } |
michael@0 | 3326 | |
michael@0 | 3327 | // optional .safe_browsing.ClientDownloadRequest.SignatureInfo signature = 5; |
michael@0 | 3328 | inline bool ClientDownloadRequest::has_signature() const { |
michael@0 | 3329 | return (_has_bits_[0] & 0x00000010u) != 0; |
michael@0 | 3330 | } |
michael@0 | 3331 | inline void ClientDownloadRequest::set_has_signature() { |
michael@0 | 3332 | _has_bits_[0] |= 0x00000010u; |
michael@0 | 3333 | } |
michael@0 | 3334 | inline void ClientDownloadRequest::clear_has_signature() { |
michael@0 | 3335 | _has_bits_[0] &= ~0x00000010u; |
michael@0 | 3336 | } |
michael@0 | 3337 | inline void ClientDownloadRequest::clear_signature() { |
michael@0 | 3338 | if (signature_ != NULL) signature_->::safe_browsing::ClientDownloadRequest_SignatureInfo::Clear(); |
michael@0 | 3339 | clear_has_signature(); |
michael@0 | 3340 | } |
michael@0 | 3341 | inline const ::safe_browsing::ClientDownloadRequest_SignatureInfo& ClientDownloadRequest::signature() const { |
michael@0 | 3342 | return signature_ != NULL ? *signature_ : *default_instance_->signature_; |
michael@0 | 3343 | } |
michael@0 | 3344 | inline ::safe_browsing::ClientDownloadRequest_SignatureInfo* ClientDownloadRequest::mutable_signature() { |
michael@0 | 3345 | set_has_signature(); |
michael@0 | 3346 | if (signature_ == NULL) signature_ = new ::safe_browsing::ClientDownloadRequest_SignatureInfo; |
michael@0 | 3347 | return signature_; |
michael@0 | 3348 | } |
michael@0 | 3349 | inline ::safe_browsing::ClientDownloadRequest_SignatureInfo* ClientDownloadRequest::release_signature() { |
michael@0 | 3350 | clear_has_signature(); |
michael@0 | 3351 | ::safe_browsing::ClientDownloadRequest_SignatureInfo* temp = signature_; |
michael@0 | 3352 | signature_ = NULL; |
michael@0 | 3353 | return temp; |
michael@0 | 3354 | } |
michael@0 | 3355 | |
michael@0 | 3356 | // optional bool user_initiated = 6; |
michael@0 | 3357 | inline bool ClientDownloadRequest::has_user_initiated() const { |
michael@0 | 3358 | return (_has_bits_[0] & 0x00000020u) != 0; |
michael@0 | 3359 | } |
michael@0 | 3360 | inline void ClientDownloadRequest::set_has_user_initiated() { |
michael@0 | 3361 | _has_bits_[0] |= 0x00000020u; |
michael@0 | 3362 | } |
michael@0 | 3363 | inline void ClientDownloadRequest::clear_has_user_initiated() { |
michael@0 | 3364 | _has_bits_[0] &= ~0x00000020u; |
michael@0 | 3365 | } |
michael@0 | 3366 | inline void ClientDownloadRequest::clear_user_initiated() { |
michael@0 | 3367 | user_initiated_ = false; |
michael@0 | 3368 | clear_has_user_initiated(); |
michael@0 | 3369 | } |
michael@0 | 3370 | inline bool ClientDownloadRequest::user_initiated() const { |
michael@0 | 3371 | return user_initiated_; |
michael@0 | 3372 | } |
michael@0 | 3373 | inline void ClientDownloadRequest::set_user_initiated(bool value) { |
michael@0 | 3374 | set_has_user_initiated(); |
michael@0 | 3375 | user_initiated_ = value; |
michael@0 | 3376 | } |
michael@0 | 3377 | |
michael@0 | 3378 | // optional string file_basename = 9; |
michael@0 | 3379 | inline bool ClientDownloadRequest::has_file_basename() const { |
michael@0 | 3380 | return (_has_bits_[0] & 0x00000040u) != 0; |
michael@0 | 3381 | } |
michael@0 | 3382 | inline void ClientDownloadRequest::set_has_file_basename() { |
michael@0 | 3383 | _has_bits_[0] |= 0x00000040u; |
michael@0 | 3384 | } |
michael@0 | 3385 | inline void ClientDownloadRequest::clear_has_file_basename() { |
michael@0 | 3386 | _has_bits_[0] &= ~0x00000040u; |
michael@0 | 3387 | } |
michael@0 | 3388 | inline void ClientDownloadRequest::clear_file_basename() { |
michael@0 | 3389 | if (file_basename_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3390 | file_basename_->clear(); |
michael@0 | 3391 | } |
michael@0 | 3392 | clear_has_file_basename(); |
michael@0 | 3393 | } |
michael@0 | 3394 | inline const ::std::string& ClientDownloadRequest::file_basename() const { |
michael@0 | 3395 | return *file_basename_; |
michael@0 | 3396 | } |
michael@0 | 3397 | inline void ClientDownloadRequest::set_file_basename(const ::std::string& value) { |
michael@0 | 3398 | set_has_file_basename(); |
michael@0 | 3399 | if (file_basename_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3400 | file_basename_ = new ::std::string; |
michael@0 | 3401 | } |
michael@0 | 3402 | file_basename_->assign(value); |
michael@0 | 3403 | } |
michael@0 | 3404 | inline void ClientDownloadRequest::set_file_basename(const char* value) { |
michael@0 | 3405 | set_has_file_basename(); |
michael@0 | 3406 | if (file_basename_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3407 | file_basename_ = new ::std::string; |
michael@0 | 3408 | } |
michael@0 | 3409 | file_basename_->assign(value); |
michael@0 | 3410 | } |
michael@0 | 3411 | inline void ClientDownloadRequest::set_file_basename(const char* value, size_t size) { |
michael@0 | 3412 | set_has_file_basename(); |
michael@0 | 3413 | if (file_basename_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3414 | file_basename_ = new ::std::string; |
michael@0 | 3415 | } |
michael@0 | 3416 | file_basename_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 3417 | } |
michael@0 | 3418 | inline ::std::string* ClientDownloadRequest::mutable_file_basename() { |
michael@0 | 3419 | set_has_file_basename(); |
michael@0 | 3420 | if (file_basename_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3421 | file_basename_ = new ::std::string; |
michael@0 | 3422 | } |
michael@0 | 3423 | return file_basename_; |
michael@0 | 3424 | } |
michael@0 | 3425 | inline ::std::string* ClientDownloadRequest::release_file_basename() { |
michael@0 | 3426 | clear_has_file_basename(); |
michael@0 | 3427 | if (file_basename_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3428 | return NULL; |
michael@0 | 3429 | } else { |
michael@0 | 3430 | ::std::string* temp = file_basename_; |
michael@0 | 3431 | file_basename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 3432 | return temp; |
michael@0 | 3433 | } |
michael@0 | 3434 | } |
michael@0 | 3435 | |
michael@0 | 3436 | // optional .safe_browsing.ClientDownloadRequest.DownloadType download_type = 10 [default = WIN_EXECUTABLE]; |
michael@0 | 3437 | inline bool ClientDownloadRequest::has_download_type() const { |
michael@0 | 3438 | return (_has_bits_[0] & 0x00000080u) != 0; |
michael@0 | 3439 | } |
michael@0 | 3440 | inline void ClientDownloadRequest::set_has_download_type() { |
michael@0 | 3441 | _has_bits_[0] |= 0x00000080u; |
michael@0 | 3442 | } |
michael@0 | 3443 | inline void ClientDownloadRequest::clear_has_download_type() { |
michael@0 | 3444 | _has_bits_[0] &= ~0x00000080u; |
michael@0 | 3445 | } |
michael@0 | 3446 | inline void ClientDownloadRequest::clear_download_type() { |
michael@0 | 3447 | download_type_ = 0; |
michael@0 | 3448 | clear_has_download_type(); |
michael@0 | 3449 | } |
michael@0 | 3450 | inline ::safe_browsing::ClientDownloadRequest_DownloadType ClientDownloadRequest::download_type() const { |
michael@0 | 3451 | return static_cast< ::safe_browsing::ClientDownloadRequest_DownloadType >(download_type_); |
michael@0 | 3452 | } |
michael@0 | 3453 | inline void ClientDownloadRequest::set_download_type(::safe_browsing::ClientDownloadRequest_DownloadType value) { |
michael@0 | 3454 | GOOGLE_DCHECK(::safe_browsing::ClientDownloadRequest_DownloadType_IsValid(value)); |
michael@0 | 3455 | set_has_download_type(); |
michael@0 | 3456 | download_type_ = value; |
michael@0 | 3457 | } |
michael@0 | 3458 | |
michael@0 | 3459 | // optional string locale = 11; |
michael@0 | 3460 | inline bool ClientDownloadRequest::has_locale() const { |
michael@0 | 3461 | return (_has_bits_[0] & 0x00000100u) != 0; |
michael@0 | 3462 | } |
michael@0 | 3463 | inline void ClientDownloadRequest::set_has_locale() { |
michael@0 | 3464 | _has_bits_[0] |= 0x00000100u; |
michael@0 | 3465 | } |
michael@0 | 3466 | inline void ClientDownloadRequest::clear_has_locale() { |
michael@0 | 3467 | _has_bits_[0] &= ~0x00000100u; |
michael@0 | 3468 | } |
michael@0 | 3469 | inline void ClientDownloadRequest::clear_locale() { |
michael@0 | 3470 | if (locale_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3471 | locale_->clear(); |
michael@0 | 3472 | } |
michael@0 | 3473 | clear_has_locale(); |
michael@0 | 3474 | } |
michael@0 | 3475 | inline const ::std::string& ClientDownloadRequest::locale() const { |
michael@0 | 3476 | return *locale_; |
michael@0 | 3477 | } |
michael@0 | 3478 | inline void ClientDownloadRequest::set_locale(const ::std::string& value) { |
michael@0 | 3479 | set_has_locale(); |
michael@0 | 3480 | if (locale_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3481 | locale_ = new ::std::string; |
michael@0 | 3482 | } |
michael@0 | 3483 | locale_->assign(value); |
michael@0 | 3484 | } |
michael@0 | 3485 | inline void ClientDownloadRequest::set_locale(const char* value) { |
michael@0 | 3486 | set_has_locale(); |
michael@0 | 3487 | if (locale_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3488 | locale_ = new ::std::string; |
michael@0 | 3489 | } |
michael@0 | 3490 | locale_->assign(value); |
michael@0 | 3491 | } |
michael@0 | 3492 | inline void ClientDownloadRequest::set_locale(const char* value, size_t size) { |
michael@0 | 3493 | set_has_locale(); |
michael@0 | 3494 | if (locale_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3495 | locale_ = new ::std::string; |
michael@0 | 3496 | } |
michael@0 | 3497 | locale_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 3498 | } |
michael@0 | 3499 | inline ::std::string* ClientDownloadRequest::mutable_locale() { |
michael@0 | 3500 | set_has_locale(); |
michael@0 | 3501 | if (locale_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3502 | locale_ = new ::std::string; |
michael@0 | 3503 | } |
michael@0 | 3504 | return locale_; |
michael@0 | 3505 | } |
michael@0 | 3506 | inline ::std::string* ClientDownloadRequest::release_locale() { |
michael@0 | 3507 | clear_has_locale(); |
michael@0 | 3508 | if (locale_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3509 | return NULL; |
michael@0 | 3510 | } else { |
michael@0 | 3511 | ::std::string* temp = locale_; |
michael@0 | 3512 | locale_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 3513 | return temp; |
michael@0 | 3514 | } |
michael@0 | 3515 | } |
michael@0 | 3516 | |
michael@0 | 3517 | // ------------------------------------------------------------------- |
michael@0 | 3518 | |
michael@0 | 3519 | // ClientDownloadResponse_MoreInfo |
michael@0 | 3520 | |
michael@0 | 3521 | // optional string description = 1; |
michael@0 | 3522 | inline bool ClientDownloadResponse_MoreInfo::has_description() const { |
michael@0 | 3523 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 3524 | } |
michael@0 | 3525 | inline void ClientDownloadResponse_MoreInfo::set_has_description() { |
michael@0 | 3526 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 3527 | } |
michael@0 | 3528 | inline void ClientDownloadResponse_MoreInfo::clear_has_description() { |
michael@0 | 3529 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 3530 | } |
michael@0 | 3531 | inline void ClientDownloadResponse_MoreInfo::clear_description() { |
michael@0 | 3532 | if (description_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3533 | description_->clear(); |
michael@0 | 3534 | } |
michael@0 | 3535 | clear_has_description(); |
michael@0 | 3536 | } |
michael@0 | 3537 | inline const ::std::string& ClientDownloadResponse_MoreInfo::description() const { |
michael@0 | 3538 | return *description_; |
michael@0 | 3539 | } |
michael@0 | 3540 | inline void ClientDownloadResponse_MoreInfo::set_description(const ::std::string& value) { |
michael@0 | 3541 | set_has_description(); |
michael@0 | 3542 | if (description_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3543 | description_ = new ::std::string; |
michael@0 | 3544 | } |
michael@0 | 3545 | description_->assign(value); |
michael@0 | 3546 | } |
michael@0 | 3547 | inline void ClientDownloadResponse_MoreInfo::set_description(const char* value) { |
michael@0 | 3548 | set_has_description(); |
michael@0 | 3549 | if (description_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3550 | description_ = new ::std::string; |
michael@0 | 3551 | } |
michael@0 | 3552 | description_->assign(value); |
michael@0 | 3553 | } |
michael@0 | 3554 | inline void ClientDownloadResponse_MoreInfo::set_description(const char* value, size_t size) { |
michael@0 | 3555 | set_has_description(); |
michael@0 | 3556 | if (description_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3557 | description_ = new ::std::string; |
michael@0 | 3558 | } |
michael@0 | 3559 | description_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 3560 | } |
michael@0 | 3561 | inline ::std::string* ClientDownloadResponse_MoreInfo::mutable_description() { |
michael@0 | 3562 | set_has_description(); |
michael@0 | 3563 | if (description_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3564 | description_ = new ::std::string; |
michael@0 | 3565 | } |
michael@0 | 3566 | return description_; |
michael@0 | 3567 | } |
michael@0 | 3568 | inline ::std::string* ClientDownloadResponse_MoreInfo::release_description() { |
michael@0 | 3569 | clear_has_description(); |
michael@0 | 3570 | if (description_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3571 | return NULL; |
michael@0 | 3572 | } else { |
michael@0 | 3573 | ::std::string* temp = description_; |
michael@0 | 3574 | description_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 3575 | return temp; |
michael@0 | 3576 | } |
michael@0 | 3577 | } |
michael@0 | 3578 | |
michael@0 | 3579 | // optional string url = 2; |
michael@0 | 3580 | inline bool ClientDownloadResponse_MoreInfo::has_url() const { |
michael@0 | 3581 | return (_has_bits_[0] & 0x00000002u) != 0; |
michael@0 | 3582 | } |
michael@0 | 3583 | inline void ClientDownloadResponse_MoreInfo::set_has_url() { |
michael@0 | 3584 | _has_bits_[0] |= 0x00000002u; |
michael@0 | 3585 | } |
michael@0 | 3586 | inline void ClientDownloadResponse_MoreInfo::clear_has_url() { |
michael@0 | 3587 | _has_bits_[0] &= ~0x00000002u; |
michael@0 | 3588 | } |
michael@0 | 3589 | inline void ClientDownloadResponse_MoreInfo::clear_url() { |
michael@0 | 3590 | if (url_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3591 | url_->clear(); |
michael@0 | 3592 | } |
michael@0 | 3593 | clear_has_url(); |
michael@0 | 3594 | } |
michael@0 | 3595 | inline const ::std::string& ClientDownloadResponse_MoreInfo::url() const { |
michael@0 | 3596 | return *url_; |
michael@0 | 3597 | } |
michael@0 | 3598 | inline void ClientDownloadResponse_MoreInfo::set_url(const ::std::string& value) { |
michael@0 | 3599 | set_has_url(); |
michael@0 | 3600 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3601 | url_ = new ::std::string; |
michael@0 | 3602 | } |
michael@0 | 3603 | url_->assign(value); |
michael@0 | 3604 | } |
michael@0 | 3605 | inline void ClientDownloadResponse_MoreInfo::set_url(const char* value) { |
michael@0 | 3606 | set_has_url(); |
michael@0 | 3607 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3608 | url_ = new ::std::string; |
michael@0 | 3609 | } |
michael@0 | 3610 | url_->assign(value); |
michael@0 | 3611 | } |
michael@0 | 3612 | inline void ClientDownloadResponse_MoreInfo::set_url(const char* value, size_t size) { |
michael@0 | 3613 | set_has_url(); |
michael@0 | 3614 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3615 | url_ = new ::std::string; |
michael@0 | 3616 | } |
michael@0 | 3617 | url_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 3618 | } |
michael@0 | 3619 | inline ::std::string* ClientDownloadResponse_MoreInfo::mutable_url() { |
michael@0 | 3620 | set_has_url(); |
michael@0 | 3621 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3622 | url_ = new ::std::string; |
michael@0 | 3623 | } |
michael@0 | 3624 | return url_; |
michael@0 | 3625 | } |
michael@0 | 3626 | inline ::std::string* ClientDownloadResponse_MoreInfo::release_url() { |
michael@0 | 3627 | clear_has_url(); |
michael@0 | 3628 | if (url_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3629 | return NULL; |
michael@0 | 3630 | } else { |
michael@0 | 3631 | ::std::string* temp = url_; |
michael@0 | 3632 | url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 3633 | return temp; |
michael@0 | 3634 | } |
michael@0 | 3635 | } |
michael@0 | 3636 | |
michael@0 | 3637 | // ------------------------------------------------------------------- |
michael@0 | 3638 | |
michael@0 | 3639 | // ClientDownloadResponse |
michael@0 | 3640 | |
michael@0 | 3641 | // required .safe_browsing.ClientDownloadResponse.Verdict verdict = 1; |
michael@0 | 3642 | inline bool ClientDownloadResponse::has_verdict() const { |
michael@0 | 3643 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 3644 | } |
michael@0 | 3645 | inline void ClientDownloadResponse::set_has_verdict() { |
michael@0 | 3646 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 3647 | } |
michael@0 | 3648 | inline void ClientDownloadResponse::clear_has_verdict() { |
michael@0 | 3649 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 3650 | } |
michael@0 | 3651 | inline void ClientDownloadResponse::clear_verdict() { |
michael@0 | 3652 | verdict_ = 0; |
michael@0 | 3653 | clear_has_verdict(); |
michael@0 | 3654 | } |
michael@0 | 3655 | inline ::safe_browsing::ClientDownloadResponse_Verdict ClientDownloadResponse::verdict() const { |
michael@0 | 3656 | return static_cast< ::safe_browsing::ClientDownloadResponse_Verdict >(verdict_); |
michael@0 | 3657 | } |
michael@0 | 3658 | inline void ClientDownloadResponse::set_verdict(::safe_browsing::ClientDownloadResponse_Verdict value) { |
michael@0 | 3659 | GOOGLE_DCHECK(::safe_browsing::ClientDownloadResponse_Verdict_IsValid(value)); |
michael@0 | 3660 | set_has_verdict(); |
michael@0 | 3661 | verdict_ = value; |
michael@0 | 3662 | } |
michael@0 | 3663 | |
michael@0 | 3664 | // optional .safe_browsing.ClientDownloadResponse.MoreInfo more_info = 2; |
michael@0 | 3665 | inline bool ClientDownloadResponse::has_more_info() const { |
michael@0 | 3666 | return (_has_bits_[0] & 0x00000002u) != 0; |
michael@0 | 3667 | } |
michael@0 | 3668 | inline void ClientDownloadResponse::set_has_more_info() { |
michael@0 | 3669 | _has_bits_[0] |= 0x00000002u; |
michael@0 | 3670 | } |
michael@0 | 3671 | inline void ClientDownloadResponse::clear_has_more_info() { |
michael@0 | 3672 | _has_bits_[0] &= ~0x00000002u; |
michael@0 | 3673 | } |
michael@0 | 3674 | inline void ClientDownloadResponse::clear_more_info() { |
michael@0 | 3675 | if (more_info_ != NULL) more_info_->::safe_browsing::ClientDownloadResponse_MoreInfo::Clear(); |
michael@0 | 3676 | clear_has_more_info(); |
michael@0 | 3677 | } |
michael@0 | 3678 | inline const ::safe_browsing::ClientDownloadResponse_MoreInfo& ClientDownloadResponse::more_info() const { |
michael@0 | 3679 | return more_info_ != NULL ? *more_info_ : *default_instance_->more_info_; |
michael@0 | 3680 | } |
michael@0 | 3681 | inline ::safe_browsing::ClientDownloadResponse_MoreInfo* ClientDownloadResponse::mutable_more_info() { |
michael@0 | 3682 | set_has_more_info(); |
michael@0 | 3683 | if (more_info_ == NULL) more_info_ = new ::safe_browsing::ClientDownloadResponse_MoreInfo; |
michael@0 | 3684 | return more_info_; |
michael@0 | 3685 | } |
michael@0 | 3686 | inline ::safe_browsing::ClientDownloadResponse_MoreInfo* ClientDownloadResponse::release_more_info() { |
michael@0 | 3687 | clear_has_more_info(); |
michael@0 | 3688 | ::safe_browsing::ClientDownloadResponse_MoreInfo* temp = more_info_; |
michael@0 | 3689 | more_info_ = NULL; |
michael@0 | 3690 | return temp; |
michael@0 | 3691 | } |
michael@0 | 3692 | |
michael@0 | 3693 | // optional bytes token = 3; |
michael@0 | 3694 | inline bool ClientDownloadResponse::has_token() const { |
michael@0 | 3695 | return (_has_bits_[0] & 0x00000004u) != 0; |
michael@0 | 3696 | } |
michael@0 | 3697 | inline void ClientDownloadResponse::set_has_token() { |
michael@0 | 3698 | _has_bits_[0] |= 0x00000004u; |
michael@0 | 3699 | } |
michael@0 | 3700 | inline void ClientDownloadResponse::clear_has_token() { |
michael@0 | 3701 | _has_bits_[0] &= ~0x00000004u; |
michael@0 | 3702 | } |
michael@0 | 3703 | inline void ClientDownloadResponse::clear_token() { |
michael@0 | 3704 | if (token_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3705 | token_->clear(); |
michael@0 | 3706 | } |
michael@0 | 3707 | clear_has_token(); |
michael@0 | 3708 | } |
michael@0 | 3709 | inline const ::std::string& ClientDownloadResponse::token() const { |
michael@0 | 3710 | return *token_; |
michael@0 | 3711 | } |
michael@0 | 3712 | inline void ClientDownloadResponse::set_token(const ::std::string& value) { |
michael@0 | 3713 | set_has_token(); |
michael@0 | 3714 | if (token_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3715 | token_ = new ::std::string; |
michael@0 | 3716 | } |
michael@0 | 3717 | token_->assign(value); |
michael@0 | 3718 | } |
michael@0 | 3719 | inline void ClientDownloadResponse::set_token(const char* value) { |
michael@0 | 3720 | set_has_token(); |
michael@0 | 3721 | if (token_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3722 | token_ = new ::std::string; |
michael@0 | 3723 | } |
michael@0 | 3724 | token_->assign(value); |
michael@0 | 3725 | } |
michael@0 | 3726 | inline void ClientDownloadResponse::set_token(const void* value, size_t size) { |
michael@0 | 3727 | set_has_token(); |
michael@0 | 3728 | if (token_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3729 | token_ = new ::std::string; |
michael@0 | 3730 | } |
michael@0 | 3731 | token_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 3732 | } |
michael@0 | 3733 | inline ::std::string* ClientDownloadResponse::mutable_token() { |
michael@0 | 3734 | set_has_token(); |
michael@0 | 3735 | if (token_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3736 | token_ = new ::std::string; |
michael@0 | 3737 | } |
michael@0 | 3738 | return token_; |
michael@0 | 3739 | } |
michael@0 | 3740 | inline ::std::string* ClientDownloadResponse::release_token() { |
michael@0 | 3741 | clear_has_token(); |
michael@0 | 3742 | if (token_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3743 | return NULL; |
michael@0 | 3744 | } else { |
michael@0 | 3745 | ::std::string* temp = token_; |
michael@0 | 3746 | token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 3747 | return temp; |
michael@0 | 3748 | } |
michael@0 | 3749 | } |
michael@0 | 3750 | |
michael@0 | 3751 | // ------------------------------------------------------------------- |
michael@0 | 3752 | |
michael@0 | 3753 | // ClientDownloadReport_UserInformation |
michael@0 | 3754 | |
michael@0 | 3755 | // optional string email = 1; |
michael@0 | 3756 | inline bool ClientDownloadReport_UserInformation::has_email() const { |
michael@0 | 3757 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 3758 | } |
michael@0 | 3759 | inline void ClientDownloadReport_UserInformation::set_has_email() { |
michael@0 | 3760 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 3761 | } |
michael@0 | 3762 | inline void ClientDownloadReport_UserInformation::clear_has_email() { |
michael@0 | 3763 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 3764 | } |
michael@0 | 3765 | inline void ClientDownloadReport_UserInformation::clear_email() { |
michael@0 | 3766 | if (email_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3767 | email_->clear(); |
michael@0 | 3768 | } |
michael@0 | 3769 | clear_has_email(); |
michael@0 | 3770 | } |
michael@0 | 3771 | inline const ::std::string& ClientDownloadReport_UserInformation::email() const { |
michael@0 | 3772 | return *email_; |
michael@0 | 3773 | } |
michael@0 | 3774 | inline void ClientDownloadReport_UserInformation::set_email(const ::std::string& value) { |
michael@0 | 3775 | set_has_email(); |
michael@0 | 3776 | if (email_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3777 | email_ = new ::std::string; |
michael@0 | 3778 | } |
michael@0 | 3779 | email_->assign(value); |
michael@0 | 3780 | } |
michael@0 | 3781 | inline void ClientDownloadReport_UserInformation::set_email(const char* value) { |
michael@0 | 3782 | set_has_email(); |
michael@0 | 3783 | if (email_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3784 | email_ = new ::std::string; |
michael@0 | 3785 | } |
michael@0 | 3786 | email_->assign(value); |
michael@0 | 3787 | } |
michael@0 | 3788 | inline void ClientDownloadReport_UserInformation::set_email(const char* value, size_t size) { |
michael@0 | 3789 | set_has_email(); |
michael@0 | 3790 | if (email_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3791 | email_ = new ::std::string; |
michael@0 | 3792 | } |
michael@0 | 3793 | email_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 3794 | } |
michael@0 | 3795 | inline ::std::string* ClientDownloadReport_UserInformation::mutable_email() { |
michael@0 | 3796 | set_has_email(); |
michael@0 | 3797 | if (email_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3798 | email_ = new ::std::string; |
michael@0 | 3799 | } |
michael@0 | 3800 | return email_; |
michael@0 | 3801 | } |
michael@0 | 3802 | inline ::std::string* ClientDownloadReport_UserInformation::release_email() { |
michael@0 | 3803 | clear_has_email(); |
michael@0 | 3804 | if (email_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3805 | return NULL; |
michael@0 | 3806 | } else { |
michael@0 | 3807 | ::std::string* temp = email_; |
michael@0 | 3808 | email_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 3809 | return temp; |
michael@0 | 3810 | } |
michael@0 | 3811 | } |
michael@0 | 3812 | |
michael@0 | 3813 | // ------------------------------------------------------------------- |
michael@0 | 3814 | |
michael@0 | 3815 | // ClientDownloadReport |
michael@0 | 3816 | |
michael@0 | 3817 | // optional .safe_browsing.ClientDownloadReport.Reason reason = 1; |
michael@0 | 3818 | inline bool ClientDownloadReport::has_reason() const { |
michael@0 | 3819 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 3820 | } |
michael@0 | 3821 | inline void ClientDownloadReport::set_has_reason() { |
michael@0 | 3822 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 3823 | } |
michael@0 | 3824 | inline void ClientDownloadReport::clear_has_reason() { |
michael@0 | 3825 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 3826 | } |
michael@0 | 3827 | inline void ClientDownloadReport::clear_reason() { |
michael@0 | 3828 | reason_ = 0; |
michael@0 | 3829 | clear_has_reason(); |
michael@0 | 3830 | } |
michael@0 | 3831 | inline ::safe_browsing::ClientDownloadReport_Reason ClientDownloadReport::reason() const { |
michael@0 | 3832 | return static_cast< ::safe_browsing::ClientDownloadReport_Reason >(reason_); |
michael@0 | 3833 | } |
michael@0 | 3834 | inline void ClientDownloadReport::set_reason(::safe_browsing::ClientDownloadReport_Reason value) { |
michael@0 | 3835 | GOOGLE_DCHECK(::safe_browsing::ClientDownloadReport_Reason_IsValid(value)); |
michael@0 | 3836 | set_has_reason(); |
michael@0 | 3837 | reason_ = value; |
michael@0 | 3838 | } |
michael@0 | 3839 | |
michael@0 | 3840 | // optional .safe_browsing.ClientDownloadRequest download_request = 2; |
michael@0 | 3841 | inline bool ClientDownloadReport::has_download_request() const { |
michael@0 | 3842 | return (_has_bits_[0] & 0x00000002u) != 0; |
michael@0 | 3843 | } |
michael@0 | 3844 | inline void ClientDownloadReport::set_has_download_request() { |
michael@0 | 3845 | _has_bits_[0] |= 0x00000002u; |
michael@0 | 3846 | } |
michael@0 | 3847 | inline void ClientDownloadReport::clear_has_download_request() { |
michael@0 | 3848 | _has_bits_[0] &= ~0x00000002u; |
michael@0 | 3849 | } |
michael@0 | 3850 | inline void ClientDownloadReport::clear_download_request() { |
michael@0 | 3851 | if (download_request_ != NULL) download_request_->::safe_browsing::ClientDownloadRequest::Clear(); |
michael@0 | 3852 | clear_has_download_request(); |
michael@0 | 3853 | } |
michael@0 | 3854 | inline const ::safe_browsing::ClientDownloadRequest& ClientDownloadReport::download_request() const { |
michael@0 | 3855 | return download_request_ != NULL ? *download_request_ : *default_instance_->download_request_; |
michael@0 | 3856 | } |
michael@0 | 3857 | inline ::safe_browsing::ClientDownloadRequest* ClientDownloadReport::mutable_download_request() { |
michael@0 | 3858 | set_has_download_request(); |
michael@0 | 3859 | if (download_request_ == NULL) download_request_ = new ::safe_browsing::ClientDownloadRequest; |
michael@0 | 3860 | return download_request_; |
michael@0 | 3861 | } |
michael@0 | 3862 | inline ::safe_browsing::ClientDownloadRequest* ClientDownloadReport::release_download_request() { |
michael@0 | 3863 | clear_has_download_request(); |
michael@0 | 3864 | ::safe_browsing::ClientDownloadRequest* temp = download_request_; |
michael@0 | 3865 | download_request_ = NULL; |
michael@0 | 3866 | return temp; |
michael@0 | 3867 | } |
michael@0 | 3868 | |
michael@0 | 3869 | // optional .safe_browsing.ClientDownloadReport.UserInformation user_information = 3; |
michael@0 | 3870 | inline bool ClientDownloadReport::has_user_information() const { |
michael@0 | 3871 | return (_has_bits_[0] & 0x00000004u) != 0; |
michael@0 | 3872 | } |
michael@0 | 3873 | inline void ClientDownloadReport::set_has_user_information() { |
michael@0 | 3874 | _has_bits_[0] |= 0x00000004u; |
michael@0 | 3875 | } |
michael@0 | 3876 | inline void ClientDownloadReport::clear_has_user_information() { |
michael@0 | 3877 | _has_bits_[0] &= ~0x00000004u; |
michael@0 | 3878 | } |
michael@0 | 3879 | inline void ClientDownloadReport::clear_user_information() { |
michael@0 | 3880 | if (user_information_ != NULL) user_information_->::safe_browsing::ClientDownloadReport_UserInformation::Clear(); |
michael@0 | 3881 | clear_has_user_information(); |
michael@0 | 3882 | } |
michael@0 | 3883 | inline const ::safe_browsing::ClientDownloadReport_UserInformation& ClientDownloadReport::user_information() const { |
michael@0 | 3884 | return user_information_ != NULL ? *user_information_ : *default_instance_->user_information_; |
michael@0 | 3885 | } |
michael@0 | 3886 | inline ::safe_browsing::ClientDownloadReport_UserInformation* ClientDownloadReport::mutable_user_information() { |
michael@0 | 3887 | set_has_user_information(); |
michael@0 | 3888 | if (user_information_ == NULL) user_information_ = new ::safe_browsing::ClientDownloadReport_UserInformation; |
michael@0 | 3889 | return user_information_; |
michael@0 | 3890 | } |
michael@0 | 3891 | inline ::safe_browsing::ClientDownloadReport_UserInformation* ClientDownloadReport::release_user_information() { |
michael@0 | 3892 | clear_has_user_information(); |
michael@0 | 3893 | ::safe_browsing::ClientDownloadReport_UserInformation* temp = user_information_; |
michael@0 | 3894 | user_information_ = NULL; |
michael@0 | 3895 | return temp; |
michael@0 | 3896 | } |
michael@0 | 3897 | |
michael@0 | 3898 | // optional bytes comment = 4; |
michael@0 | 3899 | inline bool ClientDownloadReport::has_comment() const { |
michael@0 | 3900 | return (_has_bits_[0] & 0x00000008u) != 0; |
michael@0 | 3901 | } |
michael@0 | 3902 | inline void ClientDownloadReport::set_has_comment() { |
michael@0 | 3903 | _has_bits_[0] |= 0x00000008u; |
michael@0 | 3904 | } |
michael@0 | 3905 | inline void ClientDownloadReport::clear_has_comment() { |
michael@0 | 3906 | _has_bits_[0] &= ~0x00000008u; |
michael@0 | 3907 | } |
michael@0 | 3908 | inline void ClientDownloadReport::clear_comment() { |
michael@0 | 3909 | if (comment_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3910 | comment_->clear(); |
michael@0 | 3911 | } |
michael@0 | 3912 | clear_has_comment(); |
michael@0 | 3913 | } |
michael@0 | 3914 | inline const ::std::string& ClientDownloadReport::comment() const { |
michael@0 | 3915 | return *comment_; |
michael@0 | 3916 | } |
michael@0 | 3917 | inline void ClientDownloadReport::set_comment(const ::std::string& value) { |
michael@0 | 3918 | set_has_comment(); |
michael@0 | 3919 | if (comment_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3920 | comment_ = new ::std::string; |
michael@0 | 3921 | } |
michael@0 | 3922 | comment_->assign(value); |
michael@0 | 3923 | } |
michael@0 | 3924 | inline void ClientDownloadReport::set_comment(const char* value) { |
michael@0 | 3925 | set_has_comment(); |
michael@0 | 3926 | if (comment_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3927 | comment_ = new ::std::string; |
michael@0 | 3928 | } |
michael@0 | 3929 | comment_->assign(value); |
michael@0 | 3930 | } |
michael@0 | 3931 | inline void ClientDownloadReport::set_comment(const void* value, size_t size) { |
michael@0 | 3932 | set_has_comment(); |
michael@0 | 3933 | if (comment_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3934 | comment_ = new ::std::string; |
michael@0 | 3935 | } |
michael@0 | 3936 | comment_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 3937 | } |
michael@0 | 3938 | inline ::std::string* ClientDownloadReport::mutable_comment() { |
michael@0 | 3939 | set_has_comment(); |
michael@0 | 3940 | if (comment_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3941 | comment_ = new ::std::string; |
michael@0 | 3942 | } |
michael@0 | 3943 | return comment_; |
michael@0 | 3944 | } |
michael@0 | 3945 | inline ::std::string* ClientDownloadReport::release_comment() { |
michael@0 | 3946 | clear_has_comment(); |
michael@0 | 3947 | if (comment_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 3948 | return NULL; |
michael@0 | 3949 | } else { |
michael@0 | 3950 | ::std::string* temp = comment_; |
michael@0 | 3951 | comment_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 3952 | return temp; |
michael@0 | 3953 | } |
michael@0 | 3954 | } |
michael@0 | 3955 | |
michael@0 | 3956 | // optional .safe_browsing.ClientDownloadResponse download_response = 5; |
michael@0 | 3957 | inline bool ClientDownloadReport::has_download_response() const { |
michael@0 | 3958 | return (_has_bits_[0] & 0x00000010u) != 0; |
michael@0 | 3959 | } |
michael@0 | 3960 | inline void ClientDownloadReport::set_has_download_response() { |
michael@0 | 3961 | _has_bits_[0] |= 0x00000010u; |
michael@0 | 3962 | } |
michael@0 | 3963 | inline void ClientDownloadReport::clear_has_download_response() { |
michael@0 | 3964 | _has_bits_[0] &= ~0x00000010u; |
michael@0 | 3965 | } |
michael@0 | 3966 | inline void ClientDownloadReport::clear_download_response() { |
michael@0 | 3967 | if (download_response_ != NULL) download_response_->::safe_browsing::ClientDownloadResponse::Clear(); |
michael@0 | 3968 | clear_has_download_response(); |
michael@0 | 3969 | } |
michael@0 | 3970 | inline const ::safe_browsing::ClientDownloadResponse& ClientDownloadReport::download_response() const { |
michael@0 | 3971 | return download_response_ != NULL ? *download_response_ : *default_instance_->download_response_; |
michael@0 | 3972 | } |
michael@0 | 3973 | inline ::safe_browsing::ClientDownloadResponse* ClientDownloadReport::mutable_download_response() { |
michael@0 | 3974 | set_has_download_response(); |
michael@0 | 3975 | if (download_response_ == NULL) download_response_ = new ::safe_browsing::ClientDownloadResponse; |
michael@0 | 3976 | return download_response_; |
michael@0 | 3977 | } |
michael@0 | 3978 | inline ::safe_browsing::ClientDownloadResponse* ClientDownloadReport::release_download_response() { |
michael@0 | 3979 | clear_has_download_response(); |
michael@0 | 3980 | ::safe_browsing::ClientDownloadResponse* temp = download_response_; |
michael@0 | 3981 | download_response_ = NULL; |
michael@0 | 3982 | return temp; |
michael@0 | 3983 | } |
michael@0 | 3984 | |
michael@0 | 3985 | // ------------------------------------------------------------------- |
michael@0 | 3986 | |
michael@0 | 3987 | // ClientUploadResponse |
michael@0 | 3988 | |
michael@0 | 3989 | // optional .safe_browsing.ClientUploadResponse.UploadStatus status = 1; |
michael@0 | 3990 | inline bool ClientUploadResponse::has_status() const { |
michael@0 | 3991 | return (_has_bits_[0] & 0x00000001u) != 0; |
michael@0 | 3992 | } |
michael@0 | 3993 | inline void ClientUploadResponse::set_has_status() { |
michael@0 | 3994 | _has_bits_[0] |= 0x00000001u; |
michael@0 | 3995 | } |
michael@0 | 3996 | inline void ClientUploadResponse::clear_has_status() { |
michael@0 | 3997 | _has_bits_[0] &= ~0x00000001u; |
michael@0 | 3998 | } |
michael@0 | 3999 | inline void ClientUploadResponse::clear_status() { |
michael@0 | 4000 | status_ = 0; |
michael@0 | 4001 | clear_has_status(); |
michael@0 | 4002 | } |
michael@0 | 4003 | inline ::safe_browsing::ClientUploadResponse_UploadStatus ClientUploadResponse::status() const { |
michael@0 | 4004 | return static_cast< ::safe_browsing::ClientUploadResponse_UploadStatus >(status_); |
michael@0 | 4005 | } |
michael@0 | 4006 | inline void ClientUploadResponse::set_status(::safe_browsing::ClientUploadResponse_UploadStatus value) { |
michael@0 | 4007 | GOOGLE_DCHECK(::safe_browsing::ClientUploadResponse_UploadStatus_IsValid(value)); |
michael@0 | 4008 | set_has_status(); |
michael@0 | 4009 | status_ = value; |
michael@0 | 4010 | } |
michael@0 | 4011 | |
michael@0 | 4012 | // optional string permalink = 2; |
michael@0 | 4013 | inline bool ClientUploadResponse::has_permalink() const { |
michael@0 | 4014 | return (_has_bits_[0] & 0x00000002u) != 0; |
michael@0 | 4015 | } |
michael@0 | 4016 | inline void ClientUploadResponse::set_has_permalink() { |
michael@0 | 4017 | _has_bits_[0] |= 0x00000002u; |
michael@0 | 4018 | } |
michael@0 | 4019 | inline void ClientUploadResponse::clear_has_permalink() { |
michael@0 | 4020 | _has_bits_[0] &= ~0x00000002u; |
michael@0 | 4021 | } |
michael@0 | 4022 | inline void ClientUploadResponse::clear_permalink() { |
michael@0 | 4023 | if (permalink_ != &::google::protobuf::internal::kEmptyString) { |
michael@0 | 4024 | permalink_->clear(); |
michael@0 | 4025 | } |
michael@0 | 4026 | clear_has_permalink(); |
michael@0 | 4027 | } |
michael@0 | 4028 | inline const ::std::string& ClientUploadResponse::permalink() const { |
michael@0 | 4029 | return *permalink_; |
michael@0 | 4030 | } |
michael@0 | 4031 | inline void ClientUploadResponse::set_permalink(const ::std::string& value) { |
michael@0 | 4032 | set_has_permalink(); |
michael@0 | 4033 | if (permalink_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 4034 | permalink_ = new ::std::string; |
michael@0 | 4035 | } |
michael@0 | 4036 | permalink_->assign(value); |
michael@0 | 4037 | } |
michael@0 | 4038 | inline void ClientUploadResponse::set_permalink(const char* value) { |
michael@0 | 4039 | set_has_permalink(); |
michael@0 | 4040 | if (permalink_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 4041 | permalink_ = new ::std::string; |
michael@0 | 4042 | } |
michael@0 | 4043 | permalink_->assign(value); |
michael@0 | 4044 | } |
michael@0 | 4045 | inline void ClientUploadResponse::set_permalink(const char* value, size_t size) { |
michael@0 | 4046 | set_has_permalink(); |
michael@0 | 4047 | if (permalink_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 4048 | permalink_ = new ::std::string; |
michael@0 | 4049 | } |
michael@0 | 4050 | permalink_->assign(reinterpret_cast<const char*>(value), size); |
michael@0 | 4051 | } |
michael@0 | 4052 | inline ::std::string* ClientUploadResponse::mutable_permalink() { |
michael@0 | 4053 | set_has_permalink(); |
michael@0 | 4054 | if (permalink_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 4055 | permalink_ = new ::std::string; |
michael@0 | 4056 | } |
michael@0 | 4057 | return permalink_; |
michael@0 | 4058 | } |
michael@0 | 4059 | inline ::std::string* ClientUploadResponse::release_permalink() { |
michael@0 | 4060 | clear_has_permalink(); |
michael@0 | 4061 | if (permalink_ == &::google::protobuf::internal::kEmptyString) { |
michael@0 | 4062 | return NULL; |
michael@0 | 4063 | } else { |
michael@0 | 4064 | ::std::string* temp = permalink_; |
michael@0 | 4065 | permalink_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
michael@0 | 4066 | return temp; |
michael@0 | 4067 | } |
michael@0 | 4068 | } |
michael@0 | 4069 | |
michael@0 | 4070 | |
michael@0 | 4071 | // @@protoc_insertion_point(namespace_scope) |
michael@0 | 4072 | |
michael@0 | 4073 | } // namespace safe_browsing |
michael@0 | 4074 | |
michael@0 | 4075 | // @@protoc_insertion_point(global_scope) |
michael@0 | 4076 | |
michael@0 | 4077 | #endif // PROTOBUF_csd_2eproto__INCLUDED |