blob: 7189fd791ca2e1ac5fbc3bc259f87571a9f25485 [file] [log] [blame]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001// 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
32namespace google {
33namespace protobuf {
34
35// Internal implementation detail -- do not call these.
36void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
37void protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
38void protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto();
39
40class FieldMask;
41
42// ===================================================================
43
44class LIBPROTOBUF_EXPORT FieldMask : public ::google::protobuf::Message {
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
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* 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;
114 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_paths();
115
116 // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask)
117 private:
118
119 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
120 bool _is_default_instance_;
121 ::google::protobuf::RepeatedPtrField< ::std::string> paths_;
122 mutable int _cached_size_;
123 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
124 friend void protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
125 friend void protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto();
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;
139inline int FieldMask::paths_size() const {
140 return paths_.size();
141}
142inline void FieldMask::clear_paths() {
143 paths_.Clear();
144}
145inline const ::std::string& FieldMask::paths(int index) const {
146 // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
147 return paths_.Get(index);
148}
149inline ::std::string* FieldMask::mutable_paths(int index) {
150 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
151 return paths_.Mutable(index);
152}
153inline void FieldMask::set_paths(int index, const ::std::string& value) {
154 // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
155 paths_.Mutable(index)->assign(value);
156}
157inline 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}
161inline 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}
166inline ::std::string* FieldMask::add_paths() {
167 return paths_.Add();
168}
169inline void FieldMask::add_paths(const ::std::string& value) {
170 paths_.Add()->assign(value);
171 // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
172}
173inline void FieldMask::add_paths(const char* value) {
174 paths_.Add()->assign(value);
175 // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths)
176}
177inline void FieldMask::add_paths(const char* value, size_t size) {
178 paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
179 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths)
180}
181inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
182FieldMask::paths() const {
183 // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
184 return paths_;
185}
186inline ::google::protobuf::RepeatedPtrField< ::std::string>*
187FieldMask::mutable_paths() {
188 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths)
189 return &paths_;
190}
191
192#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
193
194// @@protoc_insertion_point(namespace_scope)
195
196} // namespace protobuf
197} // namespace google
198
199// @@protoc_insertion_point(global_scope)
200
201#endif // PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED