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