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
9 #include <google/protobuf/stubs/common.h>
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>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
30 // @@protoc_insertion_point(includes)
31
32 namespace google {
33 namespace protobuf {
34
35 // Internal implementation detail -- do not call these.
36 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
37 void protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
38 void protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto();
39
40 class FieldMask;
41
42 // ===================================================================
43
44 class LIBPROTOBUF_EXPORT FieldMask : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldMask) */ {
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
56 static const ::google::protobuf::Descriptor* descriptor();
57 static const FieldMask& default_instance();
58
59 void Swap(FieldMask* other);
60
61 // implements Message ----------------------------------------------
62
New()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);
67 void MergeFrom(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(
75 ::google::protobuf::io::CodedInputStream* input);
76 void SerializeWithCachedSizes(
77 ::google::protobuf::io::CodedOutputStream* output) const;
78 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
79 bool deterministic, ::google::protobuf::uint8* output) const;
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * output)80 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
81 return InternalSerializeWithCachedSizesToArray(false, output);
82 }
GetCachedSize()83 int GetCachedSize() const { return _cached_size_; }
84 private:
85 void SharedCtor();
86 void SharedDtor();
87 void SetCachedSize(int size) const;
88 void InternalSwap(FieldMask* other);
89 private:
GetArenaNoVirtual()90 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
91 return _internal_metadata_.arena();
92 }
MaybeArenaPtr()93 inline void* MaybeArenaPtr() const {
94 return _internal_metadata_.raw_arena_ptr();
95 }
96 public:
97
98 ::google::protobuf::Metadata GetMetadata() const;
99
100 // nested types ----------------------------------------------------
101
102 // accessors -------------------------------------------------------
103
104 // repeated string paths = 1;
105 int paths_size() const;
106 void clear_paths();
107 static const int kPathsFieldNumber = 1;
108 const ::std::string& paths(int index) const;
109 ::std::string* mutable_paths(int index);
110 void set_paths(int index, const ::std::string& value);
111 void set_paths(int index, const char* value);
112 void set_paths(int index, const char* value, size_t size);
113 ::std::string* add_paths();
114 void add_paths(const ::std::string& value);
115 void add_paths(const char* value);
116 void add_paths(const char* value, size_t size);
117 const ::google::protobuf::RepeatedPtrField< ::std::string>& paths() const;
118 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_paths();
119
120 // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask)
121 private:
122
123 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
124 bool _is_default_instance_;
125 ::google::protobuf::RepeatedPtrField< ::std::string> paths_;
126 mutable int _cached_size_;
127 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
128 friend void protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
129 friend void protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto();
130
131 void InitAsDefaultInstance();
132 static FieldMask* default_instance_;
133 };
134 // ===================================================================
135
136
137 // ===================================================================
138
139 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
140 // FieldMask
141
142 // repeated string paths = 1;
paths_size()143 inline int FieldMask::paths_size() const {
144 return paths_.size();
145 }
clear_paths()146 inline void FieldMask::clear_paths() {
147 paths_.Clear();
148 }
paths(int index)149 inline const ::std::string& FieldMask::paths(int index) const {
150 // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
151 return paths_.Get(index);
152 }
mutable_paths(int index)153 inline ::std::string* FieldMask::mutable_paths(int index) {
154 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
155 return paths_.Mutable(index);
156 }
set_paths(int index,const::std::string & value)157 inline void FieldMask::set_paths(int index, const ::std::string& value) {
158 // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
159 paths_.Mutable(index)->assign(value);
160 }
set_paths(int index,const char * value)161 inline void FieldMask::set_paths(int index, const char* value) {
162 paths_.Mutable(index)->assign(value);
163 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths)
164 }
set_paths(int index,const char * value,size_t size)165 inline void FieldMask::set_paths(int index, const char* value, size_t size) {
166 paths_.Mutable(index)->assign(
167 reinterpret_cast<const char*>(value), size);
168 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths)
169 }
add_paths()170 inline ::std::string* FieldMask::add_paths() {
171 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths)
172 return paths_.Add();
173 }
add_paths(const::std::string & value)174 inline void FieldMask::add_paths(const ::std::string& value) {
175 paths_.Add()->assign(value);
176 // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
177 }
add_paths(const char * value)178 inline void FieldMask::add_paths(const char* value) {
179 paths_.Add()->assign(value);
180 // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths)
181 }
add_paths(const char * value,size_t size)182 inline void FieldMask::add_paths(const char* value, size_t size) {
183 paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
184 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths)
185 }
186 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
paths()187 FieldMask::paths() const {
188 // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
189 return paths_;
190 }
191 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_paths()192 FieldMask::mutable_paths() {
193 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths)
194 return &paths_;
195 }
196
197 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
198
199 // @@protoc_insertion_point(namespace_scope)
200
201 } // namespace protobuf
202 } // namespace google
203
204 // @@protoc_insertion_point(global_scope)
205
206 #endif // PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED
207