OLD | NEW |
1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 // source: google/protobuf/field_mask.proto | 2 // source: google/protobuf/field_mask.proto |
3 | 3 |
4 #ifndef PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED | 4 #ifndef PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED |
5 #define PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED | 5 #define PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include <google/protobuf/stubs/common.h> | 9 #include <google/protobuf/stubs/common.h> |
10 | 10 |
11 #if GOOGLE_PROTOBUF_VERSION < 3000000 | 11 #if GOOGLE_PROTOBUF_VERSION < 3001000 |
12 #error This file was generated by a newer version of protoc which is | 12 #error This file was generated by a newer version of protoc which is |
13 #error incompatible with your Protocol Buffer headers. Please update | 13 #error incompatible with your Protocol Buffer headers. Please update |
14 #error your headers. | 14 #error your headers. |
15 #endif | 15 #endif |
16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION | 16 #if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
17 #error This file was generated by an older version of protoc which is | 17 #error This file was generated by an older version of protoc which is |
18 #error incompatible with your Protocol Buffer headers. Please | 18 #error incompatible with your Protocol Buffer headers. Please |
19 #error regenerate this file with a newer version of protoc. | 19 #error regenerate this file with a newer version of protoc. |
20 #endif | 20 #endif |
21 | 21 |
22 #include <google/protobuf/arena.h> | 22 #include <google/protobuf/arena.h> |
23 #include <google/protobuf/arenastring.h> | 23 #include <google/protobuf/arenastring.h> |
24 #include <google/protobuf/generated_message_util.h> | 24 #include <google/protobuf/generated_message_util.h> |
25 #include <google/protobuf/metadata.h> | 25 #include <google/protobuf/metadata.h> |
26 #include <google/protobuf/message.h> | 26 #include <google/protobuf/message.h> |
27 #include <google/protobuf/repeated_field.h> | 27 #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
28 #include <google/protobuf/extension_set.h> | 28 #include <google/protobuf/extension_set.h> // IWYU pragma: export |
29 #include <google/protobuf/unknown_field_set.h> | 29 #include <google/protobuf/unknown_field_set.h> |
30 // @@protoc_insertion_point(includes) | 30 // @@protoc_insertion_point(includes) |
| 31 namespace google { |
| 32 namespace protobuf { |
| 33 class FieldMask; |
| 34 class FieldMaskDefaultTypeInternal; |
| 35 LIBPROTOBUF_EXPORT extern FieldMaskDefaultTypeInternal _FieldMask_default_instan
ce_; |
| 36 } // namespace protobuf |
| 37 } // namespace google |
31 | 38 |
32 namespace google { | 39 namespace google { |
33 namespace protobuf { | 40 namespace protobuf { |
34 | 41 |
35 // Internal implementation detail -- do not call these. | 42 // Internal implementation detail -- do not call these. |
36 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eprot
o(); | 43 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eprot
o(); |
37 void protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto(); | 44 void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2ffield_5fmask_2
eproto(); |
38 void protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto(); | |
39 | |
40 class FieldMask; | |
41 | 45 |
42 // =================================================================== | 46 // =================================================================== |
43 | 47 |
44 class LIBPROTOBUF_EXPORT FieldMask : public ::google::protobuf::Message { | 48 class LIBPROTOBUF_EXPORT FieldMask : public ::google::protobuf::Message /* @@pro
toc_insertion_point(class_definition:google.protobuf.FieldMask) */ { |
45 public: | 49 public: |
46 FieldMask(); | 50 FieldMask(); |
47 virtual ~FieldMask(); | 51 virtual ~FieldMask(); |
48 | 52 |
49 FieldMask(const FieldMask& from); | 53 FieldMask(const FieldMask& from); |
50 | 54 |
51 inline FieldMask& operator=(const FieldMask& from) { | 55 inline FieldMask& operator=(const FieldMask& from) { |
52 CopyFrom(from); | 56 CopyFrom(from); |
53 return *this; | 57 return *this; |
54 } | 58 } |
55 | 59 |
56 static const ::google::protobuf::Descriptor* descriptor(); | 60 static const ::google::protobuf::Descriptor* descriptor(); |
57 static const FieldMask& default_instance(); | 61 static const FieldMask& default_instance(); |
58 | 62 |
| 63 static inline const FieldMask* internal_default_instance() { |
| 64 return reinterpret_cast<const FieldMask*>( |
| 65 &_FieldMask_default_instance_); |
| 66 } |
| 67 |
59 void Swap(FieldMask* other); | 68 void Swap(FieldMask* other); |
60 | 69 |
61 // implements Message ---------------------------------------------- | 70 // implements Message ---------------------------------------------- |
62 | 71 |
63 inline FieldMask* New() const { return New(NULL); } | 72 inline FieldMask* New() const PROTOBUF_FINAL { return New(NULL); } |
64 | 73 |
65 FieldMask* New(::google::protobuf::Arena* arena) const; | 74 FieldMask* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
66 void CopyFrom(const ::google::protobuf::Message& from); | 75 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
67 void MergeFrom(const ::google::protobuf::Message& from); | 76 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
68 void CopyFrom(const FieldMask& from); | 77 void CopyFrom(const FieldMask& from); |
69 void MergeFrom(const FieldMask& from); | 78 void MergeFrom(const FieldMask& from); |
70 void Clear(); | 79 void Clear() PROTOBUF_FINAL; |
71 bool IsInitialized() const; | 80 bool IsInitialized() const PROTOBUF_FINAL; |
72 | 81 |
73 int ByteSize() const; | 82 size_t ByteSizeLong() const PROTOBUF_FINAL; |
74 bool MergePartialFromCodedStream( | 83 bool MergePartialFromCodedStream( |
75 ::google::protobuf::io::CodedInputStream* input); | 84 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
76 void SerializeWithCachedSizes( | 85 void SerializeWithCachedSizes( |
77 ::google::protobuf::io::CodedOutputStream* output) const; | 86 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
78 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; | 87 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
79 int GetCachedSize() const { return _cached_size_; } | 88 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; |
| 89 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) |
| 90 const PROTOBUF_FINAL { |
| 91 return InternalSerializeWithCachedSizesToArray(false, output); |
| 92 } |
| 93 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
80 private: | 94 private: |
81 void SharedCtor(); | 95 void SharedCtor(); |
82 void SharedDtor(); | 96 void SharedDtor(); |
83 void SetCachedSize(int size) const; | 97 void SetCachedSize(int size) const PROTOBUF_FINAL; |
84 void InternalSwap(FieldMask* other); | 98 void InternalSwap(FieldMask* other); |
85 private: | 99 private: |
86 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | 100 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
87 return _internal_metadata_.arena(); | 101 return NULL; |
88 } | 102 } |
89 inline void* MaybeArenaPtr() const { | 103 inline void* MaybeArenaPtr() const { |
90 return _internal_metadata_.raw_arena_ptr(); | 104 return NULL; |
91 } | 105 } |
92 public: | 106 public: |
93 | 107 |
94 ::google::protobuf::Metadata GetMetadata() const; | 108 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
95 | 109 |
96 // nested types ---------------------------------------------------- | 110 // nested types ---------------------------------------------------- |
97 | 111 |
98 // accessors ------------------------------------------------------- | 112 // accessors ------------------------------------------------------- |
99 | 113 |
100 // repeated string paths = 1; | 114 // repeated string paths = 1; |
101 int paths_size() const; | 115 int paths_size() const; |
102 void clear_paths(); | 116 void clear_paths(); |
103 static const int kPathsFieldNumber = 1; | 117 static const int kPathsFieldNumber = 1; |
104 const ::std::string& paths(int index) const; | 118 const ::std::string& paths(int index) const; |
105 ::std::string* mutable_paths(int index); | 119 ::std::string* mutable_paths(int index); |
106 void set_paths(int index, const ::std::string& value); | 120 void set_paths(int index, const ::std::string& value); |
107 void set_paths(int index, const char* value); | 121 void set_paths(int index, const char* value); |
108 void set_paths(int index, const char* value, size_t size); | 122 void set_paths(int index, const char* value, size_t size); |
109 ::std::string* add_paths(); | 123 ::std::string* add_paths(); |
110 void add_paths(const ::std::string& value); | 124 void add_paths(const ::std::string& value); |
111 void add_paths(const char* value); | 125 void add_paths(const char* value); |
112 void add_paths(const char* value, size_t size); | 126 void add_paths(const char* value, size_t size); |
113 const ::google::protobuf::RepeatedPtrField< ::std::string>& paths() const; | 127 const ::google::protobuf::RepeatedPtrField< ::std::string>& paths() const; |
114 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_paths(); | 128 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_paths(); |
115 | 129 |
116 // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask) | 130 // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask) |
117 private: | 131 private: |
118 | 132 |
119 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | 133 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
120 bool _is_default_instance_; | |
121 ::google::protobuf::RepeatedPtrField< ::std::string> paths_; | 134 ::google::protobuf::RepeatedPtrField< ::std::string> paths_; |
122 mutable int _cached_size_; | 135 mutable int _cached_size_; |
123 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ffield_5fma
sk_2eproto(); | 136 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2ffield
_5fmask_2eproto_impl(); |
124 friend void protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto(); | 137 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ffield_5fma
sk_2eproto_impl(); |
| 138 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f
field_5fmask_2eproto(); |
125 friend void protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto(); | 139 friend void protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto(); |
126 | 140 |
127 void InitAsDefaultInstance(); | |
128 static FieldMask* default_instance_; | |
129 }; | 141 }; |
130 // =================================================================== | 142 // =================================================================== |
131 | 143 |
132 | 144 |
133 // =================================================================== | 145 // =================================================================== |
134 | 146 |
135 #if !PROTOBUF_INLINE_NOT_IN_HEADERS | 147 #if !PROTOBUF_INLINE_NOT_IN_HEADERS |
136 // FieldMask | 148 // FieldMask |
137 | 149 |
138 // repeated string paths = 1; | 150 // repeated string paths = 1; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 inline ::google::protobuf::RepeatedPtrField< ::std::string>* | 199 inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
188 FieldMask::mutable_paths() { | 200 FieldMask::mutable_paths() { |
189 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths
) | 201 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths
) |
190 return &paths_; | 202 return &paths_; |
191 } | 203 } |
192 | 204 |
193 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS | 205 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS |
194 | 206 |
195 // @@protoc_insertion_point(namespace_scope) | 207 // @@protoc_insertion_point(namespace_scope) |
196 | 208 |
| 209 |
197 } // namespace protobuf | 210 } // namespace protobuf |
198 } // namespace google | 211 } // namespace google |
199 | 212 |
200 // @@protoc_insertion_point(global_scope) | 213 // @@protoc_insertion_point(global_scope) |
201 | 214 |
202 #endif // PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED | 215 #endif // PROTOBUF_google_2fprotobuf_2ffield_5fmask_2eproto__INCLUDED |
OLD | NEW |