1
// Generated by the protocol buffer compiler. DO NOT EDIT!
2
// source: net/instaweb/rewriter/rendered_image.proto
4
#ifndef PROTOBUF_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto__INCLUDED
5
#define PROTOBUF_net_2finstaweb_2frewriter_2frendered_5fimage_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_lite.h>
24
#include <google/protobuf/repeated_field.h>
25
#include <google/protobuf/extension_set.h>
26
// @@protoc_insertion_point(includes)
28
namespace net_instaweb {
30
// Internal implementation detail -- do not call these.
31
void protobuf_AddDesc_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto();
32
void protobuf_AssignDesc_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto();
33
void protobuf_ShutdownFile_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto();
36
class RenderedImages_Image;
38
// ===================================================================
40
class RenderedImages_Image : public ::google::protobuf::MessageLite {
42
RenderedImages_Image();
43
virtual ~RenderedImages_Image();
45
RenderedImages_Image(const RenderedImages_Image& from);
47
inline RenderedImages_Image& operator=(const RenderedImages_Image& from) {
52
static const RenderedImages_Image& default_instance();
54
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
55
// Returns the internal default instance pointer. This function can
56
// return NULL thus should not be used by the user. This is intended
57
// for Protobuf internal code. Please use default_instance() declared
59
static inline const RenderedImages_Image* internal_default_instance() {
60
return default_instance_;
64
void Swap(RenderedImages_Image* other);
66
// implements Message ----------------------------------------------
68
RenderedImages_Image* New() const;
69
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
70
void CopyFrom(const RenderedImages_Image& from);
71
void MergeFrom(const RenderedImages_Image& from);
73
bool IsInitialized() const;
76
bool MergePartialFromCodedStream(
77
::google::protobuf::io::CodedInputStream* input);
78
void SerializeWithCachedSizes(
79
::google::protobuf::io::CodedOutputStream* output) const;
80
int GetCachedSize() const { return _cached_size_; }
84
void SetCachedSize(int size) const;
87
::std::string GetTypeName() const;
89
// nested types ----------------------------------------------------
91
// accessors -------------------------------------------------------
93
// optional string src = 1;
94
inline bool has_src() const;
95
inline void clear_src();
96
static const int kSrcFieldNumber = 1;
97
inline const ::std::string& src() const;
98
inline void set_src(const ::std::string& value);
99
inline void set_src(const char* value);
100
inline void set_src(const char* value, size_t size);
101
inline ::std::string* mutable_src();
102
inline ::std::string* release_src();
103
inline void set_allocated_src(::std::string* src);
105
// optional int32 rendered_width = 2;
106
inline bool has_rendered_width() const;
107
inline void clear_rendered_width();
108
static const int kRenderedWidthFieldNumber = 2;
109
inline ::google::protobuf::int32 rendered_width() const;
110
inline void set_rendered_width(::google::protobuf::int32 value);
112
// optional int32 rendered_height = 3;
113
inline bool has_rendered_height() const;
114
inline void clear_rendered_height();
115
static const int kRenderedHeightFieldNumber = 3;
116
inline ::google::protobuf::int32 rendered_height() const;
117
inline void set_rendered_height(::google::protobuf::int32 value);
119
// @@protoc_insertion_point(class_scope:net_instaweb.RenderedImages.Image)
121
inline void set_has_src();
122
inline void clear_has_src();
123
inline void set_has_rendered_width();
124
inline void clear_has_rendered_width();
125
inline void set_has_rendered_height();
126
inline void clear_has_rendered_height();
129
::google::protobuf::int32 rendered_width_;
130
::google::protobuf::int32 rendered_height_;
132
mutable int _cached_size_;
133
::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
135
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
136
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto_impl();
138
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto();
140
friend void protobuf_AssignDesc_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto();
141
friend void protobuf_ShutdownFile_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto();
143
void InitAsDefaultInstance();
144
static RenderedImages_Image* default_instance_;
146
// -------------------------------------------------------------------
148
class RenderedImages : public ::google::protobuf::MessageLite {
151
virtual ~RenderedImages();
153
RenderedImages(const RenderedImages& from);
155
inline RenderedImages& operator=(const RenderedImages& from) {
160
static const RenderedImages& default_instance();
162
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
163
// Returns the internal default instance pointer. This function can
164
// return NULL thus should not be used by the user. This is intended
165
// for Protobuf internal code. Please use default_instance() declared
167
static inline const RenderedImages* internal_default_instance() {
168
return default_instance_;
172
void Swap(RenderedImages* other);
174
// implements Message ----------------------------------------------
176
RenderedImages* New() const;
177
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
178
void CopyFrom(const RenderedImages& from);
179
void MergeFrom(const RenderedImages& from);
181
bool IsInitialized() const;
183
int ByteSize() const;
184
bool MergePartialFromCodedStream(
185
::google::protobuf::io::CodedInputStream* input);
186
void SerializeWithCachedSizes(
187
::google::protobuf::io::CodedOutputStream* output) const;
188
int GetCachedSize() const { return _cached_size_; }
192
void SetCachedSize(int size) const;
195
::std::string GetTypeName() const;
197
// nested types ----------------------------------------------------
199
typedef RenderedImages_Image Image;
201
// accessors -------------------------------------------------------
203
// repeated .net_instaweb.RenderedImages.Image image = 1;
204
inline int image_size() const;
205
inline void clear_image();
206
static const int kImageFieldNumber = 1;
207
inline const ::net_instaweb::RenderedImages_Image& image(int index) const;
208
inline ::net_instaweb::RenderedImages_Image* mutable_image(int index);
209
inline ::net_instaweb::RenderedImages_Image* add_image();
210
inline const ::google::protobuf::RepeatedPtrField< ::net_instaweb::RenderedImages_Image >&
212
inline ::google::protobuf::RepeatedPtrField< ::net_instaweb::RenderedImages_Image >*
215
// @@protoc_insertion_point(class_scope:net_instaweb.RenderedImages)
218
::google::protobuf::RepeatedPtrField< ::net_instaweb::RenderedImages_Image > image_;
220
mutable int _cached_size_;
221
::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
223
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
224
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto_impl();
226
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto();
228
friend void protobuf_AssignDesc_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto();
229
friend void protobuf_ShutdownFile_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto();
231
void InitAsDefaultInstance();
232
static RenderedImages* default_instance_;
234
// ===================================================================
237
// ===================================================================
239
// RenderedImages_Image
241
// optional string src = 1;
242
inline bool RenderedImages_Image::has_src() const {
243
return (_has_bits_[0] & 0x00000001u) != 0;
245
inline void RenderedImages_Image::set_has_src() {
246
_has_bits_[0] |= 0x00000001u;
248
inline void RenderedImages_Image::clear_has_src() {
249
_has_bits_[0] &= ~0x00000001u;
251
inline void RenderedImages_Image::clear_src() {
252
if (src_ != &::google::protobuf::internal::GetEmptyString()) {
257
inline const ::std::string& RenderedImages_Image::src() const {
260
inline void RenderedImages_Image::set_src(const ::std::string& value) {
262
if (src_ == &::google::protobuf::internal::GetEmptyString()) {
263
src_ = new ::std::string;
267
inline void RenderedImages_Image::set_src(const char* value) {
269
if (src_ == &::google::protobuf::internal::GetEmptyString()) {
270
src_ = new ::std::string;
274
inline void RenderedImages_Image::set_src(const char* value, size_t size) {
276
if (src_ == &::google::protobuf::internal::GetEmptyString()) {
277
src_ = new ::std::string;
279
src_->assign(reinterpret_cast<const char*>(value), size);
281
inline ::std::string* RenderedImages_Image::mutable_src() {
283
if (src_ == &::google::protobuf::internal::GetEmptyString()) {
284
src_ = new ::std::string;
288
inline ::std::string* RenderedImages_Image::release_src() {
290
if (src_ == &::google::protobuf::internal::GetEmptyString()) {
293
::std::string* temp = src_;
294
src_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
298
inline void RenderedImages_Image::set_allocated_src(::std::string* src) {
299
if (src_ != &::google::protobuf::internal::GetEmptyString()) {
307
src_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
311
// optional int32 rendered_width = 2;
312
inline bool RenderedImages_Image::has_rendered_width() const {
313
return (_has_bits_[0] & 0x00000002u) != 0;
315
inline void RenderedImages_Image::set_has_rendered_width() {
316
_has_bits_[0] |= 0x00000002u;
318
inline void RenderedImages_Image::clear_has_rendered_width() {
319
_has_bits_[0] &= ~0x00000002u;
321
inline void RenderedImages_Image::clear_rendered_width() {
323
clear_has_rendered_width();
325
inline ::google::protobuf::int32 RenderedImages_Image::rendered_width() const {
326
return rendered_width_;
328
inline void RenderedImages_Image::set_rendered_width(::google::protobuf::int32 value) {
329
set_has_rendered_width();
330
rendered_width_ = value;
333
// optional int32 rendered_height = 3;
334
inline bool RenderedImages_Image::has_rendered_height() const {
335
return (_has_bits_[0] & 0x00000004u) != 0;
337
inline void RenderedImages_Image::set_has_rendered_height() {
338
_has_bits_[0] |= 0x00000004u;
340
inline void RenderedImages_Image::clear_has_rendered_height() {
341
_has_bits_[0] &= ~0x00000004u;
343
inline void RenderedImages_Image::clear_rendered_height() {
344
rendered_height_ = 0;
345
clear_has_rendered_height();
347
inline ::google::protobuf::int32 RenderedImages_Image::rendered_height() const {
348
return rendered_height_;
350
inline void RenderedImages_Image::set_rendered_height(::google::protobuf::int32 value) {
351
set_has_rendered_height();
352
rendered_height_ = value;
355
// -------------------------------------------------------------------
359
// repeated .net_instaweb.RenderedImages.Image image = 1;
360
inline int RenderedImages::image_size() const {
361
return image_.size();
363
inline void RenderedImages::clear_image() {
366
inline const ::net_instaweb::RenderedImages_Image& RenderedImages::image(int index) const {
367
return image_.Get(index);
369
inline ::net_instaweb::RenderedImages_Image* RenderedImages::mutable_image(int index) {
370
return image_.Mutable(index);
372
inline ::net_instaweb::RenderedImages_Image* RenderedImages::add_image() {
375
inline const ::google::protobuf::RepeatedPtrField< ::net_instaweb::RenderedImages_Image >&
376
RenderedImages::image() const {
379
inline ::google::protobuf::RepeatedPtrField< ::net_instaweb::RenderedImages_Image >*
380
RenderedImages::mutable_image() {
385
// @@protoc_insertion_point(namespace_scope)
387
} // namespace net_instaweb
389
// @@protoc_insertion_point(global_scope)
391
#endif // PROTOBUF_net_2finstaweb_2frewriter_2frendered_5fimage_2eproto__INCLUDED