1
// Generated by the protocol buffer compiler. DO NOT EDIT!
2
// source: net/instaweb/rewriter/critical_line_info.proto
4
#ifndef PROTOBUF_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_2eproto__INCLUDED
5
#define PROTOBUF_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_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_2fcritical_5fline_5finfo_2eproto();
32
void protobuf_AssignDesc_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_2eproto();
33
void protobuf_ShutdownFile_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_2eproto();
35
class CriticalLineInfo;
38
// ===================================================================
40
class CriticalLineInfo : public ::google::protobuf::MessageLite {
43
virtual ~CriticalLineInfo();
45
CriticalLineInfo(const CriticalLineInfo& from);
47
inline CriticalLineInfo& operator=(const CriticalLineInfo& from) {
52
static const CriticalLineInfo& 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 CriticalLineInfo* internal_default_instance() {
60
return default_instance_;
64
void Swap(CriticalLineInfo* other);
66
// implements Message ----------------------------------------------
68
CriticalLineInfo* New() const;
69
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
70
void CopyFrom(const CriticalLineInfo& from);
71
void MergeFrom(const CriticalLineInfo& 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
// repeated .net_instaweb.Panel panels = 1;
94
inline int panels_size() const;
95
inline void clear_panels();
96
static const int kPanelsFieldNumber = 1;
97
inline const ::net_instaweb::Panel& panels(int index) const;
98
inline ::net_instaweb::Panel* mutable_panels(int index);
99
inline ::net_instaweb::Panel* add_panels();
100
inline const ::google::protobuf::RepeatedPtrField< ::net_instaweb::Panel >&
102
inline ::google::protobuf::RepeatedPtrField< ::net_instaweb::Panel >*
105
// @@protoc_insertion_point(class_scope:net_instaweb.CriticalLineInfo)
108
::google::protobuf::RepeatedPtrField< ::net_instaweb::Panel > panels_;
110
mutable int _cached_size_;
111
::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
113
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
114
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_2eproto_impl();
116
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_2eproto();
118
friend void protobuf_AssignDesc_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_2eproto();
119
friend void protobuf_ShutdownFile_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_2eproto();
121
void InitAsDefaultInstance();
122
static CriticalLineInfo* default_instance_;
124
// -------------------------------------------------------------------
126
class Panel : public ::google::protobuf::MessageLite {
131
Panel(const Panel& from);
133
inline Panel& operator=(const Panel& from) {
138
static const Panel& default_instance();
140
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
141
// Returns the internal default instance pointer. This function can
142
// return NULL thus should not be used by the user. This is intended
143
// for Protobuf internal code. Please use default_instance() declared
145
static inline const Panel* internal_default_instance() {
146
return default_instance_;
150
void Swap(Panel* other);
152
// implements Message ----------------------------------------------
155
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
156
void CopyFrom(const Panel& from);
157
void MergeFrom(const Panel& from);
159
bool IsInitialized() const;
161
int ByteSize() const;
162
bool MergePartialFromCodedStream(
163
::google::protobuf::io::CodedInputStream* input);
164
void SerializeWithCachedSizes(
165
::google::protobuf::io::CodedOutputStream* output) const;
166
int GetCachedSize() const { return _cached_size_; }
170
void SetCachedSize(int size) const;
173
::std::string GetTypeName() const;
175
// nested types ----------------------------------------------------
177
// accessors -------------------------------------------------------
179
// required string start_xpath = 1;
180
inline bool has_start_xpath() const;
181
inline void clear_start_xpath();
182
static const int kStartXpathFieldNumber = 1;
183
inline const ::std::string& start_xpath() const;
184
inline void set_start_xpath(const ::std::string& value);
185
inline void set_start_xpath(const char* value);
186
inline void set_start_xpath(const char* value, size_t size);
187
inline ::std::string* mutable_start_xpath();
188
inline ::std::string* release_start_xpath();
189
inline void set_allocated_start_xpath(::std::string* start_xpath);
191
// optional string end_marker_xpath = 2;
192
inline bool has_end_marker_xpath() const;
193
inline void clear_end_marker_xpath();
194
static const int kEndMarkerXpathFieldNumber = 2;
195
inline const ::std::string& end_marker_xpath() const;
196
inline void set_end_marker_xpath(const ::std::string& value);
197
inline void set_end_marker_xpath(const char* value);
198
inline void set_end_marker_xpath(const char* value, size_t size);
199
inline ::std::string* mutable_end_marker_xpath();
200
inline ::std::string* release_end_marker_xpath();
201
inline void set_allocated_end_marker_xpath(::std::string* end_marker_xpath);
203
// @@protoc_insertion_point(class_scope:net_instaweb.Panel)
205
inline void set_has_start_xpath();
206
inline void clear_has_start_xpath();
207
inline void set_has_end_marker_xpath();
208
inline void clear_has_end_marker_xpath();
210
::std::string* start_xpath_;
211
::std::string* end_marker_xpath_;
213
mutable int _cached_size_;
214
::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
216
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
217
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_2eproto_impl();
219
friend void protobuf_AddDesc_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_2eproto();
221
friend void protobuf_AssignDesc_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_2eproto();
222
friend void protobuf_ShutdownFile_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_2eproto();
224
void InitAsDefaultInstance();
225
static Panel* default_instance_;
227
// ===================================================================
230
// ===================================================================
234
// repeated .net_instaweb.Panel panels = 1;
235
inline int CriticalLineInfo::panels_size() const {
236
return panels_.size();
238
inline void CriticalLineInfo::clear_panels() {
241
inline const ::net_instaweb::Panel& CriticalLineInfo::panels(int index) const {
242
return panels_.Get(index);
244
inline ::net_instaweb::Panel* CriticalLineInfo::mutable_panels(int index) {
245
return panels_.Mutable(index);
247
inline ::net_instaweb::Panel* CriticalLineInfo::add_panels() {
248
return panels_.Add();
250
inline const ::google::protobuf::RepeatedPtrField< ::net_instaweb::Panel >&
251
CriticalLineInfo::panels() const {
254
inline ::google::protobuf::RepeatedPtrField< ::net_instaweb::Panel >*
255
CriticalLineInfo::mutable_panels() {
259
// -------------------------------------------------------------------
263
// required string start_xpath = 1;
264
inline bool Panel::has_start_xpath() const {
265
return (_has_bits_[0] & 0x00000001u) != 0;
267
inline void Panel::set_has_start_xpath() {
268
_has_bits_[0] |= 0x00000001u;
270
inline void Panel::clear_has_start_xpath() {
271
_has_bits_[0] &= ~0x00000001u;
273
inline void Panel::clear_start_xpath() {
274
if (start_xpath_ != &::google::protobuf::internal::GetEmptyString()) {
275
start_xpath_->clear();
277
clear_has_start_xpath();
279
inline const ::std::string& Panel::start_xpath() const {
280
return *start_xpath_;
282
inline void Panel::set_start_xpath(const ::std::string& value) {
283
set_has_start_xpath();
284
if (start_xpath_ == &::google::protobuf::internal::GetEmptyString()) {
285
start_xpath_ = new ::std::string;
287
start_xpath_->assign(value);
289
inline void Panel::set_start_xpath(const char* value) {
290
set_has_start_xpath();
291
if (start_xpath_ == &::google::protobuf::internal::GetEmptyString()) {
292
start_xpath_ = new ::std::string;
294
start_xpath_->assign(value);
296
inline void Panel::set_start_xpath(const char* value, size_t size) {
297
set_has_start_xpath();
298
if (start_xpath_ == &::google::protobuf::internal::GetEmptyString()) {
299
start_xpath_ = new ::std::string;
301
start_xpath_->assign(reinterpret_cast<const char*>(value), size);
303
inline ::std::string* Panel::mutable_start_xpath() {
304
set_has_start_xpath();
305
if (start_xpath_ == &::google::protobuf::internal::GetEmptyString()) {
306
start_xpath_ = new ::std::string;
310
inline ::std::string* Panel::release_start_xpath() {
311
clear_has_start_xpath();
312
if (start_xpath_ == &::google::protobuf::internal::GetEmptyString()) {
315
::std::string* temp = start_xpath_;
316
start_xpath_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
320
inline void Panel::set_allocated_start_xpath(::std::string* start_xpath) {
321
if (start_xpath_ != &::google::protobuf::internal::GetEmptyString()) {
325
set_has_start_xpath();
326
start_xpath_ = start_xpath;
328
clear_has_start_xpath();
329
start_xpath_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
333
// optional string end_marker_xpath = 2;
334
inline bool Panel::has_end_marker_xpath() const {
335
return (_has_bits_[0] & 0x00000002u) != 0;
337
inline void Panel::set_has_end_marker_xpath() {
338
_has_bits_[0] |= 0x00000002u;
340
inline void Panel::clear_has_end_marker_xpath() {
341
_has_bits_[0] &= ~0x00000002u;
343
inline void Panel::clear_end_marker_xpath() {
344
if (end_marker_xpath_ != &::google::protobuf::internal::GetEmptyString()) {
345
end_marker_xpath_->clear();
347
clear_has_end_marker_xpath();
349
inline const ::std::string& Panel::end_marker_xpath() const {
350
return *end_marker_xpath_;
352
inline void Panel::set_end_marker_xpath(const ::std::string& value) {
353
set_has_end_marker_xpath();
354
if (end_marker_xpath_ == &::google::protobuf::internal::GetEmptyString()) {
355
end_marker_xpath_ = new ::std::string;
357
end_marker_xpath_->assign(value);
359
inline void Panel::set_end_marker_xpath(const char* value) {
360
set_has_end_marker_xpath();
361
if (end_marker_xpath_ == &::google::protobuf::internal::GetEmptyString()) {
362
end_marker_xpath_ = new ::std::string;
364
end_marker_xpath_->assign(value);
366
inline void Panel::set_end_marker_xpath(const char* value, size_t size) {
367
set_has_end_marker_xpath();
368
if (end_marker_xpath_ == &::google::protobuf::internal::GetEmptyString()) {
369
end_marker_xpath_ = new ::std::string;
371
end_marker_xpath_->assign(reinterpret_cast<const char*>(value), size);
373
inline ::std::string* Panel::mutable_end_marker_xpath() {
374
set_has_end_marker_xpath();
375
if (end_marker_xpath_ == &::google::protobuf::internal::GetEmptyString()) {
376
end_marker_xpath_ = new ::std::string;
378
return end_marker_xpath_;
380
inline ::std::string* Panel::release_end_marker_xpath() {
381
clear_has_end_marker_xpath();
382
if (end_marker_xpath_ == &::google::protobuf::internal::GetEmptyString()) {
385
::std::string* temp = end_marker_xpath_;
386
end_marker_xpath_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
390
inline void Panel::set_allocated_end_marker_xpath(::std::string* end_marker_xpath) {
391
if (end_marker_xpath_ != &::google::protobuf::internal::GetEmptyString()) {
392
delete end_marker_xpath_;
394
if (end_marker_xpath) {
395
set_has_end_marker_xpath();
396
end_marker_xpath_ = end_marker_xpath;
398
clear_has_end_marker_xpath();
399
end_marker_xpath_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
404
// @@protoc_insertion_point(namespace_scope)
406
} // namespace net_instaweb
408
// @@protoc_insertion_point(global_scope)
410
#endif // PROTOBUF_net_2finstaweb_2frewriter_2fcritical_5fline_5finfo_2eproto__INCLUDED