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 <limits> |
8 | #include <string> |
9 | |
10 | #include <google/protobuf/port_def.inc> |
11 | #if PROTOBUF_VERSION < 3009000 |
12 | #error This file was generated by a newer version of protoc which is |
13 | #error incompatible with your Protocol Buffer headers. Please update |
14 | #error your headers. |
15 | #endif |
16 | #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION |
17 | #error This file was generated by an older version of protoc which is |
18 | #error incompatible with your Protocol Buffer headers. Please |
19 | #error regenerate this file with a newer version of protoc. |
20 | #endif |
21 | |
22 | #include <google/protobuf/port_undef.inc> |
23 | #include <google/protobuf/io/coded_stream.h> |
24 | #include <google/protobuf/arena.h> |
25 | #include <google/protobuf/arenastring.h> |
26 | #include <google/protobuf/generated_message_table_driven.h> |
27 | #include <google/protobuf/generated_message_util.h> |
28 | #include <google/protobuf/inlined_string_field.h> |
29 | #include <google/protobuf/metadata.h> |
30 | #include <google/protobuf/generated_message_reflection.h> |
31 | #include <google/protobuf/message.h> |
32 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
33 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
34 | #include <google/protobuf/generated_enum_reflection.h> |
35 | #include <google/protobuf/unknown_field_set.h> |
36 | // @@protoc_insertion_point(includes) |
37 | #include <google/protobuf/port_def.inc> |
38 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto |
39 | PROTOBUF_NAMESPACE_OPEN |
40 | namespace internal { |
41 | class AnyMetadata; |
42 | } // namespace internal |
43 | PROTOBUF_NAMESPACE_CLOSE |
44 | |
45 | // Internal implementation detail -- do not use these members. |
46 | struct TableStruct_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto { |
47 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
48 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
49 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
50 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
51 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] |
52 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
54 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
55 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
56 | }; |
57 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto; |
58 | namespace tensorflow { |
59 | class ProfileOptions; |
60 | class ProfileOptionsDefaultTypeInternal; |
61 | extern ProfileOptionsDefaultTypeInternal _ProfileOptions_default_instance_; |
62 | class RemoteProfilerSessionManagerOptions; |
63 | class RemoteProfilerSessionManagerOptionsDefaultTypeInternal; |
64 | extern RemoteProfilerSessionManagerOptionsDefaultTypeInternal _RemoteProfilerSessionManagerOptions_default_instance_; |
65 | } // namespace tensorflow |
66 | PROTOBUF_NAMESPACE_OPEN |
67 | template<> ::tensorflow::ProfileOptions* Arena::CreateMaybeMessage<::tensorflow::ProfileOptions>(Arena*); |
68 | template<> ::tensorflow::RemoteProfilerSessionManagerOptions* Arena::CreateMaybeMessage<::tensorflow::RemoteProfilerSessionManagerOptions>(Arena*); |
69 | PROTOBUF_NAMESPACE_CLOSE |
70 | namespace tensorflow { |
71 | |
72 | enum ProfileOptions_DeviceType : int { |
73 | ProfileOptions_DeviceType_UNSPECIFIED = 0, |
74 | ProfileOptions_DeviceType_CPU = 1, |
75 | ProfileOptions_DeviceType_GPU = 2, |
76 | ProfileOptions_DeviceType_TPU = 3, |
77 | ProfileOptions_DeviceType_PLUGGABLE_DEVICE = 4, |
78 | ProfileOptions_DeviceType_ProfileOptions_DeviceType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
79 | ProfileOptions_DeviceType_ProfileOptions_DeviceType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
80 | }; |
81 | bool ProfileOptions_DeviceType_IsValid(int value); |
82 | constexpr ProfileOptions_DeviceType ProfileOptions_DeviceType_DeviceType_MIN = ProfileOptions_DeviceType_UNSPECIFIED; |
83 | constexpr ProfileOptions_DeviceType ProfileOptions_DeviceType_DeviceType_MAX = ProfileOptions_DeviceType_PLUGGABLE_DEVICE; |
84 | constexpr int ProfileOptions_DeviceType_DeviceType_ARRAYSIZE = ProfileOptions_DeviceType_DeviceType_MAX + 1; |
85 | |
86 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProfileOptions_DeviceType_descriptor(); |
87 | template<typename T> |
88 | inline const std::string& ProfileOptions_DeviceType_Name(T enum_t_value) { |
89 | static_assert(::std::is_same<T, ProfileOptions_DeviceType>::value || |
90 | ::std::is_integral<T>::value, |
91 | "Incorrect type passed to function ProfileOptions_DeviceType_Name." ); |
92 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
93 | ProfileOptions_DeviceType_descriptor(), enum_t_value); |
94 | } |
95 | inline bool ProfileOptions_DeviceType_Parse( |
96 | const std::string& name, ProfileOptions_DeviceType* value) { |
97 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ProfileOptions_DeviceType>( |
98 | ProfileOptions_DeviceType_descriptor(), name, value); |
99 | } |
100 | // =================================================================== |
101 | |
102 | class ProfileOptions : |
103 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.ProfileOptions) */ { |
104 | public: |
105 | ProfileOptions(); |
106 | virtual ~ProfileOptions(); |
107 | |
108 | ProfileOptions(const ProfileOptions& from); |
109 | ProfileOptions(ProfileOptions&& from) noexcept |
110 | : ProfileOptions() { |
111 | *this = ::std::move(from); |
112 | } |
113 | |
114 | inline ProfileOptions& operator=(const ProfileOptions& from) { |
115 | CopyFrom(from); |
116 | return *this; |
117 | } |
118 | inline ProfileOptions& operator=(ProfileOptions&& from) noexcept { |
119 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
120 | if (this != &from) InternalSwap(&from); |
121 | } else { |
122 | CopyFrom(from); |
123 | } |
124 | return *this; |
125 | } |
126 | |
127 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
128 | return GetDescriptor(); |
129 | } |
130 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
131 | return GetMetadataStatic().descriptor; |
132 | } |
133 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
134 | return GetMetadataStatic().reflection; |
135 | } |
136 | static const ProfileOptions& default_instance(); |
137 | |
138 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
139 | static inline const ProfileOptions* internal_default_instance() { |
140 | return reinterpret_cast<const ProfileOptions*>( |
141 | &_ProfileOptions_default_instance_); |
142 | } |
143 | static constexpr int kIndexInFileMessages = |
144 | 0; |
145 | |
146 | friend void swap(ProfileOptions& a, ProfileOptions& b) { |
147 | a.Swap(&b); |
148 | } |
149 | inline void Swap(ProfileOptions* other) { |
150 | if (other == this) return; |
151 | InternalSwap(other); |
152 | } |
153 | |
154 | // implements Message ---------------------------------------------- |
155 | |
156 | inline ProfileOptions* New() const final { |
157 | return CreateMaybeMessage<ProfileOptions>(nullptr); |
158 | } |
159 | |
160 | ProfileOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
161 | return CreateMaybeMessage<ProfileOptions>(arena); |
162 | } |
163 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
164 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
165 | void CopyFrom(const ProfileOptions& from); |
166 | void MergeFrom(const ProfileOptions& from); |
167 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
168 | bool IsInitialized() const final; |
169 | |
170 | size_t ByteSizeLong() const final; |
171 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
172 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
173 | #else |
174 | bool MergePartialFromCodedStream( |
175 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
176 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
177 | void SerializeWithCachedSizes( |
178 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
179 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
180 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
181 | int GetCachedSize() const final { return _cached_size_.Get(); } |
182 | |
183 | private: |
184 | inline void SharedCtor(); |
185 | inline void SharedDtor(); |
186 | void SetCachedSize(int size) const final; |
187 | void InternalSwap(ProfileOptions* other); |
188 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
189 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
190 | return "tensorflow.ProfileOptions" ; |
191 | } |
192 | private: |
193 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
194 | return nullptr; |
195 | } |
196 | inline void* MaybeArenaPtr() const { |
197 | return nullptr; |
198 | } |
199 | public: |
200 | |
201 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
202 | private: |
203 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
204 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto); |
205 | return ::descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto.file_level_metadata[kIndexInFileMessages]; |
206 | } |
207 | |
208 | public: |
209 | |
210 | // nested types ---------------------------------------------------- |
211 | |
212 | typedef ProfileOptions_DeviceType DeviceType; |
213 | static constexpr DeviceType UNSPECIFIED = |
214 | ProfileOptions_DeviceType_UNSPECIFIED; |
215 | static constexpr DeviceType CPU = |
216 | ProfileOptions_DeviceType_CPU; |
217 | static constexpr DeviceType GPU = |
218 | ProfileOptions_DeviceType_GPU; |
219 | static constexpr DeviceType TPU = |
220 | ProfileOptions_DeviceType_TPU; |
221 | static constexpr DeviceType PLUGGABLE_DEVICE = |
222 | ProfileOptions_DeviceType_PLUGGABLE_DEVICE; |
223 | static inline bool DeviceType_IsValid(int value) { |
224 | return ProfileOptions_DeviceType_IsValid(value); |
225 | } |
226 | static constexpr DeviceType DeviceType_MIN = |
227 | ProfileOptions_DeviceType_DeviceType_MIN; |
228 | static constexpr DeviceType DeviceType_MAX = |
229 | ProfileOptions_DeviceType_DeviceType_MAX; |
230 | static constexpr int DeviceType_ARRAYSIZE = |
231 | ProfileOptions_DeviceType_DeviceType_ARRAYSIZE; |
232 | static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* |
233 | DeviceType_descriptor() { |
234 | return ProfileOptions_DeviceType_descriptor(); |
235 | } |
236 | template<typename T> |
237 | static inline const std::string& DeviceType_Name(T enum_t_value) { |
238 | static_assert(::std::is_same<T, DeviceType>::value || |
239 | ::std::is_integral<T>::value, |
240 | "Incorrect type passed to function DeviceType_Name." ); |
241 | return ProfileOptions_DeviceType_Name(enum_t_value); |
242 | } |
243 | static inline bool DeviceType_Parse(const std::string& name, |
244 | DeviceType* value) { |
245 | return ProfileOptions_DeviceType_Parse(name, value); |
246 | } |
247 | |
248 | // accessors ------------------------------------------------------- |
249 | |
250 | enum : int { |
251 | kRepositoryPathFieldNumber = 10, |
252 | kHostTracerLevelFieldNumber = 2, |
253 | kDeviceTracerLevelFieldNumber = 3, |
254 | kPythonTracerLevelFieldNumber = 4, |
255 | kIncludeDatasetOpsFieldNumber = 1, |
256 | kEnableHloProtoFieldNumber = 7, |
257 | kVersionFieldNumber = 5, |
258 | kDeviceTypeFieldNumber = 6, |
259 | kStartTimestampNsFieldNumber = 8, |
260 | kDurationMsFieldNumber = 9, |
261 | }; |
262 | // string repository_path = 10; |
263 | void clear_repository_path(); |
264 | const std::string& repository_path() const; |
265 | void set_repository_path(const std::string& value); |
266 | void set_repository_path(std::string&& value); |
267 | void set_repository_path(const char* value); |
268 | void set_repository_path(const char* value, size_t size); |
269 | std::string* mutable_repository_path(); |
270 | std::string* release_repository_path(); |
271 | void set_allocated_repository_path(std::string* repository_path); |
272 | |
273 | // uint32 host_tracer_level = 2; |
274 | void clear_host_tracer_level(); |
275 | ::PROTOBUF_NAMESPACE_ID::uint32 host_tracer_level() const; |
276 | void set_host_tracer_level(::PROTOBUF_NAMESPACE_ID::uint32 value); |
277 | |
278 | // uint32 device_tracer_level = 3; |
279 | void clear_device_tracer_level(); |
280 | ::PROTOBUF_NAMESPACE_ID::uint32 device_tracer_level() const; |
281 | void set_device_tracer_level(::PROTOBUF_NAMESPACE_ID::uint32 value); |
282 | |
283 | // uint32 python_tracer_level = 4; |
284 | void clear_python_tracer_level(); |
285 | ::PROTOBUF_NAMESPACE_ID::uint32 python_tracer_level() const; |
286 | void set_python_tracer_level(::PROTOBUF_NAMESPACE_ID::uint32 value); |
287 | |
288 | // bool include_dataset_ops = 1; |
289 | void clear_include_dataset_ops(); |
290 | bool include_dataset_ops() const; |
291 | void set_include_dataset_ops(bool value); |
292 | |
293 | // bool enable_hlo_proto = 7; |
294 | void clear_enable_hlo_proto(); |
295 | bool enable_hlo_proto() const; |
296 | void set_enable_hlo_proto(bool value); |
297 | |
298 | // uint32 version = 5; |
299 | void clear_version(); |
300 | ::PROTOBUF_NAMESPACE_ID::uint32 version() const; |
301 | void set_version(::PROTOBUF_NAMESPACE_ID::uint32 value); |
302 | |
303 | // .tensorflow.ProfileOptions.DeviceType device_type = 6; |
304 | void clear_device_type(); |
305 | ::tensorflow::ProfileOptions_DeviceType device_type() const; |
306 | void set_device_type(::tensorflow::ProfileOptions_DeviceType value); |
307 | |
308 | // uint64 start_timestamp_ns = 8; |
309 | void clear_start_timestamp_ns(); |
310 | ::PROTOBUF_NAMESPACE_ID::uint64 start_timestamp_ns() const; |
311 | void set_start_timestamp_ns(::PROTOBUF_NAMESPACE_ID::uint64 value); |
312 | |
313 | // uint64 duration_ms = 9; |
314 | void clear_duration_ms(); |
315 | ::PROTOBUF_NAMESPACE_ID::uint64 duration_ms() const; |
316 | void set_duration_ms(::PROTOBUF_NAMESPACE_ID::uint64 value); |
317 | |
318 | // @@protoc_insertion_point(class_scope:tensorflow.ProfileOptions) |
319 | private: |
320 | class _Internal; |
321 | |
322 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
323 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr repository_path_; |
324 | ::PROTOBUF_NAMESPACE_ID::uint32 host_tracer_level_; |
325 | ::PROTOBUF_NAMESPACE_ID::uint32 device_tracer_level_; |
326 | ::PROTOBUF_NAMESPACE_ID::uint32 python_tracer_level_; |
327 | bool include_dataset_ops_; |
328 | bool enable_hlo_proto_; |
329 | ::PROTOBUF_NAMESPACE_ID::uint32 version_; |
330 | int device_type_; |
331 | ::PROTOBUF_NAMESPACE_ID::uint64 start_timestamp_ns_; |
332 | ::PROTOBUF_NAMESPACE_ID::uint64 duration_ms_; |
333 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
334 | friend struct ::TableStruct_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto; |
335 | }; |
336 | // ------------------------------------------------------------------- |
337 | |
338 | class RemoteProfilerSessionManagerOptions : |
339 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.RemoteProfilerSessionManagerOptions) */ { |
340 | public: |
341 | RemoteProfilerSessionManagerOptions(); |
342 | virtual ~RemoteProfilerSessionManagerOptions(); |
343 | |
344 | RemoteProfilerSessionManagerOptions(const RemoteProfilerSessionManagerOptions& from); |
345 | RemoteProfilerSessionManagerOptions(RemoteProfilerSessionManagerOptions&& from) noexcept |
346 | : RemoteProfilerSessionManagerOptions() { |
347 | *this = ::std::move(from); |
348 | } |
349 | |
350 | inline RemoteProfilerSessionManagerOptions& operator=(const RemoteProfilerSessionManagerOptions& from) { |
351 | CopyFrom(from); |
352 | return *this; |
353 | } |
354 | inline RemoteProfilerSessionManagerOptions& operator=(RemoteProfilerSessionManagerOptions&& from) noexcept { |
355 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
356 | if (this != &from) InternalSwap(&from); |
357 | } else { |
358 | CopyFrom(from); |
359 | } |
360 | return *this; |
361 | } |
362 | |
363 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
364 | return GetDescriptor(); |
365 | } |
366 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
367 | return GetMetadataStatic().descriptor; |
368 | } |
369 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
370 | return GetMetadataStatic().reflection; |
371 | } |
372 | static const RemoteProfilerSessionManagerOptions& default_instance(); |
373 | |
374 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
375 | static inline const RemoteProfilerSessionManagerOptions* internal_default_instance() { |
376 | return reinterpret_cast<const RemoteProfilerSessionManagerOptions*>( |
377 | &_RemoteProfilerSessionManagerOptions_default_instance_); |
378 | } |
379 | static constexpr int kIndexInFileMessages = |
380 | 1; |
381 | |
382 | friend void swap(RemoteProfilerSessionManagerOptions& a, RemoteProfilerSessionManagerOptions& b) { |
383 | a.Swap(&b); |
384 | } |
385 | inline void Swap(RemoteProfilerSessionManagerOptions* other) { |
386 | if (other == this) return; |
387 | InternalSwap(other); |
388 | } |
389 | |
390 | // implements Message ---------------------------------------------- |
391 | |
392 | inline RemoteProfilerSessionManagerOptions* New() const final { |
393 | return CreateMaybeMessage<RemoteProfilerSessionManagerOptions>(nullptr); |
394 | } |
395 | |
396 | RemoteProfilerSessionManagerOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
397 | return CreateMaybeMessage<RemoteProfilerSessionManagerOptions>(arena); |
398 | } |
399 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
400 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
401 | void CopyFrom(const RemoteProfilerSessionManagerOptions& from); |
402 | void MergeFrom(const RemoteProfilerSessionManagerOptions& from); |
403 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
404 | bool IsInitialized() const final; |
405 | |
406 | size_t ByteSizeLong() const final; |
407 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
408 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
409 | #else |
410 | bool MergePartialFromCodedStream( |
411 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
412 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
413 | void SerializeWithCachedSizes( |
414 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
415 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
416 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
417 | int GetCachedSize() const final { return _cached_size_.Get(); } |
418 | |
419 | private: |
420 | inline void SharedCtor(); |
421 | inline void SharedDtor(); |
422 | void SetCachedSize(int size) const final; |
423 | void InternalSwap(RemoteProfilerSessionManagerOptions* other); |
424 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
425 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
426 | return "tensorflow.RemoteProfilerSessionManagerOptions" ; |
427 | } |
428 | private: |
429 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
430 | return nullptr; |
431 | } |
432 | inline void* MaybeArenaPtr() const { |
433 | return nullptr; |
434 | } |
435 | public: |
436 | |
437 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
438 | private: |
439 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
440 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto); |
441 | return ::descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto.file_level_metadata[kIndexInFileMessages]; |
442 | } |
443 | |
444 | public: |
445 | |
446 | // nested types ---------------------------------------------------- |
447 | |
448 | // accessors ------------------------------------------------------- |
449 | |
450 | enum : int { |
451 | kServiceAddressesFieldNumber = 2, |
452 | kProfilerOptionsFieldNumber = 1, |
453 | kSessionCreationTimestampNsFieldNumber = 3, |
454 | kMaxSessionDurationMsFieldNumber = 4, |
455 | kDelayMsFieldNumber = 5, |
456 | }; |
457 | // repeated string service_addresses = 2; |
458 | int service_addresses_size() const; |
459 | void clear_service_addresses(); |
460 | const std::string& service_addresses(int index) const; |
461 | std::string* mutable_service_addresses(int index); |
462 | void set_service_addresses(int index, const std::string& value); |
463 | void set_service_addresses(int index, std::string&& value); |
464 | void set_service_addresses(int index, const char* value); |
465 | void set_service_addresses(int index, const char* value, size_t size); |
466 | std::string* add_service_addresses(); |
467 | void add_service_addresses(const std::string& value); |
468 | void add_service_addresses(std::string&& value); |
469 | void add_service_addresses(const char* value); |
470 | void add_service_addresses(const char* value, size_t size); |
471 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& service_addresses() const; |
472 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_service_addresses(); |
473 | |
474 | // .tensorflow.ProfileOptions profiler_options = 1; |
475 | bool has_profiler_options() const; |
476 | void clear_profiler_options(); |
477 | const ::tensorflow::ProfileOptions& profiler_options() const; |
478 | ::tensorflow::ProfileOptions* release_profiler_options(); |
479 | ::tensorflow::ProfileOptions* mutable_profiler_options(); |
480 | void set_allocated_profiler_options(::tensorflow::ProfileOptions* profiler_options); |
481 | |
482 | // uint64 session_creation_timestamp_ns = 3; |
483 | void clear_session_creation_timestamp_ns(); |
484 | ::PROTOBUF_NAMESPACE_ID::uint64 session_creation_timestamp_ns() const; |
485 | void set_session_creation_timestamp_ns(::PROTOBUF_NAMESPACE_ID::uint64 value); |
486 | |
487 | // uint64 max_session_duration_ms = 4; |
488 | void clear_max_session_duration_ms(); |
489 | ::PROTOBUF_NAMESPACE_ID::uint64 max_session_duration_ms() const; |
490 | void set_max_session_duration_ms(::PROTOBUF_NAMESPACE_ID::uint64 value); |
491 | |
492 | // uint64 delay_ms = 5; |
493 | void clear_delay_ms(); |
494 | ::PROTOBUF_NAMESPACE_ID::uint64 delay_ms() const; |
495 | void set_delay_ms(::PROTOBUF_NAMESPACE_ID::uint64 value); |
496 | |
497 | // @@protoc_insertion_point(class_scope:tensorflow.RemoteProfilerSessionManagerOptions) |
498 | private: |
499 | class _Internal; |
500 | |
501 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
502 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> service_addresses_; |
503 | ::tensorflow::ProfileOptions* profiler_options_; |
504 | ::PROTOBUF_NAMESPACE_ID::uint64 session_creation_timestamp_ns_; |
505 | ::PROTOBUF_NAMESPACE_ID::uint64 max_session_duration_ms_; |
506 | ::PROTOBUF_NAMESPACE_ID::uint64 delay_ms_; |
507 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
508 | friend struct ::TableStruct_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto; |
509 | }; |
510 | // =================================================================== |
511 | |
512 | |
513 | // =================================================================== |
514 | |
515 | #ifdef __GNUC__ |
516 | #pragma GCC diagnostic push |
517 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
518 | #endif // __GNUC__ |
519 | // ProfileOptions |
520 | |
521 | // uint32 version = 5; |
522 | inline void ProfileOptions::clear_version() { |
523 | version_ = 0u; |
524 | } |
525 | inline ::PROTOBUF_NAMESPACE_ID::uint32 ProfileOptions::version() const { |
526 | // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.version) |
527 | return version_; |
528 | } |
529 | inline void ProfileOptions::set_version(::PROTOBUF_NAMESPACE_ID::uint32 value) { |
530 | |
531 | version_ = value; |
532 | // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.version) |
533 | } |
534 | |
535 | // .tensorflow.ProfileOptions.DeviceType device_type = 6; |
536 | inline void ProfileOptions::clear_device_type() { |
537 | device_type_ = 0; |
538 | } |
539 | inline ::tensorflow::ProfileOptions_DeviceType ProfileOptions::device_type() const { |
540 | // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.device_type) |
541 | return static_cast< ::tensorflow::ProfileOptions_DeviceType >(device_type_); |
542 | } |
543 | inline void ProfileOptions::set_device_type(::tensorflow::ProfileOptions_DeviceType value) { |
544 | |
545 | device_type_ = value; |
546 | // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.device_type) |
547 | } |
548 | |
549 | // bool include_dataset_ops = 1; |
550 | inline void ProfileOptions::clear_include_dataset_ops() { |
551 | include_dataset_ops_ = false; |
552 | } |
553 | inline bool ProfileOptions::include_dataset_ops() const { |
554 | // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.include_dataset_ops) |
555 | return include_dataset_ops_; |
556 | } |
557 | inline void ProfileOptions::set_include_dataset_ops(bool value) { |
558 | |
559 | include_dataset_ops_ = value; |
560 | // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.include_dataset_ops) |
561 | } |
562 | |
563 | // uint32 host_tracer_level = 2; |
564 | inline void ProfileOptions::clear_host_tracer_level() { |
565 | host_tracer_level_ = 0u; |
566 | } |
567 | inline ::PROTOBUF_NAMESPACE_ID::uint32 ProfileOptions::host_tracer_level() const { |
568 | // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.host_tracer_level) |
569 | return host_tracer_level_; |
570 | } |
571 | inline void ProfileOptions::set_host_tracer_level(::PROTOBUF_NAMESPACE_ID::uint32 value) { |
572 | |
573 | host_tracer_level_ = value; |
574 | // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.host_tracer_level) |
575 | } |
576 | |
577 | // uint32 device_tracer_level = 3; |
578 | inline void ProfileOptions::clear_device_tracer_level() { |
579 | device_tracer_level_ = 0u; |
580 | } |
581 | inline ::PROTOBUF_NAMESPACE_ID::uint32 ProfileOptions::device_tracer_level() const { |
582 | // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.device_tracer_level) |
583 | return device_tracer_level_; |
584 | } |
585 | inline void ProfileOptions::set_device_tracer_level(::PROTOBUF_NAMESPACE_ID::uint32 value) { |
586 | |
587 | device_tracer_level_ = value; |
588 | // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.device_tracer_level) |
589 | } |
590 | |
591 | // uint32 python_tracer_level = 4; |
592 | inline void ProfileOptions::clear_python_tracer_level() { |
593 | python_tracer_level_ = 0u; |
594 | } |
595 | inline ::PROTOBUF_NAMESPACE_ID::uint32 ProfileOptions::python_tracer_level() const { |
596 | // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.python_tracer_level) |
597 | return python_tracer_level_; |
598 | } |
599 | inline void ProfileOptions::set_python_tracer_level(::PROTOBUF_NAMESPACE_ID::uint32 value) { |
600 | |
601 | python_tracer_level_ = value; |
602 | // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.python_tracer_level) |
603 | } |
604 | |
605 | // bool enable_hlo_proto = 7; |
606 | inline void ProfileOptions::clear_enable_hlo_proto() { |
607 | enable_hlo_proto_ = false; |
608 | } |
609 | inline bool ProfileOptions::enable_hlo_proto() const { |
610 | // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.enable_hlo_proto) |
611 | return enable_hlo_proto_; |
612 | } |
613 | inline void ProfileOptions::set_enable_hlo_proto(bool value) { |
614 | |
615 | enable_hlo_proto_ = value; |
616 | // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.enable_hlo_proto) |
617 | } |
618 | |
619 | // uint64 start_timestamp_ns = 8; |
620 | inline void ProfileOptions::clear_start_timestamp_ns() { |
621 | start_timestamp_ns_ = PROTOBUF_ULONGLONG(0); |
622 | } |
623 | inline ::PROTOBUF_NAMESPACE_ID::uint64 ProfileOptions::start_timestamp_ns() const { |
624 | // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.start_timestamp_ns) |
625 | return start_timestamp_ns_; |
626 | } |
627 | inline void ProfileOptions::set_start_timestamp_ns(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
628 | |
629 | start_timestamp_ns_ = value; |
630 | // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.start_timestamp_ns) |
631 | } |
632 | |
633 | // uint64 duration_ms = 9; |
634 | inline void ProfileOptions::clear_duration_ms() { |
635 | duration_ms_ = PROTOBUF_ULONGLONG(0); |
636 | } |
637 | inline ::PROTOBUF_NAMESPACE_ID::uint64 ProfileOptions::duration_ms() const { |
638 | // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.duration_ms) |
639 | return duration_ms_; |
640 | } |
641 | inline void ProfileOptions::set_duration_ms(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
642 | |
643 | duration_ms_ = value; |
644 | // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.duration_ms) |
645 | } |
646 | |
647 | // string repository_path = 10; |
648 | inline void ProfileOptions::clear_repository_path() { |
649 | repository_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
650 | } |
651 | inline const std::string& ProfileOptions::repository_path() const { |
652 | // @@protoc_insertion_point(field_get:tensorflow.ProfileOptions.repository_path) |
653 | return repository_path_.GetNoArena(); |
654 | } |
655 | inline void ProfileOptions::set_repository_path(const std::string& value) { |
656 | |
657 | repository_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
658 | // @@protoc_insertion_point(field_set:tensorflow.ProfileOptions.repository_path) |
659 | } |
660 | inline void ProfileOptions::set_repository_path(std::string&& value) { |
661 | |
662 | repository_path_.SetNoArena( |
663 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
664 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.ProfileOptions.repository_path) |
665 | } |
666 | inline void ProfileOptions::set_repository_path(const char* value) { |
667 | GOOGLE_DCHECK(value != nullptr); |
668 | |
669 | repository_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
670 | // @@protoc_insertion_point(field_set_char:tensorflow.ProfileOptions.repository_path) |
671 | } |
672 | inline void ProfileOptions::set_repository_path(const char* value, size_t size) { |
673 | |
674 | repository_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
675 | ::std::string(reinterpret_cast<const char*>(value), size)); |
676 | // @@protoc_insertion_point(field_set_pointer:tensorflow.ProfileOptions.repository_path) |
677 | } |
678 | inline std::string* ProfileOptions::mutable_repository_path() { |
679 | |
680 | // @@protoc_insertion_point(field_mutable:tensorflow.ProfileOptions.repository_path) |
681 | return repository_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
682 | } |
683 | inline std::string* ProfileOptions::release_repository_path() { |
684 | // @@protoc_insertion_point(field_release:tensorflow.ProfileOptions.repository_path) |
685 | |
686 | return repository_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
687 | } |
688 | inline void ProfileOptions::set_allocated_repository_path(std::string* repository_path) { |
689 | if (repository_path != nullptr) { |
690 | |
691 | } else { |
692 | |
693 | } |
694 | repository_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), repository_path); |
695 | // @@protoc_insertion_point(field_set_allocated:tensorflow.ProfileOptions.repository_path) |
696 | } |
697 | |
698 | // ------------------------------------------------------------------- |
699 | |
700 | // RemoteProfilerSessionManagerOptions |
701 | |
702 | // .tensorflow.ProfileOptions profiler_options = 1; |
703 | inline bool RemoteProfilerSessionManagerOptions::has_profiler_options() const { |
704 | return this != internal_default_instance() && profiler_options_ != nullptr; |
705 | } |
706 | inline void RemoteProfilerSessionManagerOptions::clear_profiler_options() { |
707 | if (GetArenaNoVirtual() == nullptr && profiler_options_ != nullptr) { |
708 | delete profiler_options_; |
709 | } |
710 | profiler_options_ = nullptr; |
711 | } |
712 | inline const ::tensorflow::ProfileOptions& RemoteProfilerSessionManagerOptions::profiler_options() const { |
713 | const ::tensorflow::ProfileOptions* p = profiler_options_; |
714 | // @@protoc_insertion_point(field_get:tensorflow.RemoteProfilerSessionManagerOptions.profiler_options) |
715 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::ProfileOptions*>( |
716 | &::tensorflow::_ProfileOptions_default_instance_); |
717 | } |
718 | inline ::tensorflow::ProfileOptions* RemoteProfilerSessionManagerOptions::release_profiler_options() { |
719 | // @@protoc_insertion_point(field_release:tensorflow.RemoteProfilerSessionManagerOptions.profiler_options) |
720 | |
721 | ::tensorflow::ProfileOptions* temp = profiler_options_; |
722 | profiler_options_ = nullptr; |
723 | return temp; |
724 | } |
725 | inline ::tensorflow::ProfileOptions* RemoteProfilerSessionManagerOptions::mutable_profiler_options() { |
726 | |
727 | if (profiler_options_ == nullptr) { |
728 | auto* p = CreateMaybeMessage<::tensorflow::ProfileOptions>(GetArenaNoVirtual()); |
729 | profiler_options_ = p; |
730 | } |
731 | // @@protoc_insertion_point(field_mutable:tensorflow.RemoteProfilerSessionManagerOptions.profiler_options) |
732 | return profiler_options_; |
733 | } |
734 | inline void RemoteProfilerSessionManagerOptions::set_allocated_profiler_options(::tensorflow::ProfileOptions* profiler_options) { |
735 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
736 | if (message_arena == nullptr) { |
737 | delete profiler_options_; |
738 | } |
739 | if (profiler_options) { |
740 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
741 | if (message_arena != submessage_arena) { |
742 | profiler_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
743 | message_arena, profiler_options, submessage_arena); |
744 | } |
745 | |
746 | } else { |
747 | |
748 | } |
749 | profiler_options_ = profiler_options; |
750 | // @@protoc_insertion_point(field_set_allocated:tensorflow.RemoteProfilerSessionManagerOptions.profiler_options) |
751 | } |
752 | |
753 | // repeated string service_addresses = 2; |
754 | inline int RemoteProfilerSessionManagerOptions::service_addresses_size() const { |
755 | return service_addresses_.size(); |
756 | } |
757 | inline void RemoteProfilerSessionManagerOptions::clear_service_addresses() { |
758 | service_addresses_.Clear(); |
759 | } |
760 | inline const std::string& RemoteProfilerSessionManagerOptions::service_addresses(int index) const { |
761 | // @@protoc_insertion_point(field_get:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
762 | return service_addresses_.Get(index); |
763 | } |
764 | inline std::string* RemoteProfilerSessionManagerOptions::mutable_service_addresses(int index) { |
765 | // @@protoc_insertion_point(field_mutable:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
766 | return service_addresses_.Mutable(index); |
767 | } |
768 | inline void RemoteProfilerSessionManagerOptions::set_service_addresses(int index, const std::string& value) { |
769 | // @@protoc_insertion_point(field_set:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
770 | service_addresses_.Mutable(index)->assign(value); |
771 | } |
772 | inline void RemoteProfilerSessionManagerOptions::set_service_addresses(int index, std::string&& value) { |
773 | // @@protoc_insertion_point(field_set:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
774 | service_addresses_.Mutable(index)->assign(std::move(value)); |
775 | } |
776 | inline void RemoteProfilerSessionManagerOptions::set_service_addresses(int index, const char* value) { |
777 | GOOGLE_DCHECK(value != nullptr); |
778 | service_addresses_.Mutable(index)->assign(value); |
779 | // @@protoc_insertion_point(field_set_char:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
780 | } |
781 | inline void RemoteProfilerSessionManagerOptions::set_service_addresses(int index, const char* value, size_t size) { |
782 | service_addresses_.Mutable(index)->assign( |
783 | reinterpret_cast<const char*>(value), size); |
784 | // @@protoc_insertion_point(field_set_pointer:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
785 | } |
786 | inline std::string* RemoteProfilerSessionManagerOptions::add_service_addresses() { |
787 | // @@protoc_insertion_point(field_add_mutable:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
788 | return service_addresses_.Add(); |
789 | } |
790 | inline void RemoteProfilerSessionManagerOptions::add_service_addresses(const std::string& value) { |
791 | service_addresses_.Add()->assign(value); |
792 | // @@protoc_insertion_point(field_add:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
793 | } |
794 | inline void RemoteProfilerSessionManagerOptions::add_service_addresses(std::string&& value) { |
795 | service_addresses_.Add(std::move(value)); |
796 | // @@protoc_insertion_point(field_add:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
797 | } |
798 | inline void RemoteProfilerSessionManagerOptions::add_service_addresses(const char* value) { |
799 | GOOGLE_DCHECK(value != nullptr); |
800 | service_addresses_.Add()->assign(value); |
801 | // @@protoc_insertion_point(field_add_char:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
802 | } |
803 | inline void RemoteProfilerSessionManagerOptions::add_service_addresses(const char* value, size_t size) { |
804 | service_addresses_.Add()->assign(reinterpret_cast<const char*>(value), size); |
805 | // @@protoc_insertion_point(field_add_pointer:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
806 | } |
807 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
808 | RemoteProfilerSessionManagerOptions::service_addresses() const { |
809 | // @@protoc_insertion_point(field_list:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
810 | return service_addresses_; |
811 | } |
812 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
813 | RemoteProfilerSessionManagerOptions::mutable_service_addresses() { |
814 | // @@protoc_insertion_point(field_mutable_list:tensorflow.RemoteProfilerSessionManagerOptions.service_addresses) |
815 | return &service_addresses_; |
816 | } |
817 | |
818 | // uint64 session_creation_timestamp_ns = 3; |
819 | inline void RemoteProfilerSessionManagerOptions::clear_session_creation_timestamp_ns() { |
820 | session_creation_timestamp_ns_ = PROTOBUF_ULONGLONG(0); |
821 | } |
822 | inline ::PROTOBUF_NAMESPACE_ID::uint64 RemoteProfilerSessionManagerOptions::session_creation_timestamp_ns() const { |
823 | // @@protoc_insertion_point(field_get:tensorflow.RemoteProfilerSessionManagerOptions.session_creation_timestamp_ns) |
824 | return session_creation_timestamp_ns_; |
825 | } |
826 | inline void RemoteProfilerSessionManagerOptions::set_session_creation_timestamp_ns(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
827 | |
828 | session_creation_timestamp_ns_ = value; |
829 | // @@protoc_insertion_point(field_set:tensorflow.RemoteProfilerSessionManagerOptions.session_creation_timestamp_ns) |
830 | } |
831 | |
832 | // uint64 max_session_duration_ms = 4; |
833 | inline void RemoteProfilerSessionManagerOptions::clear_max_session_duration_ms() { |
834 | max_session_duration_ms_ = PROTOBUF_ULONGLONG(0); |
835 | } |
836 | inline ::PROTOBUF_NAMESPACE_ID::uint64 RemoteProfilerSessionManagerOptions::max_session_duration_ms() const { |
837 | // @@protoc_insertion_point(field_get:tensorflow.RemoteProfilerSessionManagerOptions.max_session_duration_ms) |
838 | return max_session_duration_ms_; |
839 | } |
840 | inline void RemoteProfilerSessionManagerOptions::set_max_session_duration_ms(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
841 | |
842 | max_session_duration_ms_ = value; |
843 | // @@protoc_insertion_point(field_set:tensorflow.RemoteProfilerSessionManagerOptions.max_session_duration_ms) |
844 | } |
845 | |
846 | // uint64 delay_ms = 5; |
847 | inline void RemoteProfilerSessionManagerOptions::clear_delay_ms() { |
848 | delay_ms_ = PROTOBUF_ULONGLONG(0); |
849 | } |
850 | inline ::PROTOBUF_NAMESPACE_ID::uint64 RemoteProfilerSessionManagerOptions::delay_ms() const { |
851 | // @@protoc_insertion_point(field_get:tensorflow.RemoteProfilerSessionManagerOptions.delay_ms) |
852 | return delay_ms_; |
853 | } |
854 | inline void RemoteProfilerSessionManagerOptions::set_delay_ms(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
855 | |
856 | delay_ms_ = value; |
857 | // @@protoc_insertion_point(field_set:tensorflow.RemoteProfilerSessionManagerOptions.delay_ms) |
858 | } |
859 | |
860 | #ifdef __GNUC__ |
861 | #pragma GCC diagnostic pop |
862 | #endif // __GNUC__ |
863 | // ------------------------------------------------------------------- |
864 | |
865 | |
866 | // @@protoc_insertion_point(namespace_scope) |
867 | |
868 | } // namespace tensorflow |
869 | |
870 | PROTOBUF_NAMESPACE_OPEN |
871 | |
872 | template <> struct is_proto_enum< ::tensorflow::ProfileOptions_DeviceType> : ::std::true_type {}; |
873 | template <> |
874 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::ProfileOptions_DeviceType>() { |
875 | return ::tensorflow::ProfileOptions_DeviceType_descriptor(); |
876 | } |
877 | |
878 | PROTOBUF_NAMESPACE_CLOSE |
879 | |
880 | // @@protoc_insertion_point(global_scope) |
881 | |
882 | #include <google/protobuf/port_undef.inc> |
883 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprofiler_2fprofiler_5foptions_2eproto |
884 | |