/src/google/protobuf/field_mask.pb.h

https://gitlab.com/admin-github-cloud/protobuf · C Header · 206 lines · 145 code · 34 blank · 27 comment · 0 complexity · 1ed7fde81408afd7e4de1837f14547db MD5 · raw file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/field_mask.proto
  3. #ifndef PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED
  4. #define PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3000000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/arena.h>
  18. #include <google/protobuf/arenastring.h>
  19. #include <google/protobuf/generated_message_util.h>
  20. #include <google/protobuf/metadata.h>
  21. #include <google/protobuf/message.h>
  22. #include <google/protobuf/repeated_field.h>
  23. #include <google/protobuf/extension_set.h>
  24. #include <google/protobuf/unknown_field_set.h>
  25. // @@protoc_insertion_point(includes)
  26. namespace google {
  27. namespace protobuf {
  28. // Internal implementation detail -- do not call these.
  29. void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
  30. void protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
  31. void protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto();
  32. class FieldMask;
  33. // ===================================================================
  34. class LIBPROTOBUF_EXPORT FieldMask : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldMask) */ {
  35. public:
  36. FieldMask();
  37. virtual ~FieldMask();
  38. FieldMask(const FieldMask& from);
  39. inline FieldMask& operator=(const FieldMask& from) {
  40. CopyFrom(from);
  41. return *this;
  42. }
  43. static const ::google::protobuf::Descriptor* descriptor();
  44. static const FieldMask& default_instance();
  45. void Swap(FieldMask* other);
  46. // implements Message ----------------------------------------------
  47. inline FieldMask* New() const { return New(NULL); }
  48. FieldMask* New(::google::protobuf::Arena* arena) const;
  49. void CopyFrom(const ::google::protobuf::Message& from);
  50. void MergeFrom(const ::google::protobuf::Message& from);
  51. void CopyFrom(const FieldMask& from);
  52. void MergeFrom(const FieldMask& from);
  53. void Clear();
  54. bool IsInitialized() const;
  55. int ByteSize() const;
  56. bool MergePartialFromCodedStream(
  57. ::google::protobuf::io::CodedInputStream* input);
  58. void SerializeWithCachedSizes(
  59. ::google::protobuf::io::CodedOutputStream* output) const;
  60. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  61. bool deterministic, ::google::protobuf::uint8* output) const;
  62. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
  63. return InternalSerializeWithCachedSizesToArray(false, output);
  64. }
  65. int GetCachedSize() const { return _cached_size_; }
  66. private:
  67. void SharedCtor();
  68. void SharedDtor();
  69. void SetCachedSize(int size) const;
  70. void InternalSwap(FieldMask* other);
  71. private:
  72. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  73. return _internal_metadata_.arena();
  74. }
  75. inline void* MaybeArenaPtr() const {
  76. return _internal_metadata_.raw_arena_ptr();
  77. }
  78. public:
  79. ::google::protobuf::Metadata GetMetadata() const;
  80. // nested types ----------------------------------------------------
  81. // accessors -------------------------------------------------------
  82. // repeated string paths = 1;
  83. int paths_size() const;
  84. void clear_paths();
  85. static const int kPathsFieldNumber = 1;
  86. const ::std::string& paths(int index) const;
  87. ::std::string* mutable_paths(int index);
  88. void set_paths(int index, const ::std::string& value);
  89. void set_paths(int index, const char* value);
  90. void set_paths(int index, const char* value, size_t size);
  91. ::std::string* add_paths();
  92. void add_paths(const ::std::string& value);
  93. void add_paths(const char* value);
  94. void add_paths(const char* value, size_t size);
  95. const ::google::protobuf::RepeatedPtrField< ::std::string>& paths() const;
  96. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_paths();
  97. // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask)
  98. private:
  99. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  100. bool _is_default_instance_;
  101. ::google::protobuf::RepeatedPtrField< ::std::string> paths_;
  102. mutable int _cached_size_;
  103. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
  104. friend void protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
  105. friend void protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto();
  106. void InitAsDefaultInstance();
  107. static FieldMask* default_instance_;
  108. };
  109. // ===================================================================
  110. // ===================================================================
  111. #if !PROTOBUF_INLINE_NOT_IN_HEADERS
  112. // FieldMask
  113. // repeated string paths = 1;
  114. inline int FieldMask::paths_size() const {
  115. return paths_.size();
  116. }
  117. inline void FieldMask::clear_paths() {
  118. paths_.Clear();
  119. }
  120. inline const ::std::string& FieldMask::paths(int index) const {
  121. // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
  122. return paths_.Get(index);
  123. }
  124. inline ::std::string* FieldMask::mutable_paths(int index) {
  125. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
  126. return paths_.Mutable(index);
  127. }
  128. inline void FieldMask::set_paths(int index, const ::std::string& value) {
  129. // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
  130. paths_.Mutable(index)->assign(value);
  131. }
  132. inline void FieldMask::set_paths(int index, const char* value) {
  133. paths_.Mutable(index)->assign(value);
  134. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths)
  135. }
  136. inline void FieldMask::set_paths(int index, const char* value, size_t size) {
  137. paths_.Mutable(index)->assign(
  138. reinterpret_cast<const char*>(value), size);
  139. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths)
  140. }
  141. inline ::std::string* FieldMask::add_paths() {
  142. // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths)
  143. return paths_.Add();
  144. }
  145. inline void FieldMask::add_paths(const ::std::string& value) {
  146. paths_.Add()->assign(value);
  147. // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
  148. }
  149. inline void FieldMask::add_paths(const char* value) {
  150. paths_.Add()->assign(value);
  151. // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths)
  152. }
  153. inline void FieldMask::add_paths(const char* value, size_t size) {
  154. paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
  155. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths)
  156. }
  157. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  158. FieldMask::paths() const {
  159. // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
  160. return paths_;
  161. }
  162. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  163. FieldMask::mutable_paths() {
  164. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths)
  165. return &paths_;
  166. }
  167. #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
  168. // @@protoc_insertion_point(namespace_scope)
  169. } // namespace protobuf
  170. } // namespace google
  171. // @@protoc_insertion_point(global_scope)
  172. #endif // PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED