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 <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include "tensorflow/core/protobuf/cluster.pb.h"
33 #include "tensorflow/core/protobuf/config.pb.h"
34 #include "tensorflow/core/protobuf/device_filters.pb.h"
35 // @@protoc_insertion_point(includes)
36 #include <google/protobuf/port_def.inc>
37 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_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_2ftensorflow_5fserver_2eproto {
46 static const ::uint32_t offsets[];
47 };
48 namespace tensorflow {
49 class ServerDef;
50 struct ServerDefDefaultTypeInternal;
51 extern ServerDefDefaultTypeInternal _ServerDef_default_instance_;
52 } // namespace tensorflow
53 PROTOBUF_NAMESPACE_OPEN
54 template<> ::tensorflow::ServerDef* Arena::CreateMaybeMessage<::tensorflow::ServerDef>(Arena*);
55 PROTOBUF_NAMESPACE_CLOSE
56 namespace tensorflow {
57
58 // ===================================================================
59
60 class ServerDef final :
61 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.ServerDef) */ {
62 public:
ServerDef()63 inline ServerDef() : ServerDef(nullptr) {}
64 ~ServerDef() override;
65 explicit PROTOBUF_CONSTEXPR ServerDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
66
67 ServerDef(const ServerDef& from);
ServerDef(ServerDef && from)68 ServerDef(ServerDef&& from) noexcept
69 : ServerDef() {
70 *this = ::std::move(from);
71 }
72
73 inline ServerDef& operator=(const ServerDef& from) {
74 if (this == &from) return *this;
75 CopyFrom(from);
76 return *this;
77 }
78 inline ServerDef& operator=(ServerDef&& from) noexcept {
79 if (this == &from) return *this;
80 if (GetOwningArena() == from.GetOwningArena()
81 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
82 && GetOwningArena() != nullptr
83 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
84 ) {
85 InternalSwap(&from);
86 } else {
87 CopyFrom(from);
88 }
89 return *this;
90 }
91
default_instance()92 static const ServerDef& default_instance() {
93 return *internal_default_instance();
94 }
internal_default_instance()95 static inline const ServerDef* internal_default_instance() {
96 return reinterpret_cast<const ServerDef*>(
97 &_ServerDef_default_instance_);
98 }
99 static constexpr int kIndexInFileMessages =
100 0;
101
swap(ServerDef & a,ServerDef & b)102 friend void swap(ServerDef& a, ServerDef& b) {
103 a.Swap(&b);
104 }
Swap(ServerDef * other)105 inline void Swap(ServerDef* other) {
106 if (other == this) return;
107 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
108 if (GetOwningArena() != nullptr &&
109 GetOwningArena() == other->GetOwningArena()) {
110 #else // PROTOBUF_FORCE_COPY_IN_SWAP
111 if (GetOwningArena() == other->GetOwningArena()) {
112 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
113 InternalSwap(other);
114 } else {
115 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
116 }
117 }
118 void UnsafeArenaSwap(ServerDef* other) {
119 if (other == this) return;
120 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
121 InternalSwap(other);
122 }
123
124 // implements Message ----------------------------------------------
125
126 ServerDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
127 return CreateMaybeMessage<ServerDef>(arena);
128 }
129 ServerDef* New() const {
130 return New(nullptr);
131 }
132 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
133 void CopyFrom(const ServerDef& from);
134 void MergeFrom(const ServerDef& from);
135 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
136 bool IsInitialized() const final;
137
138 size_t ByteSizeLong() const final;
139 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
140 ::uint8_t* _InternalSerialize(
141 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
142 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
143
144 private:
145 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
146 void SharedDtor();
147 void SetCachedSize(int size) const;
148 void InternalSwap(ServerDef* other);
149
150 private:
151 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
152 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
153 return "tensorflow.ServerDef";
154 }
155 protected:
156 explicit ServerDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
157 bool is_message_owned = false);
158 public:
159
160 std::string GetTypeName() const final;
161
162 // nested types ----------------------------------------------------
163
164 // accessors -------------------------------------------------------
165
166 enum : int {
167 kJobNameFieldNumber = 2,
168 kProtocolFieldNumber = 5,
169 kClusterFieldNumber = 1,
170 kDefaultSessionConfigFieldNumber = 4,
171 kClusterDeviceFiltersFieldNumber = 7,
172 kTaskIndexFieldNumber = 3,
173 kPortFieldNumber = 6,
174 };
175 // string job_name = 2;
176 void clear_job_name();
177 const std::string& job_name() const;
178 template <typename ArgT0 = const std::string&, typename... ArgT>
179 void set_job_name(ArgT0&& arg0, ArgT... args);
180 std::string* mutable_job_name();
181 PROTOBUF_NODISCARD std::string* release_job_name();
182 void set_allocated_job_name(std::string* job_name);
183 private:
184 const std::string& _internal_job_name() const;
185 inline PROTOBUF_ALWAYS_INLINE void _internal_set_job_name(const std::string& value);
186 std::string* _internal_mutable_job_name();
187 public:
188
189 // string protocol = 5;
190 void clear_protocol();
191 const std::string& protocol() const;
192 template <typename ArgT0 = const std::string&, typename... ArgT>
193 void set_protocol(ArgT0&& arg0, ArgT... args);
194 std::string* mutable_protocol();
195 PROTOBUF_NODISCARD std::string* release_protocol();
196 void set_allocated_protocol(std::string* protocol);
197 private:
198 const std::string& _internal_protocol() const;
199 inline PROTOBUF_ALWAYS_INLINE void _internal_set_protocol(const std::string& value);
200 std::string* _internal_mutable_protocol();
201 public:
202
203 // .tensorflow.ClusterDef cluster = 1;
204 bool has_cluster() const;
205 private:
206 bool _internal_has_cluster() const;
207 public:
208 void clear_cluster();
209 const ::tensorflow::ClusterDef& cluster() const;
210 PROTOBUF_NODISCARD ::tensorflow::ClusterDef* release_cluster();
211 ::tensorflow::ClusterDef* mutable_cluster();
212 void set_allocated_cluster(::tensorflow::ClusterDef* cluster);
213 private:
214 const ::tensorflow::ClusterDef& _internal_cluster() const;
215 ::tensorflow::ClusterDef* _internal_mutable_cluster();
216 public:
217 void unsafe_arena_set_allocated_cluster(
218 ::tensorflow::ClusterDef* cluster);
219 ::tensorflow::ClusterDef* unsafe_arena_release_cluster();
220
221 // .tensorflow.ConfigProto default_session_config = 4;
222 bool has_default_session_config() const;
223 private:
224 bool _internal_has_default_session_config() const;
225 public:
226 void clear_default_session_config();
227 const ::tensorflow::ConfigProto& default_session_config() const;
228 PROTOBUF_NODISCARD ::tensorflow::ConfigProto* release_default_session_config();
229 ::tensorflow::ConfigProto* mutable_default_session_config();
230 void set_allocated_default_session_config(::tensorflow::ConfigProto* default_session_config);
231 private:
232 const ::tensorflow::ConfigProto& _internal_default_session_config() const;
233 ::tensorflow::ConfigProto* _internal_mutable_default_session_config();
234 public:
235 void unsafe_arena_set_allocated_default_session_config(
236 ::tensorflow::ConfigProto* default_session_config);
237 ::tensorflow::ConfigProto* unsafe_arena_release_default_session_config();
238
239 // .tensorflow.ClusterDeviceFilters cluster_device_filters = 7;
240 bool has_cluster_device_filters() const;
241 private:
242 bool _internal_has_cluster_device_filters() const;
243 public:
244 void clear_cluster_device_filters();
245 const ::tensorflow::ClusterDeviceFilters& cluster_device_filters() const;
246 PROTOBUF_NODISCARD ::tensorflow::ClusterDeviceFilters* release_cluster_device_filters();
247 ::tensorflow::ClusterDeviceFilters* mutable_cluster_device_filters();
248 void set_allocated_cluster_device_filters(::tensorflow::ClusterDeviceFilters* cluster_device_filters);
249 private:
250 const ::tensorflow::ClusterDeviceFilters& _internal_cluster_device_filters() const;
251 ::tensorflow::ClusterDeviceFilters* _internal_mutable_cluster_device_filters();
252 public:
253 void unsafe_arena_set_allocated_cluster_device_filters(
254 ::tensorflow::ClusterDeviceFilters* cluster_device_filters);
255 ::tensorflow::ClusterDeviceFilters* unsafe_arena_release_cluster_device_filters();
256
257 // int32 task_index = 3;
258 void clear_task_index();
259 ::int32_t task_index() const;
260 void set_task_index(::int32_t value);
261 private:
262 ::int32_t _internal_task_index() const;
263 void _internal_set_task_index(::int32_t value);
264 public:
265
266 // int32 port = 6;
267 void clear_port();
268 ::int32_t port() const;
269 void set_port(::int32_t value);
270 private:
271 ::int32_t _internal_port() const;
272 void _internal_set_port(::int32_t value);
273 public:
274
275 // @@protoc_insertion_point(class_scope:tensorflow.ServerDef)
276 private:
277 class _Internal;
278
279 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
280 typedef void InternalArenaConstructable_;
281 typedef void DestructorSkippable_;
282 struct Impl_ {
283 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr job_name_;
284 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr protocol_;
285 ::tensorflow::ClusterDef* cluster_;
286 ::tensorflow::ConfigProto* default_session_config_;
287 ::tensorflow::ClusterDeviceFilters* cluster_device_filters_;
288 ::int32_t task_index_;
289 ::int32_t port_;
290 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
291 };
292 union { Impl_ _impl_; };
293 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto;
294 };
295 // ===================================================================
296
297
298 // ===================================================================
299
300 #ifdef __GNUC__
301 #pragma GCC diagnostic push
302 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
303 #endif // __GNUC__
304 // ServerDef
305
306 // .tensorflow.ClusterDef cluster = 1;
_internal_has_cluster()307 inline bool ServerDef::_internal_has_cluster() const {
308 return this != internal_default_instance() && _impl_.cluster_ != nullptr;
309 }
has_cluster()310 inline bool ServerDef::has_cluster() const {
311 return _internal_has_cluster();
312 }
_internal_cluster()313 inline const ::tensorflow::ClusterDef& ServerDef::_internal_cluster() const {
314 const ::tensorflow::ClusterDef* p = _impl_.cluster_;
315 return p != nullptr ? *p : reinterpret_cast<const ::tensorflow::ClusterDef&>(
316 ::tensorflow::_ClusterDef_default_instance_);
317 }
cluster()318 inline const ::tensorflow::ClusterDef& ServerDef::cluster() const {
319 // @@protoc_insertion_point(field_get:tensorflow.ServerDef.cluster)
320 return _internal_cluster();
321 }
unsafe_arena_set_allocated_cluster(::tensorflow::ClusterDef * cluster)322 inline void ServerDef::unsafe_arena_set_allocated_cluster(
323 ::tensorflow::ClusterDef* cluster) {
324 if (GetArenaForAllocation() == nullptr) {
325 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cluster_);
326 }
327 _impl_.cluster_ = cluster;
328 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ServerDef.cluster)
329 }
release_cluster()330 inline ::tensorflow::ClusterDef* ServerDef::release_cluster() {
331
332 ::tensorflow::ClusterDef* temp = _impl_.cluster_;
333 _impl_.cluster_ = nullptr;
334 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
335 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
336 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
337 if (GetArenaForAllocation() == nullptr) { delete old; }
338 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
339 if (GetArenaForAllocation() != nullptr) {
340 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
341 }
342 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
343 return temp;
344 }
unsafe_arena_release_cluster()345 inline ::tensorflow::ClusterDef* ServerDef::unsafe_arena_release_cluster() {
346 // @@protoc_insertion_point(field_release:tensorflow.ServerDef.cluster)
347
348 ::tensorflow::ClusterDef* temp = _impl_.cluster_;
349 _impl_.cluster_ = nullptr;
350 return temp;
351 }
_internal_mutable_cluster()352 inline ::tensorflow::ClusterDef* ServerDef::_internal_mutable_cluster() {
353
354 if (_impl_.cluster_ == nullptr) {
355 auto* p = CreateMaybeMessage<::tensorflow::ClusterDef>(GetArenaForAllocation());
356 _impl_.cluster_ = p;
357 }
358 return _impl_.cluster_;
359 }
mutable_cluster()360 inline ::tensorflow::ClusterDef* ServerDef::mutable_cluster() {
361 ::tensorflow::ClusterDef* _msg = _internal_mutable_cluster();
362 // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.cluster)
363 return _msg;
364 }
set_allocated_cluster(::tensorflow::ClusterDef * cluster)365 inline void ServerDef::set_allocated_cluster(::tensorflow::ClusterDef* cluster) {
366 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
367 if (message_arena == nullptr) {
368 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cluster_);
369 }
370 if (cluster) {
371 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
372 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
373 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cluster));
374 if (message_arena != submessage_arena) {
375 cluster = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
376 message_arena, cluster, submessage_arena);
377 }
378
379 } else {
380
381 }
382 _impl_.cluster_ = cluster;
383 // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.cluster)
384 }
385
386 // string job_name = 2;
clear_job_name()387 inline void ServerDef::clear_job_name() {
388 _impl_.job_name_.ClearToEmpty();
389 }
job_name()390 inline const std::string& ServerDef::job_name() const {
391 // @@protoc_insertion_point(field_get:tensorflow.ServerDef.job_name)
392 return _internal_job_name();
393 }
394 template <typename ArgT0, typename... ArgT>
395 inline PROTOBUF_ALWAYS_INLINE
set_job_name(ArgT0 && arg0,ArgT...args)396 void ServerDef::set_job_name(ArgT0&& arg0, ArgT... args) {
397
398 _impl_.job_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
399 // @@protoc_insertion_point(field_set:tensorflow.ServerDef.job_name)
400 }
mutable_job_name()401 inline std::string* ServerDef::mutable_job_name() {
402 std::string* _s = _internal_mutable_job_name();
403 // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.job_name)
404 return _s;
405 }
_internal_job_name()406 inline const std::string& ServerDef::_internal_job_name() const {
407 return _impl_.job_name_.Get();
408 }
_internal_set_job_name(const std::string & value)409 inline void ServerDef::_internal_set_job_name(const std::string& value) {
410
411 _impl_.job_name_.Set(value, GetArenaForAllocation());
412 }
_internal_mutable_job_name()413 inline std::string* ServerDef::_internal_mutable_job_name() {
414
415 return _impl_.job_name_.Mutable(GetArenaForAllocation());
416 }
release_job_name()417 inline std::string* ServerDef::release_job_name() {
418 // @@protoc_insertion_point(field_release:tensorflow.ServerDef.job_name)
419 return _impl_.job_name_.Release();
420 }
set_allocated_job_name(std::string * job_name)421 inline void ServerDef::set_allocated_job_name(std::string* job_name) {
422 _impl_.job_name_.SetAllocated(job_name, GetArenaForAllocation());
423 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
424 if (_impl_.job_name_.IsDefault()) {
425 _impl_.job_name_.Set("", GetArenaForAllocation());
426 }
427 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
428 // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.job_name)
429 }
430
431 // int32 task_index = 3;
clear_task_index()432 inline void ServerDef::clear_task_index() {
433 _impl_.task_index_ = 0;
434 }
_internal_task_index()435 inline ::int32_t ServerDef::_internal_task_index() const {
436 return _impl_.task_index_;
437 }
task_index()438 inline ::int32_t ServerDef::task_index() const {
439 // @@protoc_insertion_point(field_get:tensorflow.ServerDef.task_index)
440 return _internal_task_index();
441 }
_internal_set_task_index(::int32_t value)442 inline void ServerDef::_internal_set_task_index(::int32_t value) {
443
444 _impl_.task_index_ = value;
445 }
set_task_index(::int32_t value)446 inline void ServerDef::set_task_index(::int32_t value) {
447 _internal_set_task_index(value);
448 // @@protoc_insertion_point(field_set:tensorflow.ServerDef.task_index)
449 }
450
451 // .tensorflow.ConfigProto default_session_config = 4;
_internal_has_default_session_config()452 inline bool ServerDef::_internal_has_default_session_config() const {
453 return this != internal_default_instance() && _impl_.default_session_config_ != nullptr;
454 }
has_default_session_config()455 inline bool ServerDef::has_default_session_config() const {
456 return _internal_has_default_session_config();
457 }
_internal_default_session_config()458 inline const ::tensorflow::ConfigProto& ServerDef::_internal_default_session_config() const {
459 const ::tensorflow::ConfigProto* p = _impl_.default_session_config_;
460 return p != nullptr ? *p : reinterpret_cast<const ::tensorflow::ConfigProto&>(
461 ::tensorflow::_ConfigProto_default_instance_);
462 }
default_session_config()463 inline const ::tensorflow::ConfigProto& ServerDef::default_session_config() const {
464 // @@protoc_insertion_point(field_get:tensorflow.ServerDef.default_session_config)
465 return _internal_default_session_config();
466 }
unsafe_arena_set_allocated_default_session_config(::tensorflow::ConfigProto * default_session_config)467 inline void ServerDef::unsafe_arena_set_allocated_default_session_config(
468 ::tensorflow::ConfigProto* default_session_config) {
469 if (GetArenaForAllocation() == nullptr) {
470 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.default_session_config_);
471 }
472 _impl_.default_session_config_ = default_session_config;
473 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ServerDef.default_session_config)
474 }
release_default_session_config()475 inline ::tensorflow::ConfigProto* ServerDef::release_default_session_config() {
476
477 ::tensorflow::ConfigProto* temp = _impl_.default_session_config_;
478 _impl_.default_session_config_ = nullptr;
479 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
480 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
481 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
482 if (GetArenaForAllocation() == nullptr) { delete old; }
483 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
484 if (GetArenaForAllocation() != nullptr) {
485 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
486 }
487 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
488 return temp;
489 }
unsafe_arena_release_default_session_config()490 inline ::tensorflow::ConfigProto* ServerDef::unsafe_arena_release_default_session_config() {
491 // @@protoc_insertion_point(field_release:tensorflow.ServerDef.default_session_config)
492
493 ::tensorflow::ConfigProto* temp = _impl_.default_session_config_;
494 _impl_.default_session_config_ = nullptr;
495 return temp;
496 }
_internal_mutable_default_session_config()497 inline ::tensorflow::ConfigProto* ServerDef::_internal_mutable_default_session_config() {
498
499 if (_impl_.default_session_config_ == nullptr) {
500 auto* p = CreateMaybeMessage<::tensorflow::ConfigProto>(GetArenaForAllocation());
501 _impl_.default_session_config_ = p;
502 }
503 return _impl_.default_session_config_;
504 }
mutable_default_session_config()505 inline ::tensorflow::ConfigProto* ServerDef::mutable_default_session_config() {
506 ::tensorflow::ConfigProto* _msg = _internal_mutable_default_session_config();
507 // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.default_session_config)
508 return _msg;
509 }
set_allocated_default_session_config(::tensorflow::ConfigProto * default_session_config)510 inline void ServerDef::set_allocated_default_session_config(::tensorflow::ConfigProto* default_session_config) {
511 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
512 if (message_arena == nullptr) {
513 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.default_session_config_);
514 }
515 if (default_session_config) {
516 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
517 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
518 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(default_session_config));
519 if (message_arena != submessage_arena) {
520 default_session_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
521 message_arena, default_session_config, submessage_arena);
522 }
523
524 } else {
525
526 }
527 _impl_.default_session_config_ = default_session_config;
528 // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.default_session_config)
529 }
530
531 // string protocol = 5;
clear_protocol()532 inline void ServerDef::clear_protocol() {
533 _impl_.protocol_.ClearToEmpty();
534 }
protocol()535 inline const std::string& ServerDef::protocol() const {
536 // @@protoc_insertion_point(field_get:tensorflow.ServerDef.protocol)
537 return _internal_protocol();
538 }
539 template <typename ArgT0, typename... ArgT>
540 inline PROTOBUF_ALWAYS_INLINE
set_protocol(ArgT0 && arg0,ArgT...args)541 void ServerDef::set_protocol(ArgT0&& arg0, ArgT... args) {
542
543 _impl_.protocol_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
544 // @@protoc_insertion_point(field_set:tensorflow.ServerDef.protocol)
545 }
mutable_protocol()546 inline std::string* ServerDef::mutable_protocol() {
547 std::string* _s = _internal_mutable_protocol();
548 // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.protocol)
549 return _s;
550 }
_internal_protocol()551 inline const std::string& ServerDef::_internal_protocol() const {
552 return _impl_.protocol_.Get();
553 }
_internal_set_protocol(const std::string & value)554 inline void ServerDef::_internal_set_protocol(const std::string& value) {
555
556 _impl_.protocol_.Set(value, GetArenaForAllocation());
557 }
_internal_mutable_protocol()558 inline std::string* ServerDef::_internal_mutable_protocol() {
559
560 return _impl_.protocol_.Mutable(GetArenaForAllocation());
561 }
release_protocol()562 inline std::string* ServerDef::release_protocol() {
563 // @@protoc_insertion_point(field_release:tensorflow.ServerDef.protocol)
564 return _impl_.protocol_.Release();
565 }
set_allocated_protocol(std::string * protocol)566 inline void ServerDef::set_allocated_protocol(std::string* protocol) {
567 _impl_.protocol_.SetAllocated(protocol, GetArenaForAllocation());
568 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
569 if (_impl_.protocol_.IsDefault()) {
570 _impl_.protocol_.Set("", GetArenaForAllocation());
571 }
572 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
573 // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.protocol)
574 }
575
576 // int32 port = 6;
clear_port()577 inline void ServerDef::clear_port() {
578 _impl_.port_ = 0;
579 }
_internal_port()580 inline ::int32_t ServerDef::_internal_port() const {
581 return _impl_.port_;
582 }
port()583 inline ::int32_t ServerDef::port() const {
584 // @@protoc_insertion_point(field_get:tensorflow.ServerDef.port)
585 return _internal_port();
586 }
_internal_set_port(::int32_t value)587 inline void ServerDef::_internal_set_port(::int32_t value) {
588
589 _impl_.port_ = value;
590 }
set_port(::int32_t value)591 inline void ServerDef::set_port(::int32_t value) {
592 _internal_set_port(value);
593 // @@protoc_insertion_point(field_set:tensorflow.ServerDef.port)
594 }
595
596 // .tensorflow.ClusterDeviceFilters cluster_device_filters = 7;
_internal_has_cluster_device_filters()597 inline bool ServerDef::_internal_has_cluster_device_filters() const {
598 return this != internal_default_instance() && _impl_.cluster_device_filters_ != nullptr;
599 }
has_cluster_device_filters()600 inline bool ServerDef::has_cluster_device_filters() const {
601 return _internal_has_cluster_device_filters();
602 }
_internal_cluster_device_filters()603 inline const ::tensorflow::ClusterDeviceFilters& ServerDef::_internal_cluster_device_filters() const {
604 const ::tensorflow::ClusterDeviceFilters* p = _impl_.cluster_device_filters_;
605 return p != nullptr ? *p : reinterpret_cast<const ::tensorflow::ClusterDeviceFilters&>(
606 ::tensorflow::_ClusterDeviceFilters_default_instance_);
607 }
cluster_device_filters()608 inline const ::tensorflow::ClusterDeviceFilters& ServerDef::cluster_device_filters() const {
609 // @@protoc_insertion_point(field_get:tensorflow.ServerDef.cluster_device_filters)
610 return _internal_cluster_device_filters();
611 }
unsafe_arena_set_allocated_cluster_device_filters(::tensorflow::ClusterDeviceFilters * cluster_device_filters)612 inline void ServerDef::unsafe_arena_set_allocated_cluster_device_filters(
613 ::tensorflow::ClusterDeviceFilters* cluster_device_filters) {
614 if (GetArenaForAllocation() == nullptr) {
615 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cluster_device_filters_);
616 }
617 _impl_.cluster_device_filters_ = cluster_device_filters;
618 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ServerDef.cluster_device_filters)
619 }
release_cluster_device_filters()620 inline ::tensorflow::ClusterDeviceFilters* ServerDef::release_cluster_device_filters() {
621
622 ::tensorflow::ClusterDeviceFilters* temp = _impl_.cluster_device_filters_;
623 _impl_.cluster_device_filters_ = nullptr;
624 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
625 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
626 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
627 if (GetArenaForAllocation() == nullptr) { delete old; }
628 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
629 if (GetArenaForAllocation() != nullptr) {
630 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
631 }
632 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
633 return temp;
634 }
unsafe_arena_release_cluster_device_filters()635 inline ::tensorflow::ClusterDeviceFilters* ServerDef::unsafe_arena_release_cluster_device_filters() {
636 // @@protoc_insertion_point(field_release:tensorflow.ServerDef.cluster_device_filters)
637
638 ::tensorflow::ClusterDeviceFilters* temp = _impl_.cluster_device_filters_;
639 _impl_.cluster_device_filters_ = nullptr;
640 return temp;
641 }
_internal_mutable_cluster_device_filters()642 inline ::tensorflow::ClusterDeviceFilters* ServerDef::_internal_mutable_cluster_device_filters() {
643
644 if (_impl_.cluster_device_filters_ == nullptr) {
645 auto* p = CreateMaybeMessage<::tensorflow::ClusterDeviceFilters>(GetArenaForAllocation());
646 _impl_.cluster_device_filters_ = p;
647 }
648 return _impl_.cluster_device_filters_;
649 }
mutable_cluster_device_filters()650 inline ::tensorflow::ClusterDeviceFilters* ServerDef::mutable_cluster_device_filters() {
651 ::tensorflow::ClusterDeviceFilters* _msg = _internal_mutable_cluster_device_filters();
652 // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.cluster_device_filters)
653 return _msg;
654 }
set_allocated_cluster_device_filters(::tensorflow::ClusterDeviceFilters * cluster_device_filters)655 inline void ServerDef::set_allocated_cluster_device_filters(::tensorflow::ClusterDeviceFilters* cluster_device_filters) {
656 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
657 if (message_arena == nullptr) {
658 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cluster_device_filters_);
659 }
660 if (cluster_device_filters) {
661 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
662 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
663 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cluster_device_filters));
664 if (message_arena != submessage_arena) {
665 cluster_device_filters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
666 message_arena, cluster_device_filters, submessage_arena);
667 }
668
669 } else {
670
671 }
672 _impl_.cluster_device_filters_ = cluster_device_filters;
673 // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.cluster_device_filters)
674 }
675
676 #ifdef __GNUC__
677 #pragma GCC diagnostic pop
678 #endif // __GNUC__
679
680 // @@protoc_insertion_point(namespace_scope)
681
682 } // namespace tensorflow
683
684 // @@protoc_insertion_point(global_scope)
685
686 #include <google/protobuf/port_undef.inc>
687 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto
688