1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tensorflow/core/profiler/profiler_options.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_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 <google/protobuf/generated_enum_util.h>
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto
36 PROTOBUF_NAMESPACE_OPEN
37 namespace internal {
38 class AnyMetadata;
39 } // namespace internal
40 PROTOBUF_NAMESPACE_CLOSE
41
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto {
44 static const ::uint32_t offsets[];
45 };
46 namespace tensorflow {
47 class ProfileOptions;
48 struct ProfileOptionsDefaultTypeInternal;
49 extern ProfileOptionsDefaultTypeInternal _ProfileOptions_default_instance_;
50 class RemoteProfilerSessionManagerOptions;
51 struct RemoteProfilerSessionManagerOptionsDefaultTypeInternal;
52 extern RemoteProfilerSessionManagerOptionsDefaultTypeInternal _RemoteProfilerSessionManagerOptions_default_instance_;
53 } // namespace tensorflow
54 PROTOBUF_NAMESPACE_OPEN
55 template<> ::tensorflow::ProfileOptions* Arena::CreateMaybeMessage<::tensorflow::ProfileOptions>(Arena*);
56 template<> ::tensorflow::RemoteProfilerSessionManagerOptions* Arena::CreateMaybeMessage<::tensorflow::RemoteProfilerSessionManagerOptions>(Arena*);
57 PROTOBUF_NAMESPACE_CLOSE
58 namespace tensorflow {
59
60 enum ProfileOptions_DeviceType : int {
61 ProfileOptions_DeviceType_UNSPECIFIED = 0,
62 ProfileOptions_DeviceType_CPU = 1,
63 ProfileOptions_DeviceType_GPU = 2,
64 ProfileOptions_DeviceType_TPU = 3,
65 ProfileOptions_DeviceType_PLUGGABLE_DEVICE = 4,
66 ProfileOptions_DeviceType_ProfileOptions_DeviceType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
67 ProfileOptions_DeviceType_ProfileOptions_DeviceType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
68 };
69 bool ProfileOptions_DeviceType_IsValid(int value);
70 constexpr ProfileOptions_DeviceType ProfileOptions_DeviceType_DeviceType_MIN = ProfileOptions_DeviceType_UNSPECIFIED;
71 constexpr ProfileOptions_DeviceType ProfileOptions_DeviceType_DeviceType_MAX = ProfileOptions_DeviceType_PLUGGABLE_DEVICE;
72 constexpr int ProfileOptions_DeviceType_DeviceType_ARRAYSIZE = ProfileOptions_DeviceType_DeviceType_MAX + 1;
73
74 const std::string& ProfileOptions_DeviceType_Name(ProfileOptions_DeviceType value);
75 template<typename T>
ProfileOptions_DeviceType_Name(T enum_t_value)76 inline const std::string& ProfileOptions_DeviceType_Name(T enum_t_value) {
77 static_assert(::std::is_same<T, ProfileOptions_DeviceType>::value ||
78 ::std::is_integral<T>::value,
79 "Incorrect type passed to function ProfileOptions_DeviceType_Name.");
80 return ProfileOptions_DeviceType_Name(static_cast<ProfileOptions_DeviceType>(enum_t_value));
81 }
82 bool ProfileOptions_DeviceType_Parse(
83 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProfileOptions_DeviceType* value);
84 // ===================================================================
85
86 class ProfileOptions final :
87 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.ProfileOptions) */ {
88 public:
ProfileOptions()89 inline ProfileOptions() : ProfileOptions(nullptr) {}
90 ~ProfileOptions() override;
91 explicit PROTOBUF_CONSTEXPR ProfileOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
92
93 ProfileOptions(const ProfileOptions& from);
ProfileOptions(ProfileOptions && from)94 ProfileOptions(ProfileOptions&& from) noexcept
95 : ProfileOptions() {
96 *this = ::std::move(from);
97 }
98
99 inline ProfileOptions& operator=(const ProfileOptions& from) {
100 if (this == &from) return *this;
101 CopyFrom(from);
102 return *this;
103 }
104 inline ProfileOptions& operator=(ProfileOptions&& from) noexcept {
105 if (this == &from) return *this;
106 if (GetOwningArena() == from.GetOwningArena()
107 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
108 && GetOwningArena() != nullptr
109 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
110 ) {
111 InternalSwap(&from);
112 } else {
113 CopyFrom(from);
114 }
115 return *this;
116 }
117
default_instance()118 static const ProfileOptions& default_instance() {
119 return *internal_default_instance();
120 }
internal_default_instance()121 static inline const ProfileOptions* internal_default_instance() {
122 return reinterpret_cast<const ProfileOptions*>(
123 &_ProfileOptions_default_instance_);
124 }
125 static constexpr int kIndexInFileMessages =
126 0;
127
swap(ProfileOptions & a,ProfileOptions & b)128 friend void swap(ProfileOptions& a, ProfileOptions& b) {
129 a.Swap(&b);
130 }
Swap(ProfileOptions * other)131 inline void Swap(ProfileOptions* other) {
132 if (other == this) return;
133 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
134 if (GetOwningArena() != nullptr &&
135 GetOwningArena() == other->GetOwningArena()) {
136 #else // PROTOBUF_FORCE_COPY_IN_SWAP
137 if (GetOwningArena() == other->GetOwningArena()) {
138 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
139 InternalSwap(other);
140 } else {
141 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
142 }
143 }
144 void UnsafeArenaSwap(ProfileOptions* other) {
145 if (other == this) return;
146 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
147 InternalSwap(other);
148 }
149
150 // implements Message ----------------------------------------------
151
152 ProfileOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
153 return CreateMaybeMessage<ProfileOptions>(arena);
154 }
155 ProfileOptions* New() const {
156 return New(nullptr);
157 }
158 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
159 void CopyFrom(const ProfileOptions& from);
160 void MergeFrom(const ProfileOptions& from);
161 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
162 bool IsInitialized() const final;
163
164 size_t ByteSizeLong() const final;
165 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
166 ::uint8_t* _InternalSerialize(
167 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
168 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
169
170 private:
171 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
172 void SharedDtor();
173 void SetCachedSize(int size) const;
174 void InternalSwap(ProfileOptions* other);
175
176 private:
177 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
178 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
179 return "tensorflow.ProfileOptions";
180 }
181 protected:
182 explicit ProfileOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
183 bool is_message_owned = false);
184 public:
185
186 std::string GetTypeName() const final;
187
188 // nested types ----------------------------------------------------
189
190 typedef ProfileOptions_DeviceType DeviceType;
191 static constexpr DeviceType UNSPECIFIED =
192 ProfileOptions_DeviceType_UNSPECIFIED;
193 static constexpr DeviceType CPU =
194 ProfileOptions_DeviceType_CPU;
195 static constexpr DeviceType GPU =
196 ProfileOptions_DeviceType_GPU;
197 static constexpr DeviceType TPU =
198 ProfileOptions_DeviceType_TPU;
199 static constexpr DeviceType PLUGGABLE_DEVICE =
200 ProfileOptions_DeviceType_PLUGGABLE_DEVICE;
201 static inline bool DeviceType_IsValid(int value) {
202 return ProfileOptions_DeviceType_IsValid(value);
203 }
204 static constexpr DeviceType DeviceType_MIN =
205 ProfileOptions_DeviceType_DeviceType_MIN;
206 static constexpr DeviceType DeviceType_MAX =
207 ProfileOptions_DeviceType_DeviceType_MAX;
208 static constexpr int DeviceType_ARRAYSIZE =
209 ProfileOptions_DeviceType_DeviceType_ARRAYSIZE;
210 template<typename T>
211 static inline const std::string& DeviceType_Name(T enum_t_value) {
212 static_assert(::std::is_same<T, DeviceType>::value ||
213 ::std::is_integral<T>::value,
214 "Incorrect type passed to function DeviceType_Name.");
215 return ProfileOptions_DeviceType_Name(enum_t_value);
216 }
217 static inline bool DeviceType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
218 DeviceType* value) {
219 return ProfileOptions_DeviceType_Parse(name, value);
220 }
221
222 // accessors -------------------------------------------------------
223
224 enum : int {
225 kRepositoryPathFieldNumber = 10,
226 kHostTracerLevelFieldNumber = 2,
227 kDeviceTracerLevelFieldNumber = 3,
228 kPythonTracerLevelFieldNumber = 4,
229 kIncludeDatasetOpsFieldNumber = 1,
230 kEnableHloProtoFieldNumber = 7,
231 kVersionFieldNumber = 5,
232 kDeviceTypeFieldNumber = 6,
233 kStartTimestampNsFieldNumber = 8,
234 kDurationMsFieldNumber = 9,
235 };
236 // string repository_path = 10;
237 void clear_repository_path();
238 const std::string& repository_path() const;
239 template <typename ArgT0 = const std::string&, typename... ArgT>
240 void set_repository_path(ArgT0&& arg0, ArgT... args);
241 std::string* mutable_repository_path();
242 PROTOBUF_NODISCARD std::string* release_repository_path();
243 void set_allocated_repository_path(std::string* repository_path);
244 private:
245 const std::string& _internal_repository_path() const;
246 inline PROTOBUF_ALWAYS_INLINE void _internal_set_repository_path(const std::string& value);
247 std::string* _internal_mutable_repository_path();
248 public:
249
250 // uint32 host_tracer_level = 2;
251 void clear_host_tracer_level();
252 ::uint32_t host_tracer_level() const;
253 void set_host_tracer_level(::uint32_t value);
254 private:
255 ::uint32_t _internal_host_tracer_level() const;
256 void _internal_set_host_tracer_level(::uint32_t value);
257 public:
258
259 // uint32 device_tracer_level = 3;
260 void clear_device_tracer_level();
261 ::uint32_t device_tracer_level() const;
262 void set_device_tracer_level(::uint32_t value);
263 private:
264 ::uint32_t _internal_device_tracer_level() const;
265 void _internal_set_device_tracer_level(::uint32_t value);
266 public:
267
268 // uint32 python_tracer_level = 4;
269 void clear_python_tracer_level();
270 ::uint32_t python_tracer_level() const;
271 void set_python_tracer_level(::uint32_t value);
272 private:
273 ::uint32_t _internal_python_tracer_level() const;
274 void _internal_set_python_tracer_level(::uint32_t value);
275 public:
276
277 // bool include_dataset_ops = 1;
278 void clear_include_dataset_ops();
279 bool include_dataset_ops() const;
280 void set_include_dataset_ops(bool value);
281 private:
282 bool _internal_include_dataset_ops() const;
283 void _internal_set_include_dataset_ops(bool value);
284 public:
285
286 // bool enable_hlo_proto = 7;
287 void clear_enable_hlo_proto();
288 bool enable_hlo_proto() const;
289 void set_enable_hlo_proto(bool value);
290 private:
291 bool _internal_enable_hlo_proto() const;
292 void _internal_set_enable_hlo_proto(bool value);
293 public:
294
295 // uint32 version = 5;
296 void clear_version();
297 ::uint32_t version() const;
298 void set_version(::uint32_t value);
299 private:
300 ::uint32_t _internal_version() const;
301 void _internal_set_version(::uint32_t value);
302 public:
303
304 // .tensorflow.ProfileOptions.DeviceType device_type = 6;
305 void clear_device_type();
306 ::tensorflow::ProfileOptions_DeviceType device_type() const;
307 void set_device_type(::tensorflow::ProfileOptions_DeviceType value);
308 private:
309 ::tensorflow::ProfileOptions_DeviceType _internal_device_type() const;
310 void _internal_set_device_type(::tensorflow::ProfileOptions_DeviceType value);
311 public:
312
313 // uint64 start_timestamp_ns = 8;
314 void clear_start_timestamp_ns();
315 ::uint64_t start_timestamp_ns() const;
316 void set_start_timestamp_ns(::uint64_t value);
317 private:
318 ::uint64_t _internal_start_timestamp_ns() const;
319 void _internal_set_start_timestamp_ns(::uint64_t value);
320 public:
321
322 // uint64 duration_ms = 9;
323 void clear_duration_ms();
324 ::uint64_t duration_ms() const;
325 void set_duration_ms(::uint64_t value);
326 private:
327 ::uint64_t _internal_duration_ms() const;
328 void _internal_set_duration_ms(::uint64_t value);
329 public:
330
331 // @@protoc_insertion_point(class_scope:tensorflow.ProfileOptions)
332 private:
333 class _Internal;
334
335 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
336 typedef void InternalArenaConstructable_;
337 typedef void DestructorSkippable_;
338 struct Impl_ {
339 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr repository_path_;
340 ::uint32_t host_tracer_level_;
341 ::uint32_t device_tracer_level_;
342 ::uint32_t python_tracer_level_;
343 bool include_dataset_ops_;
344 bool enable_hlo_proto_;
345 ::uint32_t version_;
346 int device_type_;
347 ::uint64_t start_timestamp_ns_;
348 ::uint64_t duration_ms_;
349 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
350 };
351 union { Impl_ _impl_; };
352 friend struct ::TableStruct_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto;
353 };
354 // -------------------------------------------------------------------
355
356 class RemoteProfilerSessionManagerOptions final :
357 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.RemoteProfilerSessionManagerOptions) */ {
358 public:
RemoteProfilerSessionManagerOptions()359 inline RemoteProfilerSessionManagerOptions() : RemoteProfilerSessionManagerOptions(nullptr) {}
360 ~RemoteProfilerSessionManagerOptions() override;
361 explicit PROTOBUF_CONSTEXPR RemoteProfilerSessionManagerOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
362
363 RemoteProfilerSessionManagerOptions(const RemoteProfilerSessionManagerOptions& from);
RemoteProfilerSessionManagerOptions(RemoteProfilerSessionManagerOptions && from)364 RemoteProfilerSessionManagerOptions(RemoteProfilerSessionManagerOptions&& from) noexcept
365 : RemoteProfilerSessionManagerOptions() {
366 *this = ::std::move(from);
367 }
368
369 inline RemoteProfilerSessionManagerOptions& operator=(const RemoteProfilerSessionManagerOptions& from) {
370 if (this == &from) return *this;
371 CopyFrom(from);
372 return *this;
373 }
374 inline RemoteProfilerSessionManagerOptions& operator=(RemoteProfilerSessionManagerOptions&& from) noexcept {
375 if (this == &from) return *this;
376 if (GetOwningArena() == from.GetOwningArena()
377 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
378 && GetOwningArena() != nullptr
379 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
380 ) {
381 InternalSwap(&from);
382 } else {
383 CopyFrom(from);
384 }
385 return *this;
386 }
387
default_instance()388 static const RemoteProfilerSessionManagerOptions& default_instance() {
389 return *internal_default_instance();
390 }
internal_default_instance()391 static inline const RemoteProfilerSessionManagerOptions* internal_default_instance() {
392 return reinterpret_cast<const RemoteProfilerSessionManagerOptions*>(
393 &_RemoteProfilerSessionManagerOptions_default_instance_);
394 }
395 static constexpr int kIndexInFileMessages =
396 1;
397
swap(RemoteProfilerSessionManagerOptions & a,RemoteProfilerSessionManagerOptions & b)398 friend void swap(RemoteProfilerSessionManagerOptions& a, RemoteProfilerSessionManagerOptions& b) {
399 a.Swap(&b);
400 }
Swap(RemoteProfilerSessionManagerOptions * other)401 inline void Swap(RemoteProfilerSessionManagerOptions* other) {
402 if (other == this) return;
403 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
404 if (GetOwningArena() != nullptr &&
405 GetOwningArena() == other->GetOwningArena()) {
406 #else // PROTOBUF_FORCE_COPY_IN_SWAP
407 if (GetOwningArena() == other->GetOwningArena()) {
408 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
409 InternalSwap(other);
410 } else {
411 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
412 }
413 }
414 void UnsafeArenaSwap(RemoteProfilerSessionManagerOptions* other) {
415 if (other == this) return;
416 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
417 InternalSwap(other);
418 }
419
420 // implements Message ----------------------------------------------
421
422 RemoteProfilerSessionManagerOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
423 return CreateMaybeMessage<RemoteProfilerSessionManagerOptions>(arena);
424 }
425 RemoteProfilerSessionManagerOptions* New() const {
426 return New(nullptr);
427 }
428 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
429 void CopyFrom(const RemoteProfilerSessionManagerOptions& from);
430 void MergeFrom(const RemoteProfilerSessionManagerOptions& from);
431 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
432 bool IsInitialized() const final;
433
434 size_t ByteSizeLong() const final;
435 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
436 ::uint8_t* _InternalSerialize(
437 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
438 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
439
440 private:
441 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
442 void SharedDtor();
443 void SetCachedSize(int size) const;
444 void InternalSwap(RemoteProfilerSessionManagerOptions* other);
445
446 private:
447 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
448 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
449 return "tensorflow.RemoteProfilerSessionManagerOptions";
450 }
451 protected:
452 explicit RemoteProfilerSessionManagerOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
453 bool is_message_owned = false);
454 public:
455
456 std::string GetTypeName() const final;
457
458 // nested types ----------------------------------------------------
459
460 // accessors -------------------------------------------------------
461
462 enum : int {
463 kServiceAddressesFieldNumber = 2,
464 kProfilerOptionsFieldNumber = 1,
465 kSessionCreationTimestampNsFieldNumber = 3,
466 kMaxSessionDurationMsFieldNumber = 4,
467 kDelayMsFieldNumber = 5,
468 };
469 // repeated string service_addresses = 2;
470 int service_addresses_size() const;
471 private:
472 int _internal_service_addresses_size() const;
473 public:
474 void clear_service_addresses();
475 const std::string& service_addresses(int index) const;
476 std::string* mutable_service_addresses(int index);
477 void set_service_addresses(int index, const std::string& value);
478 void set_service_addresses(int index, std::string&& value);
479 void set_service_addresses(int index, const char* value);
480 void set_service_addresses(int index, const char* value, size_t size);
481 std::string* add_service_addresses();
482 void add_service_addresses(const std::string& value);
483 void add_service_addresses(std::string&& value);
484 void add_service_addresses(const char* value);
485 void add_service_addresses(const char* value, size_t size);
486 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& service_addresses() const;
487 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_service_addresses();
488 private:
489 const std::string& _internal_service_addresses(int index) const;
490 std::string* _internal_add_service_addresses();
491 public:
492
493 // .tensorflow.ProfileOptions profiler_options = 1;
494 bool has_profiler_options() const;
495 private:
496 bool _internal_has_profiler_options() const;
497 public:
498 void clear_profiler_options();
499 const ::tensorflow::ProfileOptions& profiler_options() const;
500 PROTOBUF_NODISCARD ::tensorflow::ProfileOptions* release_profiler_options();
501 ::tensorflow::ProfileOptions* mutable_profiler_options();
502 void set_allocated_profiler_options(::tensorflow::ProfileOptions* profiler_options);
503 private:
504 const ::tensorflow::ProfileOptions& _internal_profiler_options() const;
505 ::tensorflow::ProfileOptions* _internal_mutable_profiler_options();
506 public:
507 void unsafe_arena_set_allocated_profiler_options(
508 ::tensorflow::ProfileOptions* profiler_options);
509 ::tensorflow::ProfileOptions* unsafe_arena_release_profiler_options();
510
511 // uint64 session_creation_timestamp_ns = 3;
512 void clear_session_creation_timestamp_ns();
513 ::uint64_t session_creation_timestamp_ns() const;
514 void set_session_creation_timestamp_ns(::uint64_t value);
515 private:
516 ::uint64_t _internal_session_creation_timestamp_ns() const;
517 void _internal_set_session_creation_timestamp_ns(::uint64_t value);
518 public:
519
520 // uint64 max_session_duration_ms = 4;
521 void clear_max_session_duration_ms();
522 ::uint64_t max_session_duration_ms() const;
523 void set_max_session_duration_ms(::uint64_t value);
524 private:
525 ::uint64_t _internal_max_session_duration_ms() const;
526 void _internal_set_max_session_duration_ms(::uint64_t value);
527 public:
528
529 // uint64 delay_ms = 5;
530 void clear_delay_ms();
531 ::uint64_t delay_ms() const;
532 void set_delay_ms(::uint64_t value);
533 private:
534 ::uint64_t _internal_delay_ms() const;
535 void _internal_set_delay_ms(::uint64_t value);
536 public:
537
538 // @@protoc_insertion_point(class_scope:tensorflow.RemoteProfilerSessionManagerOptions)
539 private:
540 class _Internal;
541
542 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
543 typedef void InternalArenaConstructable_;
544 typedef void DestructorSkippable_;
545 struct Impl_ {
546 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> service_addresses_;
547 ::tensorflow::ProfileOptions* profiler_options_;
548 ::uint64_t session_creation_timestamp_ns_;
549 ::uint64_t max_session_duration_ms_;
550 ::uint64_t delay_ms_;
551 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
552 };
553 union { Impl_ _impl_; };
554 friend struct ::TableStruct_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto;
555 };
556 // ===================================================================
557
558
559 // ===================================================================
560
561 #ifdef __GNUC__
562 #pragma GCC diagnostic push
563 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
564 #endif // __GNUC__
565 // ProfileOptions
566
567 // uint32 version = 5;
clear_version()568 inline void ProfileOptions::clear_version() {
569 _impl_.version_ = 0u;
570 }
_internal_version()571 inline ::uint32_t ProfileOptions::_internal_version() const {
572 return _impl_.version_;
573 }
version()574 inline ::uint32_t ProfileOptions::version() const {
575 // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.version)
576 return _internal_version();
577 }
_internal_set_version(::uint32_t value)578 inline void ProfileOptions::_internal_set_version(::uint32_t value) {
579
580 _impl_.version_ = value;
581 }
set_version(::uint32_t value)582 inline void ProfileOptions::set_version(::uint32_t value) {
583 _internal_set_version(value);
584 // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.version)
585 }
586
587 // .tensorflow.ProfileOptions.DeviceType device_type = 6;
clear_device_type()588 inline void ProfileOptions::clear_device_type() {
589 _impl_.device_type_ = 0;
590 }
_internal_device_type()591 inline ::tensorflow::ProfileOptions_DeviceType ProfileOptions::_internal_device_type() const {
592 return static_cast< ::tensorflow::ProfileOptions_DeviceType >(_impl_.device_type_);
593 }
device_type()594 inline ::tensorflow::ProfileOptions_DeviceType ProfileOptions::device_type() const {
595 // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.device_type)
596 return _internal_device_type();
597 }
_internal_set_device_type(::tensorflow::ProfileOptions_DeviceType value)598 inline void ProfileOptions::_internal_set_device_type(::tensorflow::ProfileOptions_DeviceType value) {
599
600 _impl_.device_type_ = value;
601 }
set_device_type(::tensorflow::ProfileOptions_DeviceType value)602 inline void ProfileOptions::set_device_type(::tensorflow::ProfileOptions_DeviceType value) {
603 _internal_set_device_type(value);
604 // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.device_type)
605 }
606
607 // bool include_dataset_ops = 1;
clear_include_dataset_ops()608 inline void ProfileOptions::clear_include_dataset_ops() {
609 _impl_.include_dataset_ops_ = false;
610 }
_internal_include_dataset_ops()611 inline bool ProfileOptions::_internal_include_dataset_ops() const {
612 return _impl_.include_dataset_ops_;
613 }
include_dataset_ops()614 inline bool ProfileOptions::include_dataset_ops() const {
615 // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.include_dataset_ops)
616 return _internal_include_dataset_ops();
617 }
_internal_set_include_dataset_ops(bool value)618 inline void ProfileOptions::_internal_set_include_dataset_ops(bool value) {
619
620 _impl_.include_dataset_ops_ = value;
621 }
set_include_dataset_ops(bool value)622 inline void ProfileOptions::set_include_dataset_ops(bool value) {
623 _internal_set_include_dataset_ops(value);
624 // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.include_dataset_ops)
625 }
626
627 // uint32 host_tracer_level = 2;
clear_host_tracer_level()628 inline void ProfileOptions::clear_host_tracer_level() {
629 _impl_.host_tracer_level_ = 0u;
630 }
_internal_host_tracer_level()631 inline ::uint32_t ProfileOptions::_internal_host_tracer_level() const {
632 return _impl_.host_tracer_level_;
633 }
host_tracer_level()634 inline ::uint32_t ProfileOptions::host_tracer_level() const {
635 // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.host_tracer_level)
636 return _internal_host_tracer_level();
637 }
_internal_set_host_tracer_level(::uint32_t value)638 inline void ProfileOptions::_internal_set_host_tracer_level(::uint32_t value) {
639
640 _impl_.host_tracer_level_ = value;
641 }
set_host_tracer_level(::uint32_t value)642 inline void ProfileOptions::set_host_tracer_level(::uint32_t value) {
643 _internal_set_host_tracer_level(value);
644 // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.host_tracer_level)
645 }
646
647 // uint32 device_tracer_level = 3;
clear_device_tracer_level()648 inline void ProfileOptions::clear_device_tracer_level() {
649 _impl_.device_tracer_level_ = 0u;
650 }
_internal_device_tracer_level()651 inline ::uint32_t ProfileOptions::_internal_device_tracer_level() const {
652 return _impl_.device_tracer_level_;
653 }
device_tracer_level()654 inline ::uint32_t ProfileOptions::device_tracer_level() const {
655 // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.device_tracer_level)
656 return _internal_device_tracer_level();
657 }
_internal_set_device_tracer_level(::uint32_t value)658 inline void ProfileOptions::_internal_set_device_tracer_level(::uint32_t value) {
659
660 _impl_.device_tracer_level_ = value;
661 }
set_device_tracer_level(::uint32_t value)662 inline void ProfileOptions::set_device_tracer_level(::uint32_t value) {
663 _internal_set_device_tracer_level(value);
664 // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.device_tracer_level)
665 }
666
667 // uint32 python_tracer_level = 4;
clear_python_tracer_level()668 inline void ProfileOptions::clear_python_tracer_level() {
669 _impl_.python_tracer_level_ = 0u;
670 }
_internal_python_tracer_level()671 inline ::uint32_t ProfileOptions::_internal_python_tracer_level() const {
672 return _impl_.python_tracer_level_;
673 }
python_tracer_level()674 inline ::uint32_t ProfileOptions::python_tracer_level() const {
675 // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.python_tracer_level)
676 return _internal_python_tracer_level();
677 }
_internal_set_python_tracer_level(::uint32_t value)678 inline void ProfileOptions::_internal_set_python_tracer_level(::uint32_t value) {
679
680 _impl_.python_tracer_level_ = value;
681 }
set_python_tracer_level(::uint32_t value)682 inline void ProfileOptions::set_python_tracer_level(::uint32_t value) {
683 _internal_set_python_tracer_level(value);
684 // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.python_tracer_level)
685 }
686
687 // bool enable_hlo_proto = 7;
clear_enable_hlo_proto()688 inline void ProfileOptions::clear_enable_hlo_proto() {
689 _impl_.enable_hlo_proto_ = false;
690 }
_internal_enable_hlo_proto()691 inline bool ProfileOptions::_internal_enable_hlo_proto() const {
692 return _impl_.enable_hlo_proto_;
693 }
enable_hlo_proto()694 inline bool ProfileOptions::enable_hlo_proto() const {
695 // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.enable_hlo_proto)
696 return _internal_enable_hlo_proto();
697 }
_internal_set_enable_hlo_proto(bool value)698 inline void ProfileOptions::_internal_set_enable_hlo_proto(bool value) {
699
700 _impl_.enable_hlo_proto_ = value;
701 }
set_enable_hlo_proto(bool value)702 inline void ProfileOptions::set_enable_hlo_proto(bool value) {
703 _internal_set_enable_hlo_proto(value);
704 // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.enable_hlo_proto)
705 }
706
707 // uint64 start_timestamp_ns = 8;
clear_start_timestamp_ns()708 inline void ProfileOptions::clear_start_timestamp_ns() {
709 _impl_.start_timestamp_ns_ = ::uint64_t{0u};
710 }
_internal_start_timestamp_ns()711 inline ::uint64_t ProfileOptions::_internal_start_timestamp_ns() const {
712 return _impl_.start_timestamp_ns_;
713 }
start_timestamp_ns()714 inline ::uint64_t ProfileOptions::start_timestamp_ns() const {
715 // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.start_timestamp_ns)
716 return _internal_start_timestamp_ns();
717 }
_internal_set_start_timestamp_ns(::uint64_t value)718 inline void ProfileOptions::_internal_set_start_timestamp_ns(::uint64_t value) {
719
720 _impl_.start_timestamp_ns_ = value;
721 }
set_start_timestamp_ns(::uint64_t value)722 inline void ProfileOptions::set_start_timestamp_ns(::uint64_t value) {
723 _internal_set_start_timestamp_ns(value);
724 // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.start_timestamp_ns)
725 }
726
727 // uint64 duration_ms = 9;
clear_duration_ms()728 inline void ProfileOptions::clear_duration_ms() {
729 _impl_.duration_ms_ = ::uint64_t{0u};
730 }
_internal_duration_ms()731 inline ::uint64_t ProfileOptions::_internal_duration_ms() const {
732 return _impl_.duration_ms_;
733 }
duration_ms()734 inline ::uint64_t ProfileOptions::duration_ms() const {
735 // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.duration_ms)
736 return _internal_duration_ms();
737 }
_internal_set_duration_ms(::uint64_t value)738 inline void ProfileOptions::_internal_set_duration_ms(::uint64_t value) {
739
740 _impl_.duration_ms_ = value;
741 }
set_duration_ms(::uint64_t value)742 inline void ProfileOptions::set_duration_ms(::uint64_t value) {
743 _internal_set_duration_ms(value);
744 // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.duration_ms)
745 }
746
747 // string repository_path = 10;
clear_repository_path()748 inline void ProfileOptions::clear_repository_path() {
749 _impl_.repository_path_.ClearToEmpty();
750 }
repository_path()751 inline const std::string& ProfileOptions::repository_path() const {
752 // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.repository_path)
753 return _internal_repository_path();
754 }
755 template <typename ArgT0, typename... ArgT>
756 inline PROTOBUF_ALWAYS_INLINE
set_repository_path(ArgT0 && arg0,ArgT...args)757 void ProfileOptions::set_repository_path(ArgT0&& arg0, ArgT... args) {
758
759 _impl_.repository_path_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
760 // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.repository_path)
761 }
mutable_repository_path()762 inline std::string* ProfileOptions::mutable_repository_path() {
763 std::string* _s = _internal_mutable_repository_path();
764 // @@protoc_insertion_point(field_mutable:tensorflow.ProfileOptions.repository_path)
765 return _s;
766 }
_internal_repository_path()767 inline const std::string& ProfileOptions::_internal_repository_path() const {
768 return _impl_.repository_path_.Get();
769 }
_internal_set_repository_path(const std::string & value)770 inline void ProfileOptions::_internal_set_repository_path(const std::string& value) {
771
772 _impl_.repository_path_.Set(value, GetArenaForAllocation());
773 }
_internal_mutable_repository_path()774 inline std::string* ProfileOptions::_internal_mutable_repository_path() {
775
776 return _impl_.repository_path_.Mutable(GetArenaForAllocation());
777 }
release_repository_path()778 inline std::string* ProfileOptions::release_repository_path() {
779 // @@protoc_insertion_point(field_release:tensorflow.ProfileOptions.repository_path)
780 return _impl_.repository_path_.Release();
781 }
set_allocated_repository_path(std::string * repository_path)782 inline void ProfileOptions::set_allocated_repository_path(std::string* repository_path) {
783 _impl_.repository_path_.SetAllocated(repository_path, GetArenaForAllocation());
784 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
785 if (_impl_.repository_path_.IsDefault()) {
786 _impl_.repository_path_.Set("", GetArenaForAllocation());
787 }
788 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
789 // @@protoc_insertion_point(field_set_allocated:tensorflow.ProfileOptions.repository_path)
790 }
791
792 // -------------------------------------------------------------------
793
794 // RemoteProfilerSessionManagerOptions
795
796 // .tensorflow.ProfileOptions profiler_options = 1;
_internal_has_profiler_options()797 inline bool RemoteProfilerSessionManagerOptions::_internal_has_profiler_options() const {
798 return this != internal_default_instance() && _impl_.profiler_options_ != nullptr;
799 }
has_profiler_options()800 inline bool RemoteProfilerSessionManagerOptions::has_profiler_options() const {
801 return _internal_has_profiler_options();
802 }
clear_profiler_options()803 inline void RemoteProfilerSessionManagerOptions::clear_profiler_options() {
804 if (GetArenaForAllocation() == nullptr && _impl_.profiler_options_ != nullptr) {
805 delete _impl_.profiler_options_;
806 }
807 _impl_.profiler_options_ = nullptr;
808 }
_internal_profiler_options()809 inline const ::tensorflow::ProfileOptions& RemoteProfilerSessionManagerOptions::_internal_profiler_options() const {
810 const ::tensorflow::ProfileOptions* p = _impl_.profiler_options_;
811 return p != nullptr ? *p : reinterpret_cast<const ::tensorflow::ProfileOptions&>(
812 ::tensorflow::_ProfileOptions_default_instance_);
813 }
profiler_options()814 inline const ::tensorflow::ProfileOptions& RemoteProfilerSessionManagerOptions::profiler_options() const {
815 // @@protoc_insertion_point(field_get:tensorflow.RemoteProfilerSessionManagerOptions.profiler_options)
816 return _internal_profiler_options();
817 }
unsafe_arena_set_allocated_profiler_options(::tensorflow::ProfileOptions * profiler_options)818 inline void RemoteProfilerSessionManagerOptions::unsafe_arena_set_allocated_profiler_options(
819 ::tensorflow::ProfileOptions* profiler_options) {
820 if (GetArenaForAllocation() == nullptr) {
821 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.profiler_options_);
822 }
823 _impl_.profiler_options_ = profiler_options;
824 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RemoteProfilerSessionManagerOptions.profiler_options)
825 }
release_profiler_options()826 inline ::tensorflow::ProfileOptions* RemoteProfilerSessionManagerOptions::release_profiler_options() {
827
828 ::tensorflow::ProfileOptions* temp = _impl_.profiler_options_;
829 _impl_.profiler_options_ = nullptr;
830 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
831 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
832 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
833 if (GetArenaForAllocation() == nullptr) { delete old; }
834 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
835 if (GetArenaForAllocation() != nullptr) {
836 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
837 }
838 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
839 return temp;
840 }
unsafe_arena_release_profiler_options()841 inline ::tensorflow::ProfileOptions* RemoteProfilerSessionManagerOptions::unsafe_arena_release_profiler_options() {
842 // @@protoc_insertion_point(field_release:tensorflow.RemoteProfilerSessionManagerOptions.profiler_options)
843
844 ::tensorflow::ProfileOptions* temp = _impl_.profiler_options_;
845 _impl_.profiler_options_ = nullptr;
846 return temp;
847 }
_internal_mutable_profiler_options()848 inline ::tensorflow::ProfileOptions* RemoteProfilerSessionManagerOptions::_internal_mutable_profiler_options() {
849
850 if (_impl_.profiler_options_ == nullptr) {
851 auto* p = CreateMaybeMessage<::tensorflow::ProfileOptions>(GetArenaForAllocation());
852 _impl_.profiler_options_ = p;
853 }
854 return _impl_.profiler_options_;
855 }
mutable_profiler_options()856 inline ::tensorflow::ProfileOptions* RemoteProfilerSessionManagerOptions::mutable_profiler_options() {
857 ::tensorflow::ProfileOptions* _msg = _internal_mutable_profiler_options();
858 // @@protoc_insertion_point(field_mutable:tensorflow.RemoteProfilerSessionManagerOptions.profiler_options)
859 return _msg;
860 }
set_allocated_profiler_options(::tensorflow::ProfileOptions * profiler_options)861 inline void RemoteProfilerSessionManagerOptions::set_allocated_profiler_options(::tensorflow::ProfileOptions* profiler_options) {
862 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
863 if (message_arena == nullptr) {
864 delete _impl_.profiler_options_;
865 }
866 if (profiler_options) {
867 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
868 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(profiler_options);
869 if (message_arena != submessage_arena) {
870 profiler_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
871 message_arena, profiler_options, submessage_arena);
872 }
873
874 } else {
875
876 }
877 _impl_.profiler_options_ = profiler_options;
878 // @@protoc_insertion_point(field_set_allocated:tensorflow.RemoteProfilerSessionManagerOptions.profiler_options)
879 }
880
881 // repeated string service_addresses = 2;
_internal_service_addresses_size()882 inline int RemoteProfilerSessionManagerOptions::_internal_service_addresses_size() const {
883 return _impl_.service_addresses_.size();
884 }
service_addresses_size()885 inline int RemoteProfilerSessionManagerOptions::service_addresses_size() const {
886 return _internal_service_addresses_size();
887 }
clear_service_addresses()888 inline void RemoteProfilerSessionManagerOptions::clear_service_addresses() {
889 _impl_.service_addresses_.Clear();
890 }
add_service_addresses()891 inline std::string* RemoteProfilerSessionManagerOptions::add_service_addresses() {
892 std::string* _s = _internal_add_service_addresses();
893 // @@protoc_insertion_point(field_add_mutable:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
894 return _s;
895 }
_internal_service_addresses(int index)896 inline const std::string& RemoteProfilerSessionManagerOptions::_internal_service_addresses(int index) const {
897 return _impl_.service_addresses_.Get(index);
898 }
service_addresses(int index)899 inline const std::string& RemoteProfilerSessionManagerOptions::service_addresses(int index) const {
900 // @@protoc_insertion_point(field_get:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
901 return _internal_service_addresses(index);
902 }
mutable_service_addresses(int index)903 inline std::string* RemoteProfilerSessionManagerOptions::mutable_service_addresses(int index) {
904 // @@protoc_insertion_point(field_mutable:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
905 return _impl_.service_addresses_.Mutable(index);
906 }
set_service_addresses(int index,const std::string & value)907 inline void RemoteProfilerSessionManagerOptions::set_service_addresses(int index, const std::string& value) {
908 _impl_.service_addresses_.Mutable(index)->assign(value);
909 // @@protoc_insertion_point(field_set:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
910 }
set_service_addresses(int index,std::string && value)911 inline void RemoteProfilerSessionManagerOptions::set_service_addresses(int index, std::string&& value) {
912 _impl_.service_addresses_.Mutable(index)->assign(std::move(value));
913 // @@protoc_insertion_point(field_set:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
914 }
set_service_addresses(int index,const char * value)915 inline void RemoteProfilerSessionManagerOptions::set_service_addresses(int index, const char* value) {
916 GOOGLE_DCHECK(value != nullptr);
917 _impl_.service_addresses_.Mutable(index)->assign(value);
918 // @@protoc_insertion_point(field_set_char:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
919 }
set_service_addresses(int index,const char * value,size_t size)920 inline void RemoteProfilerSessionManagerOptions::set_service_addresses(int index, const char* value, size_t size) {
921 _impl_.service_addresses_.Mutable(index)->assign(
922 reinterpret_cast<const char*>(value), size);
923 // @@protoc_insertion_point(field_set_pointer:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
924 }
_internal_add_service_addresses()925 inline std::string* RemoteProfilerSessionManagerOptions::_internal_add_service_addresses() {
926 return _impl_.service_addresses_.Add();
927 }
add_service_addresses(const std::string & value)928 inline void RemoteProfilerSessionManagerOptions::add_service_addresses(const std::string& value) {
929 _impl_.service_addresses_.Add()->assign(value);
930 // @@protoc_insertion_point(field_add:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
931 }
add_service_addresses(std::string && value)932 inline void RemoteProfilerSessionManagerOptions::add_service_addresses(std::string&& value) {
933 _impl_.service_addresses_.Add(std::move(value));
934 // @@protoc_insertion_point(field_add:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
935 }
add_service_addresses(const char * value)936 inline void RemoteProfilerSessionManagerOptions::add_service_addresses(const char* value) {
937 GOOGLE_DCHECK(value != nullptr);
938 _impl_.service_addresses_.Add()->assign(value);
939 // @@protoc_insertion_point(field_add_char:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
940 }
add_service_addresses(const char * value,size_t size)941 inline void RemoteProfilerSessionManagerOptions::add_service_addresses(const char* value, size_t size) {
942 _impl_.service_addresses_.Add()->assign(reinterpret_cast<const char*>(value), size);
943 // @@protoc_insertion_point(field_add_pointer:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
944 }
945 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
service_addresses()946 RemoteProfilerSessionManagerOptions::service_addresses() const {
947 // @@protoc_insertion_point(field_list:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
948 return _impl_.service_addresses_;
949 }
950 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_service_addresses()951 RemoteProfilerSessionManagerOptions::mutable_service_addresses() {
952 // @@protoc_insertion_point(field_mutable_list:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses)
953 return &_impl_.service_addresses_;
954 }
955
956 // uint64 session_creation_timestamp_ns = 3;
clear_session_creation_timestamp_ns()957 inline void RemoteProfilerSessionManagerOptions::clear_session_creation_timestamp_ns() {
958 _impl_.session_creation_timestamp_ns_ = ::uint64_t{0u};
959 }
_internal_session_creation_timestamp_ns()960 inline ::uint64_t RemoteProfilerSessionManagerOptions::_internal_session_creation_timestamp_ns() const {
961 return _impl_.session_creation_timestamp_ns_;
962 }
session_creation_timestamp_ns()963 inline ::uint64_t RemoteProfilerSessionManagerOptions::session_creation_timestamp_ns() const {
964 // @@protoc_insertion_point(field_get:tensorflow.RemoteProfilerSessionManagerOptions.session_creation_timestamp_ns)
965 return _internal_session_creation_timestamp_ns();
966 }
_internal_set_session_creation_timestamp_ns(::uint64_t value)967 inline void RemoteProfilerSessionManagerOptions::_internal_set_session_creation_timestamp_ns(::uint64_t value) {
968
969 _impl_.session_creation_timestamp_ns_ = value;
970 }
set_session_creation_timestamp_ns(::uint64_t value)971 inline void RemoteProfilerSessionManagerOptions::set_session_creation_timestamp_ns(::uint64_t value) {
972 _internal_set_session_creation_timestamp_ns(value);
973 // @@protoc_insertion_point(field_set:tensorflow.RemoteProfilerSessionManagerOptions.session_creation_timestamp_ns)
974 }
975
976 // uint64 max_session_duration_ms = 4;
clear_max_session_duration_ms()977 inline void RemoteProfilerSessionManagerOptions::clear_max_session_duration_ms() {
978 _impl_.max_session_duration_ms_ = ::uint64_t{0u};
979 }
_internal_max_session_duration_ms()980 inline ::uint64_t RemoteProfilerSessionManagerOptions::_internal_max_session_duration_ms() const {
981 return _impl_.max_session_duration_ms_;
982 }
max_session_duration_ms()983 inline ::uint64_t RemoteProfilerSessionManagerOptions::max_session_duration_ms() const {
984 // @@protoc_insertion_point(field_get:tensorflow.RemoteProfilerSessionManagerOptions.max_session_duration_ms)
985 return _internal_max_session_duration_ms();
986 }
_internal_set_max_session_duration_ms(::uint64_t value)987 inline void RemoteProfilerSessionManagerOptions::_internal_set_max_session_duration_ms(::uint64_t value) {
988
989 _impl_.max_session_duration_ms_ = value;
990 }
set_max_session_duration_ms(::uint64_t value)991 inline void RemoteProfilerSessionManagerOptions::set_max_session_duration_ms(::uint64_t value) {
992 _internal_set_max_session_duration_ms(value);
993 // @@protoc_insertion_point(field_set:tensorflow.RemoteProfilerSessionManagerOptions.max_session_duration_ms)
994 }
995
996 // uint64 delay_ms = 5;
clear_delay_ms()997 inline void RemoteProfilerSessionManagerOptions::clear_delay_ms() {
998 _impl_.delay_ms_ = ::uint64_t{0u};
999 }
_internal_delay_ms()1000 inline ::uint64_t RemoteProfilerSessionManagerOptions::_internal_delay_ms() const {
1001 return _impl_.delay_ms_;
1002 }
delay_ms()1003 inline ::uint64_t RemoteProfilerSessionManagerOptions::delay_ms() const {
1004 // @@protoc_insertion_point(field_get:tensorflow.RemoteProfilerSessionManagerOptions.delay_ms)
1005 return _internal_delay_ms();
1006 }
_internal_set_delay_ms(::uint64_t value)1007 inline void RemoteProfilerSessionManagerOptions::_internal_set_delay_ms(::uint64_t value) {
1008
1009 _impl_.delay_ms_ = value;
1010 }
set_delay_ms(::uint64_t value)1011 inline void RemoteProfilerSessionManagerOptions::set_delay_ms(::uint64_t value) {
1012 _internal_set_delay_ms(value);
1013 // @@protoc_insertion_point(field_set:tensorflow.RemoteProfilerSessionManagerOptions.delay_ms)
1014 }
1015
1016 #ifdef __GNUC__
1017 #pragma GCC diagnostic pop
1018 #endif // __GNUC__
1019 // -------------------------------------------------------------------
1020
1021
1022 // @@protoc_insertion_point(namespace_scope)
1023
1024 } // namespace tensorflow
1025
1026 PROTOBUF_NAMESPACE_OPEN
1027
1028 template <> struct is_proto_enum< ::tensorflow::ProfileOptions_DeviceType> : ::std::true_type {};
1029
1030 PROTOBUF_NAMESPACE_CLOSE
1031
1032 // @@protoc_insertion_point(global_scope)
1033
1034 #include <google/protobuf/port_undef.inc>
1035 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto
1036