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 { 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; 139 inline int FieldMask::paths_size() const { 140 return paths_.size(); 141 } 142 inline void FieldMask::clear_paths() { 143 paths_.Clear(); 144 } 145 inline const ::std::string& FieldMask::paths(int index) const { 146 // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths) 147 return paths_.Get(index); 148 } 149 inline ::std::string* FieldMask::mutable_paths(int index) { 150 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths) 151 return paths_.Mutable(index); 152 } 153 inline 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 } 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 } 166 inline ::std::string* FieldMask::add_paths() { 167 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths) 168 return paths_.Add(); 169 } 170 inline void FieldMask::add_paths(const ::std::string& value) { 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>& 183 FieldMask::paths() const { 184 // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths) 185 return paths_; 186 } 187 inline ::google::protobuf::RepeatedPtrField< ::std::string>* 188 FieldMask::mutable_paths() { 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 203