1
// Generated by the protocol buffer compiler. DO NOT EDIT!
2
// source: net/instaweb/rewriter/cached_result.proto
4
#ifndef PROTOBUF_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto__INCLUDED
5
#define PROTOBUF_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto__INCLUDED
9
#include <google/protobuf/stubs/common.h>
11
#if GOOGLE_PROTOBUF_VERSION < 2005000
12
#error This file was generated by a newer version of protoc which is
13
#error incompatible with your Protocol Buffer headers. Please update
16
#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17
#error This file was generated by an older version of protoc which is
18
#error incompatible with your Protocol Buffer headers. Please
19
#error regenerate this file with a newer version of protoc.
22
#include <google/protobuf/generated_message_util.h>
23
#include <google/protobuf/message.h>
24
#include <google/protobuf/repeated_field.h>
25
#include <google/protobuf/extension_set.h>
26
#include <google/protobuf/unknown_field_set.h>
27
#include <google/protobuf/generated_enum_reflection.h>
28
#include <google/protobuf/unknown_field_set.h>
29
#include "net/instaweb/spriter/public/image_spriter.pb.h"
30
// @@protoc_insertion_point(includes)
32
namespace net_instaweb {
34
// Internal implementation detail -- do not call these.
35
void protobuf_AddDesc_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
36
void protobuf_AssignDesc_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
37
void protobuf_ShutdownFile_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
42
class OutputPartitions;
43
class ResourceContext;
46
InputInfo_Type_CACHED = 1,
47
InputInfo_Type_FILE_BASED = 2,
48
InputInfo_Type_ALWAYS_VALID = 3
50
bool InputInfo_Type_IsValid(int value);
51
const InputInfo_Type InputInfo_Type_Type_MIN = InputInfo_Type_CACHED;
52
const InputInfo_Type InputInfo_Type_Type_MAX = InputInfo_Type_ALWAYS_VALID;
53
const int InputInfo_Type_Type_ARRAYSIZE = InputInfo_Type_Type_MAX + 1;
55
const ::google::protobuf::EnumDescriptor* InputInfo_Type_descriptor();
56
inline const ::std::string& InputInfo_Type_Name(InputInfo_Type value) {
57
return ::google::protobuf::internal::NameOfEnum(
58
InputInfo_Type_descriptor(), value);
60
inline bool InputInfo_Type_Parse(
61
const ::std::string& name, InputInfo_Type* value) {
62
return ::google::protobuf::internal::ParseNamedEnum<InputInfo_Type>(
63
InputInfo_Type_descriptor(), name, value);
65
enum ResourceContext_LibWebpLevel {
66
ResourceContext_LibWebpLevel_LIBWEBP_NONE = 0,
67
ResourceContext_LibWebpLevel_LIBWEBP_LOSSY_ONLY = 1,
68
ResourceContext_LibWebpLevel_LIBWEBP_LOSSY_LOSSLESS_ALPHA = 2
70
bool ResourceContext_LibWebpLevel_IsValid(int value);
71
const ResourceContext_LibWebpLevel ResourceContext_LibWebpLevel_LibWebpLevel_MIN = ResourceContext_LibWebpLevel_LIBWEBP_NONE;
72
const ResourceContext_LibWebpLevel ResourceContext_LibWebpLevel_LibWebpLevel_MAX = ResourceContext_LibWebpLevel_LIBWEBP_LOSSY_LOSSLESS_ALPHA;
73
const int ResourceContext_LibWebpLevel_LibWebpLevel_ARRAYSIZE = ResourceContext_LibWebpLevel_LibWebpLevel_MAX + 1;
75
const ::google::protobuf::EnumDescriptor* ResourceContext_LibWebpLevel_descriptor();
76
inline const ::std::string& ResourceContext_LibWebpLevel_Name(ResourceContext_LibWebpLevel value) {
77
return ::google::protobuf::internal::NameOfEnum(
78
ResourceContext_LibWebpLevel_descriptor(), value);
80
inline bool ResourceContext_LibWebpLevel_Parse(
81
const ::std::string& name, ResourceContext_LibWebpLevel* value) {
82
return ::google::protobuf::internal::ParseNamedEnum<ResourceContext_LibWebpLevel>(
83
ResourceContext_LibWebpLevel_descriptor(), name, value);
85
// ===================================================================
87
class ImageDim : public ::google::protobuf::Message {
92
ImageDim(const ImageDim& from);
94
inline ImageDim& operator=(const ImageDim& from) {
99
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
100
return _unknown_fields_;
103
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
104
return &_unknown_fields_;
107
static const ::google::protobuf::Descriptor* descriptor();
108
static const ImageDim& default_instance();
110
void Swap(ImageDim* other);
112
// implements Message ----------------------------------------------
114
ImageDim* New() const;
115
void CopyFrom(const ::google::protobuf::Message& from);
116
void MergeFrom(const ::google::protobuf::Message& from);
117
void CopyFrom(const ImageDim& from);
118
void MergeFrom(const ImageDim& from);
120
bool IsInitialized() const;
122
int ByteSize() const;
123
bool MergePartialFromCodedStream(
124
::google::protobuf::io::CodedInputStream* input);
125
void SerializeWithCachedSizes(
126
::google::protobuf::io::CodedOutputStream* output) const;
127
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
128
int GetCachedSize() const { return _cached_size_; }
132
void SetCachedSize(int size) const;
135
::google::protobuf::Metadata GetMetadata() const;
137
// nested types ----------------------------------------------------
139
// accessors -------------------------------------------------------
141
// optional int32 width = 1 [default = -1];
142
inline bool has_width() const;
143
inline void clear_width();
144
static const int kWidthFieldNumber = 1;
145
inline ::google::protobuf::int32 width() const;
146
inline void set_width(::google::protobuf::int32 value);
148
// optional int32 height = 2 [default = -1];
149
inline bool has_height() const;
150
inline void clear_height();
151
static const int kHeightFieldNumber = 2;
152
inline ::google::protobuf::int32 height() const;
153
inline void set_height(::google::protobuf::int32 value);
155
// @@protoc_insertion_point(class_scope:net_instaweb.ImageDim)
157
inline void set_has_width();
158
inline void clear_has_width();
159
inline void set_has_height();
160
inline void clear_has_height();
162
::google::protobuf::UnknownFieldSet _unknown_fields_;
164
::google::protobuf::int32 width_;
165
::google::protobuf::int32 height_;
167
mutable int _cached_size_;
168
::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
170
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
171
friend void protobuf_AssignDesc_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
172
friend void protobuf_ShutdownFile_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
174
void InitAsDefaultInstance();
175
static ImageDim* default_instance_;
177
// -------------------------------------------------------------------
179
class InputInfo : public ::google::protobuf::Message {
182
virtual ~InputInfo();
184
InputInfo(const InputInfo& from);
186
inline InputInfo& operator=(const InputInfo& from) {
191
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
192
return _unknown_fields_;
195
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
196
return &_unknown_fields_;
199
static const ::google::protobuf::Descriptor* descriptor();
200
static const InputInfo& default_instance();
202
void Swap(InputInfo* other);
204
// implements Message ----------------------------------------------
206
InputInfo* New() const;
207
void CopyFrom(const ::google::protobuf::Message& from);
208
void MergeFrom(const ::google::protobuf::Message& from);
209
void CopyFrom(const InputInfo& from);
210
void MergeFrom(const InputInfo& from);
212
bool IsInitialized() const;
214
int ByteSize() const;
215
bool MergePartialFromCodedStream(
216
::google::protobuf::io::CodedInputStream* input);
217
void SerializeWithCachedSizes(
218
::google::protobuf::io::CodedOutputStream* output) const;
219
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
220
int GetCachedSize() const { return _cached_size_; }
224
void SetCachedSize(int size) const;
227
::google::protobuf::Metadata GetMetadata() const;
229
// nested types ----------------------------------------------------
231
typedef InputInfo_Type Type;
232
static const Type CACHED = InputInfo_Type_CACHED;
233
static const Type FILE_BASED = InputInfo_Type_FILE_BASED;
234
static const Type ALWAYS_VALID = InputInfo_Type_ALWAYS_VALID;
235
static inline bool Type_IsValid(int value) {
236
return InputInfo_Type_IsValid(value);
238
static const Type Type_MIN =
239
InputInfo_Type_Type_MIN;
240
static const Type Type_MAX =
241
InputInfo_Type_Type_MAX;
242
static const int Type_ARRAYSIZE =
243
InputInfo_Type_Type_ARRAYSIZE;
244
static inline const ::google::protobuf::EnumDescriptor*
246
return InputInfo_Type_descriptor();
248
static inline const ::std::string& Type_Name(Type value) {
249
return InputInfo_Type_Name(value);
251
static inline bool Type_Parse(const ::std::string& name,
253
return InputInfo_Type_Parse(name, value);
256
// accessors -------------------------------------------------------
258
// optional int32 index = 1;
259
inline bool has_index() const;
260
inline void clear_index();
261
static const int kIndexFieldNumber = 1;
262
inline ::google::protobuf::int32 index() const;
263
inline void set_index(::google::protobuf::int32 value);
265
// required .net_instaweb.InputInfo.Type type = 2;
266
inline bool has_type() const;
267
inline void clear_type();
268
static const int kTypeFieldNumber = 2;
269
inline ::net_instaweb::InputInfo_Type type() const;
270
inline void set_type(::net_instaweb::InputInfo_Type value);
272
// optional int64 last_modified_time_ms = 3;
273
inline bool has_last_modified_time_ms() const;
274
inline void clear_last_modified_time_ms();
275
static const int kLastModifiedTimeMsFieldNumber = 3;
276
inline ::google::protobuf::int64 last_modified_time_ms() const;
277
inline void set_last_modified_time_ms(::google::protobuf::int64 value);
279
// optional int64 expiration_time_ms = 4;
280
inline bool has_expiration_time_ms() const;
281
inline void clear_expiration_time_ms();
282
static const int kExpirationTimeMsFieldNumber = 4;
283
inline ::google::protobuf::int64 expiration_time_ms() const;
284
inline void set_expiration_time_ms(::google::protobuf::int64 value);
286
// optional string filename = 5;
287
inline bool has_filename() const;
288
inline void clear_filename();
289
static const int kFilenameFieldNumber = 5;
290
inline const ::std::string& filename() const;
291
inline void set_filename(const ::std::string& value);
292
inline void set_filename(const char* value);
293
inline void set_filename(const char* value, size_t size);
294
inline ::std::string* mutable_filename();
295
inline ::std::string* release_filename();
296
inline void set_allocated_filename(::std::string* filename);
298
// optional int64 date_ms = 6;
299
inline bool has_date_ms() const;
300
inline void clear_date_ms();
301
static const int kDateMsFieldNumber = 6;
302
inline ::google::protobuf::int64 date_ms() const;
303
inline void set_date_ms(::google::protobuf::int64 value);
305
// optional string input_content_hash = 7;
306
inline bool has_input_content_hash() const;
307
inline void clear_input_content_hash();
308
static const int kInputContentHashFieldNumber = 7;
309
inline const ::std::string& input_content_hash() const;
310
inline void set_input_content_hash(const ::std::string& value);
311
inline void set_input_content_hash(const char* value);
312
inline void set_input_content_hash(const char* value, size_t size);
313
inline ::std::string* mutable_input_content_hash();
314
inline ::std::string* release_input_content_hash();
315
inline void set_allocated_input_content_hash(::std::string* input_content_hash);
317
// optional bool disable_further_processing = 8 [default = false];
318
inline bool has_disable_further_processing() const;
319
inline void clear_disable_further_processing();
320
static const int kDisableFurtherProcessingFieldNumber = 8;
321
inline bool disable_further_processing() const;
322
inline void set_disable_further_processing(bool value);
324
// optional string url = 9;
325
inline bool has_url() const;
326
inline void clear_url();
327
static const int kUrlFieldNumber = 9;
328
inline const ::std::string& url() const;
329
inline void set_url(const ::std::string& value);
330
inline void set_url(const char* value);
331
inline void set_url(const char* value, size_t size);
332
inline ::std::string* mutable_url();
333
inline ::std::string* release_url();
334
inline void set_allocated_url(::std::string* url);
336
// @@protoc_insertion_point(class_scope:net_instaweb.InputInfo)
338
inline void set_has_index();
339
inline void clear_has_index();
340
inline void set_has_type();
341
inline void clear_has_type();
342
inline void set_has_last_modified_time_ms();
343
inline void clear_has_last_modified_time_ms();
344
inline void set_has_expiration_time_ms();
345
inline void clear_has_expiration_time_ms();
346
inline void set_has_filename();
347
inline void clear_has_filename();
348
inline void set_has_date_ms();
349
inline void clear_has_date_ms();
350
inline void set_has_input_content_hash();
351
inline void clear_has_input_content_hash();
352
inline void set_has_disable_further_processing();
353
inline void clear_has_disable_further_processing();
354
inline void set_has_url();
355
inline void clear_has_url();
357
::google::protobuf::UnknownFieldSet _unknown_fields_;
359
::google::protobuf::int32 index_;
361
::google::protobuf::int64 last_modified_time_ms_;
362
::google::protobuf::int64 expiration_time_ms_;
363
::std::string* filename_;
364
::google::protobuf::int64 date_ms_;
365
::std::string* input_content_hash_;
367
bool disable_further_processing_;
369
mutable int _cached_size_;
370
::google::protobuf::uint32 _has_bits_[(9 + 31) / 32];
372
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
373
friend void protobuf_AssignDesc_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
374
friend void protobuf_ShutdownFile_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
376
void InitAsDefaultInstance();
377
static InputInfo* default_instance_;
379
// -------------------------------------------------------------------
381
class CachedResult : public ::google::protobuf::Message {
384
virtual ~CachedResult();
386
CachedResult(const CachedResult& from);
388
inline CachedResult& operator=(const CachedResult& from) {
393
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
394
return _unknown_fields_;
397
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
398
return &_unknown_fields_;
401
static const ::google::protobuf::Descriptor* descriptor();
402
static const CachedResult& default_instance();
404
void Swap(CachedResult* other);
406
// implements Message ----------------------------------------------
408
CachedResult* New() const;
409
void CopyFrom(const ::google::protobuf::Message& from);
410
void MergeFrom(const ::google::protobuf::Message& from);
411
void CopyFrom(const CachedResult& from);
412
void MergeFrom(const CachedResult& from);
414
bool IsInitialized() const;
416
int ByteSize() const;
417
bool MergePartialFromCodedStream(
418
::google::protobuf::io::CodedInputStream* input);
419
void SerializeWithCachedSizes(
420
::google::protobuf::io::CodedOutputStream* output) const;
421
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
422
int GetCachedSize() const { return _cached_size_; }
426
void SetCachedSize(int size) const;
429
::google::protobuf::Metadata GetMetadata() const;
431
// nested types ----------------------------------------------------
433
// accessors -------------------------------------------------------
435
// optional bool optimizable = 1 [default = true];
436
inline bool has_optimizable() const;
437
inline void clear_optimizable();
438
static const int kOptimizableFieldNumber = 1;
439
inline bool optimizable() const;
440
inline void set_optimizable(bool value);
442
// optional string url = 2;
443
inline bool has_url() const;
444
inline void clear_url();
445
static const int kUrlFieldNumber = 2;
446
inline const ::std::string& url() const;
447
inline void set_url(const ::std::string& value);
448
inline void set_url(const char* value);
449
inline void set_url(const char* value, size_t size);
450
inline ::std::string* mutable_url();
451
inline ::std::string* release_url();
452
inline void set_allocated_url(::std::string* url);
454
// optional bool frozen = 5 [default = false];
455
inline bool has_frozen() const;
456
inline void clear_frozen();
457
static const int kFrozenFieldNumber = 5;
458
inline bool frozen() const;
459
inline void set_frozen(bool value);
461
// optional string hash = 6;
462
inline bool has_hash() const;
463
inline void clear_hash();
464
static const int kHashFieldNumber = 6;
465
inline const ::std::string& hash() const;
466
inline void set_hash(const ::std::string& value);
467
inline void set_hash(const char* value);
468
inline void set_hash(const char* value, size_t size);
469
inline ::std::string* mutable_hash();
470
inline ::std::string* release_hash();
471
inline void set_allocated_hash(::std::string* hash);
473
// optional string extension = 7;
474
inline bool has_extension() const;
475
inline void clear_extension();
476
static const int kExtensionFieldNumber = 7;
477
inline const ::std::string& extension() const;
478
inline void set_extension(const ::std::string& value);
479
inline void set_extension(const char* value);
480
inline void set_extension(const char* value, size_t size);
481
inline ::std::string* mutable_extension();
482
inline ::std::string* release_extension();
483
inline void set_allocated_extension(::std::string* extension);
485
// optional .net_instaweb.ImageDim image_file_dims = 11;
486
inline bool has_image_file_dims() const;
487
inline void clear_image_file_dims();
488
static const int kImageFileDimsFieldNumber = 11;
489
inline const ::net_instaweb::ImageDim& image_file_dims() const;
490
inline ::net_instaweb::ImageDim* mutable_image_file_dims();
491
inline ::net_instaweb::ImageDim* release_image_file_dims();
492
inline void set_allocated_image_file_dims(::net_instaweb::ImageDim* image_file_dims);
494
// optional bytes inlined_data = 12;
495
inline bool has_inlined_data() const;
496
inline void clear_inlined_data();
497
static const int kInlinedDataFieldNumber = 12;
498
inline const ::std::string& inlined_data() const;
499
inline void set_inlined_data(const ::std::string& value);
500
inline void set_inlined_data(const char* value);
501
inline void set_inlined_data(const void* value, size_t size);
502
inline ::std::string* mutable_inlined_data();
503
inline ::std::string* release_inlined_data();
504
inline void set_allocated_inlined_data(::std::string* inlined_data);
506
// optional .net_instaweb.spriter.SpriterResult spriter_result = 13;
507
inline bool has_spriter_result() const;
508
inline void clear_spriter_result();
509
static const int kSpriterResultFieldNumber = 13;
510
inline const ::net_instaweb::spriter::SpriterResult& spriter_result() const;
511
inline ::net_instaweb::spriter::SpriterResult* mutable_spriter_result();
512
inline ::net_instaweb::spriter::SpriterResult* release_spriter_result();
513
inline void set_allocated_spriter_result(::net_instaweb::spriter::SpriterResult* spriter_result);
515
// repeated .net_instaweb.InputInfo input = 14;
516
inline int input_size() const;
517
inline void clear_input();
518
static const int kInputFieldNumber = 14;
519
inline const ::net_instaweb::InputInfo& input(int index) const;
520
inline ::net_instaweb::InputInfo* mutable_input(int index);
521
inline ::net_instaweb::InputInfo* add_input();
522
inline const ::google::protobuf::RepeatedPtrField< ::net_instaweb::InputInfo >&
524
inline ::google::protobuf::RepeatedPtrField< ::net_instaweb::InputInfo >*
527
// optional int32 inlined_image_type = 15;
528
inline bool has_inlined_image_type() const;
529
inline void clear_inlined_image_type();
530
static const int kInlinedImageTypeFieldNumber = 15;
531
inline ::google::protobuf::int32 inlined_image_type() const;
532
inline void set_inlined_image_type(::google::protobuf::int32 value);
534
// optional bytes low_resolution_inlined_data = 16;
535
inline bool has_low_resolution_inlined_data() const;
536
inline void clear_low_resolution_inlined_data();
537
static const int kLowResolutionInlinedDataFieldNumber = 16;
538
inline const ::std::string& low_resolution_inlined_data() const;
539
inline void set_low_resolution_inlined_data(const ::std::string& value);
540
inline void set_low_resolution_inlined_data(const char* value);
541
inline void set_low_resolution_inlined_data(const void* value, size_t size);
542
inline ::std::string* mutable_low_resolution_inlined_data();
543
inline ::std::string* release_low_resolution_inlined_data();
544
inline void set_allocated_low_resolution_inlined_data(::std::string* low_resolution_inlined_data);
546
// optional int32 low_resolution_inlined_image_type = 17;
547
inline bool has_low_resolution_inlined_image_type() const;
548
inline void clear_low_resolution_inlined_image_type();
549
static const int kLowResolutionInlinedImageTypeFieldNumber = 17;
550
inline ::google::protobuf::int32 low_resolution_inlined_image_type() const;
551
inline void set_low_resolution_inlined_image_type(::google::protobuf::int32 value);
553
// optional bool url_relocatable = 18 [default = true];
554
inline bool has_url_relocatable() const;
555
inline void clear_url_relocatable();
556
static const int kUrlRelocatableFieldNumber = 18;
557
inline bool url_relocatable() const;
558
inline void set_url_relocatable(bool value);
560
// optional bool canonicalize_url = 19 [default = false];
561
inline bool has_canonicalize_url() const;
562
inline void clear_canonicalize_url();
563
static const int kCanonicalizeUrlFieldNumber = 19;
564
inline bool canonicalize_url() const;
565
inline void set_canonicalize_url(bool value);
567
// optional int64 size = 20;
568
inline bool has_size() const;
569
inline void clear_size();
570
static const int kSizeFieldNumber = 20;
571
inline ::google::protobuf::int64 size() const;
572
inline void set_size(::google::protobuf::int64 value);
574
// repeated string debug_message = 21;
575
inline int debug_message_size() const;
576
inline void clear_debug_message();
577
static const int kDebugMessageFieldNumber = 21;
578
inline const ::std::string& debug_message(int index) const;
579
inline ::std::string* mutable_debug_message(int index);
580
inline void set_debug_message(int index, const ::std::string& value);
581
inline void set_debug_message(int index, const char* value);
582
inline void set_debug_message(int index, const char* value, size_t size);
583
inline ::std::string* add_debug_message();
584
inline void add_debug_message(const ::std::string& value);
585
inline void add_debug_message(const char* value);
586
inline void add_debug_message(const char* value, size_t size);
587
inline const ::google::protobuf::RepeatedPtrField< ::std::string>& debug_message() const;
588
inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_debug_message();
590
// optional .net_instaweb.ResourceContext.LibWebpLevel minimal_webp_support = 22 [default = LIBWEBP_LOSSY_ONLY];
591
inline bool has_minimal_webp_support() const;
592
inline void clear_minimal_webp_support();
593
static const int kMinimalWebpSupportFieldNumber = 22;
594
inline ::net_instaweb::ResourceContext_LibWebpLevel minimal_webp_support() const;
595
inline void set_minimal_webp_support(::net_instaweb::ResourceContext_LibWebpLevel value);
597
// @@protoc_insertion_point(class_scope:net_instaweb.CachedResult)
599
inline void set_has_optimizable();
600
inline void clear_has_optimizable();
601
inline void set_has_url();
602
inline void clear_has_url();
603
inline void set_has_frozen();
604
inline void clear_has_frozen();
605
inline void set_has_hash();
606
inline void clear_has_hash();
607
inline void set_has_extension();
608
inline void clear_has_extension();
609
inline void set_has_image_file_dims();
610
inline void clear_has_image_file_dims();
611
inline void set_has_inlined_data();
612
inline void clear_has_inlined_data();
613
inline void set_has_spriter_result();
614
inline void clear_has_spriter_result();
615
inline void set_has_inlined_image_type();
616
inline void clear_has_inlined_image_type();
617
inline void set_has_low_resolution_inlined_data();
618
inline void clear_has_low_resolution_inlined_data();
619
inline void set_has_low_resolution_inlined_image_type();
620
inline void clear_has_low_resolution_inlined_image_type();
621
inline void set_has_url_relocatable();
622
inline void clear_has_url_relocatable();
623
inline void set_has_canonicalize_url();
624
inline void clear_has_canonicalize_url();
625
inline void set_has_size();
626
inline void clear_has_size();
627
inline void set_has_minimal_webp_support();
628
inline void clear_has_minimal_webp_support();
630
::google::protobuf::UnknownFieldSet _unknown_fields_;
633
::std::string* hash_;
634
::std::string* extension_;
635
::net_instaweb::ImageDim* image_file_dims_;
636
::std::string* inlined_data_;
637
::net_instaweb::spriter::SpriterResult* spriter_result_;
640
bool url_relocatable_;
641
bool canonicalize_url_;
642
::google::protobuf::int32 inlined_image_type_;
643
::google::protobuf::RepeatedPtrField< ::net_instaweb::InputInfo > input_;
644
::std::string* low_resolution_inlined_data_;
645
::google::protobuf::int32 low_resolution_inlined_image_type_;
646
int minimal_webp_support_;
647
::google::protobuf::int64 size_;
648
::google::protobuf::RepeatedPtrField< ::std::string> debug_message_;
650
mutable int _cached_size_;
651
::google::protobuf::uint32 _has_bits_[(17 + 31) / 32];
653
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
654
friend void protobuf_AssignDesc_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
655
friend void protobuf_ShutdownFile_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
657
void InitAsDefaultInstance();
658
static CachedResult* default_instance_;
660
// -------------------------------------------------------------------
662
class OutputPartitions : public ::google::protobuf::Message {
665
virtual ~OutputPartitions();
667
OutputPartitions(const OutputPartitions& from);
669
inline OutputPartitions& operator=(const OutputPartitions& from) {
674
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
675
return _unknown_fields_;
678
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
679
return &_unknown_fields_;
682
static const ::google::protobuf::Descriptor* descriptor();
683
static const OutputPartitions& default_instance();
685
void Swap(OutputPartitions* other);
687
// implements Message ----------------------------------------------
689
OutputPartitions* New() const;
690
void CopyFrom(const ::google::protobuf::Message& from);
691
void MergeFrom(const ::google::protobuf::Message& from);
692
void CopyFrom(const OutputPartitions& from);
693
void MergeFrom(const OutputPartitions& from);
695
bool IsInitialized() const;
697
int ByteSize() const;
698
bool MergePartialFromCodedStream(
699
::google::protobuf::io::CodedInputStream* input);
700
void SerializeWithCachedSizes(
701
::google::protobuf::io::CodedOutputStream* output) const;
702
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
703
int GetCachedSize() const { return _cached_size_; }
707
void SetCachedSize(int size) const;
710
::google::protobuf::Metadata GetMetadata() const;
712
// nested types ----------------------------------------------------
714
// accessors -------------------------------------------------------
716
// repeated .net_instaweb.CachedResult partition = 1;
717
inline int partition_size() const;
718
inline void clear_partition();
719
static const int kPartitionFieldNumber = 1;
720
inline const ::net_instaweb::CachedResult& partition(int index) const;
721
inline ::net_instaweb::CachedResult* mutable_partition(int index);
722
inline ::net_instaweb::CachedResult* add_partition();
723
inline const ::google::protobuf::RepeatedPtrField< ::net_instaweb::CachedResult >&
725
inline ::google::protobuf::RepeatedPtrField< ::net_instaweb::CachedResult >*
728
// repeated .net_instaweb.InputInfo other_dependency = 2;
729
inline int other_dependency_size() const;
730
inline void clear_other_dependency();
731
static const int kOtherDependencyFieldNumber = 2;
732
inline const ::net_instaweb::InputInfo& other_dependency(int index) const;
733
inline ::net_instaweb::InputInfo* mutable_other_dependency(int index);
734
inline ::net_instaweb::InputInfo* add_other_dependency();
735
inline const ::google::protobuf::RepeatedPtrField< ::net_instaweb::InputInfo >&
736
other_dependency() const;
737
inline ::google::protobuf::RepeatedPtrField< ::net_instaweb::InputInfo >*
738
mutable_other_dependency();
740
// repeated string debug_message = 3;
741
inline int debug_message_size() const;
742
inline void clear_debug_message();
743
static const int kDebugMessageFieldNumber = 3;
744
inline const ::std::string& debug_message(int index) const;
745
inline ::std::string* mutable_debug_message(int index);
746
inline void set_debug_message(int index, const ::std::string& value);
747
inline void set_debug_message(int index, const char* value);
748
inline void set_debug_message(int index, const char* value, size_t size);
749
inline ::std::string* add_debug_message();
750
inline void add_debug_message(const ::std::string& value);
751
inline void add_debug_message(const char* value);
752
inline void add_debug_message(const char* value, size_t size);
753
inline const ::google::protobuf::RepeatedPtrField< ::std::string>& debug_message() const;
754
inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_debug_message();
756
// @@protoc_insertion_point(class_scope:net_instaweb.OutputPartitions)
759
::google::protobuf::UnknownFieldSet _unknown_fields_;
761
::google::protobuf::RepeatedPtrField< ::net_instaweb::CachedResult > partition_;
762
::google::protobuf::RepeatedPtrField< ::net_instaweb::InputInfo > other_dependency_;
763
::google::protobuf::RepeatedPtrField< ::std::string> debug_message_;
765
mutable int _cached_size_;
766
::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
768
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
769
friend void protobuf_AssignDesc_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
770
friend void protobuf_ShutdownFile_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
772
void InitAsDefaultInstance();
773
static OutputPartitions* default_instance_;
775
// -------------------------------------------------------------------
777
class ResourceContext : public ::google::protobuf::Message {
780
virtual ~ResourceContext();
782
ResourceContext(const ResourceContext& from);
784
inline ResourceContext& operator=(const ResourceContext& from) {
789
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
790
return _unknown_fields_;
793
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
794
return &_unknown_fields_;
797
static const ::google::protobuf::Descriptor* descriptor();
798
static const ResourceContext& default_instance();
800
void Swap(ResourceContext* other);
802
// implements Message ----------------------------------------------
804
ResourceContext* New() const;
805
void CopyFrom(const ::google::protobuf::Message& from);
806
void MergeFrom(const ::google::protobuf::Message& from);
807
void CopyFrom(const ResourceContext& from);
808
void MergeFrom(const ResourceContext& from);
810
bool IsInitialized() const;
812
int ByteSize() const;
813
bool MergePartialFromCodedStream(
814
::google::protobuf::io::CodedInputStream* input);
815
void SerializeWithCachedSizes(
816
::google::protobuf::io::CodedOutputStream* output) const;
817
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
818
int GetCachedSize() const { return _cached_size_; }
822
void SetCachedSize(int size) const;
825
::google::protobuf::Metadata GetMetadata() const;
827
// nested types ----------------------------------------------------
829
typedef ResourceContext_LibWebpLevel LibWebpLevel;
830
static const LibWebpLevel LIBWEBP_NONE = ResourceContext_LibWebpLevel_LIBWEBP_NONE;
831
static const LibWebpLevel LIBWEBP_LOSSY_ONLY = ResourceContext_LibWebpLevel_LIBWEBP_LOSSY_ONLY;
832
static const LibWebpLevel LIBWEBP_LOSSY_LOSSLESS_ALPHA = ResourceContext_LibWebpLevel_LIBWEBP_LOSSY_LOSSLESS_ALPHA;
833
static inline bool LibWebpLevel_IsValid(int value) {
834
return ResourceContext_LibWebpLevel_IsValid(value);
836
static const LibWebpLevel LibWebpLevel_MIN =
837
ResourceContext_LibWebpLevel_LibWebpLevel_MIN;
838
static const LibWebpLevel LibWebpLevel_MAX =
839
ResourceContext_LibWebpLevel_LibWebpLevel_MAX;
840
static const int LibWebpLevel_ARRAYSIZE =
841
ResourceContext_LibWebpLevel_LibWebpLevel_ARRAYSIZE;
842
static inline const ::google::protobuf::EnumDescriptor*
843
LibWebpLevel_descriptor() {
844
return ResourceContext_LibWebpLevel_descriptor();
846
static inline const ::std::string& LibWebpLevel_Name(LibWebpLevel value) {
847
return ResourceContext_LibWebpLevel_Name(value);
849
static inline bool LibWebpLevel_Parse(const ::std::string& name,
850
LibWebpLevel* value) {
851
return ResourceContext_LibWebpLevel_Parse(name, value);
854
// accessors -------------------------------------------------------
856
// optional .net_instaweb.ImageDim desired_image_dims = 1;
857
inline bool has_desired_image_dims() const;
858
inline void clear_desired_image_dims();
859
static const int kDesiredImageDimsFieldNumber = 1;
860
inline const ::net_instaweb::ImageDim& desired_image_dims() const;
861
inline ::net_instaweb::ImageDim* mutable_desired_image_dims();
862
inline ::net_instaweb::ImageDim* release_desired_image_dims();
863
inline void set_allocated_desired_image_dims(::net_instaweb::ImageDim* desired_image_dims);
865
// optional bool attempt_webp = 2 [default = false, deprecated = true];
866
inline bool has_attempt_webp() const PROTOBUF_DEPRECATED;
867
inline void clear_attempt_webp() PROTOBUF_DEPRECATED;
868
static const int kAttemptWebpFieldNumber = 2;
869
inline bool attempt_webp() const PROTOBUF_DEPRECATED;
870
inline void set_attempt_webp(bool value) PROTOBUF_DEPRECATED;
872
// optional bool inline_images = 3 [default = true];
873
inline bool has_inline_images() const;
874
inline void clear_inline_images();
875
static const int kInlineImagesFieldNumber = 3;
876
inline bool inline_images() const;
877
inline void set_inline_images(bool value);
879
// optional bool mobile_user_agent = 4 [default = false];
880
inline bool has_mobile_user_agent() const;
881
inline void clear_mobile_user_agent();
882
static const int kMobileUserAgentFieldNumber = 4;
883
inline bool mobile_user_agent() const;
884
inline void set_mobile_user_agent(bool value);
886
// optional .net_instaweb.ResourceContext.LibWebpLevel libwebp_level = 5 [default = LIBWEBP_NONE];
887
inline bool has_libwebp_level() const;
888
inline void clear_libwebp_level();
889
static const int kLibwebpLevelFieldNumber = 5;
890
inline ::net_instaweb::ResourceContext_LibWebpLevel libwebp_level() const;
891
inline void set_libwebp_level(::net_instaweb::ResourceContext_LibWebpLevel value);
893
// optional .net_instaweb.ImageDim user_agent_screen_resolution = 6;
894
inline bool has_user_agent_screen_resolution() const;
895
inline void clear_user_agent_screen_resolution();
896
static const int kUserAgentScreenResolutionFieldNumber = 6;
897
inline const ::net_instaweb::ImageDim& user_agent_screen_resolution() const;
898
inline ::net_instaweb::ImageDim* mutable_user_agent_screen_resolution();
899
inline ::net_instaweb::ImageDim* release_user_agent_screen_resolution();
900
inline void set_allocated_user_agent_screen_resolution(::net_instaweb::ImageDim* user_agent_screen_resolution);
902
// optional bool use_small_screen_quality = 7 [default = false];
903
inline bool has_use_small_screen_quality() const;
904
inline void clear_use_small_screen_quality();
905
static const int kUseSmallScreenQualityFieldNumber = 7;
906
inline bool use_small_screen_quality() const;
907
inline void set_use_small_screen_quality(bool value);
909
// @@protoc_insertion_point(class_scope:net_instaweb.ResourceContext)
911
inline void set_has_desired_image_dims();
912
inline void clear_has_desired_image_dims();
913
inline void set_has_attempt_webp();
914
inline void clear_has_attempt_webp();
915
inline void set_has_inline_images();
916
inline void clear_has_inline_images();
917
inline void set_has_mobile_user_agent();
918
inline void clear_has_mobile_user_agent();
919
inline void set_has_libwebp_level();
920
inline void clear_has_libwebp_level();
921
inline void set_has_user_agent_screen_resolution();
922
inline void clear_has_user_agent_screen_resolution();
923
inline void set_has_use_small_screen_quality();
924
inline void clear_has_use_small_screen_quality();
926
::google::protobuf::UnknownFieldSet _unknown_fields_;
928
::net_instaweb::ImageDim* desired_image_dims_;
931
bool mobile_user_agent_;
932
bool use_small_screen_quality_;
934
::net_instaweb::ImageDim* user_agent_screen_resolution_;
936
mutable int _cached_size_;
937
::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
939
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
940
friend void protobuf_AssignDesc_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
941
friend void protobuf_ShutdownFile_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto();
943
void InitAsDefaultInstance();
944
static ResourceContext* default_instance_;
946
// ===================================================================
949
// ===================================================================
953
// optional int32 width = 1 [default = -1];
954
inline bool ImageDim::has_width() const {
955
return (_has_bits_[0] & 0x00000001u) != 0;
957
inline void ImageDim::set_has_width() {
958
_has_bits_[0] |= 0x00000001u;
960
inline void ImageDim::clear_has_width() {
961
_has_bits_[0] &= ~0x00000001u;
963
inline void ImageDim::clear_width() {
967
inline ::google::protobuf::int32 ImageDim::width() const {
970
inline void ImageDim::set_width(::google::protobuf::int32 value) {
975
// optional int32 height = 2 [default = -1];
976
inline bool ImageDim::has_height() const {
977
return (_has_bits_[0] & 0x00000002u) != 0;
979
inline void ImageDim::set_has_height() {
980
_has_bits_[0] |= 0x00000002u;
982
inline void ImageDim::clear_has_height() {
983
_has_bits_[0] &= ~0x00000002u;
985
inline void ImageDim::clear_height() {
989
inline ::google::protobuf::int32 ImageDim::height() const {
992
inline void ImageDim::set_height(::google::protobuf::int32 value) {
997
// -------------------------------------------------------------------
1001
// optional int32 index = 1;
1002
inline bool InputInfo::has_index() const {
1003
return (_has_bits_[0] & 0x00000001u) != 0;
1005
inline void InputInfo::set_has_index() {
1006
_has_bits_[0] |= 0x00000001u;
1008
inline void InputInfo::clear_has_index() {
1009
_has_bits_[0] &= ~0x00000001u;
1011
inline void InputInfo::clear_index() {
1015
inline ::google::protobuf::int32 InputInfo::index() const {
1018
inline void InputInfo::set_index(::google::protobuf::int32 value) {
1023
// required .net_instaweb.InputInfo.Type type = 2;
1024
inline bool InputInfo::has_type() const {
1025
return (_has_bits_[0] & 0x00000002u) != 0;
1027
inline void InputInfo::set_has_type() {
1028
_has_bits_[0] |= 0x00000002u;
1030
inline void InputInfo::clear_has_type() {
1031
_has_bits_[0] &= ~0x00000002u;
1033
inline void InputInfo::clear_type() {
1037
inline ::net_instaweb::InputInfo_Type InputInfo::type() const {
1038
return static_cast< ::net_instaweb::InputInfo_Type >(type_);
1040
inline void InputInfo::set_type(::net_instaweb::InputInfo_Type value) {
1041
assert(::net_instaweb::InputInfo_Type_IsValid(value));
1046
// optional int64 last_modified_time_ms = 3;
1047
inline bool InputInfo::has_last_modified_time_ms() const {
1048
return (_has_bits_[0] & 0x00000004u) != 0;
1050
inline void InputInfo::set_has_last_modified_time_ms() {
1051
_has_bits_[0] |= 0x00000004u;
1053
inline void InputInfo::clear_has_last_modified_time_ms() {
1054
_has_bits_[0] &= ~0x00000004u;
1056
inline void InputInfo::clear_last_modified_time_ms() {
1057
last_modified_time_ms_ = GOOGLE_LONGLONG(0);
1058
clear_has_last_modified_time_ms();
1060
inline ::google::protobuf::int64 InputInfo::last_modified_time_ms() const {
1061
return last_modified_time_ms_;
1063
inline void InputInfo::set_last_modified_time_ms(::google::protobuf::int64 value) {
1064
set_has_last_modified_time_ms();
1065
last_modified_time_ms_ = value;
1068
// optional int64 expiration_time_ms = 4;
1069
inline bool InputInfo::has_expiration_time_ms() const {
1070
return (_has_bits_[0] & 0x00000008u) != 0;
1072
inline void InputInfo::set_has_expiration_time_ms() {
1073
_has_bits_[0] |= 0x00000008u;
1075
inline void InputInfo::clear_has_expiration_time_ms() {
1076
_has_bits_[0] &= ~0x00000008u;
1078
inline void InputInfo::clear_expiration_time_ms() {
1079
expiration_time_ms_ = GOOGLE_LONGLONG(0);
1080
clear_has_expiration_time_ms();
1082
inline ::google::protobuf::int64 InputInfo::expiration_time_ms() const {
1083
return expiration_time_ms_;
1085
inline void InputInfo::set_expiration_time_ms(::google::protobuf::int64 value) {
1086
set_has_expiration_time_ms();
1087
expiration_time_ms_ = value;
1090
// optional string filename = 5;
1091
inline bool InputInfo::has_filename() const {
1092
return (_has_bits_[0] & 0x00000010u) != 0;
1094
inline void InputInfo::set_has_filename() {
1095
_has_bits_[0] |= 0x00000010u;
1097
inline void InputInfo::clear_has_filename() {
1098
_has_bits_[0] &= ~0x00000010u;
1100
inline void InputInfo::clear_filename() {
1101
if (filename_ != &::google::protobuf::internal::GetEmptyString()) {
1104
clear_has_filename();
1106
inline const ::std::string& InputInfo::filename() const {
1109
inline void InputInfo::set_filename(const ::std::string& value) {
1111
if (filename_ == &::google::protobuf::internal::GetEmptyString()) {
1112
filename_ = new ::std::string;
1114
filename_->assign(value);
1116
inline void InputInfo::set_filename(const char* value) {
1118
if (filename_ == &::google::protobuf::internal::GetEmptyString()) {
1119
filename_ = new ::std::string;
1121
filename_->assign(value);
1123
inline void InputInfo::set_filename(const char* value, size_t size) {
1125
if (filename_ == &::google::protobuf::internal::GetEmptyString()) {
1126
filename_ = new ::std::string;
1128
filename_->assign(reinterpret_cast<const char*>(value), size);
1130
inline ::std::string* InputInfo::mutable_filename() {
1132
if (filename_ == &::google::protobuf::internal::GetEmptyString()) {
1133
filename_ = new ::std::string;
1137
inline ::std::string* InputInfo::release_filename() {
1138
clear_has_filename();
1139
if (filename_ == &::google::protobuf::internal::GetEmptyString()) {
1142
::std::string* temp = filename_;
1143
filename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1147
inline void InputInfo::set_allocated_filename(::std::string* filename) {
1148
if (filename_ != &::google::protobuf::internal::GetEmptyString()) {
1153
filename_ = filename;
1155
clear_has_filename();
1156
filename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1160
// optional int64 date_ms = 6;
1161
inline bool InputInfo::has_date_ms() const {
1162
return (_has_bits_[0] & 0x00000020u) != 0;
1164
inline void InputInfo::set_has_date_ms() {
1165
_has_bits_[0] |= 0x00000020u;
1167
inline void InputInfo::clear_has_date_ms() {
1168
_has_bits_[0] &= ~0x00000020u;
1170
inline void InputInfo::clear_date_ms() {
1171
date_ms_ = GOOGLE_LONGLONG(0);
1172
clear_has_date_ms();
1174
inline ::google::protobuf::int64 InputInfo::date_ms() const {
1177
inline void InputInfo::set_date_ms(::google::protobuf::int64 value) {
1182
// optional string input_content_hash = 7;
1183
inline bool InputInfo::has_input_content_hash() const {
1184
return (_has_bits_[0] & 0x00000040u) != 0;
1186
inline void InputInfo::set_has_input_content_hash() {
1187
_has_bits_[0] |= 0x00000040u;
1189
inline void InputInfo::clear_has_input_content_hash() {
1190
_has_bits_[0] &= ~0x00000040u;
1192
inline void InputInfo::clear_input_content_hash() {
1193
if (input_content_hash_ != &::google::protobuf::internal::GetEmptyString()) {
1194
input_content_hash_->clear();
1196
clear_has_input_content_hash();
1198
inline const ::std::string& InputInfo::input_content_hash() const {
1199
return *input_content_hash_;
1201
inline void InputInfo::set_input_content_hash(const ::std::string& value) {
1202
set_has_input_content_hash();
1203
if (input_content_hash_ == &::google::protobuf::internal::GetEmptyString()) {
1204
input_content_hash_ = new ::std::string;
1206
input_content_hash_->assign(value);
1208
inline void InputInfo::set_input_content_hash(const char* value) {
1209
set_has_input_content_hash();
1210
if (input_content_hash_ == &::google::protobuf::internal::GetEmptyString()) {
1211
input_content_hash_ = new ::std::string;
1213
input_content_hash_->assign(value);
1215
inline void InputInfo::set_input_content_hash(const char* value, size_t size) {
1216
set_has_input_content_hash();
1217
if (input_content_hash_ == &::google::protobuf::internal::GetEmptyString()) {
1218
input_content_hash_ = new ::std::string;
1220
input_content_hash_->assign(reinterpret_cast<const char*>(value), size);
1222
inline ::std::string* InputInfo::mutable_input_content_hash() {
1223
set_has_input_content_hash();
1224
if (input_content_hash_ == &::google::protobuf::internal::GetEmptyString()) {
1225
input_content_hash_ = new ::std::string;
1227
return input_content_hash_;
1229
inline ::std::string* InputInfo::release_input_content_hash() {
1230
clear_has_input_content_hash();
1231
if (input_content_hash_ == &::google::protobuf::internal::GetEmptyString()) {
1234
::std::string* temp = input_content_hash_;
1235
input_content_hash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1239
inline void InputInfo::set_allocated_input_content_hash(::std::string* input_content_hash) {
1240
if (input_content_hash_ != &::google::protobuf::internal::GetEmptyString()) {
1241
delete input_content_hash_;
1243
if (input_content_hash) {
1244
set_has_input_content_hash();
1245
input_content_hash_ = input_content_hash;
1247
clear_has_input_content_hash();
1248
input_content_hash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1252
// optional bool disable_further_processing = 8 [default = false];
1253
inline bool InputInfo::has_disable_further_processing() const {
1254
return (_has_bits_[0] & 0x00000080u) != 0;
1256
inline void InputInfo::set_has_disable_further_processing() {
1257
_has_bits_[0] |= 0x00000080u;
1259
inline void InputInfo::clear_has_disable_further_processing() {
1260
_has_bits_[0] &= ~0x00000080u;
1262
inline void InputInfo::clear_disable_further_processing() {
1263
disable_further_processing_ = false;
1264
clear_has_disable_further_processing();
1266
inline bool InputInfo::disable_further_processing() const {
1267
return disable_further_processing_;
1269
inline void InputInfo::set_disable_further_processing(bool value) {
1270
set_has_disable_further_processing();
1271
disable_further_processing_ = value;
1274
// optional string url = 9;
1275
inline bool InputInfo::has_url() const {
1276
return (_has_bits_[0] & 0x00000100u) != 0;
1278
inline void InputInfo::set_has_url() {
1279
_has_bits_[0] |= 0x00000100u;
1281
inline void InputInfo::clear_has_url() {
1282
_has_bits_[0] &= ~0x00000100u;
1284
inline void InputInfo::clear_url() {
1285
if (url_ != &::google::protobuf::internal::GetEmptyString()) {
1290
inline const ::std::string& InputInfo::url() const {
1293
inline void InputInfo::set_url(const ::std::string& value) {
1295
if (url_ == &::google::protobuf::internal::GetEmptyString()) {
1296
url_ = new ::std::string;
1298
url_->assign(value);
1300
inline void InputInfo::set_url(const char* value) {
1302
if (url_ == &::google::protobuf::internal::GetEmptyString()) {
1303
url_ = new ::std::string;
1305
url_->assign(value);
1307
inline void InputInfo::set_url(const char* value, size_t size) {
1309
if (url_ == &::google::protobuf::internal::GetEmptyString()) {
1310
url_ = new ::std::string;
1312
url_->assign(reinterpret_cast<const char*>(value), size);
1314
inline ::std::string* InputInfo::mutable_url() {
1316
if (url_ == &::google::protobuf::internal::GetEmptyString()) {
1317
url_ = new ::std::string;
1321
inline ::std::string* InputInfo::release_url() {
1323
if (url_ == &::google::protobuf::internal::GetEmptyString()) {
1326
::std::string* temp = url_;
1327
url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1331
inline void InputInfo::set_allocated_url(::std::string* url) {
1332
if (url_ != &::google::protobuf::internal::GetEmptyString()) {
1340
url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1344
// -------------------------------------------------------------------
1348
// optional bool optimizable = 1 [default = true];
1349
inline bool CachedResult::has_optimizable() const {
1350
return (_has_bits_[0] & 0x00000001u) != 0;
1352
inline void CachedResult::set_has_optimizable() {
1353
_has_bits_[0] |= 0x00000001u;
1355
inline void CachedResult::clear_has_optimizable() {
1356
_has_bits_[0] &= ~0x00000001u;
1358
inline void CachedResult::clear_optimizable() {
1359
optimizable_ = true;
1360
clear_has_optimizable();
1362
inline bool CachedResult::optimizable() const {
1363
return optimizable_;
1365
inline void CachedResult::set_optimizable(bool value) {
1366
set_has_optimizable();
1367
optimizable_ = value;
1370
// optional string url = 2;
1371
inline bool CachedResult::has_url() const {
1372
return (_has_bits_[0] & 0x00000002u) != 0;
1374
inline void CachedResult::set_has_url() {
1375
_has_bits_[0] |= 0x00000002u;
1377
inline void CachedResult::clear_has_url() {
1378
_has_bits_[0] &= ~0x00000002u;
1380
inline void CachedResult::clear_url() {
1381
if (url_ != &::google::protobuf::internal::GetEmptyString()) {
1386
inline const ::std::string& CachedResult::url() const {
1389
inline void CachedResult::set_url(const ::std::string& value) {
1391
if (url_ == &::google::protobuf::internal::GetEmptyString()) {
1392
url_ = new ::std::string;
1394
url_->assign(value);
1396
inline void CachedResult::set_url(const char* value) {
1398
if (url_ == &::google::protobuf::internal::GetEmptyString()) {
1399
url_ = new ::std::string;
1401
url_->assign(value);
1403
inline void CachedResult::set_url(const char* value, size_t size) {
1405
if (url_ == &::google::protobuf::internal::GetEmptyString()) {
1406
url_ = new ::std::string;
1408
url_->assign(reinterpret_cast<const char*>(value), size);
1410
inline ::std::string* CachedResult::mutable_url() {
1412
if (url_ == &::google::protobuf::internal::GetEmptyString()) {
1413
url_ = new ::std::string;
1417
inline ::std::string* CachedResult::release_url() {
1419
if (url_ == &::google::protobuf::internal::GetEmptyString()) {
1422
::std::string* temp = url_;
1423
url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1427
inline void CachedResult::set_allocated_url(::std::string* url) {
1428
if (url_ != &::google::protobuf::internal::GetEmptyString()) {
1436
url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1440
// optional bool frozen = 5 [default = false];
1441
inline bool CachedResult::has_frozen() const {
1442
return (_has_bits_[0] & 0x00000004u) != 0;
1444
inline void CachedResult::set_has_frozen() {
1445
_has_bits_[0] |= 0x00000004u;
1447
inline void CachedResult::clear_has_frozen() {
1448
_has_bits_[0] &= ~0x00000004u;
1450
inline void CachedResult::clear_frozen() {
1454
inline bool CachedResult::frozen() const {
1457
inline void CachedResult::set_frozen(bool value) {
1462
// optional string hash = 6;
1463
inline bool CachedResult::has_hash() const {
1464
return (_has_bits_[0] & 0x00000008u) != 0;
1466
inline void CachedResult::set_has_hash() {
1467
_has_bits_[0] |= 0x00000008u;
1469
inline void CachedResult::clear_has_hash() {
1470
_has_bits_[0] &= ~0x00000008u;
1472
inline void CachedResult::clear_hash() {
1473
if (hash_ != &::google::protobuf::internal::GetEmptyString()) {
1478
inline const ::std::string& CachedResult::hash() const {
1481
inline void CachedResult::set_hash(const ::std::string& value) {
1483
if (hash_ == &::google::protobuf::internal::GetEmptyString()) {
1484
hash_ = new ::std::string;
1486
hash_->assign(value);
1488
inline void CachedResult::set_hash(const char* value) {
1490
if (hash_ == &::google::protobuf::internal::GetEmptyString()) {
1491
hash_ = new ::std::string;
1493
hash_->assign(value);
1495
inline void CachedResult::set_hash(const char* value, size_t size) {
1497
if (hash_ == &::google::protobuf::internal::GetEmptyString()) {
1498
hash_ = new ::std::string;
1500
hash_->assign(reinterpret_cast<const char*>(value), size);
1502
inline ::std::string* CachedResult::mutable_hash() {
1504
if (hash_ == &::google::protobuf::internal::GetEmptyString()) {
1505
hash_ = new ::std::string;
1509
inline ::std::string* CachedResult::release_hash() {
1511
if (hash_ == &::google::protobuf::internal::GetEmptyString()) {
1514
::std::string* temp = hash_;
1515
hash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1519
inline void CachedResult::set_allocated_hash(::std::string* hash) {
1520
if (hash_ != &::google::protobuf::internal::GetEmptyString()) {
1528
hash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1532
// optional string extension = 7;
1533
inline bool CachedResult::has_extension() const {
1534
return (_has_bits_[0] & 0x00000010u) != 0;
1536
inline void CachedResult::set_has_extension() {
1537
_has_bits_[0] |= 0x00000010u;
1539
inline void CachedResult::clear_has_extension() {
1540
_has_bits_[0] &= ~0x00000010u;
1542
inline void CachedResult::clear_extension() {
1543
if (extension_ != &::google::protobuf::internal::GetEmptyString()) {
1544
extension_->clear();
1546
clear_has_extension();
1548
inline const ::std::string& CachedResult::extension() const {
1551
inline void CachedResult::set_extension(const ::std::string& value) {
1552
set_has_extension();
1553
if (extension_ == &::google::protobuf::internal::GetEmptyString()) {
1554
extension_ = new ::std::string;
1556
extension_->assign(value);
1558
inline void CachedResult::set_extension(const char* value) {
1559
set_has_extension();
1560
if (extension_ == &::google::protobuf::internal::GetEmptyString()) {
1561
extension_ = new ::std::string;
1563
extension_->assign(value);
1565
inline void CachedResult::set_extension(const char* value, size_t size) {
1566
set_has_extension();
1567
if (extension_ == &::google::protobuf::internal::GetEmptyString()) {
1568
extension_ = new ::std::string;
1570
extension_->assign(reinterpret_cast<const char*>(value), size);
1572
inline ::std::string* CachedResult::mutable_extension() {
1573
set_has_extension();
1574
if (extension_ == &::google::protobuf::internal::GetEmptyString()) {
1575
extension_ = new ::std::string;
1579
inline ::std::string* CachedResult::release_extension() {
1580
clear_has_extension();
1581
if (extension_ == &::google::protobuf::internal::GetEmptyString()) {
1584
::std::string* temp = extension_;
1585
extension_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1589
inline void CachedResult::set_allocated_extension(::std::string* extension) {
1590
if (extension_ != &::google::protobuf::internal::GetEmptyString()) {
1594
set_has_extension();
1595
extension_ = extension;
1597
clear_has_extension();
1598
extension_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1602
// optional .net_instaweb.ImageDim image_file_dims = 11;
1603
inline bool CachedResult::has_image_file_dims() const {
1604
return (_has_bits_[0] & 0x00000020u) != 0;
1606
inline void CachedResult::set_has_image_file_dims() {
1607
_has_bits_[0] |= 0x00000020u;
1609
inline void CachedResult::clear_has_image_file_dims() {
1610
_has_bits_[0] &= ~0x00000020u;
1612
inline void CachedResult::clear_image_file_dims() {
1613
if (image_file_dims_ != NULL) image_file_dims_->::net_instaweb::ImageDim::Clear();
1614
clear_has_image_file_dims();
1616
inline const ::net_instaweb::ImageDim& CachedResult::image_file_dims() const {
1617
return image_file_dims_ != NULL ? *image_file_dims_ : *default_instance_->image_file_dims_;
1619
inline ::net_instaweb::ImageDim* CachedResult::mutable_image_file_dims() {
1620
set_has_image_file_dims();
1621
if (image_file_dims_ == NULL) image_file_dims_ = new ::net_instaweb::ImageDim;
1622
return image_file_dims_;
1624
inline ::net_instaweb::ImageDim* CachedResult::release_image_file_dims() {
1625
clear_has_image_file_dims();
1626
::net_instaweb::ImageDim* temp = image_file_dims_;
1627
image_file_dims_ = NULL;
1630
inline void CachedResult::set_allocated_image_file_dims(::net_instaweb::ImageDim* image_file_dims) {
1631
delete image_file_dims_;
1632
image_file_dims_ = image_file_dims;
1633
if (image_file_dims) {
1634
set_has_image_file_dims();
1636
clear_has_image_file_dims();
1640
// optional bytes inlined_data = 12;
1641
inline bool CachedResult::has_inlined_data() const {
1642
return (_has_bits_[0] & 0x00000040u) != 0;
1644
inline void CachedResult::set_has_inlined_data() {
1645
_has_bits_[0] |= 0x00000040u;
1647
inline void CachedResult::clear_has_inlined_data() {
1648
_has_bits_[0] &= ~0x00000040u;
1650
inline void CachedResult::clear_inlined_data() {
1651
if (inlined_data_ != &::google::protobuf::internal::GetEmptyString()) {
1652
inlined_data_->clear();
1654
clear_has_inlined_data();
1656
inline const ::std::string& CachedResult::inlined_data() const {
1657
return *inlined_data_;
1659
inline void CachedResult::set_inlined_data(const ::std::string& value) {
1660
set_has_inlined_data();
1661
if (inlined_data_ == &::google::protobuf::internal::GetEmptyString()) {
1662
inlined_data_ = new ::std::string;
1664
inlined_data_->assign(value);
1666
inline void CachedResult::set_inlined_data(const char* value) {
1667
set_has_inlined_data();
1668
if (inlined_data_ == &::google::protobuf::internal::GetEmptyString()) {
1669
inlined_data_ = new ::std::string;
1671
inlined_data_->assign(value);
1673
inline void CachedResult::set_inlined_data(const void* value, size_t size) {
1674
set_has_inlined_data();
1675
if (inlined_data_ == &::google::protobuf::internal::GetEmptyString()) {
1676
inlined_data_ = new ::std::string;
1678
inlined_data_->assign(reinterpret_cast<const char*>(value), size);
1680
inline ::std::string* CachedResult::mutable_inlined_data() {
1681
set_has_inlined_data();
1682
if (inlined_data_ == &::google::protobuf::internal::GetEmptyString()) {
1683
inlined_data_ = new ::std::string;
1685
return inlined_data_;
1687
inline ::std::string* CachedResult::release_inlined_data() {
1688
clear_has_inlined_data();
1689
if (inlined_data_ == &::google::protobuf::internal::GetEmptyString()) {
1692
::std::string* temp = inlined_data_;
1693
inlined_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1697
inline void CachedResult::set_allocated_inlined_data(::std::string* inlined_data) {
1698
if (inlined_data_ != &::google::protobuf::internal::GetEmptyString()) {
1699
delete inlined_data_;
1702
set_has_inlined_data();
1703
inlined_data_ = inlined_data;
1705
clear_has_inlined_data();
1706
inlined_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1710
// optional .net_instaweb.spriter.SpriterResult spriter_result = 13;
1711
inline bool CachedResult::has_spriter_result() const {
1712
return (_has_bits_[0] & 0x00000080u) != 0;
1714
inline void CachedResult::set_has_spriter_result() {
1715
_has_bits_[0] |= 0x00000080u;
1717
inline void CachedResult::clear_has_spriter_result() {
1718
_has_bits_[0] &= ~0x00000080u;
1720
inline void CachedResult::clear_spriter_result() {
1721
if (spriter_result_ != NULL) spriter_result_->::net_instaweb::spriter::SpriterResult::Clear();
1722
clear_has_spriter_result();
1724
inline const ::net_instaweb::spriter::SpriterResult& CachedResult::spriter_result() const {
1725
return spriter_result_ != NULL ? *spriter_result_ : *default_instance_->spriter_result_;
1727
inline ::net_instaweb::spriter::SpriterResult* CachedResult::mutable_spriter_result() {
1728
set_has_spriter_result();
1729
if (spriter_result_ == NULL) spriter_result_ = new ::net_instaweb::spriter::SpriterResult;
1730
return spriter_result_;
1732
inline ::net_instaweb::spriter::SpriterResult* CachedResult::release_spriter_result() {
1733
clear_has_spriter_result();
1734
::net_instaweb::spriter::SpriterResult* temp = spriter_result_;
1735
spriter_result_ = NULL;
1738
inline void CachedResult::set_allocated_spriter_result(::net_instaweb::spriter::SpriterResult* spriter_result) {
1739
delete spriter_result_;
1740
spriter_result_ = spriter_result;
1741
if (spriter_result) {
1742
set_has_spriter_result();
1744
clear_has_spriter_result();
1748
// repeated .net_instaweb.InputInfo input = 14;
1749
inline int CachedResult::input_size() const {
1750
return input_.size();
1752
inline void CachedResult::clear_input() {
1755
inline const ::net_instaweb::InputInfo& CachedResult::input(int index) const {
1756
return input_.Get(index);
1758
inline ::net_instaweb::InputInfo* CachedResult::mutable_input(int index) {
1759
return input_.Mutable(index);
1761
inline ::net_instaweb::InputInfo* CachedResult::add_input() {
1762
return input_.Add();
1764
inline const ::google::protobuf::RepeatedPtrField< ::net_instaweb::InputInfo >&
1765
CachedResult::input() const {
1768
inline ::google::protobuf::RepeatedPtrField< ::net_instaweb::InputInfo >*
1769
CachedResult::mutable_input() {
1773
// optional int32 inlined_image_type = 15;
1774
inline bool CachedResult::has_inlined_image_type() const {
1775
return (_has_bits_[0] & 0x00000200u) != 0;
1777
inline void CachedResult::set_has_inlined_image_type() {
1778
_has_bits_[0] |= 0x00000200u;
1780
inline void CachedResult::clear_has_inlined_image_type() {
1781
_has_bits_[0] &= ~0x00000200u;
1783
inline void CachedResult::clear_inlined_image_type() {
1784
inlined_image_type_ = 0;
1785
clear_has_inlined_image_type();
1787
inline ::google::protobuf::int32 CachedResult::inlined_image_type() const {
1788
return inlined_image_type_;
1790
inline void CachedResult::set_inlined_image_type(::google::protobuf::int32 value) {
1791
set_has_inlined_image_type();
1792
inlined_image_type_ = value;
1795
// optional bytes low_resolution_inlined_data = 16;
1796
inline bool CachedResult::has_low_resolution_inlined_data() const {
1797
return (_has_bits_[0] & 0x00000400u) != 0;
1799
inline void CachedResult::set_has_low_resolution_inlined_data() {
1800
_has_bits_[0] |= 0x00000400u;
1802
inline void CachedResult::clear_has_low_resolution_inlined_data() {
1803
_has_bits_[0] &= ~0x00000400u;
1805
inline void CachedResult::clear_low_resolution_inlined_data() {
1806
if (low_resolution_inlined_data_ != &::google::protobuf::internal::GetEmptyString()) {
1807
low_resolution_inlined_data_->clear();
1809
clear_has_low_resolution_inlined_data();
1811
inline const ::std::string& CachedResult::low_resolution_inlined_data() const {
1812
return *low_resolution_inlined_data_;
1814
inline void CachedResult::set_low_resolution_inlined_data(const ::std::string& value) {
1815
set_has_low_resolution_inlined_data();
1816
if (low_resolution_inlined_data_ == &::google::protobuf::internal::GetEmptyString()) {
1817
low_resolution_inlined_data_ = new ::std::string;
1819
low_resolution_inlined_data_->assign(value);
1821
inline void CachedResult::set_low_resolution_inlined_data(const char* value) {
1822
set_has_low_resolution_inlined_data();
1823
if (low_resolution_inlined_data_ == &::google::protobuf::internal::GetEmptyString()) {
1824
low_resolution_inlined_data_ = new ::std::string;
1826
low_resolution_inlined_data_->assign(value);
1828
inline void CachedResult::set_low_resolution_inlined_data(const void* value, size_t size) {
1829
set_has_low_resolution_inlined_data();
1830
if (low_resolution_inlined_data_ == &::google::protobuf::internal::GetEmptyString()) {
1831
low_resolution_inlined_data_ = new ::std::string;
1833
low_resolution_inlined_data_->assign(reinterpret_cast<const char*>(value), size);
1835
inline ::std::string* CachedResult::mutable_low_resolution_inlined_data() {
1836
set_has_low_resolution_inlined_data();
1837
if (low_resolution_inlined_data_ == &::google::protobuf::internal::GetEmptyString()) {
1838
low_resolution_inlined_data_ = new ::std::string;
1840
return low_resolution_inlined_data_;
1842
inline ::std::string* CachedResult::release_low_resolution_inlined_data() {
1843
clear_has_low_resolution_inlined_data();
1844
if (low_resolution_inlined_data_ == &::google::protobuf::internal::GetEmptyString()) {
1847
::std::string* temp = low_resolution_inlined_data_;
1848
low_resolution_inlined_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1852
inline void CachedResult::set_allocated_low_resolution_inlined_data(::std::string* low_resolution_inlined_data) {
1853
if (low_resolution_inlined_data_ != &::google::protobuf::internal::GetEmptyString()) {
1854
delete low_resolution_inlined_data_;
1856
if (low_resolution_inlined_data) {
1857
set_has_low_resolution_inlined_data();
1858
low_resolution_inlined_data_ = low_resolution_inlined_data;
1860
clear_has_low_resolution_inlined_data();
1861
low_resolution_inlined_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
1865
// optional int32 low_resolution_inlined_image_type = 17;
1866
inline bool CachedResult::has_low_resolution_inlined_image_type() const {
1867
return (_has_bits_[0] & 0x00000800u) != 0;
1869
inline void CachedResult::set_has_low_resolution_inlined_image_type() {
1870
_has_bits_[0] |= 0x00000800u;
1872
inline void CachedResult::clear_has_low_resolution_inlined_image_type() {
1873
_has_bits_[0] &= ~0x00000800u;
1875
inline void CachedResult::clear_low_resolution_inlined_image_type() {
1876
low_resolution_inlined_image_type_ = 0;
1877
clear_has_low_resolution_inlined_image_type();
1879
inline ::google::protobuf::int32 CachedResult::low_resolution_inlined_image_type() const {
1880
return low_resolution_inlined_image_type_;
1882
inline void CachedResult::set_low_resolution_inlined_image_type(::google::protobuf::int32 value) {
1883
set_has_low_resolution_inlined_image_type();
1884
low_resolution_inlined_image_type_ = value;
1887
// optional bool url_relocatable = 18 [default = true];
1888
inline bool CachedResult::has_url_relocatable() const {
1889
return (_has_bits_[0] & 0x00001000u) != 0;
1891
inline void CachedResult::set_has_url_relocatable() {
1892
_has_bits_[0] |= 0x00001000u;
1894
inline void CachedResult::clear_has_url_relocatable() {
1895
_has_bits_[0] &= ~0x00001000u;
1897
inline void CachedResult::clear_url_relocatable() {
1898
url_relocatable_ = true;
1899
clear_has_url_relocatable();
1901
inline bool CachedResult::url_relocatable() const {
1902
return url_relocatable_;
1904
inline void CachedResult::set_url_relocatable(bool value) {
1905
set_has_url_relocatable();
1906
url_relocatable_ = value;
1909
// optional bool canonicalize_url = 19 [default = false];
1910
inline bool CachedResult::has_canonicalize_url() const {
1911
return (_has_bits_[0] & 0x00002000u) != 0;
1913
inline void CachedResult::set_has_canonicalize_url() {
1914
_has_bits_[0] |= 0x00002000u;
1916
inline void CachedResult::clear_has_canonicalize_url() {
1917
_has_bits_[0] &= ~0x00002000u;
1919
inline void CachedResult::clear_canonicalize_url() {
1920
canonicalize_url_ = false;
1921
clear_has_canonicalize_url();
1923
inline bool CachedResult::canonicalize_url() const {
1924
return canonicalize_url_;
1926
inline void CachedResult::set_canonicalize_url(bool value) {
1927
set_has_canonicalize_url();
1928
canonicalize_url_ = value;
1931
// optional int64 size = 20;
1932
inline bool CachedResult::has_size() const {
1933
return (_has_bits_[0] & 0x00004000u) != 0;
1935
inline void CachedResult::set_has_size() {
1936
_has_bits_[0] |= 0x00004000u;
1938
inline void CachedResult::clear_has_size() {
1939
_has_bits_[0] &= ~0x00004000u;
1941
inline void CachedResult::clear_size() {
1942
size_ = GOOGLE_LONGLONG(0);
1945
inline ::google::protobuf::int64 CachedResult::size() const {
1948
inline void CachedResult::set_size(::google::protobuf::int64 value) {
1953
// repeated string debug_message = 21;
1954
inline int CachedResult::debug_message_size() const {
1955
return debug_message_.size();
1957
inline void CachedResult::clear_debug_message() {
1958
debug_message_.Clear();
1960
inline const ::std::string& CachedResult::debug_message(int index) const {
1961
return debug_message_.Get(index);
1963
inline ::std::string* CachedResult::mutable_debug_message(int index) {
1964
return debug_message_.Mutable(index);
1966
inline void CachedResult::set_debug_message(int index, const ::std::string& value) {
1967
debug_message_.Mutable(index)->assign(value);
1969
inline void CachedResult::set_debug_message(int index, const char* value) {
1970
debug_message_.Mutable(index)->assign(value);
1972
inline void CachedResult::set_debug_message(int index, const char* value, size_t size) {
1973
debug_message_.Mutable(index)->assign(
1974
reinterpret_cast<const char*>(value), size);
1976
inline ::std::string* CachedResult::add_debug_message() {
1977
return debug_message_.Add();
1979
inline void CachedResult::add_debug_message(const ::std::string& value) {
1980
debug_message_.Add()->assign(value);
1982
inline void CachedResult::add_debug_message(const char* value) {
1983
debug_message_.Add()->assign(value);
1985
inline void CachedResult::add_debug_message(const char* value, size_t size) {
1986
debug_message_.Add()->assign(reinterpret_cast<const char*>(value), size);
1988
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1989
CachedResult::debug_message() const {
1990
return debug_message_;
1992
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1993
CachedResult::mutable_debug_message() {
1994
return &debug_message_;
1997
// optional .net_instaweb.ResourceContext.LibWebpLevel minimal_webp_support = 22 [default = LIBWEBP_LOSSY_ONLY];
1998
inline bool CachedResult::has_minimal_webp_support() const {
1999
return (_has_bits_[0] & 0x00010000u) != 0;
2001
inline void CachedResult::set_has_minimal_webp_support() {
2002
_has_bits_[0] |= 0x00010000u;
2004
inline void CachedResult::clear_has_minimal_webp_support() {
2005
_has_bits_[0] &= ~0x00010000u;
2007
inline void CachedResult::clear_minimal_webp_support() {
2008
minimal_webp_support_ = 1;
2009
clear_has_minimal_webp_support();
2011
inline ::net_instaweb::ResourceContext_LibWebpLevel CachedResult::minimal_webp_support() const {
2012
return static_cast< ::net_instaweb::ResourceContext_LibWebpLevel >(minimal_webp_support_);
2014
inline void CachedResult::set_minimal_webp_support(::net_instaweb::ResourceContext_LibWebpLevel value) {
2015
assert(::net_instaweb::ResourceContext_LibWebpLevel_IsValid(value));
2016
set_has_minimal_webp_support();
2017
minimal_webp_support_ = value;
2020
// -------------------------------------------------------------------
2024
// repeated .net_instaweb.CachedResult partition = 1;
2025
inline int OutputPartitions::partition_size() const {
2026
return partition_.size();
2028
inline void OutputPartitions::clear_partition() {
2031
inline const ::net_instaweb::CachedResult& OutputPartitions::partition(int index) const {
2032
return partition_.Get(index);
2034
inline ::net_instaweb::CachedResult* OutputPartitions::mutable_partition(int index) {
2035
return partition_.Mutable(index);
2037
inline ::net_instaweb::CachedResult* OutputPartitions::add_partition() {
2038
return partition_.Add();
2040
inline const ::google::protobuf::RepeatedPtrField< ::net_instaweb::CachedResult >&
2041
OutputPartitions::partition() const {
2044
inline ::google::protobuf::RepeatedPtrField< ::net_instaweb::CachedResult >*
2045
OutputPartitions::mutable_partition() {
2049
// repeated .net_instaweb.InputInfo other_dependency = 2;
2050
inline int OutputPartitions::other_dependency_size() const {
2051
return other_dependency_.size();
2053
inline void OutputPartitions::clear_other_dependency() {
2054
other_dependency_.Clear();
2056
inline const ::net_instaweb::InputInfo& OutputPartitions::other_dependency(int index) const {
2057
return other_dependency_.Get(index);
2059
inline ::net_instaweb::InputInfo* OutputPartitions::mutable_other_dependency(int index) {
2060
return other_dependency_.Mutable(index);
2062
inline ::net_instaweb::InputInfo* OutputPartitions::add_other_dependency() {
2063
return other_dependency_.Add();
2065
inline const ::google::protobuf::RepeatedPtrField< ::net_instaweb::InputInfo >&
2066
OutputPartitions::other_dependency() const {
2067
return other_dependency_;
2069
inline ::google::protobuf::RepeatedPtrField< ::net_instaweb::InputInfo >*
2070
OutputPartitions::mutable_other_dependency() {
2071
return &other_dependency_;
2074
// repeated string debug_message = 3;
2075
inline int OutputPartitions::debug_message_size() const {
2076
return debug_message_.size();
2078
inline void OutputPartitions::clear_debug_message() {
2079
debug_message_.Clear();
2081
inline const ::std::string& OutputPartitions::debug_message(int index) const {
2082
return debug_message_.Get(index);
2084
inline ::std::string* OutputPartitions::mutable_debug_message(int index) {
2085
return debug_message_.Mutable(index);
2087
inline void OutputPartitions::set_debug_message(int index, const ::std::string& value) {
2088
debug_message_.Mutable(index)->assign(value);
2090
inline void OutputPartitions::set_debug_message(int index, const char* value) {
2091
debug_message_.Mutable(index)->assign(value);
2093
inline void OutputPartitions::set_debug_message(int index, const char* value, size_t size) {
2094
debug_message_.Mutable(index)->assign(
2095
reinterpret_cast<const char*>(value), size);
2097
inline ::std::string* OutputPartitions::add_debug_message() {
2098
return debug_message_.Add();
2100
inline void OutputPartitions::add_debug_message(const ::std::string& value) {
2101
debug_message_.Add()->assign(value);
2103
inline void OutputPartitions::add_debug_message(const char* value) {
2104
debug_message_.Add()->assign(value);
2106
inline void OutputPartitions::add_debug_message(const char* value, size_t size) {
2107
debug_message_.Add()->assign(reinterpret_cast<const char*>(value), size);
2109
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
2110
OutputPartitions::debug_message() const {
2111
return debug_message_;
2113
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
2114
OutputPartitions::mutable_debug_message() {
2115
return &debug_message_;
2118
// -------------------------------------------------------------------
2122
// optional .net_instaweb.ImageDim desired_image_dims = 1;
2123
inline bool ResourceContext::has_desired_image_dims() const {
2124
return (_has_bits_[0] & 0x00000001u) != 0;
2126
inline void ResourceContext::set_has_desired_image_dims() {
2127
_has_bits_[0] |= 0x00000001u;
2129
inline void ResourceContext::clear_has_desired_image_dims() {
2130
_has_bits_[0] &= ~0x00000001u;
2132
inline void ResourceContext::clear_desired_image_dims() {
2133
if (desired_image_dims_ != NULL) desired_image_dims_->::net_instaweb::ImageDim::Clear();
2134
clear_has_desired_image_dims();
2136
inline const ::net_instaweb::ImageDim& ResourceContext::desired_image_dims() const {
2137
return desired_image_dims_ != NULL ? *desired_image_dims_ : *default_instance_->desired_image_dims_;
2139
inline ::net_instaweb::ImageDim* ResourceContext::mutable_desired_image_dims() {
2140
set_has_desired_image_dims();
2141
if (desired_image_dims_ == NULL) desired_image_dims_ = new ::net_instaweb::ImageDim;
2142
return desired_image_dims_;
2144
inline ::net_instaweb::ImageDim* ResourceContext::release_desired_image_dims() {
2145
clear_has_desired_image_dims();
2146
::net_instaweb::ImageDim* temp = desired_image_dims_;
2147
desired_image_dims_ = NULL;
2150
inline void ResourceContext::set_allocated_desired_image_dims(::net_instaweb::ImageDim* desired_image_dims) {
2151
delete desired_image_dims_;
2152
desired_image_dims_ = desired_image_dims;
2153
if (desired_image_dims) {
2154
set_has_desired_image_dims();
2156
clear_has_desired_image_dims();
2160
// optional bool attempt_webp = 2 [default = false, deprecated = true];
2161
inline bool ResourceContext::has_attempt_webp() const {
2162
return (_has_bits_[0] & 0x00000002u) != 0;
2164
inline void ResourceContext::set_has_attempt_webp() {
2165
_has_bits_[0] |= 0x00000002u;
2167
inline void ResourceContext::clear_has_attempt_webp() {
2168
_has_bits_[0] &= ~0x00000002u;
2170
inline void ResourceContext::clear_attempt_webp() {
2171
attempt_webp_ = false;
2172
clear_has_attempt_webp();
2174
inline bool ResourceContext::attempt_webp() const {
2175
return attempt_webp_;
2177
inline void ResourceContext::set_attempt_webp(bool value) {
2178
set_has_attempt_webp();
2179
attempt_webp_ = value;
2182
// optional bool inline_images = 3 [default = true];
2183
inline bool ResourceContext::has_inline_images() const {
2184
return (_has_bits_[0] & 0x00000004u) != 0;
2186
inline void ResourceContext::set_has_inline_images() {
2187
_has_bits_[0] |= 0x00000004u;
2189
inline void ResourceContext::clear_has_inline_images() {
2190
_has_bits_[0] &= ~0x00000004u;
2192
inline void ResourceContext::clear_inline_images() {
2193
inline_images_ = true;
2194
clear_has_inline_images();
2196
inline bool ResourceContext::inline_images() const {
2197
return inline_images_;
2199
inline void ResourceContext::set_inline_images(bool value) {
2200
set_has_inline_images();
2201
inline_images_ = value;
2204
// optional bool mobile_user_agent = 4 [default = false];
2205
inline bool ResourceContext::has_mobile_user_agent() const {
2206
return (_has_bits_[0] & 0x00000008u) != 0;
2208
inline void ResourceContext::set_has_mobile_user_agent() {
2209
_has_bits_[0] |= 0x00000008u;
2211
inline void ResourceContext::clear_has_mobile_user_agent() {
2212
_has_bits_[0] &= ~0x00000008u;
2214
inline void ResourceContext::clear_mobile_user_agent() {
2215
mobile_user_agent_ = false;
2216
clear_has_mobile_user_agent();
2218
inline bool ResourceContext::mobile_user_agent() const {
2219
return mobile_user_agent_;
2221
inline void ResourceContext::set_mobile_user_agent(bool value) {
2222
set_has_mobile_user_agent();
2223
mobile_user_agent_ = value;
2226
// optional .net_instaweb.ResourceContext.LibWebpLevel libwebp_level = 5 [default = LIBWEBP_NONE];
2227
inline bool ResourceContext::has_libwebp_level() const {
2228
return (_has_bits_[0] & 0x00000010u) != 0;
2230
inline void ResourceContext::set_has_libwebp_level() {
2231
_has_bits_[0] |= 0x00000010u;
2233
inline void ResourceContext::clear_has_libwebp_level() {
2234
_has_bits_[0] &= ~0x00000010u;
2236
inline void ResourceContext::clear_libwebp_level() {
2238
clear_has_libwebp_level();
2240
inline ::net_instaweb::ResourceContext_LibWebpLevel ResourceContext::libwebp_level() const {
2241
return static_cast< ::net_instaweb::ResourceContext_LibWebpLevel >(libwebp_level_);
2243
inline void ResourceContext::set_libwebp_level(::net_instaweb::ResourceContext_LibWebpLevel value) {
2244
assert(::net_instaweb::ResourceContext_LibWebpLevel_IsValid(value));
2245
set_has_libwebp_level();
2246
libwebp_level_ = value;
2249
// optional .net_instaweb.ImageDim user_agent_screen_resolution = 6;
2250
inline bool ResourceContext::has_user_agent_screen_resolution() const {
2251
return (_has_bits_[0] & 0x00000020u) != 0;
2253
inline void ResourceContext::set_has_user_agent_screen_resolution() {
2254
_has_bits_[0] |= 0x00000020u;
2256
inline void ResourceContext::clear_has_user_agent_screen_resolution() {
2257
_has_bits_[0] &= ~0x00000020u;
2259
inline void ResourceContext::clear_user_agent_screen_resolution() {
2260
if (user_agent_screen_resolution_ != NULL) user_agent_screen_resolution_->::net_instaweb::ImageDim::Clear();
2261
clear_has_user_agent_screen_resolution();
2263
inline const ::net_instaweb::ImageDim& ResourceContext::user_agent_screen_resolution() const {
2264
return user_agent_screen_resolution_ != NULL ? *user_agent_screen_resolution_ : *default_instance_->user_agent_screen_resolution_;
2266
inline ::net_instaweb::ImageDim* ResourceContext::mutable_user_agent_screen_resolution() {
2267
set_has_user_agent_screen_resolution();
2268
if (user_agent_screen_resolution_ == NULL) user_agent_screen_resolution_ = new ::net_instaweb::ImageDim;
2269
return user_agent_screen_resolution_;
2271
inline ::net_instaweb::ImageDim* ResourceContext::release_user_agent_screen_resolution() {
2272
clear_has_user_agent_screen_resolution();
2273
::net_instaweb::ImageDim* temp = user_agent_screen_resolution_;
2274
user_agent_screen_resolution_ = NULL;
2277
inline void ResourceContext::set_allocated_user_agent_screen_resolution(::net_instaweb::ImageDim* user_agent_screen_resolution) {
2278
delete user_agent_screen_resolution_;
2279
user_agent_screen_resolution_ = user_agent_screen_resolution;
2280
if (user_agent_screen_resolution) {
2281
set_has_user_agent_screen_resolution();
2283
clear_has_user_agent_screen_resolution();
2287
// optional bool use_small_screen_quality = 7 [default = false];
2288
inline bool ResourceContext::has_use_small_screen_quality() const {
2289
return (_has_bits_[0] & 0x00000040u) != 0;
2291
inline void ResourceContext::set_has_use_small_screen_quality() {
2292
_has_bits_[0] |= 0x00000040u;
2294
inline void ResourceContext::clear_has_use_small_screen_quality() {
2295
_has_bits_[0] &= ~0x00000040u;
2297
inline void ResourceContext::clear_use_small_screen_quality() {
2298
use_small_screen_quality_ = false;
2299
clear_has_use_small_screen_quality();
2301
inline bool ResourceContext::use_small_screen_quality() const {
2302
return use_small_screen_quality_;
2304
inline void ResourceContext::set_use_small_screen_quality(bool value) {
2305
set_has_use_small_screen_quality();
2306
use_small_screen_quality_ = value;
2310
// @@protoc_insertion_point(namespace_scope)
2312
} // namespace net_instaweb
2316
namespace protobuf {
2319
inline const EnumDescriptor* GetEnumDescriptor< ::net_instaweb::InputInfo_Type>() {
2320
return ::net_instaweb::InputInfo_Type_descriptor();
2323
inline const EnumDescriptor* GetEnumDescriptor< ::net_instaweb::ResourceContext_LibWebpLevel>() {
2324
return ::net_instaweb::ResourceContext_LibWebpLevel_descriptor();
2327
} // namespace google
2328
} // namespace protobuf
2331
// @@protoc_insertion_point(global_scope)
2333
#endif // PROTOBUF_net_2finstaweb_2frewriter_2fcached_5fresult_2eproto__INCLUDED