1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: google/protobuf/wrappers.proto |
3 | |
4 | #include <google/protobuf/wrappers.pb.h> |
5 | |
6 | #include <algorithm> |
7 | |
8 | #include <google/protobuf/io/coded_stream.h> |
9 | #include <google/protobuf/extension_set.h> |
10 | #include <google/protobuf/wire_format_lite.h> |
11 | #include <google/protobuf/descriptor.h> |
12 | #include <google/protobuf/generated_message_reflection.h> |
13 | #include <google/protobuf/reflection_ops.h> |
14 | #include <google/protobuf/wire_format.h> |
15 | // @@protoc_insertion_point(includes) |
16 | #include <google/protobuf/port_def.inc> |
17 | |
18 | PROTOBUF_PRAGMA_INIT_SEG |
19 | |
20 | namespace _pb = ::PROTOBUF_NAMESPACE_ID; |
21 | namespace _pbi = _pb::internal; |
22 | |
23 | PROTOBUF_NAMESPACE_OPEN |
24 | PROTOBUF_CONSTEXPR DoubleValue::DoubleValue( |
25 | ::_pbi::ConstantInitialized): _impl_{ |
26 | /*decltype(_impl_.value_)*/.value_: 0 |
27 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}} {} |
28 | struct DoubleValueDefaultTypeInternal { |
29 | PROTOBUF_CONSTEXPR DoubleValueDefaultTypeInternal() |
30 | : _instance(::_pbi::ConstantInitialized{}) {} |
31 | ~DoubleValueDefaultTypeInternal() {} |
32 | union { |
33 | DoubleValue _instance; |
34 | }; |
35 | }; |
36 | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoubleValueDefaultTypeInternal _DoubleValue_default_instance_; |
37 | PROTOBUF_CONSTEXPR FloatValue::FloatValue( |
38 | ::_pbi::ConstantInitialized): _impl_{ |
39 | /*decltype(_impl_.value_)*/.value_: 0 |
40 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}} {} |
41 | struct FloatValueDefaultTypeInternal { |
42 | PROTOBUF_CONSTEXPR FloatValueDefaultTypeInternal() |
43 | : _instance(::_pbi::ConstantInitialized{}) {} |
44 | ~FloatValueDefaultTypeInternal() {} |
45 | union { |
46 | FloatValue _instance; |
47 | }; |
48 | }; |
49 | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FloatValueDefaultTypeInternal _FloatValue_default_instance_; |
50 | PROTOBUF_CONSTEXPR Int64Value::Int64Value( |
51 | ::_pbi::ConstantInitialized): _impl_{ |
52 | /*decltype(_impl_.value_)*/.value_: int64_t{0} |
53 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}} {} |
54 | struct Int64ValueDefaultTypeInternal { |
55 | PROTOBUF_CONSTEXPR Int64ValueDefaultTypeInternal() |
56 | : _instance(::_pbi::ConstantInitialized{}) {} |
57 | ~Int64ValueDefaultTypeInternal() {} |
58 | union { |
59 | Int64Value _instance; |
60 | }; |
61 | }; |
62 | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Int64ValueDefaultTypeInternal _Int64Value_default_instance_; |
63 | PROTOBUF_CONSTEXPR UInt64Value::UInt64Value( |
64 | ::_pbi::ConstantInitialized): _impl_{ |
65 | /*decltype(_impl_.value_)*/.value_: uint64_t{0u} |
66 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}} {} |
67 | struct UInt64ValueDefaultTypeInternal { |
68 | PROTOBUF_CONSTEXPR UInt64ValueDefaultTypeInternal() |
69 | : _instance(::_pbi::ConstantInitialized{}) {} |
70 | ~UInt64ValueDefaultTypeInternal() {} |
71 | union { |
72 | UInt64Value _instance; |
73 | }; |
74 | }; |
75 | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UInt64ValueDefaultTypeInternal _UInt64Value_default_instance_; |
76 | PROTOBUF_CONSTEXPR Int32Value::Int32Value( |
77 | ::_pbi::ConstantInitialized): _impl_{ |
78 | /*decltype(_impl_.value_)*/.value_: 0 |
79 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}} {} |
80 | struct Int32ValueDefaultTypeInternal { |
81 | PROTOBUF_CONSTEXPR Int32ValueDefaultTypeInternal() |
82 | : _instance(::_pbi::ConstantInitialized{}) {} |
83 | ~Int32ValueDefaultTypeInternal() {} |
84 | union { |
85 | Int32Value _instance; |
86 | }; |
87 | }; |
88 | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Int32ValueDefaultTypeInternal _Int32Value_default_instance_; |
89 | PROTOBUF_CONSTEXPR UInt32Value::UInt32Value( |
90 | ::_pbi::ConstantInitialized): _impl_{ |
91 | /*decltype(_impl_.value_)*/.value_: 0u |
92 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}} {} |
93 | struct UInt32ValueDefaultTypeInternal { |
94 | PROTOBUF_CONSTEXPR UInt32ValueDefaultTypeInternal() |
95 | : _instance(::_pbi::ConstantInitialized{}) {} |
96 | ~UInt32ValueDefaultTypeInternal() {} |
97 | union { |
98 | UInt32Value _instance; |
99 | }; |
100 | }; |
101 | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UInt32ValueDefaultTypeInternal _UInt32Value_default_instance_; |
102 | PROTOBUF_CONSTEXPR BoolValue::BoolValue( |
103 | ::_pbi::ConstantInitialized): _impl_{ |
104 | /*decltype(_impl_.value_)*/.value_: false |
105 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}} {} |
106 | struct BoolValueDefaultTypeInternal { |
107 | PROTOBUF_CONSTEXPR BoolValueDefaultTypeInternal() |
108 | : _instance(::_pbi::ConstantInitialized{}) {} |
109 | ~BoolValueDefaultTypeInternal() {} |
110 | union { |
111 | BoolValue _instance; |
112 | }; |
113 | }; |
114 | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoolValueDefaultTypeInternal _BoolValue_default_instance_; |
115 | PROTOBUF_CONSTEXPR StringValue::StringValue( |
116 | ::_pbi::ConstantInitialized): _impl_{ |
117 | /*decltype(_impl_.value_)*/.value_: {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
118 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}} {} |
119 | struct StringValueDefaultTypeInternal { |
120 | PROTOBUF_CONSTEXPR StringValueDefaultTypeInternal() |
121 | : _instance(::_pbi::ConstantInitialized{}) {} |
122 | ~StringValueDefaultTypeInternal() {} |
123 | union { |
124 | StringValue _instance; |
125 | }; |
126 | }; |
127 | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StringValueDefaultTypeInternal _StringValue_default_instance_; |
128 | PROTOBUF_CONSTEXPR BytesValue::BytesValue( |
129 | ::_pbi::ConstantInitialized): _impl_{ |
130 | /*decltype(_impl_.value_)*/.value_: {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
131 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}} {} |
132 | struct BytesValueDefaultTypeInternal { |
133 | PROTOBUF_CONSTEXPR BytesValueDefaultTypeInternal() |
134 | : _instance(::_pbi::ConstantInitialized{}) {} |
135 | ~BytesValueDefaultTypeInternal() {} |
136 | union { |
137 | BytesValue _instance; |
138 | }; |
139 | }; |
140 | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BytesValueDefaultTypeInternal _BytesValue_default_instance_; |
141 | PROTOBUF_NAMESPACE_CLOSE |
142 | static ::_pb::Metadata file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[9]; |
143 | static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fwrappers_2eproto = nullptr; |
144 | static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2fwrappers_2eproto = nullptr; |
145 | |
146 | const uint32_t TableStruct_google_2fprotobuf_2fwrappers_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
147 | ~0u, // no _has_bits_ |
148 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DoubleValue, _internal_metadata_), |
149 | ~0u, // no _extensions_ |
150 | ~0u, // no _oneof_case_ |
151 | ~0u, // no _weak_field_map_ |
152 | ~0u, // no _inlined_string_donated_ |
153 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::DoubleValue, _impl_.value_), |
154 | ~0u, // no _has_bits_ |
155 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FloatValue, _internal_metadata_), |
156 | ~0u, // no _extensions_ |
157 | ~0u, // no _oneof_case_ |
158 | ~0u, // no _weak_field_map_ |
159 | ~0u, // no _inlined_string_donated_ |
160 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::FloatValue, _impl_.value_), |
161 | ~0u, // no _has_bits_ |
162 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Int64Value, _internal_metadata_), |
163 | ~0u, // no _extensions_ |
164 | ~0u, // no _oneof_case_ |
165 | ~0u, // no _weak_field_map_ |
166 | ~0u, // no _inlined_string_donated_ |
167 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Int64Value, _impl_.value_), |
168 | ~0u, // no _has_bits_ |
169 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UInt64Value, _internal_metadata_), |
170 | ~0u, // no _extensions_ |
171 | ~0u, // no _oneof_case_ |
172 | ~0u, // no _weak_field_map_ |
173 | ~0u, // no _inlined_string_donated_ |
174 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UInt64Value, _impl_.value_), |
175 | ~0u, // no _has_bits_ |
176 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Int32Value, _internal_metadata_), |
177 | ~0u, // no _extensions_ |
178 | ~0u, // no _oneof_case_ |
179 | ~0u, // no _weak_field_map_ |
180 | ~0u, // no _inlined_string_donated_ |
181 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Int32Value, _impl_.value_), |
182 | ~0u, // no _has_bits_ |
183 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UInt32Value, _internal_metadata_), |
184 | ~0u, // no _extensions_ |
185 | ~0u, // no _oneof_case_ |
186 | ~0u, // no _weak_field_map_ |
187 | ~0u, // no _inlined_string_donated_ |
188 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::UInt32Value, _impl_.value_), |
189 | ~0u, // no _has_bits_ |
190 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::BoolValue, _internal_metadata_), |
191 | ~0u, // no _extensions_ |
192 | ~0u, // no _oneof_case_ |
193 | ~0u, // no _weak_field_map_ |
194 | ~0u, // no _inlined_string_donated_ |
195 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::BoolValue, _impl_.value_), |
196 | ~0u, // no _has_bits_ |
197 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::StringValue, _internal_metadata_), |
198 | ~0u, // no _extensions_ |
199 | ~0u, // no _oneof_case_ |
200 | ~0u, // no _weak_field_map_ |
201 | ~0u, // no _inlined_string_donated_ |
202 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::StringValue, _impl_.value_), |
203 | ~0u, // no _has_bits_ |
204 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::BytesValue, _internal_metadata_), |
205 | ~0u, // no _extensions_ |
206 | ~0u, // no _oneof_case_ |
207 | ~0u, // no _weak_field_map_ |
208 | ~0u, // no _inlined_string_donated_ |
209 | PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::BytesValue, _impl_.value_), |
210 | }; |
211 | static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
212 | { .offsets_index: 0, .has_bit_indices_index: -1, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::DoubleValue)}, |
213 | { .offsets_index: 7, .has_bit_indices_index: -1, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::FloatValue)}, |
214 | { .offsets_index: 14, .has_bit_indices_index: -1, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::Int64Value)}, |
215 | { .offsets_index: 21, .has_bit_indices_index: -1, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::UInt64Value)}, |
216 | { .offsets_index: 28, .has_bit_indices_index: -1, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::Int32Value)}, |
217 | { .offsets_index: 35, .has_bit_indices_index: -1, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::UInt32Value)}, |
218 | { .offsets_index: 42, .has_bit_indices_index: -1, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::BoolValue)}, |
219 | { .offsets_index: 49, .has_bit_indices_index: -1, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::StringValue)}, |
220 | { .offsets_index: 56, .has_bit_indices_index: -1, .inlined_string_indices_index: -1, .object_size: sizeof(::PROTOBUF_NAMESPACE_ID::BytesValue)}, |
221 | }; |
222 | |
223 | static const ::_pb::Message* const file_default_instances[] = { |
224 | &::PROTOBUF_NAMESPACE_ID::_DoubleValue_default_instance_._instance, |
225 | &::PROTOBUF_NAMESPACE_ID::_FloatValue_default_instance_._instance, |
226 | &::PROTOBUF_NAMESPACE_ID::_Int64Value_default_instance_._instance, |
227 | &::PROTOBUF_NAMESPACE_ID::_UInt64Value_default_instance_._instance, |
228 | &::PROTOBUF_NAMESPACE_ID::_Int32Value_default_instance_._instance, |
229 | &::PROTOBUF_NAMESPACE_ID::_UInt32Value_default_instance_._instance, |
230 | &::PROTOBUF_NAMESPACE_ID::_BoolValue_default_instance_._instance, |
231 | &::PROTOBUF_NAMESPACE_ID::_StringValue_default_instance_._instance, |
232 | &::PROTOBUF_NAMESPACE_ID::_BytesValue_default_instance_._instance, |
233 | }; |
234 | |
235 | const char descriptor_table_protodef_google_2fprotobuf_2fwrappers_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
236 | "\n\036google/protobuf/wrappers.proto\022\017google" |
237 | ".protobuf\"\034\n\013DoubleValue\022\r\n\005value\030\001 \001(\001\"" |
238 | "\033\n\nFloatValue\022\r\n\005value\030\001 \001(\002\"\033\n\nInt64Val" |
239 | "ue\022\r\n\005value\030\001 \001(\003\"\034\n\013UInt64Value\022\r\n\005valu" |
240 | "e\030\001 \001(\004\"\033\n\nInt32Value\022\r\n\005value\030\001 \001(\005\"\034\n\013" |
241 | "UInt32Value\022\r\n\005value\030\001 \001(\r\"\032\n\tBoolValue\022" |
242 | "\r\n\005value\030\001 \001(\010\"\034\n\013StringValue\022\r\n\005value\030\001" |
243 | " \001(\t\"\033\n\nBytesValue\022\r\n\005value\030\001 \001(\014B\203\001\n\023co" |
244 | "m.google.protobufB\rWrappersProtoP\001Z1goog" |
245 | "le.golang.org/protobuf/types/known/wrapp" |
246 | "erspb\370\001\001\242\002\003GPB\252\002\036Google.Protobuf.WellKno" |
247 | "wnTypesb\006proto3" |
248 | ; |
249 | static ::_pbi::once_flag descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once; |
250 | const ::_pbi::DescriptorTable descriptor_table_google_2fprotobuf_2fwrappers_2eproto = { |
251 | .is_initialized: false, .is_eager: false, .size: 455, .descriptor: descriptor_table_protodef_google_2fprotobuf_2fwrappers_2eproto, |
252 | .filename: "google/protobuf/wrappers.proto" , |
253 | .once: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, .deps: nullptr, .num_deps: 0, .num_messages: 9, |
254 | .schemas: schemas, .default_instances: file_default_instances, .offsets: TableStruct_google_2fprotobuf_2fwrappers_2eproto::offsets, |
255 | .file_level_metadata: file_level_metadata_google_2fprotobuf_2fwrappers_2eproto, .file_level_enum_descriptors: file_level_enum_descriptors_google_2fprotobuf_2fwrappers_2eproto, |
256 | .file_level_service_descriptors: file_level_service_descriptors_google_2fprotobuf_2fwrappers_2eproto, |
257 | }; |
258 | PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter() { |
259 | return &descriptor_table_google_2fprotobuf_2fwrappers_2eproto; |
260 | } |
261 | |
262 | // Force running AddDescriptors() at dynamic initialization time. |
263 | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fprotobuf_2fwrappers_2eproto(&descriptor_table_google_2fprotobuf_2fwrappers_2eproto); |
264 | PROTOBUF_NAMESPACE_OPEN |
265 | |
266 | // =================================================================== |
267 | |
268 | class DoubleValue::_Internal { |
269 | public: |
270 | }; |
271 | |
272 | DoubleValue::DoubleValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
273 | bool is_message_owned) |
274 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
275 | SharedCtor(arena, is_message_owned); |
276 | // @@protoc_insertion_point(arena_constructor:google.protobuf.DoubleValue) |
277 | } |
278 | DoubleValue::DoubleValue(const DoubleValue& from) |
279 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
280 | DoubleValue* const _this = this; (void)_this; |
281 | new (&_impl_) Impl_{ |
282 | .value_: decltype(_impl_.value_){} |
283 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}}; |
284 | |
285 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
286 | _this->_impl_.value_ = from._impl_.value_; |
287 | // @@protoc_insertion_point(copy_constructor:google.protobuf.DoubleValue) |
288 | } |
289 | |
290 | inline void DoubleValue::SharedCtor( |
291 | ::_pb::Arena* arena, bool is_message_owned) { |
292 | (void)arena; |
293 | (void)is_message_owned; |
294 | new (&_impl_) Impl_{ |
295 | .value_: decltype(_impl_.value_){0} |
296 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {} |
297 | }; |
298 | } |
299 | |
300 | DoubleValue::~DoubleValue() { |
301 | // @@protoc_insertion_point(destructor:google.protobuf.DoubleValue) |
302 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
303 | (void)arena; |
304 | return; |
305 | } |
306 | SharedDtor(); |
307 | } |
308 | |
309 | inline void DoubleValue::SharedDtor() { |
310 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
311 | } |
312 | |
313 | void DoubleValue::SetCachedSize(int size) const { |
314 | _impl_._cached_size_.Set(size); |
315 | } |
316 | |
317 | void DoubleValue::Clear() { |
318 | // @@protoc_insertion_point(message_clear_start:google.protobuf.DoubleValue) |
319 | uint32_t cached_has_bits = 0; |
320 | // Prevent compiler warnings about cached_has_bits being unused |
321 | (void) cached_has_bits; |
322 | |
323 | _impl_.value_ = 0; |
324 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
325 | } |
326 | |
327 | const char* DoubleValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
328 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
329 | while (!ctx->Done(ptr: &ptr)) { |
330 | uint32_t tag; |
331 | ptr = ::_pbi::ReadTag(p: ptr, out: &tag); |
332 | switch (tag >> 3) { |
333 | // double value = 1; |
334 | case 1: |
335 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) { |
336 | _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(p: ptr); |
337 | ptr += sizeof(double); |
338 | } else |
339 | goto handle_unusual; |
340 | continue; |
341 | default: |
342 | goto handle_unusual; |
343 | } // switch |
344 | handle_unusual: |
345 | if ((tag == 0) || ((tag & 7) == 4)) { |
346 | CHK_(ptr); |
347 | ctx->SetLastTag(tag); |
348 | goto message_done; |
349 | } |
350 | ptr = UnknownFieldParse( |
351 | tag, |
352 | unknown: _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
353 | ptr, ctx); |
354 | CHK_(ptr != nullptr); |
355 | } // while |
356 | message_done: |
357 | return ptr; |
358 | failure: |
359 | ptr = nullptr; |
360 | goto message_done; |
361 | #undef CHK_ |
362 | } |
363 | |
364 | uint8_t* DoubleValue::_InternalSerialize( |
365 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
366 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DoubleValue) |
367 | uint32_t cached_has_bits = 0; |
368 | (void) cached_has_bits; |
369 | |
370 | // double value = 1; |
371 | static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size." ); |
372 | double tmp_value = this->_internal_value(); |
373 | uint64_t raw_value; |
374 | memcpy(dest: &raw_value, src: &tmp_value, n: sizeof(tmp_value)); |
375 | if (raw_value != 0) { |
376 | target = stream->EnsureSpace(ptr: target); |
377 | target = ::_pbi::WireFormatLite::WriteDoubleToArray(field_number: 1, value: this->_internal_value(), target); |
378 | } |
379 | |
380 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
381 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
382 | unknown_fields: _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
383 | } |
384 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DoubleValue) |
385 | return target; |
386 | } |
387 | |
388 | size_t DoubleValue::ByteSizeLong() const { |
389 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DoubleValue) |
390 | size_t total_size = 0; |
391 | |
392 | uint32_t cached_has_bits = 0; |
393 | // Prevent compiler warnings about cached_has_bits being unused |
394 | (void) cached_has_bits; |
395 | |
396 | // double value = 1; |
397 | static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size." ); |
398 | double tmp_value = this->_internal_value(); |
399 | uint64_t raw_value; |
400 | memcpy(dest: &raw_value, src: &tmp_value, n: sizeof(tmp_value)); |
401 | if (raw_value != 0) { |
402 | total_size += 1 + 8; |
403 | } |
404 | |
405 | return MaybeComputeUnknownFieldsSize(total_size, cached_size: &_impl_._cached_size_); |
406 | } |
407 | |
408 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DoubleValue::_class_data_ = { |
409 | .copy_to_from: ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
410 | .merge_to_from: DoubleValue::MergeImpl |
411 | }; |
412 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DoubleValue::GetClassData() const { return &_class_data_; } |
413 | |
414 | |
415 | void DoubleValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
416 | auto* const _this = static_cast<DoubleValue*>(&to_msg); |
417 | auto& from = static_cast<const DoubleValue&>(from_msg); |
418 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DoubleValue) |
419 | GOOGLE_DCHECK_NE(&from, _this); |
420 | uint32_t cached_has_bits = 0; |
421 | (void) cached_has_bits; |
422 | |
423 | static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size." ); |
424 | double tmp_value = from._internal_value(); |
425 | uint64_t raw_value; |
426 | memcpy(dest: &raw_value, src: &tmp_value, n: sizeof(tmp_value)); |
427 | if (raw_value != 0) { |
428 | _this->_internal_set_value(value: from._internal_value()); |
429 | } |
430 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
431 | } |
432 | |
433 | void DoubleValue::CopyFrom(const DoubleValue& from) { |
434 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DoubleValue) |
435 | if (&from == this) return; |
436 | Clear(); |
437 | MergeFrom(from); |
438 | } |
439 | |
440 | bool DoubleValue::IsInitialized() const { |
441 | return true; |
442 | } |
443 | |
444 | void DoubleValue::InternalSwap(DoubleValue* other) { |
445 | using std::swap; |
446 | _internal_metadata_.InternalSwap(other: &other->_internal_metadata_); |
447 | swap(a&: _impl_.value_, b&: other->_impl_.value_); |
448 | } |
449 | |
450 | ::PROTOBUF_NAMESPACE_ID::Metadata DoubleValue::GetMetadata() const { |
451 | return ::_pbi::AssignDescriptors( |
452 | table: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, |
453 | metadata: file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[0]); |
454 | } |
455 | |
456 | // =================================================================== |
457 | |
458 | class FloatValue::_Internal { |
459 | public: |
460 | }; |
461 | |
462 | FloatValue::FloatValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
463 | bool is_message_owned) |
464 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
465 | SharedCtor(arena, is_message_owned); |
466 | // @@protoc_insertion_point(arena_constructor:google.protobuf.FloatValue) |
467 | } |
468 | FloatValue::FloatValue(const FloatValue& from) |
469 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
470 | FloatValue* const _this = this; (void)_this; |
471 | new (&_impl_) Impl_{ |
472 | .value_: decltype(_impl_.value_){} |
473 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}}; |
474 | |
475 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
476 | _this->_impl_.value_ = from._impl_.value_; |
477 | // @@protoc_insertion_point(copy_constructor:google.protobuf.FloatValue) |
478 | } |
479 | |
480 | inline void FloatValue::SharedCtor( |
481 | ::_pb::Arena* arena, bool is_message_owned) { |
482 | (void)arena; |
483 | (void)is_message_owned; |
484 | new (&_impl_) Impl_{ |
485 | .value_: decltype(_impl_.value_){0} |
486 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {} |
487 | }; |
488 | } |
489 | |
490 | FloatValue::~FloatValue() { |
491 | // @@protoc_insertion_point(destructor:google.protobuf.FloatValue) |
492 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
493 | (void)arena; |
494 | return; |
495 | } |
496 | SharedDtor(); |
497 | } |
498 | |
499 | inline void FloatValue::SharedDtor() { |
500 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
501 | } |
502 | |
503 | void FloatValue::SetCachedSize(int size) const { |
504 | _impl_._cached_size_.Set(size); |
505 | } |
506 | |
507 | void FloatValue::Clear() { |
508 | // @@protoc_insertion_point(message_clear_start:google.protobuf.FloatValue) |
509 | uint32_t cached_has_bits = 0; |
510 | // Prevent compiler warnings about cached_has_bits being unused |
511 | (void) cached_has_bits; |
512 | |
513 | _impl_.value_ = 0; |
514 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
515 | } |
516 | |
517 | const char* FloatValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
518 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
519 | while (!ctx->Done(ptr: &ptr)) { |
520 | uint32_t tag; |
521 | ptr = ::_pbi::ReadTag(p: ptr, out: &tag); |
522 | switch (tag >> 3) { |
523 | // float value = 1; |
524 | case 1: |
525 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) { |
526 | _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(p: ptr); |
527 | ptr += sizeof(float); |
528 | } else |
529 | goto handle_unusual; |
530 | continue; |
531 | default: |
532 | goto handle_unusual; |
533 | } // switch |
534 | handle_unusual: |
535 | if ((tag == 0) || ((tag & 7) == 4)) { |
536 | CHK_(ptr); |
537 | ctx->SetLastTag(tag); |
538 | goto message_done; |
539 | } |
540 | ptr = UnknownFieldParse( |
541 | tag, |
542 | unknown: _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
543 | ptr, ctx); |
544 | CHK_(ptr != nullptr); |
545 | } // while |
546 | message_done: |
547 | return ptr; |
548 | failure: |
549 | ptr = nullptr; |
550 | goto message_done; |
551 | #undef CHK_ |
552 | } |
553 | |
554 | uint8_t* FloatValue::_InternalSerialize( |
555 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
556 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FloatValue) |
557 | uint32_t cached_has_bits = 0; |
558 | (void) cached_has_bits; |
559 | |
560 | // float value = 1; |
561 | static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size." ); |
562 | float tmp_value = this->_internal_value(); |
563 | uint32_t raw_value; |
564 | memcpy(dest: &raw_value, src: &tmp_value, n: sizeof(tmp_value)); |
565 | if (raw_value != 0) { |
566 | target = stream->EnsureSpace(ptr: target); |
567 | target = ::_pbi::WireFormatLite::WriteFloatToArray(field_number: 1, value: this->_internal_value(), target); |
568 | } |
569 | |
570 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
571 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
572 | unknown_fields: _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
573 | } |
574 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FloatValue) |
575 | return target; |
576 | } |
577 | |
578 | size_t FloatValue::ByteSizeLong() const { |
579 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FloatValue) |
580 | size_t total_size = 0; |
581 | |
582 | uint32_t cached_has_bits = 0; |
583 | // Prevent compiler warnings about cached_has_bits being unused |
584 | (void) cached_has_bits; |
585 | |
586 | // float value = 1; |
587 | static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size." ); |
588 | float tmp_value = this->_internal_value(); |
589 | uint32_t raw_value; |
590 | memcpy(dest: &raw_value, src: &tmp_value, n: sizeof(tmp_value)); |
591 | if (raw_value != 0) { |
592 | total_size += 1 + 4; |
593 | } |
594 | |
595 | return MaybeComputeUnknownFieldsSize(total_size, cached_size: &_impl_._cached_size_); |
596 | } |
597 | |
598 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FloatValue::_class_data_ = { |
599 | .copy_to_from: ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
600 | .merge_to_from: FloatValue::MergeImpl |
601 | }; |
602 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FloatValue::GetClassData() const { return &_class_data_; } |
603 | |
604 | |
605 | void FloatValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
606 | auto* const _this = static_cast<FloatValue*>(&to_msg); |
607 | auto& from = static_cast<const FloatValue&>(from_msg); |
608 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FloatValue) |
609 | GOOGLE_DCHECK_NE(&from, _this); |
610 | uint32_t cached_has_bits = 0; |
611 | (void) cached_has_bits; |
612 | |
613 | static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size." ); |
614 | float tmp_value = from._internal_value(); |
615 | uint32_t raw_value; |
616 | memcpy(dest: &raw_value, src: &tmp_value, n: sizeof(tmp_value)); |
617 | if (raw_value != 0) { |
618 | _this->_internal_set_value(value: from._internal_value()); |
619 | } |
620 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
621 | } |
622 | |
623 | void FloatValue::CopyFrom(const FloatValue& from) { |
624 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FloatValue) |
625 | if (&from == this) return; |
626 | Clear(); |
627 | MergeFrom(from); |
628 | } |
629 | |
630 | bool FloatValue::IsInitialized() const { |
631 | return true; |
632 | } |
633 | |
634 | void FloatValue::InternalSwap(FloatValue* other) { |
635 | using std::swap; |
636 | _internal_metadata_.InternalSwap(other: &other->_internal_metadata_); |
637 | swap(a&: _impl_.value_, b&: other->_impl_.value_); |
638 | } |
639 | |
640 | ::PROTOBUF_NAMESPACE_ID::Metadata FloatValue::GetMetadata() const { |
641 | return ::_pbi::AssignDescriptors( |
642 | table: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, |
643 | metadata: file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[1]); |
644 | } |
645 | |
646 | // =================================================================== |
647 | |
648 | class Int64Value::_Internal { |
649 | public: |
650 | }; |
651 | |
652 | Int64Value::Int64Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
653 | bool is_message_owned) |
654 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
655 | SharedCtor(arena, is_message_owned); |
656 | // @@protoc_insertion_point(arena_constructor:google.protobuf.Int64Value) |
657 | } |
658 | Int64Value::Int64Value(const Int64Value& from) |
659 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
660 | Int64Value* const _this = this; (void)_this; |
661 | new (&_impl_) Impl_{ |
662 | .value_: decltype(_impl_.value_){} |
663 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}}; |
664 | |
665 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
666 | _this->_impl_.value_ = from._impl_.value_; |
667 | // @@protoc_insertion_point(copy_constructor:google.protobuf.Int64Value) |
668 | } |
669 | |
670 | inline void Int64Value::SharedCtor( |
671 | ::_pb::Arena* arena, bool is_message_owned) { |
672 | (void)arena; |
673 | (void)is_message_owned; |
674 | new (&_impl_) Impl_{ |
675 | .value_: decltype(_impl_.value_){int64_t{0}} |
676 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {} |
677 | }; |
678 | } |
679 | |
680 | Int64Value::~Int64Value() { |
681 | // @@protoc_insertion_point(destructor:google.protobuf.Int64Value) |
682 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
683 | (void)arena; |
684 | return; |
685 | } |
686 | SharedDtor(); |
687 | } |
688 | |
689 | inline void Int64Value::SharedDtor() { |
690 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
691 | } |
692 | |
693 | void Int64Value::SetCachedSize(int size) const { |
694 | _impl_._cached_size_.Set(size); |
695 | } |
696 | |
697 | void Int64Value::Clear() { |
698 | // @@protoc_insertion_point(message_clear_start:google.protobuf.Int64Value) |
699 | uint32_t cached_has_bits = 0; |
700 | // Prevent compiler warnings about cached_has_bits being unused |
701 | (void) cached_has_bits; |
702 | |
703 | _impl_.value_ = int64_t{0}; |
704 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
705 | } |
706 | |
707 | const char* Int64Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
708 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
709 | while (!ctx->Done(ptr: &ptr)) { |
710 | uint32_t tag; |
711 | ptr = ::_pbi::ReadTag(p: ptr, out: &tag); |
712 | switch (tag >> 3) { |
713 | // int64 value = 1; |
714 | case 1: |
715 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { |
716 | _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(p: &ptr); |
717 | CHK_(ptr); |
718 | } else |
719 | goto handle_unusual; |
720 | continue; |
721 | default: |
722 | goto handle_unusual; |
723 | } // switch |
724 | handle_unusual: |
725 | if ((tag == 0) || ((tag & 7) == 4)) { |
726 | CHK_(ptr); |
727 | ctx->SetLastTag(tag); |
728 | goto message_done; |
729 | } |
730 | ptr = UnknownFieldParse( |
731 | tag, |
732 | unknown: _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
733 | ptr, ctx); |
734 | CHK_(ptr != nullptr); |
735 | } // while |
736 | message_done: |
737 | return ptr; |
738 | failure: |
739 | ptr = nullptr; |
740 | goto message_done; |
741 | #undef CHK_ |
742 | } |
743 | |
744 | uint8_t* Int64Value::_InternalSerialize( |
745 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
746 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int64Value) |
747 | uint32_t cached_has_bits = 0; |
748 | (void) cached_has_bits; |
749 | |
750 | // int64 value = 1; |
751 | if (this->_internal_value() != 0) { |
752 | target = stream->EnsureSpace(ptr: target); |
753 | target = ::_pbi::WireFormatLite::WriteInt64ToArray(field_number: 1, value: this->_internal_value(), target); |
754 | } |
755 | |
756 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
757 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
758 | unknown_fields: _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
759 | } |
760 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Int64Value) |
761 | return target; |
762 | } |
763 | |
764 | size_t Int64Value::ByteSizeLong() const { |
765 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Int64Value) |
766 | size_t total_size = 0; |
767 | |
768 | uint32_t cached_has_bits = 0; |
769 | // Prevent compiler warnings about cached_has_bits being unused |
770 | (void) cached_has_bits; |
771 | |
772 | // int64 value = 1; |
773 | if (this->_internal_value() != 0) { |
774 | total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(value: this->_internal_value()); |
775 | } |
776 | |
777 | return MaybeComputeUnknownFieldsSize(total_size, cached_size: &_impl_._cached_size_); |
778 | } |
779 | |
780 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Int64Value::_class_data_ = { |
781 | .copy_to_from: ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
782 | .merge_to_from: Int64Value::MergeImpl |
783 | }; |
784 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Int64Value::GetClassData() const { return &_class_data_; } |
785 | |
786 | |
787 | void Int64Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
788 | auto* const _this = static_cast<Int64Value*>(&to_msg); |
789 | auto& from = static_cast<const Int64Value&>(from_msg); |
790 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Int64Value) |
791 | GOOGLE_DCHECK_NE(&from, _this); |
792 | uint32_t cached_has_bits = 0; |
793 | (void) cached_has_bits; |
794 | |
795 | if (from._internal_value() != 0) { |
796 | _this->_internal_set_value(value: from._internal_value()); |
797 | } |
798 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
799 | } |
800 | |
801 | void Int64Value::CopyFrom(const Int64Value& from) { |
802 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Int64Value) |
803 | if (&from == this) return; |
804 | Clear(); |
805 | MergeFrom(from); |
806 | } |
807 | |
808 | bool Int64Value::IsInitialized() const { |
809 | return true; |
810 | } |
811 | |
812 | void Int64Value::InternalSwap(Int64Value* other) { |
813 | using std::swap; |
814 | _internal_metadata_.InternalSwap(other: &other->_internal_metadata_); |
815 | swap(a&: _impl_.value_, b&: other->_impl_.value_); |
816 | } |
817 | |
818 | ::PROTOBUF_NAMESPACE_ID::Metadata Int64Value::GetMetadata() const { |
819 | return ::_pbi::AssignDescriptors( |
820 | table: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, |
821 | metadata: file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[2]); |
822 | } |
823 | |
824 | // =================================================================== |
825 | |
826 | class UInt64Value::_Internal { |
827 | public: |
828 | }; |
829 | |
830 | UInt64Value::UInt64Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
831 | bool is_message_owned) |
832 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
833 | SharedCtor(arena, is_message_owned); |
834 | // @@protoc_insertion_point(arena_constructor:google.protobuf.UInt64Value) |
835 | } |
836 | UInt64Value::UInt64Value(const UInt64Value& from) |
837 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
838 | UInt64Value* const _this = this; (void)_this; |
839 | new (&_impl_) Impl_{ |
840 | .value_: decltype(_impl_.value_){} |
841 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}}; |
842 | |
843 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
844 | _this->_impl_.value_ = from._impl_.value_; |
845 | // @@protoc_insertion_point(copy_constructor:google.protobuf.UInt64Value) |
846 | } |
847 | |
848 | inline void UInt64Value::SharedCtor( |
849 | ::_pb::Arena* arena, bool is_message_owned) { |
850 | (void)arena; |
851 | (void)is_message_owned; |
852 | new (&_impl_) Impl_{ |
853 | .value_: decltype(_impl_.value_){uint64_t{0u}} |
854 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {} |
855 | }; |
856 | } |
857 | |
858 | UInt64Value::~UInt64Value() { |
859 | // @@protoc_insertion_point(destructor:google.protobuf.UInt64Value) |
860 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
861 | (void)arena; |
862 | return; |
863 | } |
864 | SharedDtor(); |
865 | } |
866 | |
867 | inline void UInt64Value::SharedDtor() { |
868 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
869 | } |
870 | |
871 | void UInt64Value::SetCachedSize(int size) const { |
872 | _impl_._cached_size_.Set(size); |
873 | } |
874 | |
875 | void UInt64Value::Clear() { |
876 | // @@protoc_insertion_point(message_clear_start:google.protobuf.UInt64Value) |
877 | uint32_t cached_has_bits = 0; |
878 | // Prevent compiler warnings about cached_has_bits being unused |
879 | (void) cached_has_bits; |
880 | |
881 | _impl_.value_ = uint64_t{0u}; |
882 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
883 | } |
884 | |
885 | const char* UInt64Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
886 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
887 | while (!ctx->Done(ptr: &ptr)) { |
888 | uint32_t tag; |
889 | ptr = ::_pbi::ReadTag(p: ptr, out: &tag); |
890 | switch (tag >> 3) { |
891 | // uint64 value = 1; |
892 | case 1: |
893 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { |
894 | _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(p: &ptr); |
895 | CHK_(ptr); |
896 | } else |
897 | goto handle_unusual; |
898 | continue; |
899 | default: |
900 | goto handle_unusual; |
901 | } // switch |
902 | handle_unusual: |
903 | if ((tag == 0) || ((tag & 7) == 4)) { |
904 | CHK_(ptr); |
905 | ctx->SetLastTag(tag); |
906 | goto message_done; |
907 | } |
908 | ptr = UnknownFieldParse( |
909 | tag, |
910 | unknown: _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
911 | ptr, ctx); |
912 | CHK_(ptr != nullptr); |
913 | } // while |
914 | message_done: |
915 | return ptr; |
916 | failure: |
917 | ptr = nullptr; |
918 | goto message_done; |
919 | #undef CHK_ |
920 | } |
921 | |
922 | uint8_t* UInt64Value::_InternalSerialize( |
923 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
924 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt64Value) |
925 | uint32_t cached_has_bits = 0; |
926 | (void) cached_has_bits; |
927 | |
928 | // uint64 value = 1; |
929 | if (this->_internal_value() != 0) { |
930 | target = stream->EnsureSpace(ptr: target); |
931 | target = ::_pbi::WireFormatLite::WriteUInt64ToArray(field_number: 1, value: this->_internal_value(), target); |
932 | } |
933 | |
934 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
935 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
936 | unknown_fields: _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
937 | } |
938 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UInt64Value) |
939 | return target; |
940 | } |
941 | |
942 | size_t UInt64Value::ByteSizeLong() const { |
943 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UInt64Value) |
944 | size_t total_size = 0; |
945 | |
946 | uint32_t cached_has_bits = 0; |
947 | // Prevent compiler warnings about cached_has_bits being unused |
948 | (void) cached_has_bits; |
949 | |
950 | // uint64 value = 1; |
951 | if (this->_internal_value() != 0) { |
952 | total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(value: this->_internal_value()); |
953 | } |
954 | |
955 | return MaybeComputeUnknownFieldsSize(total_size, cached_size: &_impl_._cached_size_); |
956 | } |
957 | |
958 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UInt64Value::_class_data_ = { |
959 | .copy_to_from: ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
960 | .merge_to_from: UInt64Value::MergeImpl |
961 | }; |
962 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UInt64Value::GetClassData() const { return &_class_data_; } |
963 | |
964 | |
965 | void UInt64Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
966 | auto* const _this = static_cast<UInt64Value*>(&to_msg); |
967 | auto& from = static_cast<const UInt64Value&>(from_msg); |
968 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UInt64Value) |
969 | GOOGLE_DCHECK_NE(&from, _this); |
970 | uint32_t cached_has_bits = 0; |
971 | (void) cached_has_bits; |
972 | |
973 | if (from._internal_value() != 0) { |
974 | _this->_internal_set_value(value: from._internal_value()); |
975 | } |
976 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
977 | } |
978 | |
979 | void UInt64Value::CopyFrom(const UInt64Value& from) { |
980 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UInt64Value) |
981 | if (&from == this) return; |
982 | Clear(); |
983 | MergeFrom(from); |
984 | } |
985 | |
986 | bool UInt64Value::IsInitialized() const { |
987 | return true; |
988 | } |
989 | |
990 | void UInt64Value::InternalSwap(UInt64Value* other) { |
991 | using std::swap; |
992 | _internal_metadata_.InternalSwap(other: &other->_internal_metadata_); |
993 | swap(a&: _impl_.value_, b&: other->_impl_.value_); |
994 | } |
995 | |
996 | ::PROTOBUF_NAMESPACE_ID::Metadata UInt64Value::GetMetadata() const { |
997 | return ::_pbi::AssignDescriptors( |
998 | table: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, |
999 | metadata: file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[3]); |
1000 | } |
1001 | |
1002 | // =================================================================== |
1003 | |
1004 | class Int32Value::_Internal { |
1005 | public: |
1006 | }; |
1007 | |
1008 | Int32Value::Int32Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1009 | bool is_message_owned) |
1010 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
1011 | SharedCtor(arena, is_message_owned); |
1012 | // @@protoc_insertion_point(arena_constructor:google.protobuf.Int32Value) |
1013 | } |
1014 | Int32Value::Int32Value(const Int32Value& from) |
1015 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
1016 | Int32Value* const _this = this; (void)_this; |
1017 | new (&_impl_) Impl_{ |
1018 | .value_: decltype(_impl_.value_){} |
1019 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}}; |
1020 | |
1021 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
1022 | _this->_impl_.value_ = from._impl_.value_; |
1023 | // @@protoc_insertion_point(copy_constructor:google.protobuf.Int32Value) |
1024 | } |
1025 | |
1026 | inline void Int32Value::SharedCtor( |
1027 | ::_pb::Arena* arena, bool is_message_owned) { |
1028 | (void)arena; |
1029 | (void)is_message_owned; |
1030 | new (&_impl_) Impl_{ |
1031 | .value_: decltype(_impl_.value_){0} |
1032 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {} |
1033 | }; |
1034 | } |
1035 | |
1036 | Int32Value::~Int32Value() { |
1037 | // @@protoc_insertion_point(destructor:google.protobuf.Int32Value) |
1038 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
1039 | (void)arena; |
1040 | return; |
1041 | } |
1042 | SharedDtor(); |
1043 | } |
1044 | |
1045 | inline void Int32Value::SharedDtor() { |
1046 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
1047 | } |
1048 | |
1049 | void Int32Value::SetCachedSize(int size) const { |
1050 | _impl_._cached_size_.Set(size); |
1051 | } |
1052 | |
1053 | void Int32Value::Clear() { |
1054 | // @@protoc_insertion_point(message_clear_start:google.protobuf.Int32Value) |
1055 | uint32_t cached_has_bits = 0; |
1056 | // Prevent compiler warnings about cached_has_bits being unused |
1057 | (void) cached_has_bits; |
1058 | |
1059 | _impl_.value_ = 0; |
1060 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1061 | } |
1062 | |
1063 | const char* Int32Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
1064 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1065 | while (!ctx->Done(ptr: &ptr)) { |
1066 | uint32_t tag; |
1067 | ptr = ::_pbi::ReadTag(p: ptr, out: &tag); |
1068 | switch (tag >> 3) { |
1069 | // int32 value = 1; |
1070 | case 1: |
1071 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { |
1072 | _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(p: &ptr); |
1073 | CHK_(ptr); |
1074 | } else |
1075 | goto handle_unusual; |
1076 | continue; |
1077 | default: |
1078 | goto handle_unusual; |
1079 | } // switch |
1080 | handle_unusual: |
1081 | if ((tag == 0) || ((tag & 7) == 4)) { |
1082 | CHK_(ptr); |
1083 | ctx->SetLastTag(tag); |
1084 | goto message_done; |
1085 | } |
1086 | ptr = UnknownFieldParse( |
1087 | tag, |
1088 | unknown: _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
1089 | ptr, ctx); |
1090 | CHK_(ptr != nullptr); |
1091 | } // while |
1092 | message_done: |
1093 | return ptr; |
1094 | failure: |
1095 | ptr = nullptr; |
1096 | goto message_done; |
1097 | #undef CHK_ |
1098 | } |
1099 | |
1100 | uint8_t* Int32Value::_InternalSerialize( |
1101 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1102 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int32Value) |
1103 | uint32_t cached_has_bits = 0; |
1104 | (void) cached_has_bits; |
1105 | |
1106 | // int32 value = 1; |
1107 | if (this->_internal_value() != 0) { |
1108 | target = stream->EnsureSpace(ptr: target); |
1109 | target = ::_pbi::WireFormatLite::WriteInt32ToArray(field_number: 1, value: this->_internal_value(), target); |
1110 | } |
1111 | |
1112 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1113 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1114 | unknown_fields: _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
1115 | } |
1116 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Int32Value) |
1117 | return target; |
1118 | } |
1119 | |
1120 | size_t Int32Value::ByteSizeLong() const { |
1121 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Int32Value) |
1122 | size_t total_size = 0; |
1123 | |
1124 | uint32_t cached_has_bits = 0; |
1125 | // Prevent compiler warnings about cached_has_bits being unused |
1126 | (void) cached_has_bits; |
1127 | |
1128 | // int32 value = 1; |
1129 | if (this->_internal_value() != 0) { |
1130 | total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(value: this->_internal_value()); |
1131 | } |
1132 | |
1133 | return MaybeComputeUnknownFieldsSize(total_size, cached_size: &_impl_._cached_size_); |
1134 | } |
1135 | |
1136 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Int32Value::_class_data_ = { |
1137 | .copy_to_from: ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
1138 | .merge_to_from: Int32Value::MergeImpl |
1139 | }; |
1140 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Int32Value::GetClassData() const { return &_class_data_; } |
1141 | |
1142 | |
1143 | void Int32Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
1144 | auto* const _this = static_cast<Int32Value*>(&to_msg); |
1145 | auto& from = static_cast<const Int32Value&>(from_msg); |
1146 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Int32Value) |
1147 | GOOGLE_DCHECK_NE(&from, _this); |
1148 | uint32_t cached_has_bits = 0; |
1149 | (void) cached_has_bits; |
1150 | |
1151 | if (from._internal_value() != 0) { |
1152 | _this->_internal_set_value(value: from._internal_value()); |
1153 | } |
1154 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
1155 | } |
1156 | |
1157 | void Int32Value::CopyFrom(const Int32Value& from) { |
1158 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Int32Value) |
1159 | if (&from == this) return; |
1160 | Clear(); |
1161 | MergeFrom(from); |
1162 | } |
1163 | |
1164 | bool Int32Value::IsInitialized() const { |
1165 | return true; |
1166 | } |
1167 | |
1168 | void Int32Value::InternalSwap(Int32Value* other) { |
1169 | using std::swap; |
1170 | _internal_metadata_.InternalSwap(other: &other->_internal_metadata_); |
1171 | swap(a&: _impl_.value_, b&: other->_impl_.value_); |
1172 | } |
1173 | |
1174 | ::PROTOBUF_NAMESPACE_ID::Metadata Int32Value::GetMetadata() const { |
1175 | return ::_pbi::AssignDescriptors( |
1176 | table: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, |
1177 | metadata: file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[4]); |
1178 | } |
1179 | |
1180 | // =================================================================== |
1181 | |
1182 | class UInt32Value::_Internal { |
1183 | public: |
1184 | }; |
1185 | |
1186 | UInt32Value::UInt32Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1187 | bool is_message_owned) |
1188 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
1189 | SharedCtor(arena, is_message_owned); |
1190 | // @@protoc_insertion_point(arena_constructor:google.protobuf.UInt32Value) |
1191 | } |
1192 | UInt32Value::UInt32Value(const UInt32Value& from) |
1193 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
1194 | UInt32Value* const _this = this; (void)_this; |
1195 | new (&_impl_) Impl_{ |
1196 | .value_: decltype(_impl_.value_){} |
1197 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}}; |
1198 | |
1199 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
1200 | _this->_impl_.value_ = from._impl_.value_; |
1201 | // @@protoc_insertion_point(copy_constructor:google.protobuf.UInt32Value) |
1202 | } |
1203 | |
1204 | inline void UInt32Value::SharedCtor( |
1205 | ::_pb::Arena* arena, bool is_message_owned) { |
1206 | (void)arena; |
1207 | (void)is_message_owned; |
1208 | new (&_impl_) Impl_{ |
1209 | .value_: decltype(_impl_.value_){0u} |
1210 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {} |
1211 | }; |
1212 | } |
1213 | |
1214 | UInt32Value::~UInt32Value() { |
1215 | // @@protoc_insertion_point(destructor:google.protobuf.UInt32Value) |
1216 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
1217 | (void)arena; |
1218 | return; |
1219 | } |
1220 | SharedDtor(); |
1221 | } |
1222 | |
1223 | inline void UInt32Value::SharedDtor() { |
1224 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
1225 | } |
1226 | |
1227 | void UInt32Value::SetCachedSize(int size) const { |
1228 | _impl_._cached_size_.Set(size); |
1229 | } |
1230 | |
1231 | void UInt32Value::Clear() { |
1232 | // @@protoc_insertion_point(message_clear_start:google.protobuf.UInt32Value) |
1233 | uint32_t cached_has_bits = 0; |
1234 | // Prevent compiler warnings about cached_has_bits being unused |
1235 | (void) cached_has_bits; |
1236 | |
1237 | _impl_.value_ = 0u; |
1238 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1239 | } |
1240 | |
1241 | const char* UInt32Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
1242 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1243 | while (!ctx->Done(ptr: &ptr)) { |
1244 | uint32_t tag; |
1245 | ptr = ::_pbi::ReadTag(p: ptr, out: &tag); |
1246 | switch (tag >> 3) { |
1247 | // uint32 value = 1; |
1248 | case 1: |
1249 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { |
1250 | _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(p: &ptr); |
1251 | CHK_(ptr); |
1252 | } else |
1253 | goto handle_unusual; |
1254 | continue; |
1255 | default: |
1256 | goto handle_unusual; |
1257 | } // switch |
1258 | handle_unusual: |
1259 | if ((tag == 0) || ((tag & 7) == 4)) { |
1260 | CHK_(ptr); |
1261 | ctx->SetLastTag(tag); |
1262 | goto message_done; |
1263 | } |
1264 | ptr = UnknownFieldParse( |
1265 | tag, |
1266 | unknown: _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
1267 | ptr, ctx); |
1268 | CHK_(ptr != nullptr); |
1269 | } // while |
1270 | message_done: |
1271 | return ptr; |
1272 | failure: |
1273 | ptr = nullptr; |
1274 | goto message_done; |
1275 | #undef CHK_ |
1276 | } |
1277 | |
1278 | uint8_t* UInt32Value::_InternalSerialize( |
1279 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1280 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt32Value) |
1281 | uint32_t cached_has_bits = 0; |
1282 | (void) cached_has_bits; |
1283 | |
1284 | // uint32 value = 1; |
1285 | if (this->_internal_value() != 0) { |
1286 | target = stream->EnsureSpace(ptr: target); |
1287 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(field_number: 1, value: this->_internal_value(), target); |
1288 | } |
1289 | |
1290 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1291 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1292 | unknown_fields: _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
1293 | } |
1294 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UInt32Value) |
1295 | return target; |
1296 | } |
1297 | |
1298 | size_t UInt32Value::ByteSizeLong() const { |
1299 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UInt32Value) |
1300 | size_t total_size = 0; |
1301 | |
1302 | uint32_t cached_has_bits = 0; |
1303 | // Prevent compiler warnings about cached_has_bits being unused |
1304 | (void) cached_has_bits; |
1305 | |
1306 | // uint32 value = 1; |
1307 | if (this->_internal_value() != 0) { |
1308 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(value: this->_internal_value()); |
1309 | } |
1310 | |
1311 | return MaybeComputeUnknownFieldsSize(total_size, cached_size: &_impl_._cached_size_); |
1312 | } |
1313 | |
1314 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UInt32Value::_class_data_ = { |
1315 | .copy_to_from: ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
1316 | .merge_to_from: UInt32Value::MergeImpl |
1317 | }; |
1318 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UInt32Value::GetClassData() const { return &_class_data_; } |
1319 | |
1320 | |
1321 | void UInt32Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
1322 | auto* const _this = static_cast<UInt32Value*>(&to_msg); |
1323 | auto& from = static_cast<const UInt32Value&>(from_msg); |
1324 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UInt32Value) |
1325 | GOOGLE_DCHECK_NE(&from, _this); |
1326 | uint32_t cached_has_bits = 0; |
1327 | (void) cached_has_bits; |
1328 | |
1329 | if (from._internal_value() != 0) { |
1330 | _this->_internal_set_value(value: from._internal_value()); |
1331 | } |
1332 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
1333 | } |
1334 | |
1335 | void UInt32Value::CopyFrom(const UInt32Value& from) { |
1336 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UInt32Value) |
1337 | if (&from == this) return; |
1338 | Clear(); |
1339 | MergeFrom(from); |
1340 | } |
1341 | |
1342 | bool UInt32Value::IsInitialized() const { |
1343 | return true; |
1344 | } |
1345 | |
1346 | void UInt32Value::InternalSwap(UInt32Value* other) { |
1347 | using std::swap; |
1348 | _internal_metadata_.InternalSwap(other: &other->_internal_metadata_); |
1349 | swap(a&: _impl_.value_, b&: other->_impl_.value_); |
1350 | } |
1351 | |
1352 | ::PROTOBUF_NAMESPACE_ID::Metadata UInt32Value::GetMetadata() const { |
1353 | return ::_pbi::AssignDescriptors( |
1354 | table: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, |
1355 | metadata: file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[5]); |
1356 | } |
1357 | |
1358 | // =================================================================== |
1359 | |
1360 | class BoolValue::_Internal { |
1361 | public: |
1362 | }; |
1363 | |
1364 | BoolValue::BoolValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1365 | bool is_message_owned) |
1366 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
1367 | SharedCtor(arena, is_message_owned); |
1368 | // @@protoc_insertion_point(arena_constructor:google.protobuf.BoolValue) |
1369 | } |
1370 | BoolValue::BoolValue(const BoolValue& from) |
1371 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
1372 | BoolValue* const _this = this; (void)_this; |
1373 | new (&_impl_) Impl_{ |
1374 | .value_: decltype(_impl_.value_){} |
1375 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}}; |
1376 | |
1377 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
1378 | _this->_impl_.value_ = from._impl_.value_; |
1379 | // @@protoc_insertion_point(copy_constructor:google.protobuf.BoolValue) |
1380 | } |
1381 | |
1382 | inline void BoolValue::SharedCtor( |
1383 | ::_pb::Arena* arena, bool is_message_owned) { |
1384 | (void)arena; |
1385 | (void)is_message_owned; |
1386 | new (&_impl_) Impl_{ |
1387 | .value_: decltype(_impl_.value_){false} |
1388 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {} |
1389 | }; |
1390 | } |
1391 | |
1392 | BoolValue::~BoolValue() { |
1393 | // @@protoc_insertion_point(destructor:google.protobuf.BoolValue) |
1394 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
1395 | (void)arena; |
1396 | return; |
1397 | } |
1398 | SharedDtor(); |
1399 | } |
1400 | |
1401 | inline void BoolValue::SharedDtor() { |
1402 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
1403 | } |
1404 | |
1405 | void BoolValue::SetCachedSize(int size) const { |
1406 | _impl_._cached_size_.Set(size); |
1407 | } |
1408 | |
1409 | void BoolValue::Clear() { |
1410 | // @@protoc_insertion_point(message_clear_start:google.protobuf.BoolValue) |
1411 | uint32_t cached_has_bits = 0; |
1412 | // Prevent compiler warnings about cached_has_bits being unused |
1413 | (void) cached_has_bits; |
1414 | |
1415 | _impl_.value_ = false; |
1416 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1417 | } |
1418 | |
1419 | const char* BoolValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
1420 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1421 | while (!ctx->Done(ptr: &ptr)) { |
1422 | uint32_t tag; |
1423 | ptr = ::_pbi::ReadTag(p: ptr, out: &tag); |
1424 | switch (tag >> 3) { |
1425 | // bool value = 1; |
1426 | case 1: |
1427 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { |
1428 | _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(p: &ptr); |
1429 | CHK_(ptr); |
1430 | } else |
1431 | goto handle_unusual; |
1432 | continue; |
1433 | default: |
1434 | goto handle_unusual; |
1435 | } // switch |
1436 | handle_unusual: |
1437 | if ((tag == 0) || ((tag & 7) == 4)) { |
1438 | CHK_(ptr); |
1439 | ctx->SetLastTag(tag); |
1440 | goto message_done; |
1441 | } |
1442 | ptr = UnknownFieldParse( |
1443 | tag, |
1444 | unknown: _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
1445 | ptr, ctx); |
1446 | CHK_(ptr != nullptr); |
1447 | } // while |
1448 | message_done: |
1449 | return ptr; |
1450 | failure: |
1451 | ptr = nullptr; |
1452 | goto message_done; |
1453 | #undef CHK_ |
1454 | } |
1455 | |
1456 | uint8_t* BoolValue::_InternalSerialize( |
1457 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1458 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BoolValue) |
1459 | uint32_t cached_has_bits = 0; |
1460 | (void) cached_has_bits; |
1461 | |
1462 | // bool value = 1; |
1463 | if (this->_internal_value() != 0) { |
1464 | target = stream->EnsureSpace(ptr: target); |
1465 | target = ::_pbi::WireFormatLite::WriteBoolToArray(field_number: 1, value: this->_internal_value(), target); |
1466 | } |
1467 | |
1468 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1469 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1470 | unknown_fields: _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
1471 | } |
1472 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.BoolValue) |
1473 | return target; |
1474 | } |
1475 | |
1476 | size_t BoolValue::ByteSizeLong() const { |
1477 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.BoolValue) |
1478 | size_t total_size = 0; |
1479 | |
1480 | uint32_t cached_has_bits = 0; |
1481 | // Prevent compiler warnings about cached_has_bits being unused |
1482 | (void) cached_has_bits; |
1483 | |
1484 | // bool value = 1; |
1485 | if (this->_internal_value() != 0) { |
1486 | total_size += 1 + 1; |
1487 | } |
1488 | |
1489 | return MaybeComputeUnknownFieldsSize(total_size, cached_size: &_impl_._cached_size_); |
1490 | } |
1491 | |
1492 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoolValue::_class_data_ = { |
1493 | .copy_to_from: ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
1494 | .merge_to_from: BoolValue::MergeImpl |
1495 | }; |
1496 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BoolValue::GetClassData() const { return &_class_data_; } |
1497 | |
1498 | |
1499 | void BoolValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
1500 | auto* const _this = static_cast<BoolValue*>(&to_msg); |
1501 | auto& from = static_cast<const BoolValue&>(from_msg); |
1502 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.BoolValue) |
1503 | GOOGLE_DCHECK_NE(&from, _this); |
1504 | uint32_t cached_has_bits = 0; |
1505 | (void) cached_has_bits; |
1506 | |
1507 | if (from._internal_value() != 0) { |
1508 | _this->_internal_set_value(value: from._internal_value()); |
1509 | } |
1510 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
1511 | } |
1512 | |
1513 | void BoolValue::CopyFrom(const BoolValue& from) { |
1514 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.BoolValue) |
1515 | if (&from == this) return; |
1516 | Clear(); |
1517 | MergeFrom(from); |
1518 | } |
1519 | |
1520 | bool BoolValue::IsInitialized() const { |
1521 | return true; |
1522 | } |
1523 | |
1524 | void BoolValue::InternalSwap(BoolValue* other) { |
1525 | using std::swap; |
1526 | _internal_metadata_.InternalSwap(other: &other->_internal_metadata_); |
1527 | swap(a&: _impl_.value_, b&: other->_impl_.value_); |
1528 | } |
1529 | |
1530 | ::PROTOBUF_NAMESPACE_ID::Metadata BoolValue::GetMetadata() const { |
1531 | return ::_pbi::AssignDescriptors( |
1532 | table: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, |
1533 | metadata: file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[6]); |
1534 | } |
1535 | |
1536 | // =================================================================== |
1537 | |
1538 | class StringValue::_Internal { |
1539 | public: |
1540 | }; |
1541 | |
1542 | StringValue::StringValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1543 | bool is_message_owned) |
1544 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
1545 | SharedCtor(arena, is_message_owned); |
1546 | // @@protoc_insertion_point(arena_constructor:google.protobuf.StringValue) |
1547 | } |
1548 | StringValue::StringValue(const StringValue& from) |
1549 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
1550 | StringValue* const _this = this; (void)_this; |
1551 | new (&_impl_) Impl_{ |
1552 | .value_: decltype(_impl_.value_){} |
1553 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}}; |
1554 | |
1555 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
1556 | _impl_.value_.InitDefault(); |
1557 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1558 | _impl_.value_.Set("" , GetArenaForAllocation()); |
1559 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1560 | if (!from._internal_value().empty()) { |
1561 | _this->_impl_.value_.Set(value: from._internal_value(), |
1562 | arena: _this->GetArenaForAllocation()); |
1563 | } |
1564 | // @@protoc_insertion_point(copy_constructor:google.protobuf.StringValue) |
1565 | } |
1566 | |
1567 | inline void StringValue::SharedCtor( |
1568 | ::_pb::Arena* arena, bool is_message_owned) { |
1569 | (void)arena; |
1570 | (void)is_message_owned; |
1571 | new (&_impl_) Impl_{ |
1572 | .value_: decltype(_impl_.value_){} |
1573 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {} |
1574 | }; |
1575 | _impl_.value_.InitDefault(); |
1576 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1577 | _impl_.value_.Set("" , GetArenaForAllocation()); |
1578 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1579 | } |
1580 | |
1581 | StringValue::~StringValue() { |
1582 | // @@protoc_insertion_point(destructor:google.protobuf.StringValue) |
1583 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
1584 | (void)arena; |
1585 | return; |
1586 | } |
1587 | SharedDtor(); |
1588 | } |
1589 | |
1590 | inline void StringValue::SharedDtor() { |
1591 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
1592 | _impl_.value_.Destroy(); |
1593 | } |
1594 | |
1595 | void StringValue::SetCachedSize(int size) const { |
1596 | _impl_._cached_size_.Set(size); |
1597 | } |
1598 | |
1599 | void StringValue::Clear() { |
1600 | // @@protoc_insertion_point(message_clear_start:google.protobuf.StringValue) |
1601 | uint32_t cached_has_bits = 0; |
1602 | // Prevent compiler warnings about cached_has_bits being unused |
1603 | (void) cached_has_bits; |
1604 | |
1605 | _impl_.value_.ClearToEmpty(); |
1606 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1607 | } |
1608 | |
1609 | const char* StringValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
1610 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1611 | while (!ctx->Done(ptr: &ptr)) { |
1612 | uint32_t tag; |
1613 | ptr = ::_pbi::ReadTag(p: ptr, out: &tag); |
1614 | switch (tag >> 3) { |
1615 | // string value = 1; |
1616 | case 1: |
1617 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
1618 | auto str = _internal_mutable_value(); |
1619 | ptr = ::_pbi::InlineGreedyStringParser(s: str, ptr, ctx); |
1620 | CHK_(ptr); |
1621 | CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.StringValue.value" )); |
1622 | } else |
1623 | goto handle_unusual; |
1624 | continue; |
1625 | default: |
1626 | goto handle_unusual; |
1627 | } // switch |
1628 | handle_unusual: |
1629 | if ((tag == 0) || ((tag & 7) == 4)) { |
1630 | CHK_(ptr); |
1631 | ctx->SetLastTag(tag); |
1632 | goto message_done; |
1633 | } |
1634 | ptr = UnknownFieldParse( |
1635 | tag, |
1636 | unknown: _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
1637 | ptr, ctx); |
1638 | CHK_(ptr != nullptr); |
1639 | } // while |
1640 | message_done: |
1641 | return ptr; |
1642 | failure: |
1643 | ptr = nullptr; |
1644 | goto message_done; |
1645 | #undef CHK_ |
1646 | } |
1647 | |
1648 | uint8_t* StringValue::_InternalSerialize( |
1649 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1650 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.StringValue) |
1651 | uint32_t cached_has_bits = 0; |
1652 | (void) cached_has_bits; |
1653 | |
1654 | // string value = 1; |
1655 | if (!this->_internal_value().empty()) { |
1656 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1657 | data: this->_internal_value().data(), size: static_cast<int>(this->_internal_value().length()), |
1658 | op: ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1659 | field_name: "google.protobuf.StringValue.value" ); |
1660 | target = stream->WriteStringMaybeAliased( |
1661 | num: 1, s: this->_internal_value(), ptr: target); |
1662 | } |
1663 | |
1664 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1665 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1666 | unknown_fields: _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
1667 | } |
1668 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.StringValue) |
1669 | return target; |
1670 | } |
1671 | |
1672 | size_t StringValue::ByteSizeLong() const { |
1673 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.StringValue) |
1674 | size_t total_size = 0; |
1675 | |
1676 | uint32_t cached_has_bits = 0; |
1677 | // Prevent compiler warnings about cached_has_bits being unused |
1678 | (void) cached_has_bits; |
1679 | |
1680 | // string value = 1; |
1681 | if (!this->_internal_value().empty()) { |
1682 | total_size += 1 + |
1683 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1684 | value: this->_internal_value()); |
1685 | } |
1686 | |
1687 | return MaybeComputeUnknownFieldsSize(total_size, cached_size: &_impl_._cached_size_); |
1688 | } |
1689 | |
1690 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StringValue::_class_data_ = { |
1691 | .copy_to_from: ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
1692 | .merge_to_from: StringValue::MergeImpl |
1693 | }; |
1694 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StringValue::GetClassData() const { return &_class_data_; } |
1695 | |
1696 | |
1697 | void StringValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
1698 | auto* const _this = static_cast<StringValue*>(&to_msg); |
1699 | auto& from = static_cast<const StringValue&>(from_msg); |
1700 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.StringValue) |
1701 | GOOGLE_DCHECK_NE(&from, _this); |
1702 | uint32_t cached_has_bits = 0; |
1703 | (void) cached_has_bits; |
1704 | |
1705 | if (!from._internal_value().empty()) { |
1706 | _this->_internal_set_value(value: from._internal_value()); |
1707 | } |
1708 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
1709 | } |
1710 | |
1711 | void StringValue::CopyFrom(const StringValue& from) { |
1712 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.StringValue) |
1713 | if (&from == this) return; |
1714 | Clear(); |
1715 | MergeFrom(from); |
1716 | } |
1717 | |
1718 | bool StringValue::IsInitialized() const { |
1719 | return true; |
1720 | } |
1721 | |
1722 | void StringValue::InternalSwap(StringValue* other) { |
1723 | using std::swap; |
1724 | auto* lhs_arena = GetArenaForAllocation(); |
1725 | auto* rhs_arena = other->GetArenaForAllocation(); |
1726 | _internal_metadata_.InternalSwap(other: &other->_internal_metadata_); |
1727 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
1728 | rhs: &_impl_.value_, rhs_arena: lhs_arena, |
1729 | lhs: &other->_impl_.value_, lhs_arena: rhs_arena |
1730 | ); |
1731 | } |
1732 | |
1733 | ::PROTOBUF_NAMESPACE_ID::Metadata StringValue::GetMetadata() const { |
1734 | return ::_pbi::AssignDescriptors( |
1735 | table: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, |
1736 | metadata: file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[7]); |
1737 | } |
1738 | |
1739 | // =================================================================== |
1740 | |
1741 | class BytesValue::_Internal { |
1742 | public: |
1743 | }; |
1744 | |
1745 | BytesValue::BytesValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1746 | bool is_message_owned) |
1747 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
1748 | SharedCtor(arena, is_message_owned); |
1749 | // @@protoc_insertion_point(arena_constructor:google.protobuf.BytesValue) |
1750 | } |
1751 | BytesValue::BytesValue(const BytesValue& from) |
1752 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
1753 | BytesValue* const _this = this; (void)_this; |
1754 | new (&_impl_) Impl_{ |
1755 | .value_: decltype(_impl_.value_){} |
1756 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {}}; |
1757 | |
1758 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
1759 | _impl_.value_.InitDefault(); |
1760 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1761 | _impl_.value_.Set("" , GetArenaForAllocation()); |
1762 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1763 | if (!from._internal_value().empty()) { |
1764 | _this->_impl_.value_.Set(value: from._internal_value(), |
1765 | arena: _this->GetArenaForAllocation()); |
1766 | } |
1767 | // @@protoc_insertion_point(copy_constructor:google.protobuf.BytesValue) |
1768 | } |
1769 | |
1770 | inline void BytesValue::SharedCtor( |
1771 | ::_pb::Arena* arena, bool is_message_owned) { |
1772 | (void)arena; |
1773 | (void)is_message_owned; |
1774 | new (&_impl_) Impl_{ |
1775 | .value_: decltype(_impl_.value_){} |
1776 | , /*decltype(_impl_._cached_size_)*/._cached_size_: {} |
1777 | }; |
1778 | _impl_.value_.InitDefault(); |
1779 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1780 | _impl_.value_.Set("" , GetArenaForAllocation()); |
1781 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1782 | } |
1783 | |
1784 | BytesValue::~BytesValue() { |
1785 | // @@protoc_insertion_point(destructor:google.protobuf.BytesValue) |
1786 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
1787 | (void)arena; |
1788 | return; |
1789 | } |
1790 | SharedDtor(); |
1791 | } |
1792 | |
1793 | inline void BytesValue::SharedDtor() { |
1794 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
1795 | _impl_.value_.Destroy(); |
1796 | } |
1797 | |
1798 | void BytesValue::SetCachedSize(int size) const { |
1799 | _impl_._cached_size_.Set(size); |
1800 | } |
1801 | |
1802 | void BytesValue::Clear() { |
1803 | // @@protoc_insertion_point(message_clear_start:google.protobuf.BytesValue) |
1804 | uint32_t cached_has_bits = 0; |
1805 | // Prevent compiler warnings about cached_has_bits being unused |
1806 | (void) cached_has_bits; |
1807 | |
1808 | _impl_.value_.ClearToEmpty(); |
1809 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1810 | } |
1811 | |
1812 | const char* BytesValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
1813 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1814 | while (!ctx->Done(ptr: &ptr)) { |
1815 | uint32_t tag; |
1816 | ptr = ::_pbi::ReadTag(p: ptr, out: &tag); |
1817 | switch (tag >> 3) { |
1818 | // bytes value = 1; |
1819 | case 1: |
1820 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
1821 | auto str = _internal_mutable_value(); |
1822 | ptr = ::_pbi::InlineGreedyStringParser(s: str, ptr, ctx); |
1823 | CHK_(ptr); |
1824 | } else |
1825 | goto handle_unusual; |
1826 | continue; |
1827 | default: |
1828 | goto handle_unusual; |
1829 | } // switch |
1830 | handle_unusual: |
1831 | if ((tag == 0) || ((tag & 7) == 4)) { |
1832 | CHK_(ptr); |
1833 | ctx->SetLastTag(tag); |
1834 | goto message_done; |
1835 | } |
1836 | ptr = UnknownFieldParse( |
1837 | tag, |
1838 | unknown: _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
1839 | ptr, ctx); |
1840 | CHK_(ptr != nullptr); |
1841 | } // while |
1842 | message_done: |
1843 | return ptr; |
1844 | failure: |
1845 | ptr = nullptr; |
1846 | goto message_done; |
1847 | #undef CHK_ |
1848 | } |
1849 | |
1850 | uint8_t* BytesValue::_InternalSerialize( |
1851 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1852 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BytesValue) |
1853 | uint32_t cached_has_bits = 0; |
1854 | (void) cached_has_bits; |
1855 | |
1856 | // bytes value = 1; |
1857 | if (!this->_internal_value().empty()) { |
1858 | target = stream->WriteBytesMaybeAliased( |
1859 | num: 1, s: this->_internal_value(), ptr: target); |
1860 | } |
1861 | |
1862 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1863 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1864 | unknown_fields: _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(default_instance: ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
1865 | } |
1866 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.BytesValue) |
1867 | return target; |
1868 | } |
1869 | |
1870 | size_t BytesValue::ByteSizeLong() const { |
1871 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.BytesValue) |
1872 | size_t total_size = 0; |
1873 | |
1874 | uint32_t cached_has_bits = 0; |
1875 | // Prevent compiler warnings about cached_has_bits being unused |
1876 | (void) cached_has_bits; |
1877 | |
1878 | // bytes value = 1; |
1879 | if (!this->_internal_value().empty()) { |
1880 | total_size += 1 + |
1881 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( |
1882 | value: this->_internal_value()); |
1883 | } |
1884 | |
1885 | return MaybeComputeUnknownFieldsSize(total_size, cached_size: &_impl_._cached_size_); |
1886 | } |
1887 | |
1888 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BytesValue::_class_data_ = { |
1889 | .copy_to_from: ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
1890 | .merge_to_from: BytesValue::MergeImpl |
1891 | }; |
1892 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BytesValue::GetClassData() const { return &_class_data_; } |
1893 | |
1894 | |
1895 | void BytesValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
1896 | auto* const _this = static_cast<BytesValue*>(&to_msg); |
1897 | auto& from = static_cast<const BytesValue&>(from_msg); |
1898 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.BytesValue) |
1899 | GOOGLE_DCHECK_NE(&from, _this); |
1900 | uint32_t cached_has_bits = 0; |
1901 | (void) cached_has_bits; |
1902 | |
1903 | if (!from._internal_value().empty()) { |
1904 | _this->_internal_set_value(value: from._internal_value()); |
1905 | } |
1906 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(other: from._internal_metadata_); |
1907 | } |
1908 | |
1909 | void BytesValue::CopyFrom(const BytesValue& from) { |
1910 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.BytesValue) |
1911 | if (&from == this) return; |
1912 | Clear(); |
1913 | MergeFrom(from); |
1914 | } |
1915 | |
1916 | bool BytesValue::IsInitialized() const { |
1917 | return true; |
1918 | } |
1919 | |
1920 | void BytesValue::InternalSwap(BytesValue* other) { |
1921 | using std::swap; |
1922 | auto* lhs_arena = GetArenaForAllocation(); |
1923 | auto* rhs_arena = other->GetArenaForAllocation(); |
1924 | _internal_metadata_.InternalSwap(other: &other->_internal_metadata_); |
1925 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
1926 | rhs: &_impl_.value_, rhs_arena: lhs_arena, |
1927 | lhs: &other->_impl_.value_, lhs_arena: rhs_arena |
1928 | ); |
1929 | } |
1930 | |
1931 | ::PROTOBUF_NAMESPACE_ID::Metadata BytesValue::GetMetadata() const { |
1932 | return ::_pbi::AssignDescriptors( |
1933 | table: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_getter, once: &descriptor_table_google_2fprotobuf_2fwrappers_2eproto_once, |
1934 | metadata: file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[8]); |
1935 | } |
1936 | |
1937 | // @@protoc_insertion_point(namespace_scope) |
1938 | PROTOBUF_NAMESPACE_CLOSE |
1939 | PROTOBUF_NAMESPACE_OPEN |
1940 | template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::DoubleValue* |
1941 | Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::DoubleValue >(Arena* arena) { |
1942 | return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::DoubleValue >(arena); |
1943 | } |
1944 | template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::FloatValue* |
1945 | Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::FloatValue >(Arena* arena) { |
1946 | return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::FloatValue >(arena); |
1947 | } |
1948 | template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::Int64Value* |
1949 | Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Int64Value >(Arena* arena) { |
1950 | return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::Int64Value >(arena); |
1951 | } |
1952 | template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::UInt64Value* |
1953 | Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::UInt64Value >(Arena* arena) { |
1954 | return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::UInt64Value >(arena); |
1955 | } |
1956 | template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::Int32Value* |
1957 | Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::Int32Value >(Arena* arena) { |
1958 | return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::Int32Value >(arena); |
1959 | } |
1960 | template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::UInt32Value* |
1961 | Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::UInt32Value >(Arena* arena) { |
1962 | return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::UInt32Value >(arena); |
1963 | } |
1964 | template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::BoolValue* |
1965 | Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::BoolValue >(Arena* arena) { |
1966 | return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::BoolValue >(arena); |
1967 | } |
1968 | template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::StringValue* |
1969 | Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::StringValue >(Arena* arena) { |
1970 | return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::StringValue >(arena); |
1971 | } |
1972 | template<> PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::BytesValue* |
1973 | Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::BytesValue >(Arena* arena) { |
1974 | return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::BytesValue >(arena); |
1975 | } |
1976 | PROTOBUF_NAMESPACE_CLOSE |
1977 | |
1978 | // @@protoc_insertion_point(global_scope) |
1979 | #include <google/protobuf/port_undef.inc> |
1980 | |