/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/common/common_net.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/common/common_net.proto |
3 | | |
4 | | #ifndef PROTOBUF_yb_2fcommon_2fcommon_5fnet_2eproto__INCLUDED |
5 | | #define PROTOBUF_yb_2fcommon_2fcommon_5fnet_2eproto__INCLUDED |
6 | | |
7 | | #include <string> |
8 | | |
9 | | #include <google/protobuf/stubs/common.h> |
10 | | |
11 | | #if GOOGLE_PROTOBUF_VERSION < 3005000 |
12 | | #error This file was generated by a newer version of protoc which is |
13 | | #error incompatible with your Protocol Buffer headers. Please update |
14 | | #error your headers. |
15 | | #endif |
16 | | #if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
17 | | #error This file was generated by an older version of protoc which is |
18 | | #error incompatible with your Protocol Buffer headers. Please |
19 | | #error regenerate this file with a newer version of protoc. |
20 | | #endif |
21 | | |
22 | | #include <google/protobuf/io/coded_stream.h> |
23 | | #include <google/protobuf/arena.h> |
24 | | #include <google/protobuf/arenastring.h> |
25 | | #include <google/protobuf/generated_message_table_driven.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/metadata.h> |
28 | | #include <google/protobuf/message.h> |
29 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
30 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
31 | | #include <google/protobuf/unknown_field_set.h> |
32 | | // @@protoc_insertion_point(includes) |
33 | | |
34 | | namespace protobuf_yb_2fcommon_2fcommon_5fnet_2eproto { |
35 | | // Internal implementation detail -- do not use these members. |
36 | | struct TableStruct { |
37 | | static const ::google::protobuf::internal::ParseTableField entries[]; |
38 | | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
39 | | static const ::google::protobuf::internal::ParseTable schema[2]; |
40 | | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
41 | | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
42 | | static const ::google::protobuf::uint32 offsets[]; |
43 | | }; |
44 | | void AddDescriptors(); |
45 | | void InitDefaultsHostPortPBImpl(); |
46 | | void InitDefaultsHostPortPB(); |
47 | | void InitDefaultsCloudInfoPBImpl(); |
48 | | void InitDefaultsCloudInfoPB(); |
49 | 17.1k | inline void InitDefaults() { |
50 | 17.1k | InitDefaultsHostPortPB(); |
51 | 17.1k | InitDefaultsCloudInfoPB(); |
52 | 17.1k | } |
53 | | } // namespace protobuf_yb_2fcommon_2fcommon_5fnet_2eproto |
54 | | namespace yb { |
55 | | class CloudInfoPB; |
56 | | class CloudInfoPBDefaultTypeInternal; |
57 | | extern CloudInfoPBDefaultTypeInternal _CloudInfoPB_default_instance_; |
58 | | class HostPortPB; |
59 | | class HostPortPBDefaultTypeInternal; |
60 | | extern HostPortPBDefaultTypeInternal _HostPortPB_default_instance_; |
61 | | } // namespace yb |
62 | | namespace yb { |
63 | | |
64 | | // =================================================================== |
65 | | |
66 | | class HostPortPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.HostPortPB) */ { |
67 | | public: |
68 | | HostPortPB(); |
69 | | virtual ~HostPortPB(); |
70 | | |
71 | | HostPortPB(const HostPortPB& from); |
72 | | |
73 | 0 | inline HostPortPB& operator=(const HostPortPB& from) { |
74 | 0 | CopyFrom(from); |
75 | 0 | return *this; |
76 | 0 | } |
77 | | #if LANG_CXX11 |
78 | | HostPortPB(HostPortPB&& from) noexcept |
79 | 32 | : HostPortPB() { |
80 | 32 | *this = ::std::move(from); |
81 | 32 | } Unexecuted instantiation: _ZN2yb10HostPortPBC2EOS0_ _ZN2yb10HostPortPBC1EOS0_ Line | Count | Source | 79 | 32 | : HostPortPB() { | 80 | 32 | *this = ::std::move(from); | 81 | 32 | } |
|
82 | | |
83 | 32 | inline HostPortPB& operator=(HostPortPB&& from) noexcept { |
84 | 32 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
85 | 32 | if (this != &from) InternalSwap(&from); |
86 | 0 | } else { |
87 | 0 | CopyFrom(from); |
88 | 0 | } |
89 | 32 | return *this; |
90 | 32 | } |
91 | | #endif |
92 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
93 | 0 | return _internal_metadata_.unknown_fields(); |
94 | 0 | } |
95 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
96 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
97 | 0 | } |
98 | | |
99 | | static const ::google::protobuf::Descriptor* descriptor(); |
100 | | static const HostPortPB& default_instance(); |
101 | | |
102 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
103 | 215M | static inline const HostPortPB* internal_default_instance() { |
104 | 215M | return reinterpret_cast<const HostPortPB*>( |
105 | 215M | &_HostPortPB_default_instance_); |
106 | 215M | } |
107 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
108 | | 0; |
109 | | |
110 | | void Swap(HostPortPB* other); |
111 | 0 | friend void swap(HostPortPB& a, HostPortPB& b) { |
112 | 0 | a.Swap(&b); |
113 | 0 | } |
114 | | |
115 | | // implements Message ---------------------------------------------- |
116 | | |
117 | 0 | inline HostPortPB* New() const PROTOBUF_FINAL { return New(NULL); } |
118 | | |
119 | | HostPortPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
120 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
121 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
122 | | void CopyFrom(const HostPortPB& from); |
123 | | void MergeFrom(const HostPortPB& from); |
124 | | void Clear() PROTOBUF_FINAL; |
125 | | bool IsInitialized() const PROTOBUF_FINAL; |
126 | | |
127 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
128 | | bool MergePartialFromCodedStream( |
129 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
130 | | void SerializeWithCachedSizes( |
131 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
132 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
133 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
134 | 13.5M | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
135 | | private: |
136 | | void SharedCtor(); |
137 | | void SharedDtor(); |
138 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
139 | | void InternalSwap(HostPortPB* other); |
140 | | private: |
141 | 64 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
142 | 64 | return NULL; |
143 | 64 | } |
144 | 0 | inline void* MaybeArenaPtr() const { |
145 | 0 | return NULL; |
146 | 0 | } |
147 | | public: |
148 | | |
149 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
150 | | |
151 | | // nested types ---------------------------------------------------- |
152 | | |
153 | | // accessors ------------------------------------------------------- |
154 | | |
155 | | // required string host = 1; |
156 | | bool has_host() const; |
157 | | void clear_host(); |
158 | | static const int kHostFieldNumber = 1; |
159 | | const ::std::string& host() const; |
160 | | void set_host(const ::std::string& value); |
161 | | #if LANG_CXX11 |
162 | | void set_host(::std::string&& value); |
163 | | #endif |
164 | | void set_host(const char* value); |
165 | | void set_host(const char* value, size_t size); |
166 | | ::std::string* mutable_host(); |
167 | | ::std::string* release_host(); |
168 | | void set_allocated_host(::std::string* host); |
169 | | |
170 | | // required uint32 port = 2; |
171 | | bool has_port() const; |
172 | | void clear_port(); |
173 | | static const int kPortFieldNumber = 2; |
174 | | ::google::protobuf::uint32 port() const; |
175 | | void set_port(::google::protobuf::uint32 value); |
176 | | |
177 | | // @@protoc_insertion_point(class_scope:yb.HostPortPB) |
178 | | private: |
179 | | void set_has_host(); |
180 | | void clear_has_host(); |
181 | | void set_has_port(); |
182 | | void clear_has_port(); |
183 | | |
184 | | // helper for ByteSizeLong() |
185 | | size_t RequiredFieldsByteSizeFallback() const; |
186 | | |
187 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
188 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
189 | | mutable int _cached_size_; |
190 | | ::google::protobuf::internal::ArenaStringPtr host_; |
191 | | ::google::protobuf::uint32 port_; |
192 | | friend struct ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::TableStruct; |
193 | | friend void ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPBImpl(); |
194 | | }; |
195 | | // ------------------------------------------------------------------- |
196 | | |
197 | | class CloudInfoPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.CloudInfoPB) */ { |
198 | | public: |
199 | | CloudInfoPB(); |
200 | | virtual ~CloudInfoPB(); |
201 | | |
202 | | CloudInfoPB(const CloudInfoPB& from); |
203 | | |
204 | 687k | inline CloudInfoPB& operator=(const CloudInfoPB& from) { |
205 | 687k | CopyFrom(from); |
206 | 687k | return *this; |
207 | 687k | } |
208 | | #if LANG_CXX11 |
209 | | CloudInfoPB(CloudInfoPB&& from) noexcept |
210 | 134k | : CloudInfoPB() { |
211 | 134k | *this = ::std::move(from); |
212 | 134k | } Unexecuted instantiation: _ZN2yb11CloudInfoPBC2EOS0_ _ZN2yb11CloudInfoPBC1EOS0_ Line | Count | Source | 210 | 134k | : CloudInfoPB() { | 211 | 134k | *this = ::std::move(from); | 212 | 134k | } |
|
213 | | |
214 | 140k | inline CloudInfoPB& operator=(CloudInfoPB&& from) noexcept { |
215 | 140k | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
216 | 140k | if (this != &from) InternalSwap(&from); |
217 | 14 | } else { |
218 | 14 | CopyFrom(from); |
219 | 14 | } |
220 | 140k | return *this; |
221 | 140k | } |
222 | | #endif |
223 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
224 | 0 | return _internal_metadata_.unknown_fields(); |
225 | 0 | } |
226 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
227 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
228 | 0 | } |
229 | | |
230 | | static const ::google::protobuf::Descriptor* descriptor(); |
231 | | static const CloudInfoPB& default_instance(); |
232 | | |
233 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
234 | 196M | static inline const CloudInfoPB* internal_default_instance() { |
235 | 196M | return reinterpret_cast<const CloudInfoPB*>( |
236 | 196M | &_CloudInfoPB_default_instance_); |
237 | 196M | } |
238 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
239 | | 1; |
240 | | |
241 | | void Swap(CloudInfoPB* other); |
242 | 0 | friend void swap(CloudInfoPB& a, CloudInfoPB& b) { |
243 | 0 | a.Swap(&b); |
244 | 0 | } |
245 | | |
246 | | // implements Message ---------------------------------------------- |
247 | | |
248 | 0 | inline CloudInfoPB* New() const PROTOBUF_FINAL { return New(NULL); } |
249 | | |
250 | | CloudInfoPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
251 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
252 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
253 | | void CopyFrom(const CloudInfoPB& from); |
254 | | void MergeFrom(const CloudInfoPB& from); |
255 | | void Clear() PROTOBUF_FINAL; |
256 | | bool IsInitialized() const PROTOBUF_FINAL; |
257 | | |
258 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
259 | | bool MergePartialFromCodedStream( |
260 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
261 | | void SerializeWithCachedSizes( |
262 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
263 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
264 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
265 | 8.34M | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
266 | | private: |
267 | | void SharedCtor(); |
268 | | void SharedDtor(); |
269 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
270 | | void InternalSwap(CloudInfoPB* other); |
271 | | private: |
272 | 280k | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
273 | 280k | return NULL; |
274 | 280k | } |
275 | 0 | inline void* MaybeArenaPtr() const { |
276 | 0 | return NULL; |
277 | 0 | } |
278 | | public: |
279 | | |
280 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
281 | | |
282 | | // nested types ---------------------------------------------------- |
283 | | |
284 | | // accessors ------------------------------------------------------- |
285 | | |
286 | | // optional string placement_cloud = 1; |
287 | | bool has_placement_cloud() const; |
288 | | void clear_placement_cloud(); |
289 | | static const int kPlacementCloudFieldNumber = 1; |
290 | | const ::std::string& placement_cloud() const; |
291 | | void set_placement_cloud(const ::std::string& value); |
292 | | #if LANG_CXX11 |
293 | | void set_placement_cloud(::std::string&& value); |
294 | | #endif |
295 | | void set_placement_cloud(const char* value); |
296 | | void set_placement_cloud(const char* value, size_t size); |
297 | | ::std::string* mutable_placement_cloud(); |
298 | | ::std::string* release_placement_cloud(); |
299 | | void set_allocated_placement_cloud(::std::string* placement_cloud); |
300 | | |
301 | | // optional string placement_region = 2; |
302 | | bool has_placement_region() const; |
303 | | void clear_placement_region(); |
304 | | static const int kPlacementRegionFieldNumber = 2; |
305 | | const ::std::string& placement_region() const; |
306 | | void set_placement_region(const ::std::string& value); |
307 | | #if LANG_CXX11 |
308 | | void set_placement_region(::std::string&& value); |
309 | | #endif |
310 | | void set_placement_region(const char* value); |
311 | | void set_placement_region(const char* value, size_t size); |
312 | | ::std::string* mutable_placement_region(); |
313 | | ::std::string* release_placement_region(); |
314 | | void set_allocated_placement_region(::std::string* placement_region); |
315 | | |
316 | | // optional string placement_zone = 3; |
317 | | bool has_placement_zone() const; |
318 | | void clear_placement_zone(); |
319 | | static const int kPlacementZoneFieldNumber = 3; |
320 | | const ::std::string& placement_zone() const; |
321 | | void set_placement_zone(const ::std::string& value); |
322 | | #if LANG_CXX11 |
323 | | void set_placement_zone(::std::string&& value); |
324 | | #endif |
325 | | void set_placement_zone(const char* value); |
326 | | void set_placement_zone(const char* value, size_t size); |
327 | | ::std::string* mutable_placement_zone(); |
328 | | ::std::string* release_placement_zone(); |
329 | | void set_allocated_placement_zone(::std::string* placement_zone); |
330 | | |
331 | | // @@protoc_insertion_point(class_scope:yb.CloudInfoPB) |
332 | | private: |
333 | | void set_has_placement_cloud(); |
334 | | void clear_has_placement_cloud(); |
335 | | void set_has_placement_region(); |
336 | | void clear_has_placement_region(); |
337 | | void set_has_placement_zone(); |
338 | | void clear_has_placement_zone(); |
339 | | |
340 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
341 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
342 | | mutable int _cached_size_; |
343 | | ::google::protobuf::internal::ArenaStringPtr placement_cloud_; |
344 | | ::google::protobuf::internal::ArenaStringPtr placement_region_; |
345 | | ::google::protobuf::internal::ArenaStringPtr placement_zone_; |
346 | | friend struct ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::TableStruct; |
347 | | friend void ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsCloudInfoPBImpl(); |
348 | | }; |
349 | | // =================================================================== |
350 | | |
351 | | |
352 | | // =================================================================== |
353 | | |
354 | | #ifdef __GNUC__ |
355 | | #pragma GCC diagnostic push |
356 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
357 | | #endif // __GNUC__ |
358 | | // HostPortPB |
359 | | |
360 | | // required string host = 1; |
361 | 32 | inline bool HostPortPB::has_host() const { |
362 | 32 | return (_has_bits_[0] & 0x00000001u) != 0; |
363 | 32 | } |
364 | 223M | inline void HostPortPB::set_has_host() { |
365 | 223M | _has_bits_[0] |= 0x00000001u; |
366 | 223M | } |
367 | 0 | inline void HostPortPB::clear_has_host() { |
368 | 0 | _has_bits_[0] &= ~0x00000001u; |
369 | 0 | } |
370 | 0 | inline void HostPortPB::clear_host() { |
371 | 0 | host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
372 | 0 | clear_has_host(); |
373 | 0 | } |
374 | 94.0M | inline const ::std::string& HostPortPB::host() const { |
375 | | // @@protoc_insertion_point(field_get:yb.HostPortPB.host) |
376 | 94.0M | return host_.GetNoArena(); |
377 | 94.0M | } |
378 | 62.9k | inline void HostPortPB::set_host(const ::std::string& value) { |
379 | 62.9k | set_has_host(); |
380 | 62.9k | host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
381 | | // @@protoc_insertion_point(field_set:yb.HostPortPB.host) |
382 | 62.9k | } |
383 | | #if LANG_CXX11 |
384 | 4.69M | inline void HostPortPB::set_host(::std::string&& value) { |
385 | 4.69M | set_has_host(); |
386 | 4.69M | host_.SetNoArena( |
387 | 4.69M | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
388 | | // @@protoc_insertion_point(field_set_rvalue:yb.HostPortPB.host) |
389 | 4.69M | } |
390 | | #endif |
391 | 8 | inline void HostPortPB::set_host(const char* value) { |
392 | 8 | GOOGLE_DCHECK(value != NULL); |
393 | 8 | set_has_host(); |
394 | 8 | host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
395 | | // @@protoc_insertion_point(field_set_char:yb.HostPortPB.host) |
396 | 8 | } |
397 | 0 | inline void HostPortPB::set_host(const char* value, size_t size) { |
398 | 0 | set_has_host(); |
399 | 0 | host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
400 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
401 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.HostPortPB.host) |
402 | 0 | } |
403 | 12.8M | inline ::std::string* HostPortPB::mutable_host() { |
404 | 12.8M | set_has_host(); |
405 | | // @@protoc_insertion_point(field_mutable:yb.HostPortPB.host) |
406 | 12.8M | return host_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
407 | 12.8M | } |
408 | 0 | inline ::std::string* HostPortPB::release_host() { |
409 | 0 | // @@protoc_insertion_point(field_release:yb.HostPortPB.host) |
410 | 0 | clear_has_host(); |
411 | 0 | return host_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
412 | 0 | } |
413 | 0 | inline void HostPortPB::set_allocated_host(::std::string* host) { |
414 | 0 | if (host != NULL) { |
415 | 0 | set_has_host(); |
416 | 0 | } else { |
417 | 0 | clear_has_host(); |
418 | 0 | } |
419 | 0 | host_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), host); |
420 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.HostPortPB.host) |
421 | 0 | } |
422 | | |
423 | | // required uint32 port = 2; |
424 | 0 | inline bool HostPortPB::has_port() const { |
425 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
426 | 0 | } |
427 | 17.6M | inline void HostPortPB::set_has_port() { |
428 | 17.6M | _has_bits_[0] |= 0x00000002u; |
429 | 17.6M | } |
430 | 0 | inline void HostPortPB::clear_has_port() { |
431 | 0 | _has_bits_[0] &= ~0x00000002u; |
432 | 0 | } |
433 | 0 | inline void HostPortPB::clear_port() { |
434 | 0 | port_ = 0u; |
435 | 0 | clear_has_port(); |
436 | 0 | } |
437 | 40.3M | inline ::google::protobuf::uint32 HostPortPB::port() const { |
438 | | // @@protoc_insertion_point(field_get:yb.HostPortPB.port) |
439 | 40.3M | return port_; |
440 | 40.3M | } |
441 | 4.75M | inline void HostPortPB::set_port(::google::protobuf::uint32 value) { |
442 | 4.75M | set_has_port(); |
443 | 4.75M | port_ = value; |
444 | | // @@protoc_insertion_point(field_set:yb.HostPortPB.port) |
445 | 4.75M | } |
446 | | |
447 | | // ------------------------------------------------------------------- |
448 | | |
449 | | // CloudInfoPB |
450 | | |
451 | | // optional string placement_cloud = 1; |
452 | 17.8M | inline bool CloudInfoPB::has_placement_cloud() const { |
453 | 17.8M | return (_has_bits_[0] & 0x00000001u) != 0; |
454 | 17.8M | } |
455 | 199M | inline void CloudInfoPB::set_has_placement_cloud() { |
456 | 199M | _has_bits_[0] |= 0x00000001u; |
457 | 199M | } |
458 | 0 | inline void CloudInfoPB::clear_has_placement_cloud() { |
459 | 0 | _has_bits_[0] &= ~0x00000001u; |
460 | 0 | } |
461 | 0 | inline void CloudInfoPB::clear_placement_cloud() { |
462 | 0 | placement_cloud_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
463 | 0 | clear_has_placement_cloud(); |
464 | 0 | } |
465 | 56.2M | inline const ::std::string& CloudInfoPB::placement_cloud() const { |
466 | | // @@protoc_insertion_point(field_get:yb.CloudInfoPB.placement_cloud) |
467 | 56.2M | return placement_cloud_.GetNoArena(); |
468 | 56.2M | } |
469 | 95.6k | inline void CloudInfoPB::set_placement_cloud(const ::std::string& value) { |
470 | 95.6k | set_has_placement_cloud(); |
471 | 95.6k | placement_cloud_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
472 | | // @@protoc_insertion_point(field_set:yb.CloudInfoPB.placement_cloud) |
473 | 95.6k | } |
474 | | #if LANG_CXX11 |
475 | 0 | inline void CloudInfoPB::set_placement_cloud(::std::string&& value) { |
476 | 0 | set_has_placement_cloud(); |
477 | 0 | placement_cloud_.SetNoArena( |
478 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
479 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.CloudInfoPB.placement_cloud) |
480 | 0 | } |
481 | | #endif |
482 | 16 | inline void CloudInfoPB::set_placement_cloud(const char* value) { |
483 | 16 | GOOGLE_DCHECK(value != NULL); |
484 | 16 | set_has_placement_cloud(); |
485 | 16 | placement_cloud_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
486 | | // @@protoc_insertion_point(field_set_char:yb.CloudInfoPB.placement_cloud) |
487 | 16 | } |
488 | 0 | inline void CloudInfoPB::set_placement_cloud(const char* value, size_t size) { |
489 | 0 | set_has_placement_cloud(); |
490 | 0 | placement_cloud_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
491 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
492 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.CloudInfoPB.placement_cloud) |
493 | 0 | } |
494 | 7.58M | inline ::std::string* CloudInfoPB::mutable_placement_cloud() { |
495 | 7.58M | set_has_placement_cloud(); |
496 | | // @@protoc_insertion_point(field_mutable:yb.CloudInfoPB.placement_cloud) |
497 | 7.58M | return placement_cloud_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
498 | 7.58M | } |
499 | 0 | inline ::std::string* CloudInfoPB::release_placement_cloud() { |
500 | 0 | // @@protoc_insertion_point(field_release:yb.CloudInfoPB.placement_cloud) |
501 | 0 | clear_has_placement_cloud(); |
502 | 0 | return placement_cloud_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
503 | 0 | } |
504 | 0 | inline void CloudInfoPB::set_allocated_placement_cloud(::std::string* placement_cloud) { |
505 | 0 | if (placement_cloud != NULL) { |
506 | 0 | set_has_placement_cloud(); |
507 | 0 | } else { |
508 | 0 | clear_has_placement_cloud(); |
509 | 0 | } |
510 | 0 | placement_cloud_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), placement_cloud); |
511 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.CloudInfoPB.placement_cloud) |
512 | 0 | } |
513 | | |
514 | | // optional string placement_region = 2; |
515 | 17.8M | inline bool CloudInfoPB::has_placement_region() const { |
516 | 17.8M | return (_has_bits_[0] & 0x00000002u) != 0; |
517 | 17.8M | } |
518 | 199M | inline void CloudInfoPB::set_has_placement_region() { |
519 | 199M | _has_bits_[0] |= 0x00000002u; |
520 | 199M | } |
521 | 0 | inline void CloudInfoPB::clear_has_placement_region() { |
522 | 0 | _has_bits_[0] &= ~0x00000002u; |
523 | 0 | } |
524 | 0 | inline void CloudInfoPB::clear_placement_region() { |
525 | 0 | placement_region_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
526 | 0 | clear_has_placement_region(); |
527 | 0 | } |
528 | 56.4M | inline const ::std::string& CloudInfoPB::placement_region() const { |
529 | | // @@protoc_insertion_point(field_get:yb.CloudInfoPB.placement_region) |
530 | 56.4M | return placement_region_.GetNoArena(); |
531 | 56.4M | } |
532 | 95.6k | inline void CloudInfoPB::set_placement_region(const ::std::string& value) { |
533 | 95.6k | set_has_placement_region(); |
534 | 95.6k | placement_region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
535 | | // @@protoc_insertion_point(field_set:yb.CloudInfoPB.placement_region) |
536 | 95.6k | } |
537 | | #if LANG_CXX11 |
538 | 0 | inline void CloudInfoPB::set_placement_region(::std::string&& value) { |
539 | 0 | set_has_placement_region(); |
540 | 0 | placement_region_.SetNoArena( |
541 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
542 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.CloudInfoPB.placement_region) |
543 | 0 | } |
544 | | #endif |
545 | 14 | inline void CloudInfoPB::set_placement_region(const char* value) { |
546 | 14 | GOOGLE_DCHECK(value != NULL); |
547 | 14 | set_has_placement_region(); |
548 | 14 | placement_region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
549 | | // @@protoc_insertion_point(field_set_char:yb.CloudInfoPB.placement_region) |
550 | 14 | } |
551 | 0 | inline void CloudInfoPB::set_placement_region(const char* value, size_t size) { |
552 | 0 | set_has_placement_region(); |
553 | 0 | placement_region_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
554 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
555 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.CloudInfoPB.placement_region) |
556 | 0 | } |
557 | 7.57M | inline ::std::string* CloudInfoPB::mutable_placement_region() { |
558 | 7.57M | set_has_placement_region(); |
559 | | // @@protoc_insertion_point(field_mutable:yb.CloudInfoPB.placement_region) |
560 | 7.57M | return placement_region_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
561 | 7.57M | } |
562 | 0 | inline ::std::string* CloudInfoPB::release_placement_region() { |
563 | 0 | // @@protoc_insertion_point(field_release:yb.CloudInfoPB.placement_region) |
564 | 0 | clear_has_placement_region(); |
565 | 0 | return placement_region_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
566 | 0 | } |
567 | 0 | inline void CloudInfoPB::set_allocated_placement_region(::std::string* placement_region) { |
568 | 0 | if (placement_region != NULL) { |
569 | 0 | set_has_placement_region(); |
570 | 0 | } else { |
571 | 0 | clear_has_placement_region(); |
572 | 0 | } |
573 | 0 | placement_region_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), placement_region); |
574 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.CloudInfoPB.placement_region) |
575 | 0 | } |
576 | | |
577 | | // optional string placement_zone = 3; |
578 | 17.8M | inline bool CloudInfoPB::has_placement_zone() const { |
579 | 17.8M | return (_has_bits_[0] & 0x00000004u) != 0; |
580 | 17.8M | } |
581 | 199M | inline void CloudInfoPB::set_has_placement_zone() { |
582 | 199M | _has_bits_[0] |= 0x00000004u; |
583 | 199M | } |
584 | 0 | inline void CloudInfoPB::clear_has_placement_zone() { |
585 | 0 | _has_bits_[0] &= ~0x00000004u; |
586 | 0 | } |
587 | 0 | inline void CloudInfoPB::clear_placement_zone() { |
588 | 0 | placement_zone_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
589 | 0 | clear_has_placement_zone(); |
590 | 0 | } |
591 | 56.4M | inline const ::std::string& CloudInfoPB::placement_zone() const { |
592 | | // @@protoc_insertion_point(field_get:yb.CloudInfoPB.placement_zone) |
593 | 56.4M | return placement_zone_.GetNoArena(); |
594 | 56.4M | } |
595 | 95.6k | inline void CloudInfoPB::set_placement_zone(const ::std::string& value) { |
596 | 95.6k | set_has_placement_zone(); |
597 | 95.6k | placement_zone_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
598 | | // @@protoc_insertion_point(field_set:yb.CloudInfoPB.placement_zone) |
599 | 95.6k | } |
600 | | #if LANG_CXX11 |
601 | 0 | inline void CloudInfoPB::set_placement_zone(::std::string&& value) { |
602 | 0 | set_has_placement_zone(); |
603 | 0 | placement_zone_.SetNoArena( |
604 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
605 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.CloudInfoPB.placement_zone) |
606 | 0 | } |
607 | | #endif |
608 | 4 | inline void CloudInfoPB::set_placement_zone(const char* value) { |
609 | 4 | GOOGLE_DCHECK(value != NULL); |
610 | 4 | set_has_placement_zone(); |
611 | 4 | placement_zone_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
612 | | // @@protoc_insertion_point(field_set_char:yb.CloudInfoPB.placement_zone) |
613 | 4 | } |
614 | 0 | inline void CloudInfoPB::set_placement_zone(const char* value, size_t size) { |
615 | 0 | set_has_placement_zone(); |
616 | 0 | placement_zone_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
617 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
618 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.CloudInfoPB.placement_zone) |
619 | 0 | } |
620 | 7.58M | inline ::std::string* CloudInfoPB::mutable_placement_zone() { |
621 | 7.58M | set_has_placement_zone(); |
622 | | // @@protoc_insertion_point(field_mutable:yb.CloudInfoPB.placement_zone) |
623 | 7.58M | return placement_zone_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
624 | 7.58M | } |
625 | 0 | inline ::std::string* CloudInfoPB::release_placement_zone() { |
626 | 0 | // @@protoc_insertion_point(field_release:yb.CloudInfoPB.placement_zone) |
627 | 0 | clear_has_placement_zone(); |
628 | 0 | return placement_zone_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
629 | 0 | } |
630 | 0 | inline void CloudInfoPB::set_allocated_placement_zone(::std::string* placement_zone) { |
631 | 0 | if (placement_zone != NULL) { |
632 | 0 | set_has_placement_zone(); |
633 | 0 | } else { |
634 | 0 | clear_has_placement_zone(); |
635 | 0 | } |
636 | 0 | placement_zone_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), placement_zone); |
637 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.CloudInfoPB.placement_zone) |
638 | 0 | } |
639 | | |
640 | | #ifdef __GNUC__ |
641 | | #pragma GCC diagnostic pop |
642 | | #endif // __GNUC__ |
643 | | // ------------------------------------------------------------------- |
644 | | |
645 | | |
646 | | // @@protoc_insertion_point(namespace_scope) |
647 | | |
648 | | } // namespace yb |
649 | | |
650 | | // @@protoc_insertion_point(global_scope) |
651 | | |
652 | | #endif // PROTOBUF_yb_2fcommon_2fcommon_5fnet_2eproto__INCLUDED |