webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
field_mask.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/field_mask.proto
3 
4 #ifndef PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED
5 #define PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED
6 
7 #include <string>
8 
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3000000 < 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.
20 #endif
21 
22 #include <google/protobuf/arena.h>
30 // @@protoc_insertion_point(includes)
31 
32 namespace google {
33 namespace protobuf {
34 
35 // Internal implementation detail -- do not call these.
39 
40 class FieldMask;
41 
42 // ===================================================================
43 
45  public:
46  FieldMask();
47  virtual ~FieldMask();
48 
49  FieldMask(const FieldMask& from);
50 
51  inline FieldMask& operator=(const FieldMask& from) {
52  CopyFrom(from);
53  return *this;
54  }
55 
57  static const FieldMask& default_instance();
58 
59  void Swap(FieldMask* other);
60 
61  // implements Message ----------------------------------------------
62 
63  inline FieldMask* New() const { return New(NULL); }
64 
65  FieldMask* New(::google::protobuf::Arena* arena) const;
66  void CopyFrom(const ::google::protobuf::Message& from);
68  void CopyFrom(const FieldMask& from);
69  void MergeFrom(const FieldMask& from);
70  void Clear();
71  bool IsInitialized() const;
72 
73  int ByteSize() const;
74  bool MergePartialFromCodedStream(
76  void SerializeWithCachedSizes(
78  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
79  int GetCachedSize() const { return _cached_size_; }
80  private:
81  void SharedCtor();
82  void SharedDtor();
83  void SetCachedSize(int size) const;
84  void InternalSwap(FieldMask* other);
85  private:
86  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
87  return _internal_metadata_.arena();
88  }
89  inline void* MaybeArenaPtr() const {
90  return _internal_metadata_.raw_arena_ptr();
91  }
92  public:
93 
94  ::google::protobuf::Metadata GetMetadata() const;
95 
96  // nested types ----------------------------------------------------
97 
98  // accessors -------------------------------------------------------
99 
100  // repeated string paths = 1;
101  int paths_size() const;
102  void clear_paths();
103  static const int kPathsFieldNumber = 1;
104  const ::std::string& paths(int index) const;
105  ::std::string* mutable_paths(int index);
106  void set_paths(int index, const ::std::string& value);
107  void set_paths(int index, const char* value);
108  void set_paths(int index, const char* value, size_t size);
109  ::std::string* add_paths();
110  void add_paths(const ::std::string& value);
111  void add_paths(const char* value);
112  void add_paths(const char* value, size_t size);
113  const ::google::protobuf::RepeatedPtrField< ::std::string>& paths() const;
115 
116  // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask)
117  private:
118 
120  bool _is_default_instance_;
122  mutable int _cached_size_;
126 
127  void InitAsDefaultInstance();
128  static FieldMask* default_instance_;
129 };
130 // ===================================================================
131 
132 
133 // ===================================================================
134 
135 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
136 // FieldMask
137 
138 // repeated string paths = 1;
139 inline int FieldMask::paths_size() const {
140  return paths_.size();
141 }
142 inline void FieldMask::clear_paths() {
143  paths_.Clear();
144 }
146  // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
147  return paths_.Get(index);
148 }
150  // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
151  return paths_.Mutable(index);
152 }
154  // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
155  paths_.Mutable(index)->assign(value);
156 }
157 inline void FieldMask::set_paths(int index, const char* value) {
158  paths_.Mutable(index)->assign(value);
159  // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths)
160 }
161 inline void FieldMask::set_paths(int index, const char* value, size_t size) {
162  paths_.Mutable(index)->assign(
163  reinterpret_cast<const char*>(value), size);
164  // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths)
165 }
167  // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths)
168  return paths_.Add();
169 }
171  paths_.Add()->assign(value);
172  // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
173 }
174 inline void FieldMask::add_paths(const char* value) {
175  paths_.Add()->assign(value);
176  // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths)
177 }
178 inline void FieldMask::add_paths(const char* value, size_t size) {
179  paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
180  // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths)
181 }
182 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
184  // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
185  return paths_;
186 }
187 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
189  // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths)
190  return &paths_;
191 }
192 
193 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
194 
195 // @@protoc_insertion_point(namespace_scope)
196 
197 } // namespace protobuf
198 } // namespace google
199 
200 // @@protoc_insertion_point(global_scope)
201 
202 #endif // PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED
FieldMask & operator=(const FieldMask &from)
Definition: field_mask.pb.h:51
Definition: message.h:179
EGLStreamKHR EGLint EGLint EGLint size
Definition: eglext.h:984
void set_paths(int index, const ::std::string &value)
Definition: field_mask.pb.h:153
int paths_size() const
Definition: field_mask.pb.h:139
const ::google::protobuf::RepeatedPtrField< ::std::string > & paths() const
Definition: field_mask.pb.h:183
struct Descriptor Descriptor
Definition: protobuf.h:23
const Descriptor * descriptor
Definition: descriptor.cc:271
uint8_t uint8
Definition: port.h:133
::std::string * add_paths()
Definition: field_mask.pb.h:166
Message
Definition: peerconnection_unittest.cc:105
Definition: message.h:164
#define output
Definition: wire_format_lite.h:418
void protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto()
Definition: field_mask.pb.cc:32
GLenum const void * paths
Definition: gl2ext.h:935
IsInitialized
Definition: python_message.py:1169
void protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto()
Definition: field_mask.pb.cc:76
GLuint index
Definition: gl2.h:383
EGLAttrib * value
Definition: eglext.h:120
void clear_paths()
Definition: field_mask.pb.h:142
::google::protobuf::RepeatedPtrField< ::std::string > * mutable_paths()
Definition: field_mask.pb.h:188
Definition: __init__.py:1
int GetCachedSize() const
Definition: field_mask.pb.h:79
Definition: arena.h:218
GLsizei const GLchar *const * string
Definition: gl2.h:479
const Element & Get(int index) const
Definition: repeated_field.h:1828
#define NULL
Definition: common_types.h:41
void protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto()
Definition: field_mask.pb.cc:71
Element * Mutable(int index)
Definition: repeated_field.h:1834
#define LIBPROTOBUF_EXPORT
Definition: port.h:97
Definition: gflags_completions.h:115
string input
Definition: tokenizer_unittest.cc:198
ByteSize
Definition: python_message.py:1040
Definition: coded_stream.h:665
Definition: coded_stream.h:159
FieldMask * New() const
Definition: field_mask.pb.h:63
Definition: field_mask.pb.h:44
MergeFrom
Definition: python_message.py:1259