1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/coordination_config.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcoordination_5fconfig_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcoordination_5fconfig_2eproto |
6 | |
7 | #include <limits> |
8 | #include <string> |
9 | |
10 | #include <google/protobuf/port_def.inc> |
11 | #if PROTOBUF_VERSION < 3009000 |
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 3009002 < 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/port_undef.inc> |
23 | #include <google/protobuf/io/coded_stream.h> |
24 | #include <google/protobuf/arena.h> |
25 | #include <google/protobuf/arenastring.h> |
26 | #include <google/protobuf/generated_message_table_driven.h> |
27 | #include <google/protobuf/generated_message_util.h> |
28 | #include <google/protobuf/inlined_string_field.h> |
29 | #include <google/protobuf/metadata.h> |
30 | #include <google/protobuf/generated_message_reflection.h> |
31 | #include <google/protobuf/message.h> |
32 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
33 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
34 | #include <google/protobuf/unknown_field_set.h> |
35 | // @@protoc_insertion_point(includes) |
36 | #include <google/protobuf/port_def.inc> |
37 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fcoordination_5fconfig_2eproto |
38 | PROTOBUF_NAMESPACE_OPEN |
39 | namespace internal { |
40 | class AnyMetadata; |
41 | } // namespace internal |
42 | PROTOBUF_NAMESPACE_CLOSE |
43 | |
44 | // Internal implementation detail -- do not use these members. |
45 | struct TableStruct_tensorflow_2fcore_2fprotobuf_2fcoordination_5fconfig_2eproto { |
46 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
47 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
48 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
49 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
50 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] |
51 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
54 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
55 | }; |
56 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fconfig_2eproto; |
57 | namespace tensorflow { |
58 | class CoordinationServiceConfig; |
59 | class CoordinationServiceConfigDefaultTypeInternal; |
60 | extern CoordinationServiceConfigDefaultTypeInternal _CoordinationServiceConfig_default_instance_; |
61 | } // namespace tensorflow |
62 | PROTOBUF_NAMESPACE_OPEN |
63 | template<> ::tensorflow::CoordinationServiceConfig* Arena::CreateMaybeMessage<::tensorflow::CoordinationServiceConfig>(Arena*); |
64 | PROTOBUF_NAMESPACE_CLOSE |
65 | namespace tensorflow { |
66 | |
67 | // =================================================================== |
68 | |
69 | class CoordinationServiceConfig : |
70 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.CoordinationServiceConfig) */ { |
71 | public: |
72 | CoordinationServiceConfig(); |
73 | virtual ~CoordinationServiceConfig(); |
74 | |
75 | CoordinationServiceConfig(const CoordinationServiceConfig& from); |
76 | CoordinationServiceConfig(CoordinationServiceConfig&& from) noexcept |
77 | : CoordinationServiceConfig() { |
78 | *this = ::std::move(from); |
79 | } |
80 | |
81 | inline CoordinationServiceConfig& operator=(const CoordinationServiceConfig& from) { |
82 | CopyFrom(from); |
83 | return *this; |
84 | } |
85 | inline CoordinationServiceConfig& operator=(CoordinationServiceConfig&& from) noexcept { |
86 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
87 | if (this != &from) InternalSwap(&from); |
88 | } else { |
89 | CopyFrom(from); |
90 | } |
91 | return *this; |
92 | } |
93 | |
94 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
95 | return GetDescriptor(); |
96 | } |
97 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
98 | return GetMetadataStatic().descriptor; |
99 | } |
100 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
101 | return GetMetadataStatic().reflection; |
102 | } |
103 | static const CoordinationServiceConfig& default_instance(); |
104 | |
105 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
106 | static inline const CoordinationServiceConfig* internal_default_instance() { |
107 | return reinterpret_cast<const CoordinationServiceConfig*>( |
108 | &_CoordinationServiceConfig_default_instance_); |
109 | } |
110 | static constexpr int kIndexInFileMessages = |
111 | 0; |
112 | |
113 | friend void swap(CoordinationServiceConfig& a, CoordinationServiceConfig& b) { |
114 | a.Swap(&b); |
115 | } |
116 | inline void Swap(CoordinationServiceConfig* other) { |
117 | if (other == this) return; |
118 | InternalSwap(other); |
119 | } |
120 | |
121 | // implements Message ---------------------------------------------- |
122 | |
123 | inline CoordinationServiceConfig* New() const final { |
124 | return CreateMaybeMessage<CoordinationServiceConfig>(nullptr); |
125 | } |
126 | |
127 | CoordinationServiceConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
128 | return CreateMaybeMessage<CoordinationServiceConfig>(arena); |
129 | } |
130 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
131 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
132 | void CopyFrom(const CoordinationServiceConfig& from); |
133 | void MergeFrom(const CoordinationServiceConfig& from); |
134 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
135 | bool IsInitialized() const final; |
136 | |
137 | size_t ByteSizeLong() const final; |
138 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
139 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
140 | #else |
141 | bool MergePartialFromCodedStream( |
142 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
143 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
144 | void SerializeWithCachedSizes( |
145 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
146 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
147 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
148 | int GetCachedSize() const final { return _cached_size_.Get(); } |
149 | |
150 | private: |
151 | inline void SharedCtor(); |
152 | inline void SharedDtor(); |
153 | void SetCachedSize(int size) const final; |
154 | void InternalSwap(CoordinationServiceConfig* other); |
155 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
156 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
157 | return "tensorflow.CoordinationServiceConfig" ; |
158 | } |
159 | private: |
160 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
161 | return nullptr; |
162 | } |
163 | inline void* MaybeArenaPtr() const { |
164 | return nullptr; |
165 | } |
166 | public: |
167 | |
168 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
169 | private: |
170 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
171 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fconfig_2eproto); |
172 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fcoordination_5fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; |
173 | } |
174 | |
175 | public: |
176 | |
177 | // nested types ---------------------------------------------------- |
178 | |
179 | // accessors ------------------------------------------------------- |
180 | |
181 | enum : int { |
182 | kCoordinatedJobsFieldNumber = 6, |
183 | kRecoverableJobsFieldNumber = 9, |
184 | kServiceTypeFieldNumber = 1, |
185 | kServiceLeaderFieldNumber = 2, |
186 | kClusterRegisterTimeoutInMsFieldNumber = 4, |
187 | kHeartbeatTimeoutInMsFieldNumber = 5, |
188 | kShutdownBarrierTimeoutInMsFieldNumber = 7, |
189 | kEnableHealthCheckFieldNumber = 3, |
190 | kAgentDestructionWithoutShutdownFieldNumber = 8, |
191 | }; |
192 | // repeated string coordinated_jobs = 6; |
193 | int coordinated_jobs_size() const; |
194 | void clear_coordinated_jobs(); |
195 | const std::string& coordinated_jobs(int index) const; |
196 | std::string* mutable_coordinated_jobs(int index); |
197 | void set_coordinated_jobs(int index, const std::string& value); |
198 | void set_coordinated_jobs(int index, std::string&& value); |
199 | void set_coordinated_jobs(int index, const char* value); |
200 | void set_coordinated_jobs(int index, const char* value, size_t size); |
201 | std::string* add_coordinated_jobs(); |
202 | void add_coordinated_jobs(const std::string& value); |
203 | void add_coordinated_jobs(std::string&& value); |
204 | void add_coordinated_jobs(const char* value); |
205 | void add_coordinated_jobs(const char* value, size_t size); |
206 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& coordinated_jobs() const; |
207 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_coordinated_jobs(); |
208 | |
209 | // repeated string recoverable_jobs = 9; |
210 | int recoverable_jobs_size() const; |
211 | void clear_recoverable_jobs(); |
212 | const std::string& recoverable_jobs(int index) const; |
213 | std::string* mutable_recoverable_jobs(int index); |
214 | void set_recoverable_jobs(int index, const std::string& value); |
215 | void set_recoverable_jobs(int index, std::string&& value); |
216 | void set_recoverable_jobs(int index, const char* value); |
217 | void set_recoverable_jobs(int index, const char* value, size_t size); |
218 | std::string* add_recoverable_jobs(); |
219 | void add_recoverable_jobs(const std::string& value); |
220 | void add_recoverable_jobs(std::string&& value); |
221 | void add_recoverable_jobs(const char* value); |
222 | void add_recoverable_jobs(const char* value, size_t size); |
223 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& recoverable_jobs() const; |
224 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_recoverable_jobs(); |
225 | |
226 | // string service_type = 1; |
227 | void clear_service_type(); |
228 | const std::string& service_type() const; |
229 | void set_service_type(const std::string& value); |
230 | void set_service_type(std::string&& value); |
231 | void set_service_type(const char* value); |
232 | void set_service_type(const char* value, size_t size); |
233 | std::string* mutable_service_type(); |
234 | std::string* release_service_type(); |
235 | void set_allocated_service_type(std::string* service_type); |
236 | |
237 | // string service_leader = 2; |
238 | void clear_service_leader(); |
239 | const std::string& service_leader() const; |
240 | void set_service_leader(const std::string& value); |
241 | void set_service_leader(std::string&& value); |
242 | void set_service_leader(const char* value); |
243 | void set_service_leader(const char* value, size_t size); |
244 | std::string* mutable_service_leader(); |
245 | std::string* release_service_leader(); |
246 | void set_allocated_service_leader(std::string* service_leader); |
247 | |
248 | // int64 cluster_register_timeout_in_ms = 4; |
249 | void clear_cluster_register_timeout_in_ms(); |
250 | ::PROTOBUF_NAMESPACE_ID::int64 cluster_register_timeout_in_ms() const; |
251 | void set_cluster_register_timeout_in_ms(::PROTOBUF_NAMESPACE_ID::int64 value); |
252 | |
253 | // int64 heartbeat_timeout_in_ms = 5; |
254 | void clear_heartbeat_timeout_in_ms(); |
255 | ::PROTOBUF_NAMESPACE_ID::int64 heartbeat_timeout_in_ms() const; |
256 | void set_heartbeat_timeout_in_ms(::PROTOBUF_NAMESPACE_ID::int64 value); |
257 | |
258 | // int64 shutdown_barrier_timeout_in_ms = 7; |
259 | void clear_shutdown_barrier_timeout_in_ms(); |
260 | ::PROTOBUF_NAMESPACE_ID::int64 shutdown_barrier_timeout_in_ms() const; |
261 | void set_shutdown_barrier_timeout_in_ms(::PROTOBUF_NAMESPACE_ID::int64 value); |
262 | |
263 | // bool enable_health_check = 3; |
264 | void clear_enable_health_check(); |
265 | bool enable_health_check() const; |
266 | void set_enable_health_check(bool value); |
267 | |
268 | // bool agent_destruction_without_shutdown = 8; |
269 | void clear_agent_destruction_without_shutdown(); |
270 | bool agent_destruction_without_shutdown() const; |
271 | void set_agent_destruction_without_shutdown(bool value); |
272 | |
273 | // @@protoc_insertion_point(class_scope:tensorflow.CoordinationServiceConfig) |
274 | private: |
275 | class _Internal; |
276 | |
277 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
278 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> coordinated_jobs_; |
279 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> recoverable_jobs_; |
280 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_type_; |
281 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_leader_; |
282 | ::PROTOBUF_NAMESPACE_ID::int64 cluster_register_timeout_in_ms_; |
283 | ::PROTOBUF_NAMESPACE_ID::int64 heartbeat_timeout_in_ms_; |
284 | ::PROTOBUF_NAMESPACE_ID::int64 shutdown_barrier_timeout_in_ms_; |
285 | bool enable_health_check_; |
286 | bool agent_destruction_without_shutdown_; |
287 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
288 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fcoordination_5fconfig_2eproto; |
289 | }; |
290 | // =================================================================== |
291 | |
292 | |
293 | // =================================================================== |
294 | |
295 | #ifdef __GNUC__ |
296 | #pragma GCC diagnostic push |
297 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
298 | #endif // __GNUC__ |
299 | // CoordinationServiceConfig |
300 | |
301 | // string service_type = 1; |
302 | inline void CoordinationServiceConfig::clear_service_type() { |
303 | service_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
304 | } |
305 | inline const std::string& CoordinationServiceConfig::service_type() const { |
306 | // @@protoc_insertion_point(field_get:tensorflow.CoordinationServiceConfig.service_type) |
307 | return service_type_.GetNoArena(); |
308 | } |
309 | inline void CoordinationServiceConfig::set_service_type(const std::string& value) { |
310 | |
311 | service_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
312 | // @@protoc_insertion_point(field_set:tensorflow.CoordinationServiceConfig.service_type) |
313 | } |
314 | inline void CoordinationServiceConfig::set_service_type(std::string&& value) { |
315 | |
316 | service_type_.SetNoArena( |
317 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
318 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.CoordinationServiceConfig.service_type) |
319 | } |
320 | inline void CoordinationServiceConfig::set_service_type(const char* value) { |
321 | GOOGLE_DCHECK(value != nullptr); |
322 | |
323 | service_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
324 | // @@protoc_insertion_point(field_set_char:tensorflow.CoordinationServiceConfig.service_type) |
325 | } |
326 | inline void CoordinationServiceConfig::set_service_type(const char* value, size_t size) { |
327 | |
328 | service_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
329 | ::std::string(reinterpret_cast<const char*>(value), size)); |
330 | // @@protoc_insertion_point(field_set_pointer:tensorflow.CoordinationServiceConfig.service_type) |
331 | } |
332 | inline std::string* CoordinationServiceConfig::mutable_service_type() { |
333 | |
334 | // @@protoc_insertion_point(field_mutable:tensorflow.CoordinationServiceConfig.service_type) |
335 | return service_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
336 | } |
337 | inline std::string* CoordinationServiceConfig::release_service_type() { |
338 | // @@protoc_insertion_point(field_release:tensorflow.CoordinationServiceConfig.service_type) |
339 | |
340 | return service_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
341 | } |
342 | inline void CoordinationServiceConfig::set_allocated_service_type(std::string* service_type) { |
343 | if (service_type != nullptr) { |
344 | |
345 | } else { |
346 | |
347 | } |
348 | service_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_type); |
349 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CoordinationServiceConfig.service_type) |
350 | } |
351 | |
352 | // string service_leader = 2; |
353 | inline void CoordinationServiceConfig::clear_service_leader() { |
354 | service_leader_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
355 | } |
356 | inline const std::string& CoordinationServiceConfig::service_leader() const { |
357 | // @@protoc_insertion_point(field_get:tensorflow.CoordinationServiceConfig.service_leader) |
358 | return service_leader_.GetNoArena(); |
359 | } |
360 | inline void CoordinationServiceConfig::set_service_leader(const std::string& value) { |
361 | |
362 | service_leader_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
363 | // @@protoc_insertion_point(field_set:tensorflow.CoordinationServiceConfig.service_leader) |
364 | } |
365 | inline void CoordinationServiceConfig::set_service_leader(std::string&& value) { |
366 | |
367 | service_leader_.SetNoArena( |
368 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
369 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.CoordinationServiceConfig.service_leader) |
370 | } |
371 | inline void CoordinationServiceConfig::set_service_leader(const char* value) { |
372 | GOOGLE_DCHECK(value != nullptr); |
373 | |
374 | service_leader_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
375 | // @@protoc_insertion_point(field_set_char:tensorflow.CoordinationServiceConfig.service_leader) |
376 | } |
377 | inline void CoordinationServiceConfig::set_service_leader(const char* value, size_t size) { |
378 | |
379 | service_leader_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
380 | ::std::string(reinterpret_cast<const char*>(value), size)); |
381 | // @@protoc_insertion_point(field_set_pointer:tensorflow.CoordinationServiceConfig.service_leader) |
382 | } |
383 | inline std::string* CoordinationServiceConfig::mutable_service_leader() { |
384 | |
385 | // @@protoc_insertion_point(field_mutable:tensorflow.CoordinationServiceConfig.service_leader) |
386 | return service_leader_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
387 | } |
388 | inline std::string* CoordinationServiceConfig::release_service_leader() { |
389 | // @@protoc_insertion_point(field_release:tensorflow.CoordinationServiceConfig.service_leader) |
390 | |
391 | return service_leader_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
392 | } |
393 | inline void CoordinationServiceConfig::set_allocated_service_leader(std::string* service_leader) { |
394 | if (service_leader != nullptr) { |
395 | |
396 | } else { |
397 | |
398 | } |
399 | service_leader_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_leader); |
400 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CoordinationServiceConfig.service_leader) |
401 | } |
402 | |
403 | // bool enable_health_check = 3; |
404 | inline void CoordinationServiceConfig::clear_enable_health_check() { |
405 | enable_health_check_ = false; |
406 | } |
407 | inline bool CoordinationServiceConfig::enable_health_check() const { |
408 | // @@protoc_insertion_point(field_get:tensorflow.CoordinationServiceConfig.enable_health_check) |
409 | return enable_health_check_; |
410 | } |
411 | inline void CoordinationServiceConfig::set_enable_health_check(bool value) { |
412 | |
413 | enable_health_check_ = value; |
414 | // @@protoc_insertion_point(field_set:tensorflow.CoordinationServiceConfig.enable_health_check) |
415 | } |
416 | |
417 | // int64 cluster_register_timeout_in_ms = 4; |
418 | inline void CoordinationServiceConfig::clear_cluster_register_timeout_in_ms() { |
419 | cluster_register_timeout_in_ms_ = PROTOBUF_LONGLONG(0); |
420 | } |
421 | inline ::PROTOBUF_NAMESPACE_ID::int64 CoordinationServiceConfig::cluster_register_timeout_in_ms() const { |
422 | // @@protoc_insertion_point(field_get:tensorflow.CoordinationServiceConfig.cluster_register_timeout_in_ms) |
423 | return cluster_register_timeout_in_ms_; |
424 | } |
425 | inline void CoordinationServiceConfig::set_cluster_register_timeout_in_ms(::PROTOBUF_NAMESPACE_ID::int64 value) { |
426 | |
427 | cluster_register_timeout_in_ms_ = value; |
428 | // @@protoc_insertion_point(field_set:tensorflow.CoordinationServiceConfig.cluster_register_timeout_in_ms) |
429 | } |
430 | |
431 | // int64 heartbeat_timeout_in_ms = 5; |
432 | inline void CoordinationServiceConfig::clear_heartbeat_timeout_in_ms() { |
433 | heartbeat_timeout_in_ms_ = PROTOBUF_LONGLONG(0); |
434 | } |
435 | inline ::PROTOBUF_NAMESPACE_ID::int64 CoordinationServiceConfig::heartbeat_timeout_in_ms() const { |
436 | // @@protoc_insertion_point(field_get:tensorflow.CoordinationServiceConfig.heartbeat_timeout_in_ms) |
437 | return heartbeat_timeout_in_ms_; |
438 | } |
439 | inline void CoordinationServiceConfig::set_heartbeat_timeout_in_ms(::PROTOBUF_NAMESPACE_ID::int64 value) { |
440 | |
441 | heartbeat_timeout_in_ms_ = value; |
442 | // @@protoc_insertion_point(field_set:tensorflow.CoordinationServiceConfig.heartbeat_timeout_in_ms) |
443 | } |
444 | |
445 | // repeated string coordinated_jobs = 6; |
446 | inline int CoordinationServiceConfig::coordinated_jobs_size() const { |
447 | return coordinated_jobs_.size(); |
448 | } |
449 | inline void CoordinationServiceConfig::clear_coordinated_jobs() { |
450 | coordinated_jobs_.Clear(); |
451 | } |
452 | inline const std::string& CoordinationServiceConfig::coordinated_jobs(int index) const { |
453 | // @@protoc_insertion_point(field_get:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
454 | return coordinated_jobs_.Get(index); |
455 | } |
456 | inline std::string* CoordinationServiceConfig::mutable_coordinated_jobs(int index) { |
457 | // @@protoc_insertion_point(field_mutable:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
458 | return coordinated_jobs_.Mutable(index); |
459 | } |
460 | inline void CoordinationServiceConfig::set_coordinated_jobs(int index, const std::string& value) { |
461 | // @@protoc_insertion_point(field_set:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
462 | coordinated_jobs_.Mutable(index)->assign(value); |
463 | } |
464 | inline void CoordinationServiceConfig::set_coordinated_jobs(int index, std::string&& value) { |
465 | // @@protoc_insertion_point(field_set:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
466 | coordinated_jobs_.Mutable(index)->assign(std::move(value)); |
467 | } |
468 | inline void CoordinationServiceConfig::set_coordinated_jobs(int index, const char* value) { |
469 | GOOGLE_DCHECK(value != nullptr); |
470 | coordinated_jobs_.Mutable(index)->assign(value); |
471 | // @@protoc_insertion_point(field_set_char:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
472 | } |
473 | inline void CoordinationServiceConfig::set_coordinated_jobs(int index, const char* value, size_t size) { |
474 | coordinated_jobs_.Mutable(index)->assign( |
475 | reinterpret_cast<const char*>(value), size); |
476 | // @@protoc_insertion_point(field_set_pointer:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
477 | } |
478 | inline std::string* CoordinationServiceConfig::add_coordinated_jobs() { |
479 | // @@protoc_insertion_point(field_add_mutable:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
480 | return coordinated_jobs_.Add(); |
481 | } |
482 | inline void CoordinationServiceConfig::add_coordinated_jobs(const std::string& value) { |
483 | coordinated_jobs_.Add()->assign(value); |
484 | // @@protoc_insertion_point(field_add:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
485 | } |
486 | inline void CoordinationServiceConfig::add_coordinated_jobs(std::string&& value) { |
487 | coordinated_jobs_.Add(std::move(value)); |
488 | // @@protoc_insertion_point(field_add:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
489 | } |
490 | inline void CoordinationServiceConfig::add_coordinated_jobs(const char* value) { |
491 | GOOGLE_DCHECK(value != nullptr); |
492 | coordinated_jobs_.Add()->assign(value); |
493 | // @@protoc_insertion_point(field_add_char:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
494 | } |
495 | inline void CoordinationServiceConfig::add_coordinated_jobs(const char* value, size_t size) { |
496 | coordinated_jobs_.Add()->assign(reinterpret_cast<const char*>(value), size); |
497 | // @@protoc_insertion_point(field_add_pointer:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
498 | } |
499 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
500 | CoordinationServiceConfig::coordinated_jobs() const { |
501 | // @@protoc_insertion_point(field_list:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
502 | return coordinated_jobs_; |
503 | } |
504 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
505 | CoordinationServiceConfig::mutable_coordinated_jobs() { |
506 | // @@protoc_insertion_point(field_mutable_list:tensorflow.CoordinationServiceConfig.coordinated_jobs) |
507 | return &coordinated_jobs_; |
508 | } |
509 | |
510 | // int64 shutdown_barrier_timeout_in_ms = 7; |
511 | inline void CoordinationServiceConfig::clear_shutdown_barrier_timeout_in_ms() { |
512 | shutdown_barrier_timeout_in_ms_ = PROTOBUF_LONGLONG(0); |
513 | } |
514 | inline ::PROTOBUF_NAMESPACE_ID::int64 CoordinationServiceConfig::shutdown_barrier_timeout_in_ms() const { |
515 | // @@protoc_insertion_point(field_get:tensorflow.CoordinationServiceConfig.shutdown_barrier_timeout_in_ms) |
516 | return shutdown_barrier_timeout_in_ms_; |
517 | } |
518 | inline void CoordinationServiceConfig::set_shutdown_barrier_timeout_in_ms(::PROTOBUF_NAMESPACE_ID::int64 value) { |
519 | |
520 | shutdown_barrier_timeout_in_ms_ = value; |
521 | // @@protoc_insertion_point(field_set:tensorflow.CoordinationServiceConfig.shutdown_barrier_timeout_in_ms) |
522 | } |
523 | |
524 | // bool agent_destruction_without_shutdown = 8; |
525 | inline void CoordinationServiceConfig::clear_agent_destruction_without_shutdown() { |
526 | agent_destruction_without_shutdown_ = false; |
527 | } |
528 | inline bool CoordinationServiceConfig::agent_destruction_without_shutdown() const { |
529 | // @@protoc_insertion_point(field_get:tensorflow.CoordinationServiceConfig.agent_destruction_without_shutdown) |
530 | return agent_destruction_without_shutdown_; |
531 | } |
532 | inline void CoordinationServiceConfig::set_agent_destruction_without_shutdown(bool value) { |
533 | |
534 | agent_destruction_without_shutdown_ = value; |
535 | // @@protoc_insertion_point(field_set:tensorflow.CoordinationServiceConfig.agent_destruction_without_shutdown) |
536 | } |
537 | |
538 | // repeated string recoverable_jobs = 9; |
539 | inline int CoordinationServiceConfig::recoverable_jobs_size() const { |
540 | return recoverable_jobs_.size(); |
541 | } |
542 | inline void CoordinationServiceConfig::clear_recoverable_jobs() { |
543 | recoverable_jobs_.Clear(); |
544 | } |
545 | inline const std::string& CoordinationServiceConfig::recoverable_jobs(int index) const { |
546 | // @@protoc_insertion_point(field_get:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
547 | return recoverable_jobs_.Get(index); |
548 | } |
549 | inline std::string* CoordinationServiceConfig::mutable_recoverable_jobs(int index) { |
550 | // @@protoc_insertion_point(field_mutable:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
551 | return recoverable_jobs_.Mutable(index); |
552 | } |
553 | inline void CoordinationServiceConfig::set_recoverable_jobs(int index, const std::string& value) { |
554 | // @@protoc_insertion_point(field_set:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
555 | recoverable_jobs_.Mutable(index)->assign(value); |
556 | } |
557 | inline void CoordinationServiceConfig::set_recoverable_jobs(int index, std::string&& value) { |
558 | // @@protoc_insertion_point(field_set:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
559 | recoverable_jobs_.Mutable(index)->assign(std::move(value)); |
560 | } |
561 | inline void CoordinationServiceConfig::set_recoverable_jobs(int index, const char* value) { |
562 | GOOGLE_DCHECK(value != nullptr); |
563 | recoverable_jobs_.Mutable(index)->assign(value); |
564 | // @@protoc_insertion_point(field_set_char:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
565 | } |
566 | inline void CoordinationServiceConfig::set_recoverable_jobs(int index, const char* value, size_t size) { |
567 | recoverable_jobs_.Mutable(index)->assign( |
568 | reinterpret_cast<const char*>(value), size); |
569 | // @@protoc_insertion_point(field_set_pointer:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
570 | } |
571 | inline std::string* CoordinationServiceConfig::add_recoverable_jobs() { |
572 | // @@protoc_insertion_point(field_add_mutable:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
573 | return recoverable_jobs_.Add(); |
574 | } |
575 | inline void CoordinationServiceConfig::add_recoverable_jobs(const std::string& value) { |
576 | recoverable_jobs_.Add()->assign(value); |
577 | // @@protoc_insertion_point(field_add:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
578 | } |
579 | inline void CoordinationServiceConfig::add_recoverable_jobs(std::string&& value) { |
580 | recoverable_jobs_.Add(std::move(value)); |
581 | // @@protoc_insertion_point(field_add:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
582 | } |
583 | inline void CoordinationServiceConfig::add_recoverable_jobs(const char* value) { |
584 | GOOGLE_DCHECK(value != nullptr); |
585 | recoverable_jobs_.Add()->assign(value); |
586 | // @@protoc_insertion_point(field_add_char:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
587 | } |
588 | inline void CoordinationServiceConfig::add_recoverable_jobs(const char* value, size_t size) { |
589 | recoverable_jobs_.Add()->assign(reinterpret_cast<const char*>(value), size); |
590 | // @@protoc_insertion_point(field_add_pointer:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
591 | } |
592 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
593 | CoordinationServiceConfig::recoverable_jobs() const { |
594 | // @@protoc_insertion_point(field_list:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
595 | return recoverable_jobs_; |
596 | } |
597 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
598 | CoordinationServiceConfig::mutable_recoverable_jobs() { |
599 | // @@protoc_insertion_point(field_mutable_list:tensorflow.CoordinationServiceConfig.recoverable_jobs) |
600 | return &recoverable_jobs_; |
601 | } |
602 | |
603 | #ifdef __GNUC__ |
604 | #pragma GCC diagnostic pop |
605 | #endif // __GNUC__ |
606 | |
607 | // @@protoc_insertion_point(namespace_scope) |
608 | |
609 | } // namespace tensorflow |
610 | |
611 | // @@protoc_insertion_point(global_scope) |
612 | |
613 | #include <google/protobuf/port_undef.inc> |
614 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcoordination_5fconfig_2eproto |
615 | |