1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/tensorflow_server.proto |
3 | |
4 | #ifndef PROTOBUF_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto_INCLUDED |
5 | #define PROTOBUF_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto_INCLUDED |
6 | |
7 | #include <string> |
8 | |
9 | #include <google/protobuf/stubs/common.h> |
10 | |
11 | #if GOOGLE_PROTOBUF_VERSION < 3005000 |
12 | #error This file was generated by a newer version of protoc which is |
13 | #error incompatible with your Protocol Buffer headers. Please update |
14 | #error your headers. |
15 | #endif |
16 | #if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
17 | #error This file was generated by an older version of protoc which is |
18 | #error incompatible with your Protocol Buffer headers. Please |
19 | #error regenerate this file with a newer version of protoc. |
20 | #endif |
21 | |
22 | #include <google/protobuf/io/coded_stream.h> |
23 | #include <google/protobuf/arena.h> |
24 | #include <google/protobuf/arenastring.h> |
25 | #include <google/protobuf/generated_message_table_driven.h> |
26 | #include <google/protobuf/generated_message_util.h> |
27 | #include <google/protobuf/metadata.h> |
28 | #include <google/protobuf/message.h> |
29 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
30 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
31 | #include <google/protobuf/unknown_field_set.h> |
32 | #include "tensorflow/core/protobuf/config.pb.h" |
33 | #include "tensorflow/core/protobuf/cluster.pb.h" |
34 | // @@protoc_insertion_point(includes) |
35 | |
36 | namespace protobuf_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto { |
37 | // Internal implementation detail -- do not use these members. |
38 | struct TableStruct { |
39 | static const ::google::protobuf::internal::ParseTableField entries[]; |
40 | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
41 | static const ::google::protobuf::internal::ParseTable schema[1]; |
42 | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
43 | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
44 | static const ::google::protobuf::uint32 offsets[]; |
45 | }; |
46 | void AddDescriptors(); |
47 | void InitDefaultsServerDefImpl(); |
48 | void InitDefaultsServerDef(); |
49 | inline void InitDefaults() { |
50 | InitDefaultsServerDef(); |
51 | } |
52 | } // namespace protobuf_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto |
53 | namespace tensorflow { |
54 | class ServerDef; |
55 | class ServerDefDefaultTypeInternal; |
56 | extern ServerDefDefaultTypeInternal _ServerDef_default_instance_; |
57 | } // namespace tensorflow |
58 | namespace google { |
59 | namespace protobuf { |
60 | template<> ::tensorflow::ServerDef* Arena::CreateMessage< ::tensorflow::ServerDef>(Arena*); |
61 | } // namespace protobuf |
62 | } // namespace google |
63 | namespace tensorflow { |
64 | |
65 | // =================================================================== |
66 | |
67 | class ServerDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.ServerDef) */ { |
68 | public: |
69 | ServerDef(); |
70 | virtual ~ServerDef(); |
71 | |
72 | ServerDef(const ServerDef& from); |
73 | |
74 | inline ServerDef& operator=(const ServerDef& from) { |
75 | CopyFrom(from); |
76 | return *this; |
77 | } |
78 | #if LANG_CXX11 |
79 | ServerDef(ServerDef&& from) noexcept |
80 | : ServerDef() { |
81 | *this = ::std::move(from); |
82 | } |
83 | |
84 | inline ServerDef& operator=(ServerDef&& from) noexcept { |
85 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
86 | if (this != &from) InternalSwap(&from); |
87 | } else { |
88 | CopyFrom(from); |
89 | } |
90 | return *this; |
91 | } |
92 | #endif |
93 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
94 | return GetArenaNoVirtual(); |
95 | } |
96 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
97 | return MaybeArenaPtr(); |
98 | } |
99 | static const ::google::protobuf::Descriptor* descriptor(); |
100 | static const ServerDef& default_instance(); |
101 | |
102 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
103 | static inline const ServerDef* internal_default_instance() { |
104 | return reinterpret_cast<const ServerDef*>( |
105 | &_ServerDef_default_instance_); |
106 | } |
107 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
108 | 0; |
109 | |
110 | void UnsafeArenaSwap(ServerDef* other); |
111 | void Swap(ServerDef* other); |
112 | friend void swap(ServerDef& a, ServerDef& b) { |
113 | a.Swap(&b); |
114 | } |
115 | |
116 | // implements Message ---------------------------------------------- |
117 | |
118 | inline ServerDef* New() const PROTOBUF_FINAL { |
119 | return ::google::protobuf::Arena::CreateMessage<ServerDef>(NULL); |
120 | } |
121 | |
122 | ServerDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
123 | return ::google::protobuf::Arena::CreateMessage<ServerDef>(arena); |
124 | } |
125 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
126 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
127 | void CopyFrom(const ServerDef& from); |
128 | void MergeFrom(const ServerDef& from); |
129 | void Clear() PROTOBUF_FINAL; |
130 | bool IsInitialized() const PROTOBUF_FINAL; |
131 | |
132 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
133 | bool MergePartialFromCodedStream( |
134 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
135 | void SerializeWithCachedSizes( |
136 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
137 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
138 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
139 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
140 | private: |
141 | void SharedCtor(); |
142 | void SharedDtor(); |
143 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
144 | void InternalSwap(ServerDef* other); |
145 | protected: |
146 | explicit ServerDef(::google::protobuf::Arena* arena); |
147 | private: |
148 | static void ArenaDtor(void* object); |
149 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
150 | private: |
151 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
152 | return _internal_metadata_.arena(); |
153 | } |
154 | inline void* MaybeArenaPtr() const { |
155 | return _internal_metadata_.raw_arena_ptr(); |
156 | } |
157 | public: |
158 | |
159 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
160 | |
161 | // nested types ---------------------------------------------------- |
162 | |
163 | // accessors ------------------------------------------------------- |
164 | |
165 | // string job_name = 2; |
166 | void clear_job_name(); |
167 | static const int kJobNameFieldNumber = 2; |
168 | const ::std::string& job_name() const; |
169 | void set_job_name(const ::std::string& value); |
170 | #if LANG_CXX11 |
171 | void set_job_name(::std::string&& value); |
172 | #endif |
173 | void set_job_name(const char* value); |
174 | void set_job_name(const char* value, size_t size); |
175 | ::std::string* mutable_job_name(); |
176 | ::std::string* release_job_name(); |
177 | void set_allocated_job_name(::std::string* job_name); |
178 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
179 | " string fields are deprecated and will be removed in a" |
180 | " future release." ) |
181 | ::std::string* unsafe_arena_release_job_name(); |
182 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
183 | " string fields are deprecated and will be removed in a" |
184 | " future release." ) |
185 | void unsafe_arena_set_allocated_job_name( |
186 | ::std::string* job_name); |
187 | |
188 | // string protocol = 5; |
189 | void clear_protocol(); |
190 | static const int kProtocolFieldNumber = 5; |
191 | const ::std::string& protocol() const; |
192 | void set_protocol(const ::std::string& value); |
193 | #if LANG_CXX11 |
194 | void set_protocol(::std::string&& value); |
195 | #endif |
196 | void set_protocol(const char* value); |
197 | void set_protocol(const char* value, size_t size); |
198 | ::std::string* mutable_protocol(); |
199 | ::std::string* release_protocol(); |
200 | void set_allocated_protocol(::std::string* protocol); |
201 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
202 | " string fields are deprecated and will be removed in a" |
203 | " future release." ) |
204 | ::std::string* unsafe_arena_release_protocol(); |
205 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
206 | " string fields are deprecated and will be removed in a" |
207 | " future release." ) |
208 | void unsafe_arena_set_allocated_protocol( |
209 | ::std::string* protocol); |
210 | |
211 | // .tensorflow.ClusterDef cluster = 1; |
212 | bool has_cluster() const; |
213 | void clear_cluster(); |
214 | static const int kClusterFieldNumber = 1; |
215 | const ::tensorflow::ClusterDef& cluster() const; |
216 | ::tensorflow::ClusterDef* release_cluster(); |
217 | ::tensorflow::ClusterDef* mutable_cluster(); |
218 | void set_allocated_cluster(::tensorflow::ClusterDef* cluster); |
219 | void unsafe_arena_set_allocated_cluster( |
220 | ::tensorflow::ClusterDef* cluster); |
221 | ::tensorflow::ClusterDef* unsafe_arena_release_cluster(); |
222 | |
223 | // .tensorflow.ConfigProto default_session_config = 4; |
224 | bool has_default_session_config() const; |
225 | void clear_default_session_config(); |
226 | static const int kDefaultSessionConfigFieldNumber = 4; |
227 | const ::tensorflow::ConfigProto& default_session_config() const; |
228 | ::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 | void unsafe_arena_set_allocated_default_session_config( |
232 | ::tensorflow::ConfigProto* default_session_config); |
233 | ::tensorflow::ConfigProto* unsafe_arena_release_default_session_config(); |
234 | |
235 | // int32 task_index = 3; |
236 | void clear_task_index(); |
237 | static const int kTaskIndexFieldNumber = 3; |
238 | ::google::protobuf::int32 task_index() const; |
239 | void set_task_index(::google::protobuf::int32 value); |
240 | |
241 | // @@protoc_insertion_point(class_scope:tensorflow.ServerDef) |
242 | private: |
243 | |
244 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
245 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
246 | typedef void InternalArenaConstructable_; |
247 | typedef void DestructorSkippable_; |
248 | ::google::protobuf::internal::ArenaStringPtr job_name_; |
249 | ::google::protobuf::internal::ArenaStringPtr protocol_; |
250 | ::tensorflow::ClusterDef* cluster_; |
251 | ::tensorflow::ConfigProto* default_session_config_; |
252 | ::google::protobuf::int32 task_index_; |
253 | mutable int _cached_size_; |
254 | friend struct ::protobuf_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto::TableStruct; |
255 | friend void ::protobuf_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto::InitDefaultsServerDefImpl(); |
256 | }; |
257 | // =================================================================== |
258 | |
259 | |
260 | // =================================================================== |
261 | |
262 | #ifdef __GNUC__ |
263 | #pragma GCC diagnostic push |
264 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
265 | #endif // __GNUC__ |
266 | // ServerDef |
267 | |
268 | // .tensorflow.ClusterDef cluster = 1; |
269 | inline bool ServerDef::has_cluster() const { |
270 | return this != internal_default_instance() && cluster_ != NULL; |
271 | } |
272 | inline const ::tensorflow::ClusterDef& ServerDef::cluster() const { |
273 | const ::tensorflow::ClusterDef* p = cluster_; |
274 | // @@protoc_insertion_point(field_get:tensorflow.ServerDef.cluster) |
275 | return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::ClusterDef*>( |
276 | &::tensorflow::_ClusterDef_default_instance_); |
277 | } |
278 | inline ::tensorflow::ClusterDef* ServerDef::release_cluster() { |
279 | // @@protoc_insertion_point(field_release:tensorflow.ServerDef.cluster) |
280 | |
281 | ::tensorflow::ClusterDef* temp = cluster_; |
282 | if (GetArenaNoVirtual() != NULL) { |
283 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
284 | } |
285 | cluster_ = NULL; |
286 | return temp; |
287 | } |
288 | inline ::tensorflow::ClusterDef* ServerDef::unsafe_arena_release_cluster() { |
289 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ServerDef.cluster) |
290 | |
291 | ::tensorflow::ClusterDef* temp = cluster_; |
292 | cluster_ = NULL; |
293 | return temp; |
294 | } |
295 | inline ::tensorflow::ClusterDef* ServerDef::mutable_cluster() { |
296 | |
297 | if (cluster_ == NULL) { |
298 | cluster_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::ClusterDef >( |
299 | GetArenaNoVirtual()); |
300 | } |
301 | // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.cluster) |
302 | return cluster_; |
303 | } |
304 | inline void ServerDef::set_allocated_cluster(::tensorflow::ClusterDef* cluster) { |
305 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
306 | if (message_arena == NULL) { |
307 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(cluster_); |
308 | } |
309 | if (cluster) { |
310 | ::google::protobuf::Arena* submessage_arena = |
311 | reinterpret_cast< ::google::protobuf::MessageLite*>(cluster)->GetArena(); |
312 | if (message_arena != submessage_arena) { |
313 | cluster = ::google::protobuf::internal::GetOwnedMessage( |
314 | message_arena, cluster, submessage_arena); |
315 | } |
316 | |
317 | } else { |
318 | |
319 | } |
320 | cluster_ = cluster; |
321 | // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.cluster) |
322 | } |
323 | |
324 | // string job_name = 2; |
325 | inline void ServerDef::clear_job_name() { |
326 | job_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
327 | } |
328 | inline const ::std::string& ServerDef::job_name() const { |
329 | // @@protoc_insertion_point(field_get:tensorflow.ServerDef.job_name) |
330 | return job_name_.Get(); |
331 | } |
332 | inline void ServerDef::set_job_name(const ::std::string& value) { |
333 | |
334 | job_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
335 | // @@protoc_insertion_point(field_set:tensorflow.ServerDef.job_name) |
336 | } |
337 | #if LANG_CXX11 |
338 | inline void ServerDef::set_job_name(::std::string&& value) { |
339 | |
340 | job_name_.Set( |
341 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
342 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.ServerDef.job_name) |
343 | } |
344 | #endif |
345 | inline void ServerDef::set_job_name(const char* value) { |
346 | GOOGLE_DCHECK(value != NULL); |
347 | |
348 | job_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
349 | GetArenaNoVirtual()); |
350 | // @@protoc_insertion_point(field_set_char:tensorflow.ServerDef.job_name) |
351 | } |
352 | inline void ServerDef::set_job_name(const char* value, |
353 | size_t size) { |
354 | |
355 | job_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
356 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
357 | // @@protoc_insertion_point(field_set_pointer:tensorflow.ServerDef.job_name) |
358 | } |
359 | inline ::std::string* ServerDef::mutable_job_name() { |
360 | |
361 | // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.job_name) |
362 | return job_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
363 | } |
364 | inline ::std::string* ServerDef::release_job_name() { |
365 | // @@protoc_insertion_point(field_release:tensorflow.ServerDef.job_name) |
366 | |
367 | return job_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
368 | } |
369 | inline void ServerDef::set_allocated_job_name(::std::string* job_name) { |
370 | if (job_name != NULL) { |
371 | |
372 | } else { |
373 | |
374 | } |
375 | job_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), job_name, |
376 | GetArenaNoVirtual()); |
377 | // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.job_name) |
378 | } |
379 | inline ::std::string* ServerDef::unsafe_arena_release_job_name() { |
380 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ServerDef.job_name) |
381 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
382 | |
383 | return job_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
384 | GetArenaNoVirtual()); |
385 | } |
386 | inline void ServerDef::unsafe_arena_set_allocated_job_name( |
387 | ::std::string* job_name) { |
388 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
389 | if (job_name != NULL) { |
390 | |
391 | } else { |
392 | |
393 | } |
394 | job_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
395 | job_name, GetArenaNoVirtual()); |
396 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ServerDef.job_name) |
397 | } |
398 | |
399 | // int32 task_index = 3; |
400 | inline void ServerDef::clear_task_index() { |
401 | task_index_ = 0; |
402 | } |
403 | inline ::google::protobuf::int32 ServerDef::task_index() const { |
404 | // @@protoc_insertion_point(field_get:tensorflow.ServerDef.task_index) |
405 | return task_index_; |
406 | } |
407 | inline void ServerDef::set_task_index(::google::protobuf::int32 value) { |
408 | |
409 | task_index_ = value; |
410 | // @@protoc_insertion_point(field_set:tensorflow.ServerDef.task_index) |
411 | } |
412 | |
413 | // .tensorflow.ConfigProto default_session_config = 4; |
414 | inline bool ServerDef::has_default_session_config() const { |
415 | return this != internal_default_instance() && default_session_config_ != NULL; |
416 | } |
417 | inline const ::tensorflow::ConfigProto& ServerDef::default_session_config() const { |
418 | const ::tensorflow::ConfigProto* p = default_session_config_; |
419 | // @@protoc_insertion_point(field_get:tensorflow.ServerDef.default_session_config) |
420 | return p != NULL ? *p : *reinterpret_cast<const ::tensorflow::ConfigProto*>( |
421 | &::tensorflow::_ConfigProto_default_instance_); |
422 | } |
423 | inline ::tensorflow::ConfigProto* ServerDef::release_default_session_config() { |
424 | // @@protoc_insertion_point(field_release:tensorflow.ServerDef.default_session_config) |
425 | |
426 | ::tensorflow::ConfigProto* temp = default_session_config_; |
427 | if (GetArenaNoVirtual() != NULL) { |
428 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
429 | } |
430 | default_session_config_ = NULL; |
431 | return temp; |
432 | } |
433 | inline ::tensorflow::ConfigProto* ServerDef::unsafe_arena_release_default_session_config() { |
434 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ServerDef.default_session_config) |
435 | |
436 | ::tensorflow::ConfigProto* temp = default_session_config_; |
437 | default_session_config_ = NULL; |
438 | return temp; |
439 | } |
440 | inline ::tensorflow::ConfigProto* ServerDef::mutable_default_session_config() { |
441 | |
442 | if (default_session_config_ == NULL) { |
443 | default_session_config_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::ConfigProto >( |
444 | GetArenaNoVirtual()); |
445 | } |
446 | // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.default_session_config) |
447 | return default_session_config_; |
448 | } |
449 | inline void ServerDef::set_allocated_default_session_config(::tensorflow::ConfigProto* default_session_config) { |
450 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
451 | if (message_arena == NULL) { |
452 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(default_session_config_); |
453 | } |
454 | if (default_session_config) { |
455 | ::google::protobuf::Arena* submessage_arena = |
456 | reinterpret_cast< ::google::protobuf::MessageLite*>(default_session_config)->GetArena(); |
457 | if (message_arena != submessage_arena) { |
458 | default_session_config = ::google::protobuf::internal::GetOwnedMessage( |
459 | message_arena, default_session_config, submessage_arena); |
460 | } |
461 | |
462 | } else { |
463 | |
464 | } |
465 | default_session_config_ = default_session_config; |
466 | // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.default_session_config) |
467 | } |
468 | |
469 | // string protocol = 5; |
470 | inline void ServerDef::clear_protocol() { |
471 | protocol_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
472 | } |
473 | inline const ::std::string& ServerDef::protocol() const { |
474 | // @@protoc_insertion_point(field_get:tensorflow.ServerDef.protocol) |
475 | return protocol_.Get(); |
476 | } |
477 | inline void ServerDef::set_protocol(const ::std::string& value) { |
478 | |
479 | protocol_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
480 | // @@protoc_insertion_point(field_set:tensorflow.ServerDef.protocol) |
481 | } |
482 | #if LANG_CXX11 |
483 | inline void ServerDef::set_protocol(::std::string&& value) { |
484 | |
485 | protocol_.Set( |
486 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
487 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.ServerDef.protocol) |
488 | } |
489 | #endif |
490 | inline void ServerDef::set_protocol(const char* value) { |
491 | GOOGLE_DCHECK(value != NULL); |
492 | |
493 | protocol_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
494 | GetArenaNoVirtual()); |
495 | // @@protoc_insertion_point(field_set_char:tensorflow.ServerDef.protocol) |
496 | } |
497 | inline void ServerDef::set_protocol(const char* value, |
498 | size_t size) { |
499 | |
500 | protocol_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
501 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
502 | // @@protoc_insertion_point(field_set_pointer:tensorflow.ServerDef.protocol) |
503 | } |
504 | inline ::std::string* ServerDef::mutable_protocol() { |
505 | |
506 | // @@protoc_insertion_point(field_mutable:tensorflow.ServerDef.protocol) |
507 | return protocol_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
508 | } |
509 | inline ::std::string* ServerDef::release_protocol() { |
510 | // @@protoc_insertion_point(field_release:tensorflow.ServerDef.protocol) |
511 | |
512 | return protocol_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
513 | } |
514 | inline void ServerDef::set_allocated_protocol(::std::string* protocol) { |
515 | if (protocol != NULL) { |
516 | |
517 | } else { |
518 | |
519 | } |
520 | protocol_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), protocol, |
521 | GetArenaNoVirtual()); |
522 | // @@protoc_insertion_point(field_set_allocated:tensorflow.ServerDef.protocol) |
523 | } |
524 | inline ::std::string* ServerDef::unsafe_arena_release_protocol() { |
525 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ServerDef.protocol) |
526 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
527 | |
528 | return protocol_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
529 | GetArenaNoVirtual()); |
530 | } |
531 | inline void ServerDef::unsafe_arena_set_allocated_protocol( |
532 | ::std::string* protocol) { |
533 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
534 | if (protocol != NULL) { |
535 | |
536 | } else { |
537 | |
538 | } |
539 | protocol_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
540 | protocol, GetArenaNoVirtual()); |
541 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ServerDef.protocol) |
542 | } |
543 | |
544 | #ifdef __GNUC__ |
545 | #pragma GCC diagnostic pop |
546 | #endif // __GNUC__ |
547 | |
548 | // @@protoc_insertion_point(namespace_scope) |
549 | |
550 | } // namespace tensorflow |
551 | |
552 | // @@protoc_insertion_point(global_scope) |
553 | |
554 | #endif // PROTOBUF_tensorflow_2fcore_2fprotobuf_2ftensorflow_5fserver_2eproto_INCLUDED |
555 | |