1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/tensorflow_server.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_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 | #include "tensorflow/core/protobuf/cluster.pb.h" |
36 | #include "tensorflow/core/protobuf/config.pb.h" |
37 | #include "tensorflow/core/protobuf/device_filters.pb.h" |
38 | // @@protoc_insertion_point(includes) |
39 | #include <google/protobuf/port_def.inc> |
40 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto |
41 | PROTOBUF_NAMESPACE_OPEN |
42 | namespace internal { |
43 | class AnyMetadata; |
44 | } // namespace internal |
45 | PROTOBUF_NAMESPACE_CLOSE |
46 | |
47 | // Internal implementation detail -- do not use these members. |
48 | struct TableStruct_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto { |
49 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
50 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
51 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
52 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] |
54 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
55 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
56 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
57 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
58 | }; |
59 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto; |
60 | namespace tensorflow { |
61 | class ServerDef; |
62 | class ServerDefDefaultTypeInternal; |
63 | extern ServerDefDefaultTypeInternal _ServerDef_default_instance_; |
64 | } // namespace tensorflow |
65 | PROTOBUF_NAMESPACE_OPEN |
66 | template<> ::tensorflow::ServerDef* Arena::CreateMaybeMessage<::tensorflow::ServerDef>(Arena*); |
67 | PROTOBUF_NAMESPACE_CLOSE |
68 | namespace tensorflow { |
69 | |
70 | // =================================================================== |
71 | |
72 | class ServerDef : |
73 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.ServerDef) */ { |
74 | public: |
75 | ServerDef(); |
76 | virtual ~ServerDef(); |
77 | |
78 | ServerDef(const ServerDef& from); |
79 | ServerDef(ServerDef&& from) noexcept |
80 | : ServerDef() { |
81 | *this = ::std::move(from); |
82 | } |
83 | |
84 | inline ServerDef& operator=(const ServerDef& from) { |
85 | CopyFrom(from); |
86 | return *this; |
87 | } |
88 | inline ServerDef& operator=(ServerDef&& from) noexcept { |
89 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
90 | if (this != &from) InternalSwap(&from); |
91 | } else { |
92 | CopyFrom(from); |
93 | } |
94 | return *this; |
95 | } |
96 | |
97 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
98 | return GetArenaNoVirtual(); |
99 | } |
100 | inline void* GetMaybeArenaPointer() const final { |
101 | return MaybeArenaPtr(); |
102 | } |
103 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
104 | return GetDescriptor(); |
105 | } |
106 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
107 | return GetMetadataStatic().descriptor; |
108 | } |
109 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
110 | return GetMetadataStatic().reflection; |
111 | } |
112 | static const ServerDef& default_instance(); |
113 | |
114 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
115 | static inline const ServerDef* internal_default_instance() { |
116 | return reinterpret_cast<const ServerDef*>( |
117 | &_ServerDef_default_instance_); |
118 | } |
119 | static constexpr int kIndexInFileMessages = |
120 | 0; |
121 | |
122 | friend void swap(ServerDef& a, ServerDef& b) { |
123 | a.Swap(&b); |
124 | } |
125 | inline void Swap(ServerDef* other) { |
126 | if (other == this) return; |
127 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
128 | InternalSwap(other); |
129 | } else { |
130 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
131 | } |
132 | } |
133 | void UnsafeArenaSwap(ServerDef* other) { |
134 | if (other == this) return; |
135 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
136 | InternalSwap(other); |
137 | } |
138 | |
139 | // implements Message ---------------------------------------------- |
140 | |
141 | inline ServerDef* New() const final { |
142 | return CreateMaybeMessage<ServerDef>(nullptr); |
143 | } |
144 | |
145 | ServerDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
146 | return CreateMaybeMessage<ServerDef>(arena); |
147 | } |
148 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
149 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
150 | void CopyFrom(const ServerDef& from); |
151 | void MergeFrom(const ServerDef& from); |
152 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
153 | bool IsInitialized() const final; |
154 | |
155 | size_t ByteSizeLong() const final; |
156 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
157 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
158 | #else |
159 | bool MergePartialFromCodedStream( |
160 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
161 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
162 | void SerializeWithCachedSizes( |
163 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
164 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
165 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
166 | int GetCachedSize() const final { return _cached_size_.Get(); } |
167 | |
168 | private: |
169 | inline void SharedCtor(); |
170 | inline void SharedDtor(); |
171 | void SetCachedSize(int size) const final; |
172 | void InternalSwap(ServerDef* other); |
173 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
174 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
175 | return "tensorflow.ServerDef" ; |
176 | } |
177 | protected: |
178 | explicit ServerDef(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
179 | private: |
180 | static void ArenaDtor(void* object); |
181 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
182 | private: |
183 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
184 | return _internal_metadata_.arena(); |
185 | } |
186 | inline void* MaybeArenaPtr() const { |
187 | return _internal_metadata_.raw_arena_ptr(); |
188 | } |
189 | public: |
190 | |
191 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
192 | private: |
193 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
194 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto); |
195 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto.file_level_metadata[kIndexInFileMessages]; |
196 | } |
197 | |
198 | public: |
199 | |
200 | // nested types ---------------------------------------------------- |
201 | |
202 | // accessors ------------------------------------------------------- |
203 | |
204 | enum : int { |
205 | kJobNameFieldNumber = 2, |
206 | kProtocolFieldNumber = 5, |
207 | kClusterFieldNumber = 1, |
208 | kDefaultSessionConfigFieldNumber = 4, |
209 | kClusterDeviceFiltersFieldNumber = 7, |
210 | kTaskIndexFieldNumber = 3, |
211 | kPortFieldNumber = 6, |
212 | }; |
213 | // string job_name = 2; |
214 | void clear_job_name(); |
215 | const std::string& job_name() const; |
216 | void set_job_name(const std::string& value); |
217 | void set_job_name(std::string&& value); |
218 | void set_job_name(const char* value); |
219 | void set_job_name(const char* value, size_t size); |
220 | std::string* mutable_job_name(); |
221 | std::string* release_job_name(); |
222 | void set_allocated_job_name(std::string* job_name); |
223 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
224 | " string fields are deprecated and will be removed in a" |
225 | " future release." ) |
226 | std::string* unsafe_arena_release_job_name(); |
227 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
228 | " string fields are deprecated and will be removed in a" |
229 | " future release." ) |
230 | void unsafe_arena_set_allocated_job_name( |
231 | std::string* job_name); |
232 | |
233 | // string protocol = 5; |
234 | void clear_protocol(); |
235 | const std::string& protocol() const; |
236 | void set_protocol(const std::string& value); |
237 | void set_protocol(std::string&& value); |
238 | void set_protocol(const char* value); |
239 | void set_protocol(const char* value, size_t size); |
240 | std::string* mutable_protocol(); |
241 | std::string* release_protocol(); |
242 | void set_allocated_protocol(std::string* protocol); |
243 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
244 | " string fields are deprecated and will be removed in a" |
245 | " future release." ) |
246 | std::string* unsafe_arena_release_protocol(); |
247 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
248 | " string fields are deprecated and will be removed in a" |
249 | " future release." ) |
250 | void unsafe_arena_set_allocated_protocol( |
251 | std::string* protocol); |
252 | |
253 | // .tensorflow.ClusterDef cluster = 1; |
254 | bool has_cluster() const; |
255 | void clear_cluster(); |
256 | const ::tensorflow::ClusterDef& cluster() const; |
257 | ::tensorflow::ClusterDef* release_cluster(); |
258 | ::tensorflow::ClusterDef* mutable_cluster(); |
259 | void set_allocated_cluster(::tensorflow::ClusterDef* cluster); |
260 | void unsafe_arena_set_allocated_cluster( |
261 | ::tensorflow::ClusterDef* cluster); |
262 | ::tensorflow::ClusterDef* unsafe_arena_release_cluster(); |
263 | |
264 | // .tensorflow.ConfigProto default_session_config = 4; |
265 | bool has_default_session_config() const; |
266 | void clear_default_session_config(); |
267 | const ::tensorflow::ConfigProto& default_session_config() const; |
268 | ::tensorflow::ConfigProto* release_default_session_config(); |
269 | ::tensorflow::ConfigProto* mutable_default_session_config(); |
270 | void set_allocated_default_session_config(::tensorflow::ConfigProto* default_session_config); |
271 | void unsafe_arena_set_allocated_default_session_config( |
272 | ::tensorflow::ConfigProto* default_session_config); |
273 | ::tensorflow::ConfigProto* unsafe_arena_release_default_session_config(); |
274 | |
275 | // .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; |
276 | bool has_cluster_device_filters() const; |
277 | void clear_cluster_device_filters(); |
278 | const ::tensorflow::ClusterDeviceFilters& cluster_device_filters() const; |
279 | ::tensorflow::ClusterDeviceFilters* release_cluster_device_filters(); |
280 | ::tensorflow::ClusterDeviceFilters* mutable_cluster_device_filters(); |
281 | void set_allocated_cluster_device_filters(::tensorflow::ClusterDeviceFilters* cluster_device_filters); |
282 | void unsafe_arena_set_allocated_cluster_device_filters( |
283 | ::tensorflow::ClusterDeviceFilters* cluster_device_filters); |
284 | ::tensorflow::ClusterDeviceFilters* unsafe_arena_release_cluster_device_filters(); |
285 | |
286 | // int32 task_index = 3; |
287 | void clear_task_index(); |
288 | ::PROTOBUF_NAMESPACE_ID::int32 task_index() const; |
289 | void set_task_index(::PROTOBUF_NAMESPACE_ID::int32 value); |
290 | |
291 | // int32 port = 6; |
292 | void clear_port(); |
293 | ::PROTOBUF_NAMESPACE_ID::int32 port() const; |
294 | void set_port(::PROTOBUF_NAMESPACE_ID::int32 value); |
295 | |
296 | // @@protoc_insertion_point(class_scope:tensorflow.ServerDef) |
297 | private: |
298 | class _Internal; |
299 | |
300 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
301 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
302 | typedef void InternalArenaConstructable_; |
303 | typedef void DestructorSkippable_; |
304 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr job_name_; |
305 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr protocol_; |
306 | ::tensorflow::ClusterDef* cluster_; |
307 | ::tensorflow::ConfigProto* default_session_config_; |
308 | ::tensorflow::ClusterDeviceFilters* cluster_device_filters_; |
309 | ::PROTOBUF_NAMESPACE_ID::int32 task_index_; |
310 | ::PROTOBUF_NAMESPACE_ID::int32 port_; |
311 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
312 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto; |
313 | }; |
314 | // =================================================================== |
315 | |
316 | |
317 | // =================================================================== |
318 | |
319 | #ifdef __GNUC__ |
320 | #pragma GCC diagnostic push |
321 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
322 | #endif // __GNUC__ |
323 | // ServerDef |
324 | |
325 | // .tensorflow.ClusterDef cluster = 1; |
326 | inline bool ServerDef::has_cluster() const { |
327 | return this != internal_default_instance() && cluster_ != nullptr; |
328 | } |
329 | inline const ::tensorflow::ClusterDef& ServerDef::cluster() const { |
330 | const ::tensorflow::ClusterDef* p = cluster_; |
331 | // @@protoc_insertion_point(field_get:tensorflow.ServerDef.cluster) |
332 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::ClusterDef*>( |
333 | &::tensorflow::_ClusterDef_default_instance_); |
334 | } |
335 | inline ::tensorflow::ClusterDef* ServerDef::release_cluster() { |
336 | // @@protoc_insertion_point(field_release:tensorflow.ServerDef.cluster) |
337 | |
338 | ::tensorflow::ClusterDef* temp = cluster_; |
339 | if (GetArenaNoVirtual() != nullptr) { |
340 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
341 | } |
342 | cluster_ = nullptr; |
343 | return temp; |
344 | } |
345 | inline ::tensorflow::ClusterDef* ServerDef::unsafe_arena_release_cluster() { |
346 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ServerDef.cluster) |
347 | |
348 | ::tensorflow::ClusterDef* temp = cluster_; |
349 | cluster_ = nullptr; |
350 | return temp; |
351 | } |
352 | inline ::tensorflow::ClusterDef* ServerDef::mutable_cluster() { |
353 | |
354 | if (cluster_ == nullptr) { |
355 | auto* p = CreateMaybeMessage<::tensorflow::ClusterDef>(GetArenaNoVirtual()); |
356 | cluster_ = p; |
357 | } |
358 | // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.cluster) |
359 | return cluster_; |
360 | } |
361 | inline void ServerDef::set_allocated_cluster(::tensorflow::ClusterDef* cluster) { |
362 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
363 | if (message_arena == nullptr) { |
364 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(cluster_); |
365 | } |
366 | if (cluster) { |
367 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
368 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cluster)->GetArena(); |
369 | if (message_arena != submessage_arena) { |
370 | cluster = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
371 | message_arena, cluster, submessage_arena); |
372 | } |
373 | |
374 | } else { |
375 | |
376 | } |
377 | cluster_ = cluster; |
378 | // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.cluster) |
379 | } |
380 | |
381 | // string job_name = 2; |
382 | inline void ServerDef::clear_job_name() { |
383 | job_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
384 | } |
385 | inline const std::string& ServerDef::job_name() const { |
386 | // @@protoc_insertion_point(field_get:tensorflow.ServerDef.job_name) |
387 | return job_name_.Get(); |
388 | } |
389 | inline void ServerDef::set_job_name(const std::string& value) { |
390 | |
391 | job_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
392 | // @@protoc_insertion_point(field_set:tensorflow.ServerDef.job_name) |
393 | } |
394 | inline void ServerDef::set_job_name(std::string&& value) { |
395 | |
396 | job_name_.Set( |
397 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
398 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.ServerDef.job_name) |
399 | } |
400 | inline void ServerDef::set_job_name(const char* value) { |
401 | GOOGLE_DCHECK(value != nullptr); |
402 | |
403 | job_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
404 | GetArenaNoVirtual()); |
405 | // @@protoc_insertion_point(field_set_char:tensorflow.ServerDef.job_name) |
406 | } |
407 | inline void ServerDef::set_job_name(const char* value, |
408 | size_t size) { |
409 | |
410 | job_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
411 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
412 | // @@protoc_insertion_point(field_set_pointer:tensorflow.ServerDef.job_name) |
413 | } |
414 | inline std::string* ServerDef::mutable_job_name() { |
415 | |
416 | // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.job_name) |
417 | return job_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
418 | } |
419 | inline std::string* ServerDef::release_job_name() { |
420 | // @@protoc_insertion_point(field_release:tensorflow.ServerDef.job_name) |
421 | |
422 | return job_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
423 | } |
424 | inline void ServerDef::set_allocated_job_name(std::string* job_name) { |
425 | if (job_name != nullptr) { |
426 | |
427 | } else { |
428 | |
429 | } |
430 | job_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), job_name, |
431 | GetArenaNoVirtual()); |
432 | // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.job_name) |
433 | } |
434 | inline std::string* ServerDef::unsafe_arena_release_job_name() { |
435 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ServerDef.job_name) |
436 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
437 | |
438 | return job_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
439 | GetArenaNoVirtual()); |
440 | } |
441 | inline void ServerDef::unsafe_arena_set_allocated_job_name( |
442 | std::string* job_name) { |
443 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
444 | if (job_name != nullptr) { |
445 | |
446 | } else { |
447 | |
448 | } |
449 | job_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
450 | job_name, GetArenaNoVirtual()); |
451 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ServerDef.job_name) |
452 | } |
453 | |
454 | // int32 task_index = 3; |
455 | inline void ServerDef::clear_task_index() { |
456 | task_index_ = 0; |
457 | } |
458 | inline ::PROTOBUF_NAMESPACE_ID::int32 ServerDef::task_index() const { |
459 | // @@protoc_insertion_point(field_get:tensorflow.ServerDef.task_index) |
460 | return task_index_; |
461 | } |
462 | inline void ServerDef::set_task_index(::PROTOBUF_NAMESPACE_ID::int32 value) { |
463 | |
464 | task_index_ = value; |
465 | // @@protoc_insertion_point(field_set:tensorflow.ServerDef.task_index) |
466 | } |
467 | |
468 | // .tensorflow.ConfigProto default_session_config = 4; |
469 | inline bool ServerDef::has_default_session_config() const { |
470 | return this != internal_default_instance() && default_session_config_ != nullptr; |
471 | } |
472 | inline const ::tensorflow::ConfigProto& ServerDef::default_session_config() const { |
473 | const ::tensorflow::ConfigProto* p = default_session_config_; |
474 | // @@protoc_insertion_point(field_get:tensorflow.ServerDef.default_session_config) |
475 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::ConfigProto*>( |
476 | &::tensorflow::_ConfigProto_default_instance_); |
477 | } |
478 | inline ::tensorflow::ConfigProto* ServerDef::release_default_session_config() { |
479 | // @@protoc_insertion_point(field_release:tensorflow.ServerDef.default_session_config) |
480 | |
481 | ::tensorflow::ConfigProto* temp = default_session_config_; |
482 | if (GetArenaNoVirtual() != nullptr) { |
483 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
484 | } |
485 | default_session_config_ = nullptr; |
486 | return temp; |
487 | } |
488 | inline ::tensorflow::ConfigProto* ServerDef::unsafe_arena_release_default_session_config() { |
489 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ServerDef.default_session_config) |
490 | |
491 | ::tensorflow::ConfigProto* temp = default_session_config_; |
492 | default_session_config_ = nullptr; |
493 | return temp; |
494 | } |
495 | inline ::tensorflow::ConfigProto* ServerDef::mutable_default_session_config() { |
496 | |
497 | if (default_session_config_ == nullptr) { |
498 | auto* p = CreateMaybeMessage<::tensorflow::ConfigProto>(GetArenaNoVirtual()); |
499 | default_session_config_ = p; |
500 | } |
501 | // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.default_session_config) |
502 | return default_session_config_; |
503 | } |
504 | inline void ServerDef::set_allocated_default_session_config(::tensorflow::ConfigProto* default_session_config) { |
505 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
506 | if (message_arena == nullptr) { |
507 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(default_session_config_); |
508 | } |
509 | if (default_session_config) { |
510 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
511 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(default_session_config)->GetArena(); |
512 | if (message_arena != submessage_arena) { |
513 | default_session_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
514 | message_arena, default_session_config, submessage_arena); |
515 | } |
516 | |
517 | } else { |
518 | |
519 | } |
520 | default_session_config_ = default_session_config; |
521 | // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.default_session_config) |
522 | } |
523 | |
524 | // string protocol = 5; |
525 | inline void ServerDef::clear_protocol() { |
526 | protocol_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
527 | } |
528 | inline const std::string& ServerDef::protocol() const { |
529 | // @@protoc_insertion_point(field_get:tensorflow.ServerDef.protocol) |
530 | return protocol_.Get(); |
531 | } |
532 | inline void ServerDef::set_protocol(const std::string& value) { |
533 | |
534 | protocol_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
535 | // @@protoc_insertion_point(field_set:tensorflow.ServerDef.protocol) |
536 | } |
537 | inline void ServerDef::set_protocol(std::string&& value) { |
538 | |
539 | protocol_.Set( |
540 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
541 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.ServerDef.protocol) |
542 | } |
543 | inline void ServerDef::set_protocol(const char* value) { |
544 | GOOGLE_DCHECK(value != nullptr); |
545 | |
546 | protocol_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
547 | GetArenaNoVirtual()); |
548 | // @@protoc_insertion_point(field_set_char:tensorflow.ServerDef.protocol) |
549 | } |
550 | inline void ServerDef::set_protocol(const char* value, |
551 | size_t size) { |
552 | |
553 | protocol_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
554 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
555 | // @@protoc_insertion_point(field_set_pointer:tensorflow.ServerDef.protocol) |
556 | } |
557 | inline std::string* ServerDef::mutable_protocol() { |
558 | |
559 | // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.protocol) |
560 | return protocol_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
561 | } |
562 | inline std::string* ServerDef::release_protocol() { |
563 | // @@protoc_insertion_point(field_release:tensorflow.ServerDef.protocol) |
564 | |
565 | return protocol_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
566 | } |
567 | inline void ServerDef::set_allocated_protocol(std::string* protocol) { |
568 | if (protocol != nullptr) { |
569 | |
570 | } else { |
571 | |
572 | } |
573 | protocol_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), protocol, |
574 | GetArenaNoVirtual()); |
575 | // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.protocol) |
576 | } |
577 | inline std::string* ServerDef::unsafe_arena_release_protocol() { |
578 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ServerDef.protocol) |
579 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
580 | |
581 | return protocol_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
582 | GetArenaNoVirtual()); |
583 | } |
584 | inline void ServerDef::unsafe_arena_set_allocated_protocol( |
585 | std::string* protocol) { |
586 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
587 | if (protocol != nullptr) { |
588 | |
589 | } else { |
590 | |
591 | } |
592 | protocol_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
593 | protocol, GetArenaNoVirtual()); |
594 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ServerDef.protocol) |
595 | } |
596 | |
597 | // int32 port = 6; |
598 | inline void ServerDef::clear_port() { |
599 | port_ = 0; |
600 | } |
601 | inline ::PROTOBUF_NAMESPACE_ID::int32 ServerDef::port() const { |
602 | // @@protoc_insertion_point(field_get:tensorflow.ServerDef.port) |
603 | return port_; |
604 | } |
605 | inline void ServerDef::set_port(::PROTOBUF_NAMESPACE_ID::int32 value) { |
606 | |
607 | port_ = value; |
608 | // @@protoc_insertion_point(field_set:tensorflow.ServerDef.port) |
609 | } |
610 | |
611 | // .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; |
612 | inline bool ServerDef::has_cluster_device_filters() const { |
613 | return this != internal_default_instance() && cluster_device_filters_ != nullptr; |
614 | } |
615 | inline const ::tensorflow::ClusterDeviceFilters& ServerDef::cluster_device_filters() const { |
616 | const ::tensorflow::ClusterDeviceFilters* p = cluster_device_filters_; |
617 | // @@protoc_insertion_point(field_get:tensorflow.ServerDef.cluster_device_filters) |
618 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::ClusterDeviceFilters*>( |
619 | &::tensorflow::_ClusterDeviceFilters_default_instance_); |
620 | } |
621 | inline ::tensorflow::ClusterDeviceFilters* ServerDef::release_cluster_device_filters() { |
622 | // @@protoc_insertion_point(field_release:tensorflow.ServerDef.cluster_device_filters) |
623 | |
624 | ::tensorflow::ClusterDeviceFilters* temp = cluster_device_filters_; |
625 | if (GetArenaNoVirtual() != nullptr) { |
626 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
627 | } |
628 | cluster_device_filters_ = nullptr; |
629 | return temp; |
630 | } |
631 | inline ::tensorflow::ClusterDeviceFilters* ServerDef::unsafe_arena_release_cluster_device_filters() { |
632 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ServerDef.cluster_device_filters) |
633 | |
634 | ::tensorflow::ClusterDeviceFilters* temp = cluster_device_filters_; |
635 | cluster_device_filters_ = nullptr; |
636 | return temp; |
637 | } |
638 | inline ::tensorflow::ClusterDeviceFilters* ServerDef::mutable_cluster_device_filters() { |
639 | |
640 | if (cluster_device_filters_ == nullptr) { |
641 | auto* p = CreateMaybeMessage<::tensorflow::ClusterDeviceFilters>(GetArenaNoVirtual()); |
642 | cluster_device_filters_ = p; |
643 | } |
644 | // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.cluster_device_filters) |
645 | return cluster_device_filters_; |
646 | } |
647 | inline void ServerDef::set_allocated_cluster_device_filters(::tensorflow::ClusterDeviceFilters* cluster_device_filters) { |
648 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
649 | if (message_arena == nullptr) { |
650 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(cluster_device_filters_); |
651 | } |
652 | if (cluster_device_filters) { |
653 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
654 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cluster_device_filters)->GetArena(); |
655 | if (message_arena != submessage_arena) { |
656 | cluster_device_filters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
657 | message_arena, cluster_device_filters, submessage_arena); |
658 | } |
659 | |
660 | } else { |
661 | |
662 | } |
663 | cluster_device_filters_ = cluster_device_filters; |
664 | // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.cluster_device_filters) |
665 | } |
666 | |
667 | #ifdef __GNUC__ |
668 | #pragma GCC diagnostic pop |
669 | #endif // __GNUC__ |
670 | |
671 | // @@protoc_insertion_point(namespace_scope) |
672 | |
673 | } // namespace tensorflow |
674 | |
675 | // @@protoc_insertion_point(global_scope) |
676 | |
677 | #include <google/protobuf/port_undef.inc> |
678 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto |
679 | |