1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/framework/dataset_options.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdataset_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 | #include "tensorflow/core/framework/model.pb.h" |
37 | // @@protoc_insertion_point(includes) |
38 | #include <google/protobuf/port_def.inc> |
39 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto |
40 | PROTOBUF_NAMESPACE_OPEN |
41 | namespace internal { |
42 | class AnyMetadata; |
43 | } // namespace internal |
44 | PROTOBUF_NAMESPACE_CLOSE |
45 | |
46 | // Internal implementation detail -- do not use these members. |
47 | struct TableStruct_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto { |
48 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
49 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
50 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
51 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[6] |
53 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
54 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
55 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
56 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
57 | }; |
58 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto; |
59 | namespace tensorflow { |
60 | namespace data { |
61 | class AutotuneOptions; |
62 | class AutotuneOptionsDefaultTypeInternal; |
63 | extern AutotuneOptionsDefaultTypeInternal _AutotuneOptions_default_instance_; |
64 | class CardinalityOptions; |
65 | class CardinalityOptionsDefaultTypeInternal; |
66 | extern CardinalityOptionsDefaultTypeInternal _CardinalityOptions_default_instance_; |
67 | class DistributeOptions; |
68 | class DistributeOptionsDefaultTypeInternal; |
69 | extern DistributeOptionsDefaultTypeInternal _DistributeOptions_default_instance_; |
70 | class OptimizationOptions; |
71 | class OptimizationOptionsDefaultTypeInternal; |
72 | extern OptimizationOptionsDefaultTypeInternal _OptimizationOptions_default_instance_; |
73 | class Options; |
74 | class OptionsDefaultTypeInternal; |
75 | extern OptionsDefaultTypeInternal _Options_default_instance_; |
76 | class ThreadingOptions; |
77 | class ThreadingOptionsDefaultTypeInternal; |
78 | extern ThreadingOptionsDefaultTypeInternal _ThreadingOptions_default_instance_; |
79 | } // namespace data |
80 | } // namespace tensorflow |
81 | PROTOBUF_NAMESPACE_OPEN |
82 | template<> ::tensorflow::data::AutotuneOptions* Arena::CreateMaybeMessage<::tensorflow::data::AutotuneOptions>(Arena*); |
83 | template<> ::tensorflow::data::CardinalityOptions* Arena::CreateMaybeMessage<::tensorflow::data::CardinalityOptions>(Arena*); |
84 | template<> ::tensorflow::data::DistributeOptions* Arena::CreateMaybeMessage<::tensorflow::data::DistributeOptions>(Arena*); |
85 | template<> ::tensorflow::data::OptimizationOptions* Arena::CreateMaybeMessage<::tensorflow::data::OptimizationOptions>(Arena*); |
86 | template<> ::tensorflow::data::Options* Arena::CreateMaybeMessage<::tensorflow::data::Options>(Arena*); |
87 | template<> ::tensorflow::data::ThreadingOptions* Arena::CreateMaybeMessage<::tensorflow::data::ThreadingOptions>(Arena*); |
88 | PROTOBUF_NAMESPACE_CLOSE |
89 | namespace tensorflow { |
90 | namespace data { |
91 | |
92 | enum CardinalityOptions_ComputeLevel : int { |
93 | CardinalityOptions_ComputeLevel_CARDINALITY_COMPUTE_UNSPECIFIED = 0, |
94 | CardinalityOptions_ComputeLevel_CARDINALITY_COMPUTE_LOW = 1, |
95 | CardinalityOptions_ComputeLevel_CARDINALITY_COMPUTE_MODERATE = 2, |
96 | CardinalityOptions_ComputeLevel_CardinalityOptions_ComputeLevel_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
97 | CardinalityOptions_ComputeLevel_CardinalityOptions_ComputeLevel_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
98 | }; |
99 | bool CardinalityOptions_ComputeLevel_IsValid(int value); |
100 | constexpr CardinalityOptions_ComputeLevel CardinalityOptions_ComputeLevel_ComputeLevel_MIN = CardinalityOptions_ComputeLevel_CARDINALITY_COMPUTE_UNSPECIFIED; |
101 | constexpr CardinalityOptions_ComputeLevel CardinalityOptions_ComputeLevel_ComputeLevel_MAX = CardinalityOptions_ComputeLevel_CARDINALITY_COMPUTE_MODERATE; |
102 | constexpr int CardinalityOptions_ComputeLevel_ComputeLevel_ARRAYSIZE = CardinalityOptions_ComputeLevel_ComputeLevel_MAX + 1; |
103 | |
104 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CardinalityOptions_ComputeLevel_descriptor(); |
105 | template<typename T> |
106 | inline const std::string& CardinalityOptions_ComputeLevel_Name(T enum_t_value) { |
107 | static_assert(::std::is_same<T, CardinalityOptions_ComputeLevel>::value || |
108 | ::std::is_integral<T>::value, |
109 | "Incorrect type passed to function CardinalityOptions_ComputeLevel_Name." ); |
110 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
111 | CardinalityOptions_ComputeLevel_descriptor(), enum_t_value); |
112 | } |
113 | inline bool CardinalityOptions_ComputeLevel_Parse( |
114 | const std::string& name, CardinalityOptions_ComputeLevel* value) { |
115 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<CardinalityOptions_ComputeLevel>( |
116 | CardinalityOptions_ComputeLevel_descriptor(), name, value); |
117 | } |
118 | enum AutoShardPolicy : int { |
119 | AUTO = 0, |
120 | FILE = 1, |
121 | DATA = 2, |
122 | HINT = 3, |
123 | OFF = -1, |
124 | AutoShardPolicy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
125 | AutoShardPolicy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
126 | }; |
127 | bool AutoShardPolicy_IsValid(int value); |
128 | constexpr AutoShardPolicy AutoShardPolicy_MIN = OFF; |
129 | constexpr AutoShardPolicy AutoShardPolicy_MAX = HINT; |
130 | constexpr int AutoShardPolicy_ARRAYSIZE = AutoShardPolicy_MAX + 1; |
131 | |
132 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AutoShardPolicy_descriptor(); |
133 | template<typename T> |
134 | inline const std::string& AutoShardPolicy_Name(T enum_t_value) { |
135 | static_assert(::std::is_same<T, AutoShardPolicy>::value || |
136 | ::std::is_integral<T>::value, |
137 | "Incorrect type passed to function AutoShardPolicy_Name." ); |
138 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
139 | AutoShardPolicy_descriptor(), enum_t_value); |
140 | } |
141 | inline bool AutoShardPolicy_Parse( |
142 | const std::string& name, AutoShardPolicy* value) { |
143 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AutoShardPolicy>( |
144 | AutoShardPolicy_descriptor(), name, value); |
145 | } |
146 | enum ExternalStatePolicy : int { |
147 | POLICY_WARN = 0, |
148 | POLICY_IGNORE = 1, |
149 | POLICY_FAIL = 2, |
150 | ExternalStatePolicy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
151 | ExternalStatePolicy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
152 | }; |
153 | bool ExternalStatePolicy_IsValid(int value); |
154 | constexpr ExternalStatePolicy ExternalStatePolicy_MIN = POLICY_WARN; |
155 | constexpr ExternalStatePolicy ExternalStatePolicy_MAX = POLICY_FAIL; |
156 | constexpr int ExternalStatePolicy_ARRAYSIZE = ExternalStatePolicy_MAX + 1; |
157 | |
158 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ExternalStatePolicy_descriptor(); |
159 | template<typename T> |
160 | inline const std::string& ExternalStatePolicy_Name(T enum_t_value) { |
161 | static_assert(::std::is_same<T, ExternalStatePolicy>::value || |
162 | ::std::is_integral<T>::value, |
163 | "Incorrect type passed to function ExternalStatePolicy_Name." ); |
164 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
165 | ExternalStatePolicy_descriptor(), enum_t_value); |
166 | } |
167 | inline bool ExternalStatePolicy_Parse( |
168 | const std::string& name, ExternalStatePolicy* value) { |
169 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ExternalStatePolicy>( |
170 | ExternalStatePolicy_descriptor(), name, value); |
171 | } |
172 | // =================================================================== |
173 | |
174 | class AutotuneOptions : |
175 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.AutotuneOptions) */ { |
176 | public: |
177 | AutotuneOptions(); |
178 | virtual ~AutotuneOptions(); |
179 | |
180 | AutotuneOptions(const AutotuneOptions& from); |
181 | AutotuneOptions(AutotuneOptions&& from) noexcept |
182 | : AutotuneOptions() { |
183 | *this = ::std::move(from); |
184 | } |
185 | |
186 | inline AutotuneOptions& operator=(const AutotuneOptions& from) { |
187 | CopyFrom(from); |
188 | return *this; |
189 | } |
190 | inline AutotuneOptions& operator=(AutotuneOptions&& from) noexcept { |
191 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
192 | if (this != &from) InternalSwap(&from); |
193 | } else { |
194 | CopyFrom(from); |
195 | } |
196 | return *this; |
197 | } |
198 | |
199 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
200 | return GetDescriptor(); |
201 | } |
202 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
203 | return GetMetadataStatic().descriptor; |
204 | } |
205 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
206 | return GetMetadataStatic().reflection; |
207 | } |
208 | static const AutotuneOptions& default_instance(); |
209 | |
210 | enum OptionalEnabledCase { |
211 | kEnabled = 1, |
212 | OPTIONAL_ENABLED_NOT_SET = 0, |
213 | }; |
214 | |
215 | enum OptionalCpuBudgetCase { |
216 | kCpuBudget = 2, |
217 | OPTIONAL_CPU_BUDGET_NOT_SET = 0, |
218 | }; |
219 | |
220 | enum OptionalRamBudgetCase { |
221 | kRamBudget = 3, |
222 | OPTIONAL_RAM_BUDGET_NOT_SET = 0, |
223 | }; |
224 | |
225 | enum OptionalAutotuneAlgorithmCase { |
226 | kAutotuneAlgorithm = 4, |
227 | OPTIONAL_AUTOTUNE_ALGORITHM_NOT_SET = 0, |
228 | }; |
229 | |
230 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
231 | static inline const AutotuneOptions* internal_default_instance() { |
232 | return reinterpret_cast<const AutotuneOptions*>( |
233 | &_AutotuneOptions_default_instance_); |
234 | } |
235 | static constexpr int kIndexInFileMessages = |
236 | 0; |
237 | |
238 | friend void swap(AutotuneOptions& a, AutotuneOptions& b) { |
239 | a.Swap(&b); |
240 | } |
241 | inline void Swap(AutotuneOptions* other) { |
242 | if (other == this) return; |
243 | InternalSwap(other); |
244 | } |
245 | |
246 | // implements Message ---------------------------------------------- |
247 | |
248 | inline AutotuneOptions* New() const final { |
249 | return CreateMaybeMessage<AutotuneOptions>(nullptr); |
250 | } |
251 | |
252 | AutotuneOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
253 | return CreateMaybeMessage<AutotuneOptions>(arena); |
254 | } |
255 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
256 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
257 | void CopyFrom(const AutotuneOptions& from); |
258 | void MergeFrom(const AutotuneOptions& from); |
259 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
260 | bool IsInitialized() const final; |
261 | |
262 | size_t ByteSizeLong() const final; |
263 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
264 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
265 | #else |
266 | bool MergePartialFromCodedStream( |
267 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
268 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
269 | void SerializeWithCachedSizes( |
270 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
271 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
272 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
273 | int GetCachedSize() const final { return _cached_size_.Get(); } |
274 | |
275 | private: |
276 | inline void SharedCtor(); |
277 | inline void SharedDtor(); |
278 | void SetCachedSize(int size) const final; |
279 | void InternalSwap(AutotuneOptions* other); |
280 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
281 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
282 | return "tensorflow.data.AutotuneOptions" ; |
283 | } |
284 | private: |
285 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
286 | return nullptr; |
287 | } |
288 | inline void* MaybeArenaPtr() const { |
289 | return nullptr; |
290 | } |
291 | public: |
292 | |
293 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
294 | private: |
295 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
296 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto); |
297 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto.file_level_metadata[kIndexInFileMessages]; |
298 | } |
299 | |
300 | public: |
301 | |
302 | // nested types ---------------------------------------------------- |
303 | |
304 | // accessors ------------------------------------------------------- |
305 | |
306 | enum : int { |
307 | kEnabledFieldNumber = 1, |
308 | kCpuBudgetFieldNumber = 2, |
309 | kRamBudgetFieldNumber = 3, |
310 | kAutotuneAlgorithmFieldNumber = 4, |
311 | }; |
312 | // bool enabled = 1; |
313 | private: |
314 | bool has_enabled() const; |
315 | public: |
316 | void clear_enabled(); |
317 | bool enabled() const; |
318 | void set_enabled(bool value); |
319 | |
320 | // int32 cpu_budget = 2; |
321 | private: |
322 | bool has_cpu_budget() const; |
323 | public: |
324 | void clear_cpu_budget(); |
325 | ::PROTOBUF_NAMESPACE_ID::int32 cpu_budget() const; |
326 | void set_cpu_budget(::PROTOBUF_NAMESPACE_ID::int32 value); |
327 | |
328 | // int64 ram_budget = 3; |
329 | private: |
330 | bool has_ram_budget() const; |
331 | public: |
332 | void clear_ram_budget(); |
333 | ::PROTOBUF_NAMESPACE_ID::int64 ram_budget() const; |
334 | void set_ram_budget(::PROTOBUF_NAMESPACE_ID::int64 value); |
335 | |
336 | // .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; |
337 | private: |
338 | bool has_autotune_algorithm() const; |
339 | public: |
340 | void clear_autotune_algorithm(); |
341 | ::tensorflow::data::model::AutotuneAlgorithm autotune_algorithm() const; |
342 | void set_autotune_algorithm(::tensorflow::data::model::AutotuneAlgorithm value); |
343 | |
344 | void clear_optional_enabled(); |
345 | OptionalEnabledCase optional_enabled_case() const; |
346 | void clear_optional_cpu_budget(); |
347 | OptionalCpuBudgetCase optional_cpu_budget_case() const; |
348 | void clear_optional_ram_budget(); |
349 | OptionalRamBudgetCase optional_ram_budget_case() const; |
350 | void clear_optional_autotune_algorithm(); |
351 | OptionalAutotuneAlgorithmCase optional_autotune_algorithm_case() const; |
352 | // @@protoc_insertion_point(class_scope:tensorflow.data.AutotuneOptions) |
353 | private: |
354 | class _Internal; |
355 | void set_has_enabled(); |
356 | void set_has_cpu_budget(); |
357 | void set_has_ram_budget(); |
358 | void set_has_autotune_algorithm(); |
359 | |
360 | inline bool has_optional_enabled() const; |
361 | inline void clear_has_optional_enabled(); |
362 | |
363 | inline bool has_optional_cpu_budget() const; |
364 | inline void clear_has_optional_cpu_budget(); |
365 | |
366 | inline bool has_optional_ram_budget() const; |
367 | inline void clear_has_optional_ram_budget(); |
368 | |
369 | inline bool has_optional_autotune_algorithm() const; |
370 | inline void clear_has_optional_autotune_algorithm(); |
371 | |
372 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
373 | union OptionalEnabledUnion { |
374 | OptionalEnabledUnion() {} |
375 | bool enabled_; |
376 | } optional_enabled_; |
377 | union OptionalCpuBudgetUnion { |
378 | OptionalCpuBudgetUnion() {} |
379 | ::PROTOBUF_NAMESPACE_ID::int32 cpu_budget_; |
380 | } optional_cpu_budget_; |
381 | union OptionalRamBudgetUnion { |
382 | OptionalRamBudgetUnion() {} |
383 | ::PROTOBUF_NAMESPACE_ID::int64 ram_budget_; |
384 | } optional_ram_budget_; |
385 | union OptionalAutotuneAlgorithmUnion { |
386 | OptionalAutotuneAlgorithmUnion() {} |
387 | int autotune_algorithm_; |
388 | } optional_autotune_algorithm_; |
389 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
390 | ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[4]; |
391 | |
392 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto; |
393 | }; |
394 | // ------------------------------------------------------------------- |
395 | |
396 | class CardinalityOptions : |
397 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.CardinalityOptions) */ { |
398 | public: |
399 | CardinalityOptions(); |
400 | virtual ~CardinalityOptions(); |
401 | |
402 | CardinalityOptions(const CardinalityOptions& from); |
403 | CardinalityOptions(CardinalityOptions&& from) noexcept |
404 | : CardinalityOptions() { |
405 | *this = ::std::move(from); |
406 | } |
407 | |
408 | inline CardinalityOptions& operator=(const CardinalityOptions& from) { |
409 | CopyFrom(from); |
410 | return *this; |
411 | } |
412 | inline CardinalityOptions& operator=(CardinalityOptions&& from) noexcept { |
413 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
414 | if (this != &from) InternalSwap(&from); |
415 | } else { |
416 | CopyFrom(from); |
417 | } |
418 | return *this; |
419 | } |
420 | |
421 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
422 | return GetDescriptor(); |
423 | } |
424 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
425 | return GetMetadataStatic().descriptor; |
426 | } |
427 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
428 | return GetMetadataStatic().reflection; |
429 | } |
430 | static const CardinalityOptions& default_instance(); |
431 | |
432 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
433 | static inline const CardinalityOptions* internal_default_instance() { |
434 | return reinterpret_cast<const CardinalityOptions*>( |
435 | &_CardinalityOptions_default_instance_); |
436 | } |
437 | static constexpr int kIndexInFileMessages = |
438 | 1; |
439 | |
440 | friend void swap(CardinalityOptions& a, CardinalityOptions& b) { |
441 | a.Swap(&b); |
442 | } |
443 | inline void Swap(CardinalityOptions* other) { |
444 | if (other == this) return; |
445 | InternalSwap(other); |
446 | } |
447 | |
448 | // implements Message ---------------------------------------------- |
449 | |
450 | inline CardinalityOptions* New() const final { |
451 | return CreateMaybeMessage<CardinalityOptions>(nullptr); |
452 | } |
453 | |
454 | CardinalityOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
455 | return CreateMaybeMessage<CardinalityOptions>(arena); |
456 | } |
457 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
458 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
459 | void CopyFrom(const CardinalityOptions& from); |
460 | void MergeFrom(const CardinalityOptions& from); |
461 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
462 | bool IsInitialized() const final; |
463 | |
464 | size_t ByteSizeLong() const final; |
465 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
466 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
467 | #else |
468 | bool MergePartialFromCodedStream( |
469 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
470 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
471 | void SerializeWithCachedSizes( |
472 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
473 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
474 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
475 | int GetCachedSize() const final { return _cached_size_.Get(); } |
476 | |
477 | private: |
478 | inline void SharedCtor(); |
479 | inline void SharedDtor(); |
480 | void SetCachedSize(int size) const final; |
481 | void InternalSwap(CardinalityOptions* other); |
482 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
483 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
484 | return "tensorflow.data.CardinalityOptions" ; |
485 | } |
486 | private: |
487 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
488 | return nullptr; |
489 | } |
490 | inline void* MaybeArenaPtr() const { |
491 | return nullptr; |
492 | } |
493 | public: |
494 | |
495 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
496 | private: |
497 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
498 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto); |
499 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto.file_level_metadata[kIndexInFileMessages]; |
500 | } |
501 | |
502 | public: |
503 | |
504 | // nested types ---------------------------------------------------- |
505 | |
506 | typedef CardinalityOptions_ComputeLevel ComputeLevel; |
507 | static constexpr ComputeLevel CARDINALITY_COMPUTE_UNSPECIFIED = |
508 | CardinalityOptions_ComputeLevel_CARDINALITY_COMPUTE_UNSPECIFIED; |
509 | static constexpr ComputeLevel CARDINALITY_COMPUTE_LOW = |
510 | CardinalityOptions_ComputeLevel_CARDINALITY_COMPUTE_LOW; |
511 | static constexpr ComputeLevel CARDINALITY_COMPUTE_MODERATE = |
512 | CardinalityOptions_ComputeLevel_CARDINALITY_COMPUTE_MODERATE; |
513 | static inline bool ComputeLevel_IsValid(int value) { |
514 | return CardinalityOptions_ComputeLevel_IsValid(value); |
515 | } |
516 | static constexpr ComputeLevel ComputeLevel_MIN = |
517 | CardinalityOptions_ComputeLevel_ComputeLevel_MIN; |
518 | static constexpr ComputeLevel ComputeLevel_MAX = |
519 | CardinalityOptions_ComputeLevel_ComputeLevel_MAX; |
520 | static constexpr int ComputeLevel_ARRAYSIZE = |
521 | CardinalityOptions_ComputeLevel_ComputeLevel_ARRAYSIZE; |
522 | static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* |
523 | ComputeLevel_descriptor() { |
524 | return CardinalityOptions_ComputeLevel_descriptor(); |
525 | } |
526 | template<typename T> |
527 | static inline const std::string& ComputeLevel_Name(T enum_t_value) { |
528 | static_assert(::std::is_same<T, ComputeLevel>::value || |
529 | ::std::is_integral<T>::value, |
530 | "Incorrect type passed to function ComputeLevel_Name." ); |
531 | return CardinalityOptions_ComputeLevel_Name(enum_t_value); |
532 | } |
533 | static inline bool ComputeLevel_Parse(const std::string& name, |
534 | ComputeLevel* value) { |
535 | return CardinalityOptions_ComputeLevel_Parse(name, value); |
536 | } |
537 | |
538 | // accessors ------------------------------------------------------- |
539 | |
540 | enum : int { |
541 | kComputeLevelFieldNumber = 1, |
542 | }; |
543 | // .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; |
544 | void clear_compute_level(); |
545 | ::tensorflow::data::CardinalityOptions_ComputeLevel compute_level() const; |
546 | void set_compute_level(::tensorflow::data::CardinalityOptions_ComputeLevel value); |
547 | |
548 | // @@protoc_insertion_point(class_scope:tensorflow.data.CardinalityOptions) |
549 | private: |
550 | class _Internal; |
551 | |
552 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
553 | int compute_level_; |
554 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
555 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto; |
556 | }; |
557 | // ------------------------------------------------------------------- |
558 | |
559 | class DistributeOptions : |
560 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.DistributeOptions) */ { |
561 | public: |
562 | DistributeOptions(); |
563 | virtual ~DistributeOptions(); |
564 | |
565 | DistributeOptions(const DistributeOptions& from); |
566 | DistributeOptions(DistributeOptions&& from) noexcept |
567 | : DistributeOptions() { |
568 | *this = ::std::move(from); |
569 | } |
570 | |
571 | inline DistributeOptions& operator=(const DistributeOptions& from) { |
572 | CopyFrom(from); |
573 | return *this; |
574 | } |
575 | inline DistributeOptions& operator=(DistributeOptions&& from) noexcept { |
576 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
577 | if (this != &from) InternalSwap(&from); |
578 | } else { |
579 | CopyFrom(from); |
580 | } |
581 | return *this; |
582 | } |
583 | |
584 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
585 | return GetDescriptor(); |
586 | } |
587 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
588 | return GetMetadataStatic().descriptor; |
589 | } |
590 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
591 | return GetMetadataStatic().reflection; |
592 | } |
593 | static const DistributeOptions& default_instance(); |
594 | |
595 | enum OptionalNumDevicesCase { |
596 | kNumDevices = 2, |
597 | OPTIONAL_NUM_DEVICES_NOT_SET = 0, |
598 | }; |
599 | |
600 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
601 | static inline const DistributeOptions* internal_default_instance() { |
602 | return reinterpret_cast<const DistributeOptions*>( |
603 | &_DistributeOptions_default_instance_); |
604 | } |
605 | static constexpr int kIndexInFileMessages = |
606 | 2; |
607 | |
608 | friend void swap(DistributeOptions& a, DistributeOptions& b) { |
609 | a.Swap(&b); |
610 | } |
611 | inline void Swap(DistributeOptions* other) { |
612 | if (other == this) return; |
613 | InternalSwap(other); |
614 | } |
615 | |
616 | // implements Message ---------------------------------------------- |
617 | |
618 | inline DistributeOptions* New() const final { |
619 | return CreateMaybeMessage<DistributeOptions>(nullptr); |
620 | } |
621 | |
622 | DistributeOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
623 | return CreateMaybeMessage<DistributeOptions>(arena); |
624 | } |
625 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
626 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
627 | void CopyFrom(const DistributeOptions& from); |
628 | void MergeFrom(const DistributeOptions& from); |
629 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
630 | bool IsInitialized() const final; |
631 | |
632 | size_t ByteSizeLong() const final; |
633 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
634 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
635 | #else |
636 | bool MergePartialFromCodedStream( |
637 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
638 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
639 | void SerializeWithCachedSizes( |
640 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
641 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
642 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
643 | int GetCachedSize() const final { return _cached_size_.Get(); } |
644 | |
645 | private: |
646 | inline void SharedCtor(); |
647 | inline void SharedDtor(); |
648 | void SetCachedSize(int size) const final; |
649 | void InternalSwap(DistributeOptions* other); |
650 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
651 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
652 | return "tensorflow.data.DistributeOptions" ; |
653 | } |
654 | private: |
655 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
656 | return nullptr; |
657 | } |
658 | inline void* MaybeArenaPtr() const { |
659 | return nullptr; |
660 | } |
661 | public: |
662 | |
663 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
664 | private: |
665 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
666 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto); |
667 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto.file_level_metadata[kIndexInFileMessages]; |
668 | } |
669 | |
670 | public: |
671 | |
672 | // nested types ---------------------------------------------------- |
673 | |
674 | // accessors ------------------------------------------------------- |
675 | |
676 | enum : int { |
677 | kAutoShardPolicyFieldNumber = 1, |
678 | kNumDevicesFieldNumber = 2, |
679 | }; |
680 | // .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; |
681 | void clear_auto_shard_policy(); |
682 | ::tensorflow::data::AutoShardPolicy auto_shard_policy() const; |
683 | void set_auto_shard_policy(::tensorflow::data::AutoShardPolicy value); |
684 | |
685 | // int32 num_devices = 2; |
686 | private: |
687 | bool has_num_devices() const; |
688 | public: |
689 | void clear_num_devices(); |
690 | ::PROTOBUF_NAMESPACE_ID::int32 num_devices() const; |
691 | void set_num_devices(::PROTOBUF_NAMESPACE_ID::int32 value); |
692 | |
693 | void clear_optional_num_devices(); |
694 | OptionalNumDevicesCase optional_num_devices_case() const; |
695 | // @@protoc_insertion_point(class_scope:tensorflow.data.DistributeOptions) |
696 | private: |
697 | class _Internal; |
698 | void set_has_num_devices(); |
699 | |
700 | inline bool has_optional_num_devices() const; |
701 | inline void clear_has_optional_num_devices(); |
702 | |
703 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
704 | int auto_shard_policy_; |
705 | union OptionalNumDevicesUnion { |
706 | OptionalNumDevicesUnion() {} |
707 | ::PROTOBUF_NAMESPACE_ID::int32 num_devices_; |
708 | } optional_num_devices_; |
709 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
710 | ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; |
711 | |
712 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto; |
713 | }; |
714 | // ------------------------------------------------------------------- |
715 | |
716 | class OptimizationOptions : |
717 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.OptimizationOptions) */ { |
718 | public: |
719 | OptimizationOptions(); |
720 | virtual ~OptimizationOptions(); |
721 | |
722 | OptimizationOptions(const OptimizationOptions& from); |
723 | OptimizationOptions(OptimizationOptions&& from) noexcept |
724 | : OptimizationOptions() { |
725 | *this = ::std::move(from); |
726 | } |
727 | |
728 | inline OptimizationOptions& operator=(const OptimizationOptions& from) { |
729 | CopyFrom(from); |
730 | return *this; |
731 | } |
732 | inline OptimizationOptions& operator=(OptimizationOptions&& from) noexcept { |
733 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
734 | if (this != &from) InternalSwap(&from); |
735 | } else { |
736 | CopyFrom(from); |
737 | } |
738 | return *this; |
739 | } |
740 | |
741 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
742 | return GetDescriptor(); |
743 | } |
744 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
745 | return GetMetadataStatic().descriptor; |
746 | } |
747 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
748 | return GetMetadataStatic().reflection; |
749 | } |
750 | static const OptimizationOptions& default_instance(); |
751 | |
752 | enum OptionalApplyDefaultOptimizationsCase { |
753 | kApplyDefaultOptimizations = 1, |
754 | OPTIONAL_APPLY_DEFAULT_OPTIMIZATIONS_NOT_SET = 0, |
755 | }; |
756 | |
757 | enum OptionalFilterFusionCase { |
758 | kFilterFusion = 6, |
759 | OPTIONAL_FILTER_FUSION_NOT_SET = 0, |
760 | }; |
761 | |
762 | enum OptionalMapAndBatchFusionCase { |
763 | kMapAndBatchFusion = 9, |
764 | OPTIONAL_MAP_AND_BATCH_FUSION_NOT_SET = 0, |
765 | }; |
766 | |
767 | enum OptionalMapAndFilterFusionCase { |
768 | kMapAndFilterFusion = 10, |
769 | OPTIONAL_MAP_AND_FILTER_FUSION_NOT_SET = 0, |
770 | }; |
771 | |
772 | enum OptionalMapFusionCase { |
773 | kMapFusion = 11, |
774 | OPTIONAL_MAP_FUSION_NOT_SET = 0, |
775 | }; |
776 | |
777 | enum OptionalMapParallelizationCase { |
778 | kMapParallelization = 12, |
779 | OPTIONAL_MAP_PARALLELIZATION_NOT_SET = 0, |
780 | }; |
781 | |
782 | enum OptionalNoopEliminationCase { |
783 | kNoopElimination = 14, |
784 | OPTIONAL_NOOP_ELIMINATION_NOT_SET = 0, |
785 | }; |
786 | |
787 | enum OptionalParallelBatchCase { |
788 | kParallelBatch = 15, |
789 | OPTIONAL_PARALLEL_BATCH_NOT_SET = 0, |
790 | }; |
791 | |
792 | enum OptionalShuffleAndRepeatFusionCase { |
793 | kShuffleAndRepeatFusion = 17, |
794 | OPTIONAL_SHUFFLE_AND_REPEAT_FUSION_NOT_SET = 0, |
795 | }; |
796 | |
797 | enum OptionalFilterParallelizationCase { |
798 | kFilterParallelization = 18, |
799 | OPTIONAL_FILTER_PARALLELIZATION_NOT_SET = 0, |
800 | }; |
801 | |
802 | enum OptionalInjectPrefetchCase { |
803 | kInjectPrefetch = 19, |
804 | OPTIONAL_INJECT_PREFETCH_NOT_SET = 0, |
805 | }; |
806 | |
807 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
808 | static inline const OptimizationOptions* internal_default_instance() { |
809 | return reinterpret_cast<const OptimizationOptions*>( |
810 | &_OptimizationOptions_default_instance_); |
811 | } |
812 | static constexpr int kIndexInFileMessages = |
813 | 3; |
814 | |
815 | friend void swap(OptimizationOptions& a, OptimizationOptions& b) { |
816 | a.Swap(&b); |
817 | } |
818 | inline void Swap(OptimizationOptions* other) { |
819 | if (other == this) return; |
820 | InternalSwap(other); |
821 | } |
822 | |
823 | // implements Message ---------------------------------------------- |
824 | |
825 | inline OptimizationOptions* New() const final { |
826 | return CreateMaybeMessage<OptimizationOptions>(nullptr); |
827 | } |
828 | |
829 | OptimizationOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
830 | return CreateMaybeMessage<OptimizationOptions>(arena); |
831 | } |
832 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
833 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
834 | void CopyFrom(const OptimizationOptions& from); |
835 | void MergeFrom(const OptimizationOptions& from); |
836 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
837 | bool IsInitialized() const final; |
838 | |
839 | size_t ByteSizeLong() const final; |
840 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
841 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
842 | #else |
843 | bool MergePartialFromCodedStream( |
844 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
845 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
846 | void SerializeWithCachedSizes( |
847 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
848 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
849 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
850 | int GetCachedSize() const final { return _cached_size_.Get(); } |
851 | |
852 | private: |
853 | inline void SharedCtor(); |
854 | inline void SharedDtor(); |
855 | void SetCachedSize(int size) const final; |
856 | void InternalSwap(OptimizationOptions* other); |
857 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
858 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
859 | return "tensorflow.data.OptimizationOptions" ; |
860 | } |
861 | private: |
862 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
863 | return nullptr; |
864 | } |
865 | inline void* MaybeArenaPtr() const { |
866 | return nullptr; |
867 | } |
868 | public: |
869 | |
870 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
871 | private: |
872 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
873 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto); |
874 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto.file_level_metadata[kIndexInFileMessages]; |
875 | } |
876 | |
877 | public: |
878 | |
879 | // nested types ---------------------------------------------------- |
880 | |
881 | // accessors ------------------------------------------------------- |
882 | |
883 | enum : int { |
884 | kApplyDefaultOptimizationsFieldNumber = 1, |
885 | kFilterFusionFieldNumber = 6, |
886 | kMapAndBatchFusionFieldNumber = 9, |
887 | kMapAndFilterFusionFieldNumber = 10, |
888 | kMapFusionFieldNumber = 11, |
889 | kMapParallelizationFieldNumber = 12, |
890 | kNoopEliminationFieldNumber = 14, |
891 | kParallelBatchFieldNumber = 15, |
892 | kShuffleAndRepeatFusionFieldNumber = 17, |
893 | kFilterParallelizationFieldNumber = 18, |
894 | kInjectPrefetchFieldNumber = 19, |
895 | }; |
896 | // bool apply_default_optimizations = 1; |
897 | private: |
898 | bool has_apply_default_optimizations() const; |
899 | public: |
900 | void clear_apply_default_optimizations(); |
901 | bool apply_default_optimizations() const; |
902 | void set_apply_default_optimizations(bool value); |
903 | |
904 | // bool filter_fusion = 6; |
905 | private: |
906 | bool has_filter_fusion() const; |
907 | public: |
908 | void clear_filter_fusion(); |
909 | bool filter_fusion() const; |
910 | void set_filter_fusion(bool value); |
911 | |
912 | // bool map_and_batch_fusion = 9; |
913 | private: |
914 | bool has_map_and_batch_fusion() const; |
915 | public: |
916 | void clear_map_and_batch_fusion(); |
917 | bool map_and_batch_fusion() const; |
918 | void set_map_and_batch_fusion(bool value); |
919 | |
920 | // bool map_and_filter_fusion = 10; |
921 | private: |
922 | bool has_map_and_filter_fusion() const; |
923 | public: |
924 | void clear_map_and_filter_fusion(); |
925 | bool map_and_filter_fusion() const; |
926 | void set_map_and_filter_fusion(bool value); |
927 | |
928 | // bool map_fusion = 11; |
929 | private: |
930 | bool has_map_fusion() const; |
931 | public: |
932 | void clear_map_fusion(); |
933 | bool map_fusion() const; |
934 | void set_map_fusion(bool value); |
935 | |
936 | // bool map_parallelization = 12; |
937 | private: |
938 | bool has_map_parallelization() const; |
939 | public: |
940 | void clear_map_parallelization(); |
941 | bool map_parallelization() const; |
942 | void set_map_parallelization(bool value); |
943 | |
944 | // bool noop_elimination = 14; |
945 | private: |
946 | bool has_noop_elimination() const; |
947 | public: |
948 | void clear_noop_elimination(); |
949 | bool noop_elimination() const; |
950 | void set_noop_elimination(bool value); |
951 | |
952 | // bool parallel_batch = 15; |
953 | private: |
954 | bool has_parallel_batch() const; |
955 | public: |
956 | void clear_parallel_batch(); |
957 | bool parallel_batch() const; |
958 | void set_parallel_batch(bool value); |
959 | |
960 | // bool shuffle_and_repeat_fusion = 17; |
961 | private: |
962 | bool has_shuffle_and_repeat_fusion() const; |
963 | public: |
964 | void clear_shuffle_and_repeat_fusion(); |
965 | bool shuffle_and_repeat_fusion() const; |
966 | void set_shuffle_and_repeat_fusion(bool value); |
967 | |
968 | // bool filter_parallelization = 18; |
969 | private: |
970 | bool has_filter_parallelization() const; |
971 | public: |
972 | void clear_filter_parallelization(); |
973 | bool filter_parallelization() const; |
974 | void set_filter_parallelization(bool value); |
975 | |
976 | // bool inject_prefetch = 19; |
977 | private: |
978 | bool has_inject_prefetch() const; |
979 | public: |
980 | void clear_inject_prefetch(); |
981 | bool inject_prefetch() const; |
982 | void set_inject_prefetch(bool value); |
983 | |
984 | void clear_optional_apply_default_optimizations(); |
985 | OptionalApplyDefaultOptimizationsCase optional_apply_default_optimizations_case() const; |
986 | void clear_optional_filter_fusion(); |
987 | OptionalFilterFusionCase optional_filter_fusion_case() const; |
988 | void clear_optional_map_and_batch_fusion(); |
989 | OptionalMapAndBatchFusionCase optional_map_and_batch_fusion_case() const; |
990 | void clear_optional_map_and_filter_fusion(); |
991 | OptionalMapAndFilterFusionCase optional_map_and_filter_fusion_case() const; |
992 | void clear_optional_map_fusion(); |
993 | OptionalMapFusionCase optional_map_fusion_case() const; |
994 | void clear_optional_map_parallelization(); |
995 | OptionalMapParallelizationCase optional_map_parallelization_case() const; |
996 | void clear_optional_noop_elimination(); |
997 | OptionalNoopEliminationCase optional_noop_elimination_case() const; |
998 | void clear_optional_parallel_batch(); |
999 | OptionalParallelBatchCase optional_parallel_batch_case() const; |
1000 | void clear_optional_shuffle_and_repeat_fusion(); |
1001 | OptionalShuffleAndRepeatFusionCase optional_shuffle_and_repeat_fusion_case() const; |
1002 | void clear_optional_filter_parallelization(); |
1003 | OptionalFilterParallelizationCase optional_filter_parallelization_case() const; |
1004 | void clear_optional_inject_prefetch(); |
1005 | OptionalInjectPrefetchCase optional_inject_prefetch_case() const; |
1006 | // @@protoc_insertion_point(class_scope:tensorflow.data.OptimizationOptions) |
1007 | private: |
1008 | class _Internal; |
1009 | void set_has_apply_default_optimizations(); |
1010 | void set_has_filter_fusion(); |
1011 | void set_has_map_and_batch_fusion(); |
1012 | void set_has_map_and_filter_fusion(); |
1013 | void set_has_map_fusion(); |
1014 | void set_has_map_parallelization(); |
1015 | void set_has_noop_elimination(); |
1016 | void set_has_parallel_batch(); |
1017 | void set_has_shuffle_and_repeat_fusion(); |
1018 | void set_has_filter_parallelization(); |
1019 | void set_has_inject_prefetch(); |
1020 | |
1021 | inline bool has_optional_apply_default_optimizations() const; |
1022 | inline void clear_has_optional_apply_default_optimizations(); |
1023 | |
1024 | inline bool has_optional_filter_fusion() const; |
1025 | inline void clear_has_optional_filter_fusion(); |
1026 | |
1027 | inline bool has_optional_map_and_batch_fusion() const; |
1028 | inline void clear_has_optional_map_and_batch_fusion(); |
1029 | |
1030 | inline bool has_optional_map_and_filter_fusion() const; |
1031 | inline void clear_has_optional_map_and_filter_fusion(); |
1032 | |
1033 | inline bool has_optional_map_fusion() const; |
1034 | inline void clear_has_optional_map_fusion(); |
1035 | |
1036 | inline bool has_optional_map_parallelization() const; |
1037 | inline void clear_has_optional_map_parallelization(); |
1038 | |
1039 | inline bool has_optional_noop_elimination() const; |
1040 | inline void clear_has_optional_noop_elimination(); |
1041 | |
1042 | inline bool has_optional_parallel_batch() const; |
1043 | inline void clear_has_optional_parallel_batch(); |
1044 | |
1045 | inline bool has_optional_shuffle_and_repeat_fusion() const; |
1046 | inline void clear_has_optional_shuffle_and_repeat_fusion(); |
1047 | |
1048 | inline bool has_optional_filter_parallelization() const; |
1049 | inline void clear_has_optional_filter_parallelization(); |
1050 | |
1051 | inline bool has_optional_inject_prefetch() const; |
1052 | inline void clear_has_optional_inject_prefetch(); |
1053 | |
1054 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1055 | union OptionalApplyDefaultOptimizationsUnion { |
1056 | OptionalApplyDefaultOptimizationsUnion() {} |
1057 | bool apply_default_optimizations_; |
1058 | } optional_apply_default_optimizations_; |
1059 | union OptionalFilterFusionUnion { |
1060 | OptionalFilterFusionUnion() {} |
1061 | bool filter_fusion_; |
1062 | } optional_filter_fusion_; |
1063 | union OptionalMapAndBatchFusionUnion { |
1064 | OptionalMapAndBatchFusionUnion() {} |
1065 | bool map_and_batch_fusion_; |
1066 | } optional_map_and_batch_fusion_; |
1067 | union OptionalMapAndFilterFusionUnion { |
1068 | OptionalMapAndFilterFusionUnion() {} |
1069 | bool map_and_filter_fusion_; |
1070 | } optional_map_and_filter_fusion_; |
1071 | union OptionalMapFusionUnion { |
1072 | OptionalMapFusionUnion() {} |
1073 | bool map_fusion_; |
1074 | } optional_map_fusion_; |
1075 | union OptionalMapParallelizationUnion { |
1076 | OptionalMapParallelizationUnion() {} |
1077 | bool map_parallelization_; |
1078 | } optional_map_parallelization_; |
1079 | union OptionalNoopEliminationUnion { |
1080 | OptionalNoopEliminationUnion() {} |
1081 | bool noop_elimination_; |
1082 | } optional_noop_elimination_; |
1083 | union OptionalParallelBatchUnion { |
1084 | OptionalParallelBatchUnion() {} |
1085 | bool parallel_batch_; |
1086 | } optional_parallel_batch_; |
1087 | union OptionalShuffleAndRepeatFusionUnion { |
1088 | OptionalShuffleAndRepeatFusionUnion() {} |
1089 | bool shuffle_and_repeat_fusion_; |
1090 | } optional_shuffle_and_repeat_fusion_; |
1091 | union OptionalFilterParallelizationUnion { |
1092 | OptionalFilterParallelizationUnion() {} |
1093 | bool filter_parallelization_; |
1094 | } optional_filter_parallelization_; |
1095 | union OptionalInjectPrefetchUnion { |
1096 | OptionalInjectPrefetchUnion() {} |
1097 | bool inject_prefetch_; |
1098 | } optional_inject_prefetch_; |
1099 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1100 | ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[11]; |
1101 | |
1102 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto; |
1103 | }; |
1104 | // ------------------------------------------------------------------- |
1105 | |
1106 | class ThreadingOptions : |
1107 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.ThreadingOptions) */ { |
1108 | public: |
1109 | ThreadingOptions(); |
1110 | virtual ~ThreadingOptions(); |
1111 | |
1112 | ThreadingOptions(const ThreadingOptions& from); |
1113 | ThreadingOptions(ThreadingOptions&& from) noexcept |
1114 | : ThreadingOptions() { |
1115 | *this = ::std::move(from); |
1116 | } |
1117 | |
1118 | inline ThreadingOptions& operator=(const ThreadingOptions& from) { |
1119 | CopyFrom(from); |
1120 | return *this; |
1121 | } |
1122 | inline ThreadingOptions& operator=(ThreadingOptions&& from) noexcept { |
1123 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1124 | if (this != &from) InternalSwap(&from); |
1125 | } else { |
1126 | CopyFrom(from); |
1127 | } |
1128 | return *this; |
1129 | } |
1130 | |
1131 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1132 | return GetDescriptor(); |
1133 | } |
1134 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1135 | return GetMetadataStatic().descriptor; |
1136 | } |
1137 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1138 | return GetMetadataStatic().reflection; |
1139 | } |
1140 | static const ThreadingOptions& default_instance(); |
1141 | |
1142 | enum OptionalMaxIntraOpParallelismCase { |
1143 | kMaxIntraOpParallelism = 1, |
1144 | OPTIONAL_MAX_INTRA_OP_PARALLELISM_NOT_SET = 0, |
1145 | }; |
1146 | |
1147 | enum OptionalPrivateThreadpoolSizeCase { |
1148 | kPrivateThreadpoolSize = 2, |
1149 | OPTIONAL_PRIVATE_THREADPOOL_SIZE_NOT_SET = 0, |
1150 | }; |
1151 | |
1152 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1153 | static inline const ThreadingOptions* internal_default_instance() { |
1154 | return reinterpret_cast<const ThreadingOptions*>( |
1155 | &_ThreadingOptions_default_instance_); |
1156 | } |
1157 | static constexpr int kIndexInFileMessages = |
1158 | 4; |
1159 | |
1160 | friend void swap(ThreadingOptions& a, ThreadingOptions& b) { |
1161 | a.Swap(&b); |
1162 | } |
1163 | inline void Swap(ThreadingOptions* other) { |
1164 | if (other == this) return; |
1165 | InternalSwap(other); |
1166 | } |
1167 | |
1168 | // implements Message ---------------------------------------------- |
1169 | |
1170 | inline ThreadingOptions* New() const final { |
1171 | return CreateMaybeMessage<ThreadingOptions>(nullptr); |
1172 | } |
1173 | |
1174 | ThreadingOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
1175 | return CreateMaybeMessage<ThreadingOptions>(arena); |
1176 | } |
1177 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1178 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1179 | void CopyFrom(const ThreadingOptions& from); |
1180 | void MergeFrom(const ThreadingOptions& from); |
1181 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1182 | bool IsInitialized() const final; |
1183 | |
1184 | size_t ByteSizeLong() const final; |
1185 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1186 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1187 | #else |
1188 | bool MergePartialFromCodedStream( |
1189 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
1190 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1191 | void SerializeWithCachedSizes( |
1192 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
1193 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
1194 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
1195 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1196 | |
1197 | private: |
1198 | inline void SharedCtor(); |
1199 | inline void SharedDtor(); |
1200 | void SetCachedSize(int size) const final; |
1201 | void InternalSwap(ThreadingOptions* other); |
1202 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1203 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1204 | return "tensorflow.data.ThreadingOptions" ; |
1205 | } |
1206 | private: |
1207 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
1208 | return nullptr; |
1209 | } |
1210 | inline void* MaybeArenaPtr() const { |
1211 | return nullptr; |
1212 | } |
1213 | public: |
1214 | |
1215 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1216 | private: |
1217 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
1218 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto); |
1219 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto.file_level_metadata[kIndexInFileMessages]; |
1220 | } |
1221 | |
1222 | public: |
1223 | |
1224 | // nested types ---------------------------------------------------- |
1225 | |
1226 | // accessors ------------------------------------------------------- |
1227 | |
1228 | enum : int { |
1229 | kMaxIntraOpParallelismFieldNumber = 1, |
1230 | kPrivateThreadpoolSizeFieldNumber = 2, |
1231 | }; |
1232 | // int32 max_intra_op_parallelism = 1; |
1233 | private: |
1234 | bool has_max_intra_op_parallelism() const; |
1235 | public: |
1236 | void clear_max_intra_op_parallelism(); |
1237 | ::PROTOBUF_NAMESPACE_ID::int32 max_intra_op_parallelism() const; |
1238 | void set_max_intra_op_parallelism(::PROTOBUF_NAMESPACE_ID::int32 value); |
1239 | |
1240 | // int32 private_threadpool_size = 2; |
1241 | private: |
1242 | bool has_private_threadpool_size() const; |
1243 | public: |
1244 | void clear_private_threadpool_size(); |
1245 | ::PROTOBUF_NAMESPACE_ID::int32 private_threadpool_size() const; |
1246 | void set_private_threadpool_size(::PROTOBUF_NAMESPACE_ID::int32 value); |
1247 | |
1248 | void clear_optional_max_intra_op_parallelism(); |
1249 | OptionalMaxIntraOpParallelismCase optional_max_intra_op_parallelism_case() const; |
1250 | void clear_optional_private_threadpool_size(); |
1251 | OptionalPrivateThreadpoolSizeCase optional_private_threadpool_size_case() const; |
1252 | // @@protoc_insertion_point(class_scope:tensorflow.data.ThreadingOptions) |
1253 | private: |
1254 | class _Internal; |
1255 | void set_has_max_intra_op_parallelism(); |
1256 | void set_has_private_threadpool_size(); |
1257 | |
1258 | inline bool has_optional_max_intra_op_parallelism() const; |
1259 | inline void clear_has_optional_max_intra_op_parallelism(); |
1260 | |
1261 | inline bool has_optional_private_threadpool_size() const; |
1262 | inline void clear_has_optional_private_threadpool_size(); |
1263 | |
1264 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1265 | union OptionalMaxIntraOpParallelismUnion { |
1266 | OptionalMaxIntraOpParallelismUnion() {} |
1267 | ::PROTOBUF_NAMESPACE_ID::int32 max_intra_op_parallelism_; |
1268 | } optional_max_intra_op_parallelism_; |
1269 | union OptionalPrivateThreadpoolSizeUnion { |
1270 | OptionalPrivateThreadpoolSizeUnion() {} |
1271 | ::PROTOBUF_NAMESPACE_ID::int32 private_threadpool_size_; |
1272 | } optional_private_threadpool_size_; |
1273 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1274 | ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[2]; |
1275 | |
1276 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto; |
1277 | }; |
1278 | // ------------------------------------------------------------------- |
1279 | |
1280 | class Options : |
1281 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.Options) */ { |
1282 | public: |
1283 | Options(); |
1284 | virtual ~Options(); |
1285 | |
1286 | Options(const Options& from); |
1287 | Options(Options&& from) noexcept |
1288 | : Options() { |
1289 | *this = ::std::move(from); |
1290 | } |
1291 | |
1292 | inline Options& operator=(const Options& from) { |
1293 | CopyFrom(from); |
1294 | return *this; |
1295 | } |
1296 | inline Options& operator=(Options&& from) noexcept { |
1297 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1298 | if (this != &from) InternalSwap(&from); |
1299 | } else { |
1300 | CopyFrom(from); |
1301 | } |
1302 | return *this; |
1303 | } |
1304 | |
1305 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1306 | return GetDescriptor(); |
1307 | } |
1308 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1309 | return GetMetadataStatic().descriptor; |
1310 | } |
1311 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1312 | return GetMetadataStatic().reflection; |
1313 | } |
1314 | static const Options& default_instance(); |
1315 | |
1316 | enum OptionalDeterministicCase { |
1317 | kDeterministic = 1, |
1318 | OPTIONAL_DETERMINISTIC_NOT_SET = 0, |
1319 | }; |
1320 | |
1321 | enum OptionalSlackCase { |
1322 | kSlack = 4, |
1323 | OPTIONAL_SLACK_NOT_SET = 0, |
1324 | }; |
1325 | |
1326 | enum OptionalExternalStatePolicyCase { |
1327 | kExternalStatePolicy = 6, |
1328 | OPTIONAL_EXTERNAL_STATE_POLICY_NOT_SET = 0, |
1329 | }; |
1330 | |
1331 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1332 | static inline const Options* internal_default_instance() { |
1333 | return reinterpret_cast<const Options*>( |
1334 | &_Options_default_instance_); |
1335 | } |
1336 | static constexpr int kIndexInFileMessages = |
1337 | 5; |
1338 | |
1339 | friend void swap(Options& a, Options& b) { |
1340 | a.Swap(&b); |
1341 | } |
1342 | inline void Swap(Options* other) { |
1343 | if (other == this) return; |
1344 | InternalSwap(other); |
1345 | } |
1346 | |
1347 | // implements Message ---------------------------------------------- |
1348 | |
1349 | inline Options* New() const final { |
1350 | return CreateMaybeMessage<Options>(nullptr); |
1351 | } |
1352 | |
1353 | Options* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
1354 | return CreateMaybeMessage<Options>(arena); |
1355 | } |
1356 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1357 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1358 | void CopyFrom(const Options& from); |
1359 | void MergeFrom(const Options& from); |
1360 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1361 | bool IsInitialized() const final; |
1362 | |
1363 | size_t ByteSizeLong() const final; |
1364 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1365 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1366 | #else |
1367 | bool MergePartialFromCodedStream( |
1368 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
1369 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1370 | void SerializeWithCachedSizes( |
1371 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
1372 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
1373 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
1374 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1375 | |
1376 | private: |
1377 | inline void SharedCtor(); |
1378 | inline void SharedDtor(); |
1379 | void SetCachedSize(int size) const final; |
1380 | void InternalSwap(Options* other); |
1381 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1382 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1383 | return "tensorflow.data.Options" ; |
1384 | } |
1385 | private: |
1386 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
1387 | return nullptr; |
1388 | } |
1389 | inline void* MaybeArenaPtr() const { |
1390 | return nullptr; |
1391 | } |
1392 | public: |
1393 | |
1394 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1395 | private: |
1396 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
1397 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto); |
1398 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto.file_level_metadata[kIndexInFileMessages]; |
1399 | } |
1400 | |
1401 | public: |
1402 | |
1403 | // nested types ---------------------------------------------------- |
1404 | |
1405 | // accessors ------------------------------------------------------- |
1406 | |
1407 | enum : int { |
1408 | kDistributeOptionsFieldNumber = 2, |
1409 | kOptimizationOptionsFieldNumber = 3, |
1410 | kThreadingOptionsFieldNumber = 5, |
1411 | kAutotuneOptionsFieldNumber = 7, |
1412 | kDeterministicFieldNumber = 1, |
1413 | kSlackFieldNumber = 4, |
1414 | kExternalStatePolicyFieldNumber = 6, |
1415 | }; |
1416 | // .tensorflow.data.DistributeOptions distribute_options = 2; |
1417 | bool has_distribute_options() const; |
1418 | void clear_distribute_options(); |
1419 | const ::tensorflow::data::DistributeOptions& distribute_options() const; |
1420 | ::tensorflow::data::DistributeOptions* release_distribute_options(); |
1421 | ::tensorflow::data::DistributeOptions* mutable_distribute_options(); |
1422 | void set_allocated_distribute_options(::tensorflow::data::DistributeOptions* distribute_options); |
1423 | |
1424 | // .tensorflow.data.OptimizationOptions optimization_options = 3; |
1425 | bool has_optimization_options() const; |
1426 | void clear_optimization_options(); |
1427 | const ::tensorflow::data::OptimizationOptions& optimization_options() const; |
1428 | ::tensorflow::data::OptimizationOptions* release_optimization_options(); |
1429 | ::tensorflow::data::OptimizationOptions* mutable_optimization_options(); |
1430 | void set_allocated_optimization_options(::tensorflow::data::OptimizationOptions* optimization_options); |
1431 | |
1432 | // .tensorflow.data.ThreadingOptions threading_options = 5; |
1433 | bool has_threading_options() const; |
1434 | void clear_threading_options(); |
1435 | const ::tensorflow::data::ThreadingOptions& threading_options() const; |
1436 | ::tensorflow::data::ThreadingOptions* release_threading_options(); |
1437 | ::tensorflow::data::ThreadingOptions* mutable_threading_options(); |
1438 | void set_allocated_threading_options(::tensorflow::data::ThreadingOptions* threading_options); |
1439 | |
1440 | // .tensorflow.data.AutotuneOptions autotune_options = 7; |
1441 | bool has_autotune_options() const; |
1442 | void clear_autotune_options(); |
1443 | const ::tensorflow::data::AutotuneOptions& autotune_options() const; |
1444 | ::tensorflow::data::AutotuneOptions* release_autotune_options(); |
1445 | ::tensorflow::data::AutotuneOptions* mutable_autotune_options(); |
1446 | void set_allocated_autotune_options(::tensorflow::data::AutotuneOptions* autotune_options); |
1447 | |
1448 | // bool deterministic = 1; |
1449 | private: |
1450 | bool has_deterministic() const; |
1451 | public: |
1452 | void clear_deterministic(); |
1453 | bool deterministic() const; |
1454 | void set_deterministic(bool value); |
1455 | |
1456 | // bool slack = 4; |
1457 | private: |
1458 | bool has_slack() const; |
1459 | public: |
1460 | void clear_slack(); |
1461 | bool slack() const; |
1462 | void set_slack(bool value); |
1463 | |
1464 | // .tensorflow.data.ExternalStatePolicy external_state_policy = 6; |
1465 | private: |
1466 | bool has_external_state_policy() const; |
1467 | public: |
1468 | void clear_external_state_policy(); |
1469 | ::tensorflow::data::ExternalStatePolicy external_state_policy() const; |
1470 | void set_external_state_policy(::tensorflow::data::ExternalStatePolicy value); |
1471 | |
1472 | void clear_optional_deterministic(); |
1473 | OptionalDeterministicCase optional_deterministic_case() const; |
1474 | void clear_optional_slack(); |
1475 | OptionalSlackCase optional_slack_case() const; |
1476 | void clear_optional_external_state_policy(); |
1477 | OptionalExternalStatePolicyCase optional_external_state_policy_case() const; |
1478 | // @@protoc_insertion_point(class_scope:tensorflow.data.Options) |
1479 | private: |
1480 | class _Internal; |
1481 | void set_has_deterministic(); |
1482 | void set_has_slack(); |
1483 | void set_has_external_state_policy(); |
1484 | |
1485 | inline bool has_optional_deterministic() const; |
1486 | inline void clear_has_optional_deterministic(); |
1487 | |
1488 | inline bool has_optional_slack() const; |
1489 | inline void clear_has_optional_slack(); |
1490 | |
1491 | inline bool has_optional_external_state_policy() const; |
1492 | inline void clear_has_optional_external_state_policy(); |
1493 | |
1494 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1495 | ::tensorflow::data::DistributeOptions* distribute_options_; |
1496 | ::tensorflow::data::OptimizationOptions* optimization_options_; |
1497 | ::tensorflow::data::ThreadingOptions* threading_options_; |
1498 | ::tensorflow::data::AutotuneOptions* autotune_options_; |
1499 | union OptionalDeterministicUnion { |
1500 | OptionalDeterministicUnion() {} |
1501 | bool deterministic_; |
1502 | } optional_deterministic_; |
1503 | union OptionalSlackUnion { |
1504 | OptionalSlackUnion() {} |
1505 | bool slack_; |
1506 | } optional_slack_; |
1507 | union OptionalExternalStatePolicyUnion { |
1508 | OptionalExternalStatePolicyUnion() {} |
1509 | int external_state_policy_; |
1510 | } optional_external_state_policy_; |
1511 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1512 | ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[3]; |
1513 | |
1514 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto; |
1515 | }; |
1516 | // =================================================================== |
1517 | |
1518 | |
1519 | // =================================================================== |
1520 | |
1521 | #ifdef __GNUC__ |
1522 | #pragma GCC diagnostic push |
1523 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
1524 | #endif // __GNUC__ |
1525 | // AutotuneOptions |
1526 | |
1527 | // bool enabled = 1; |
1528 | inline bool AutotuneOptions::has_enabled() const { |
1529 | return optional_enabled_case() == kEnabled; |
1530 | } |
1531 | inline void AutotuneOptions::set_has_enabled() { |
1532 | _oneof_case_[0] = kEnabled; |
1533 | } |
1534 | inline void AutotuneOptions::clear_enabled() { |
1535 | if (has_enabled()) { |
1536 | optional_enabled_.enabled_ = false; |
1537 | clear_has_optional_enabled(); |
1538 | } |
1539 | } |
1540 | inline bool AutotuneOptions::enabled() const { |
1541 | // @@protoc_insertion_point(field_get:tensorflow.data.AutotuneOptions.enabled) |
1542 | if (has_enabled()) { |
1543 | return optional_enabled_.enabled_; |
1544 | } |
1545 | return false; |
1546 | } |
1547 | inline void AutotuneOptions::set_enabled(bool value) { |
1548 | if (!has_enabled()) { |
1549 | clear_optional_enabled(); |
1550 | set_has_enabled(); |
1551 | } |
1552 | optional_enabled_.enabled_ = value; |
1553 | // @@protoc_insertion_point(field_set:tensorflow.data.AutotuneOptions.enabled) |
1554 | } |
1555 | |
1556 | // int32 cpu_budget = 2; |
1557 | inline bool AutotuneOptions::has_cpu_budget() const { |
1558 | return optional_cpu_budget_case() == kCpuBudget; |
1559 | } |
1560 | inline void AutotuneOptions::set_has_cpu_budget() { |
1561 | _oneof_case_[1] = kCpuBudget; |
1562 | } |
1563 | inline void AutotuneOptions::clear_cpu_budget() { |
1564 | if (has_cpu_budget()) { |
1565 | optional_cpu_budget_.cpu_budget_ = 0; |
1566 | clear_has_optional_cpu_budget(); |
1567 | } |
1568 | } |
1569 | inline ::PROTOBUF_NAMESPACE_ID::int32 AutotuneOptions::cpu_budget() const { |
1570 | // @@protoc_insertion_point(field_get:tensorflow.data.AutotuneOptions.cpu_budget) |
1571 | if (has_cpu_budget()) { |
1572 | return optional_cpu_budget_.cpu_budget_; |
1573 | } |
1574 | return 0; |
1575 | } |
1576 | inline void AutotuneOptions::set_cpu_budget(::PROTOBUF_NAMESPACE_ID::int32 value) { |
1577 | if (!has_cpu_budget()) { |
1578 | clear_optional_cpu_budget(); |
1579 | set_has_cpu_budget(); |
1580 | } |
1581 | optional_cpu_budget_.cpu_budget_ = value; |
1582 | // @@protoc_insertion_point(field_set:tensorflow.data.AutotuneOptions.cpu_budget) |
1583 | } |
1584 | |
1585 | // int64 ram_budget = 3; |
1586 | inline bool AutotuneOptions::has_ram_budget() const { |
1587 | return optional_ram_budget_case() == kRamBudget; |
1588 | } |
1589 | inline void AutotuneOptions::set_has_ram_budget() { |
1590 | _oneof_case_[2] = kRamBudget; |
1591 | } |
1592 | inline void AutotuneOptions::clear_ram_budget() { |
1593 | if (has_ram_budget()) { |
1594 | optional_ram_budget_.ram_budget_ = PROTOBUF_LONGLONG(0); |
1595 | clear_has_optional_ram_budget(); |
1596 | } |
1597 | } |
1598 | inline ::PROTOBUF_NAMESPACE_ID::int64 AutotuneOptions::ram_budget() const { |
1599 | // @@protoc_insertion_point(field_get:tensorflow.data.AutotuneOptions.ram_budget) |
1600 | if (has_ram_budget()) { |
1601 | return optional_ram_budget_.ram_budget_; |
1602 | } |
1603 | return PROTOBUF_LONGLONG(0); |
1604 | } |
1605 | inline void AutotuneOptions::set_ram_budget(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1606 | if (!has_ram_budget()) { |
1607 | clear_optional_ram_budget(); |
1608 | set_has_ram_budget(); |
1609 | } |
1610 | optional_ram_budget_.ram_budget_ = value; |
1611 | // @@protoc_insertion_point(field_set:tensorflow.data.AutotuneOptions.ram_budget) |
1612 | } |
1613 | |
1614 | // .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; |
1615 | inline bool AutotuneOptions::has_autotune_algorithm() const { |
1616 | return optional_autotune_algorithm_case() == kAutotuneAlgorithm; |
1617 | } |
1618 | inline void AutotuneOptions::set_has_autotune_algorithm() { |
1619 | _oneof_case_[3] = kAutotuneAlgorithm; |
1620 | } |
1621 | inline void AutotuneOptions::clear_autotune_algorithm() { |
1622 | if (has_autotune_algorithm()) { |
1623 | optional_autotune_algorithm_.autotune_algorithm_ = 0; |
1624 | clear_has_optional_autotune_algorithm(); |
1625 | } |
1626 | } |
1627 | inline ::tensorflow::data::model::AutotuneAlgorithm AutotuneOptions::autotune_algorithm() const { |
1628 | // @@protoc_insertion_point(field_get:tensorflow.data.AutotuneOptions.autotune_algorithm) |
1629 | if (has_autotune_algorithm()) { |
1630 | return static_cast< ::tensorflow::data::model::AutotuneAlgorithm >(optional_autotune_algorithm_.autotune_algorithm_); |
1631 | } |
1632 | return static_cast< ::tensorflow::data::model::AutotuneAlgorithm >(0); |
1633 | } |
1634 | inline void AutotuneOptions::set_autotune_algorithm(::tensorflow::data::model::AutotuneAlgorithm value) { |
1635 | if (!has_autotune_algorithm()) { |
1636 | clear_optional_autotune_algorithm(); |
1637 | set_has_autotune_algorithm(); |
1638 | } |
1639 | optional_autotune_algorithm_.autotune_algorithm_ = value; |
1640 | // @@protoc_insertion_point(field_set:tensorflow.data.AutotuneOptions.autotune_algorithm) |
1641 | } |
1642 | |
1643 | inline bool AutotuneOptions::has_optional_enabled() const { |
1644 | return optional_enabled_case() != OPTIONAL_ENABLED_NOT_SET; |
1645 | } |
1646 | inline void AutotuneOptions::clear_has_optional_enabled() { |
1647 | _oneof_case_[0] = OPTIONAL_ENABLED_NOT_SET; |
1648 | } |
1649 | inline bool AutotuneOptions::has_optional_cpu_budget() const { |
1650 | return optional_cpu_budget_case() != OPTIONAL_CPU_BUDGET_NOT_SET; |
1651 | } |
1652 | inline void AutotuneOptions::clear_has_optional_cpu_budget() { |
1653 | _oneof_case_[1] = OPTIONAL_CPU_BUDGET_NOT_SET; |
1654 | } |
1655 | inline bool AutotuneOptions::has_optional_ram_budget() const { |
1656 | return optional_ram_budget_case() != OPTIONAL_RAM_BUDGET_NOT_SET; |
1657 | } |
1658 | inline void AutotuneOptions::clear_has_optional_ram_budget() { |
1659 | _oneof_case_[2] = OPTIONAL_RAM_BUDGET_NOT_SET; |
1660 | } |
1661 | inline bool AutotuneOptions::has_optional_autotune_algorithm() const { |
1662 | return optional_autotune_algorithm_case() != OPTIONAL_AUTOTUNE_ALGORITHM_NOT_SET; |
1663 | } |
1664 | inline void AutotuneOptions::clear_has_optional_autotune_algorithm() { |
1665 | _oneof_case_[3] = OPTIONAL_AUTOTUNE_ALGORITHM_NOT_SET; |
1666 | } |
1667 | inline AutotuneOptions::OptionalEnabledCase AutotuneOptions::optional_enabled_case() const { |
1668 | return AutotuneOptions::OptionalEnabledCase(_oneof_case_[0]); |
1669 | } |
1670 | inline AutotuneOptions::OptionalCpuBudgetCase AutotuneOptions::optional_cpu_budget_case() const { |
1671 | return AutotuneOptions::OptionalCpuBudgetCase(_oneof_case_[1]); |
1672 | } |
1673 | inline AutotuneOptions::OptionalRamBudgetCase AutotuneOptions::optional_ram_budget_case() const { |
1674 | return AutotuneOptions::OptionalRamBudgetCase(_oneof_case_[2]); |
1675 | } |
1676 | inline AutotuneOptions::OptionalAutotuneAlgorithmCase AutotuneOptions::optional_autotune_algorithm_case() const { |
1677 | return AutotuneOptions::OptionalAutotuneAlgorithmCase(_oneof_case_[3]); |
1678 | } |
1679 | // ------------------------------------------------------------------- |
1680 | |
1681 | // CardinalityOptions |
1682 | |
1683 | // .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; |
1684 | inline void CardinalityOptions::clear_compute_level() { |
1685 | compute_level_ = 0; |
1686 | } |
1687 | inline ::tensorflow::data::CardinalityOptions_ComputeLevel CardinalityOptions::compute_level() const { |
1688 | // @@protoc_insertion_point(field_get:tensorflow.data.CardinalityOptions.compute_level) |
1689 | return static_cast< ::tensorflow::data::CardinalityOptions_ComputeLevel >(compute_level_); |
1690 | } |
1691 | inline void CardinalityOptions::set_compute_level(::tensorflow::data::CardinalityOptions_ComputeLevel value) { |
1692 | |
1693 | compute_level_ = value; |
1694 | // @@protoc_insertion_point(field_set:tensorflow.data.CardinalityOptions.compute_level) |
1695 | } |
1696 | |
1697 | // ------------------------------------------------------------------- |
1698 | |
1699 | // DistributeOptions |
1700 | |
1701 | // .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; |
1702 | inline void DistributeOptions::clear_auto_shard_policy() { |
1703 | auto_shard_policy_ = 0; |
1704 | } |
1705 | inline ::tensorflow::data::AutoShardPolicy DistributeOptions::auto_shard_policy() const { |
1706 | // @@protoc_insertion_point(field_get:tensorflow.data.DistributeOptions.auto_shard_policy) |
1707 | return static_cast< ::tensorflow::data::AutoShardPolicy >(auto_shard_policy_); |
1708 | } |
1709 | inline void DistributeOptions::set_auto_shard_policy(::tensorflow::data::AutoShardPolicy value) { |
1710 | |
1711 | auto_shard_policy_ = value; |
1712 | // @@protoc_insertion_point(field_set:tensorflow.data.DistributeOptions.auto_shard_policy) |
1713 | } |
1714 | |
1715 | // int32 num_devices = 2; |
1716 | inline bool DistributeOptions::has_num_devices() const { |
1717 | return optional_num_devices_case() == kNumDevices; |
1718 | } |
1719 | inline void DistributeOptions::set_has_num_devices() { |
1720 | _oneof_case_[0] = kNumDevices; |
1721 | } |
1722 | inline void DistributeOptions::clear_num_devices() { |
1723 | if (has_num_devices()) { |
1724 | optional_num_devices_.num_devices_ = 0; |
1725 | clear_has_optional_num_devices(); |
1726 | } |
1727 | } |
1728 | inline ::PROTOBUF_NAMESPACE_ID::int32 DistributeOptions::num_devices() const { |
1729 | // @@protoc_insertion_point(field_get:tensorflow.data.DistributeOptions.num_devices) |
1730 | if (has_num_devices()) { |
1731 | return optional_num_devices_.num_devices_; |
1732 | } |
1733 | return 0; |
1734 | } |
1735 | inline void DistributeOptions::set_num_devices(::PROTOBUF_NAMESPACE_ID::int32 value) { |
1736 | if (!has_num_devices()) { |
1737 | clear_optional_num_devices(); |
1738 | set_has_num_devices(); |
1739 | } |
1740 | optional_num_devices_.num_devices_ = value; |
1741 | // @@protoc_insertion_point(field_set:tensorflow.data.DistributeOptions.num_devices) |
1742 | } |
1743 | |
1744 | inline bool DistributeOptions::has_optional_num_devices() const { |
1745 | return optional_num_devices_case() != OPTIONAL_NUM_DEVICES_NOT_SET; |
1746 | } |
1747 | inline void DistributeOptions::clear_has_optional_num_devices() { |
1748 | _oneof_case_[0] = OPTIONAL_NUM_DEVICES_NOT_SET; |
1749 | } |
1750 | inline DistributeOptions::OptionalNumDevicesCase DistributeOptions::optional_num_devices_case() const { |
1751 | return DistributeOptions::OptionalNumDevicesCase(_oneof_case_[0]); |
1752 | } |
1753 | // ------------------------------------------------------------------- |
1754 | |
1755 | // OptimizationOptions |
1756 | |
1757 | // bool apply_default_optimizations = 1; |
1758 | inline bool OptimizationOptions::has_apply_default_optimizations() const { |
1759 | return optional_apply_default_optimizations_case() == kApplyDefaultOptimizations; |
1760 | } |
1761 | inline void OptimizationOptions::set_has_apply_default_optimizations() { |
1762 | _oneof_case_[0] = kApplyDefaultOptimizations; |
1763 | } |
1764 | inline void OptimizationOptions::clear_apply_default_optimizations() { |
1765 | if (has_apply_default_optimizations()) { |
1766 | optional_apply_default_optimizations_.apply_default_optimizations_ = false; |
1767 | clear_has_optional_apply_default_optimizations(); |
1768 | } |
1769 | } |
1770 | inline bool OptimizationOptions::apply_default_optimizations() const { |
1771 | // @@protoc_insertion_point(field_get:tensorflow.data.OptimizationOptions.apply_default_optimizations) |
1772 | if (has_apply_default_optimizations()) { |
1773 | return optional_apply_default_optimizations_.apply_default_optimizations_; |
1774 | } |
1775 | return false; |
1776 | } |
1777 | inline void OptimizationOptions::set_apply_default_optimizations(bool value) { |
1778 | if (!has_apply_default_optimizations()) { |
1779 | clear_optional_apply_default_optimizations(); |
1780 | set_has_apply_default_optimizations(); |
1781 | } |
1782 | optional_apply_default_optimizations_.apply_default_optimizations_ = value; |
1783 | // @@protoc_insertion_point(field_set:tensorflow.data.OptimizationOptions.apply_default_optimizations) |
1784 | } |
1785 | |
1786 | // bool filter_fusion = 6; |
1787 | inline bool OptimizationOptions::has_filter_fusion() const { |
1788 | return optional_filter_fusion_case() == kFilterFusion; |
1789 | } |
1790 | inline void OptimizationOptions::set_has_filter_fusion() { |
1791 | _oneof_case_[1] = kFilterFusion; |
1792 | } |
1793 | inline void OptimizationOptions::clear_filter_fusion() { |
1794 | if (has_filter_fusion()) { |
1795 | optional_filter_fusion_.filter_fusion_ = false; |
1796 | clear_has_optional_filter_fusion(); |
1797 | } |
1798 | } |
1799 | inline bool OptimizationOptions::filter_fusion() const { |
1800 | // @@protoc_insertion_point(field_get:tensorflow.data.OptimizationOptions.filter_fusion) |
1801 | if (has_filter_fusion()) { |
1802 | return optional_filter_fusion_.filter_fusion_; |
1803 | } |
1804 | return false; |
1805 | } |
1806 | inline void OptimizationOptions::set_filter_fusion(bool value) { |
1807 | if (!has_filter_fusion()) { |
1808 | clear_optional_filter_fusion(); |
1809 | set_has_filter_fusion(); |
1810 | } |
1811 | optional_filter_fusion_.filter_fusion_ = value; |
1812 | // @@protoc_insertion_point(field_set:tensorflow.data.OptimizationOptions.filter_fusion) |
1813 | } |
1814 | |
1815 | // bool map_and_batch_fusion = 9; |
1816 | inline bool OptimizationOptions::has_map_and_batch_fusion() const { |
1817 | return optional_map_and_batch_fusion_case() == kMapAndBatchFusion; |
1818 | } |
1819 | inline void OptimizationOptions::set_has_map_and_batch_fusion() { |
1820 | _oneof_case_[2] = kMapAndBatchFusion; |
1821 | } |
1822 | inline void OptimizationOptions::clear_map_and_batch_fusion() { |
1823 | if (has_map_and_batch_fusion()) { |
1824 | optional_map_and_batch_fusion_.map_and_batch_fusion_ = false; |
1825 | clear_has_optional_map_and_batch_fusion(); |
1826 | } |
1827 | } |
1828 | inline bool OptimizationOptions::map_and_batch_fusion() const { |
1829 | // @@protoc_insertion_point(field_get:tensorflow.data.OptimizationOptions.map_and_batch_fusion) |
1830 | if (has_map_and_batch_fusion()) { |
1831 | return optional_map_and_batch_fusion_.map_and_batch_fusion_; |
1832 | } |
1833 | return false; |
1834 | } |
1835 | inline void OptimizationOptions::set_map_and_batch_fusion(bool value) { |
1836 | if (!has_map_and_batch_fusion()) { |
1837 | clear_optional_map_and_batch_fusion(); |
1838 | set_has_map_and_batch_fusion(); |
1839 | } |
1840 | optional_map_and_batch_fusion_.map_and_batch_fusion_ = value; |
1841 | // @@protoc_insertion_point(field_set:tensorflow.data.OptimizationOptions.map_and_batch_fusion) |
1842 | } |
1843 | |
1844 | // bool map_and_filter_fusion = 10; |
1845 | inline bool OptimizationOptions::has_map_and_filter_fusion() const { |
1846 | return optional_map_and_filter_fusion_case() == kMapAndFilterFusion; |
1847 | } |
1848 | inline void OptimizationOptions::set_has_map_and_filter_fusion() { |
1849 | _oneof_case_[3] = kMapAndFilterFusion; |
1850 | } |
1851 | inline void OptimizationOptions::clear_map_and_filter_fusion() { |
1852 | if (has_map_and_filter_fusion()) { |
1853 | optional_map_and_filter_fusion_.map_and_filter_fusion_ = false; |
1854 | clear_has_optional_map_and_filter_fusion(); |
1855 | } |
1856 | } |
1857 | inline bool OptimizationOptions::map_and_filter_fusion() const { |
1858 | // @@protoc_insertion_point(field_get:tensorflow.data.OptimizationOptions.map_and_filter_fusion) |
1859 | if (has_map_and_filter_fusion()) { |
1860 | return optional_map_and_filter_fusion_.map_and_filter_fusion_; |
1861 | } |
1862 | return false; |
1863 | } |
1864 | inline void OptimizationOptions::set_map_and_filter_fusion(bool value) { |
1865 | if (!has_map_and_filter_fusion()) { |
1866 | clear_optional_map_and_filter_fusion(); |
1867 | set_has_map_and_filter_fusion(); |
1868 | } |
1869 | optional_map_and_filter_fusion_.map_and_filter_fusion_ = value; |
1870 | // @@protoc_insertion_point(field_set:tensorflow.data.OptimizationOptions.map_and_filter_fusion) |
1871 | } |
1872 | |
1873 | // bool map_fusion = 11; |
1874 | inline bool OptimizationOptions::has_map_fusion() const { |
1875 | return optional_map_fusion_case() == kMapFusion; |
1876 | } |
1877 | inline void OptimizationOptions::set_has_map_fusion() { |
1878 | _oneof_case_[4] = kMapFusion; |
1879 | } |
1880 | inline void OptimizationOptions::clear_map_fusion() { |
1881 | if (has_map_fusion()) { |
1882 | optional_map_fusion_.map_fusion_ = false; |
1883 | clear_has_optional_map_fusion(); |
1884 | } |
1885 | } |
1886 | inline bool OptimizationOptions::map_fusion() const { |
1887 | // @@protoc_insertion_point(field_get:tensorflow.data.OptimizationOptions.map_fusion) |
1888 | if (has_map_fusion()) { |
1889 | return optional_map_fusion_.map_fusion_; |
1890 | } |
1891 | return false; |
1892 | } |
1893 | inline void OptimizationOptions::set_map_fusion(bool value) { |
1894 | if (!has_map_fusion()) { |
1895 | clear_optional_map_fusion(); |
1896 | set_has_map_fusion(); |
1897 | } |
1898 | optional_map_fusion_.map_fusion_ = value; |
1899 | // @@protoc_insertion_point(field_set:tensorflow.data.OptimizationOptions.map_fusion) |
1900 | } |
1901 | |
1902 | // bool map_parallelization = 12; |
1903 | inline bool OptimizationOptions::has_map_parallelization() const { |
1904 | return optional_map_parallelization_case() == kMapParallelization; |
1905 | } |
1906 | inline void OptimizationOptions::set_has_map_parallelization() { |
1907 | _oneof_case_[5] = kMapParallelization; |
1908 | } |
1909 | inline void OptimizationOptions::clear_map_parallelization() { |
1910 | if (has_map_parallelization()) { |
1911 | optional_map_parallelization_.map_parallelization_ = false; |
1912 | clear_has_optional_map_parallelization(); |
1913 | } |
1914 | } |
1915 | inline bool OptimizationOptions::map_parallelization() const { |
1916 | // @@protoc_insertion_point(field_get:tensorflow.data.OptimizationOptions.map_parallelization) |
1917 | if (has_map_parallelization()) { |
1918 | return optional_map_parallelization_.map_parallelization_; |
1919 | } |
1920 | return false; |
1921 | } |
1922 | inline void OptimizationOptions::set_map_parallelization(bool value) { |
1923 | if (!has_map_parallelization()) { |
1924 | clear_optional_map_parallelization(); |
1925 | set_has_map_parallelization(); |
1926 | } |
1927 | optional_map_parallelization_.map_parallelization_ = value; |
1928 | // @@protoc_insertion_point(field_set:tensorflow.data.OptimizationOptions.map_parallelization) |
1929 | } |
1930 | |
1931 | // bool noop_elimination = 14; |
1932 | inline bool OptimizationOptions::has_noop_elimination() const { |
1933 | return optional_noop_elimination_case() == kNoopElimination; |
1934 | } |
1935 | inline void OptimizationOptions::set_has_noop_elimination() { |
1936 | _oneof_case_[6] = kNoopElimination; |
1937 | } |
1938 | inline void OptimizationOptions::clear_noop_elimination() { |
1939 | if (has_noop_elimination()) { |
1940 | optional_noop_elimination_.noop_elimination_ = false; |
1941 | clear_has_optional_noop_elimination(); |
1942 | } |
1943 | } |
1944 | inline bool OptimizationOptions::noop_elimination() const { |
1945 | // @@protoc_insertion_point(field_get:tensorflow.data.OptimizationOptions.noop_elimination) |
1946 | if (has_noop_elimination()) { |
1947 | return optional_noop_elimination_.noop_elimination_; |
1948 | } |
1949 | return false; |
1950 | } |
1951 | inline void OptimizationOptions::set_noop_elimination(bool value) { |
1952 | if (!has_noop_elimination()) { |
1953 | clear_optional_noop_elimination(); |
1954 | set_has_noop_elimination(); |
1955 | } |
1956 | optional_noop_elimination_.noop_elimination_ = value; |
1957 | // @@protoc_insertion_point(field_set:tensorflow.data.OptimizationOptions.noop_elimination) |
1958 | } |
1959 | |
1960 | // bool parallel_batch = 15; |
1961 | inline bool OptimizationOptions::has_parallel_batch() const { |
1962 | return optional_parallel_batch_case() == kParallelBatch; |
1963 | } |
1964 | inline void OptimizationOptions::set_has_parallel_batch() { |
1965 | _oneof_case_[7] = kParallelBatch; |
1966 | } |
1967 | inline void OptimizationOptions::clear_parallel_batch() { |
1968 | if (has_parallel_batch()) { |
1969 | optional_parallel_batch_.parallel_batch_ = false; |
1970 | clear_has_optional_parallel_batch(); |
1971 | } |
1972 | } |
1973 | inline bool OptimizationOptions::parallel_batch() const { |
1974 | // @@protoc_insertion_point(field_get:tensorflow.data.OptimizationOptions.parallel_batch) |
1975 | if (has_parallel_batch()) { |
1976 | return optional_parallel_batch_.parallel_batch_; |
1977 | } |
1978 | return false; |
1979 | } |
1980 | inline void OptimizationOptions::set_parallel_batch(bool value) { |
1981 | if (!has_parallel_batch()) { |
1982 | clear_optional_parallel_batch(); |
1983 | set_has_parallel_batch(); |
1984 | } |
1985 | optional_parallel_batch_.parallel_batch_ = value; |
1986 | // @@protoc_insertion_point(field_set:tensorflow.data.OptimizationOptions.parallel_batch) |
1987 | } |
1988 | |
1989 | // bool shuffle_and_repeat_fusion = 17; |
1990 | inline bool OptimizationOptions::has_shuffle_and_repeat_fusion() const { |
1991 | return optional_shuffle_and_repeat_fusion_case() == kShuffleAndRepeatFusion; |
1992 | } |
1993 | inline void OptimizationOptions::set_has_shuffle_and_repeat_fusion() { |
1994 | _oneof_case_[8] = kShuffleAndRepeatFusion; |
1995 | } |
1996 | inline void OptimizationOptions::clear_shuffle_and_repeat_fusion() { |
1997 | if (has_shuffle_and_repeat_fusion()) { |
1998 | optional_shuffle_and_repeat_fusion_.shuffle_and_repeat_fusion_ = false; |
1999 | clear_has_optional_shuffle_and_repeat_fusion(); |
2000 | } |
2001 | } |
2002 | inline bool OptimizationOptions::shuffle_and_repeat_fusion() const { |
2003 | // @@protoc_insertion_point(field_get:tensorflow.data.OptimizationOptions.shuffle_and_repeat_fusion) |
2004 | if (has_shuffle_and_repeat_fusion()) { |
2005 | return optional_shuffle_and_repeat_fusion_.shuffle_and_repeat_fusion_; |
2006 | } |
2007 | return false; |
2008 | } |
2009 | inline void OptimizationOptions::set_shuffle_and_repeat_fusion(bool value) { |
2010 | if (!has_shuffle_and_repeat_fusion()) { |
2011 | clear_optional_shuffle_and_repeat_fusion(); |
2012 | set_has_shuffle_and_repeat_fusion(); |
2013 | } |
2014 | optional_shuffle_and_repeat_fusion_.shuffle_and_repeat_fusion_ = value; |
2015 | // @@protoc_insertion_point(field_set:tensorflow.data.OptimizationOptions.shuffle_and_repeat_fusion) |
2016 | } |
2017 | |
2018 | // bool filter_parallelization = 18; |
2019 | inline bool OptimizationOptions::has_filter_parallelization() const { |
2020 | return optional_filter_parallelization_case() == kFilterParallelization; |
2021 | } |
2022 | inline void OptimizationOptions::set_has_filter_parallelization() { |
2023 | _oneof_case_[9] = kFilterParallelization; |
2024 | } |
2025 | inline void OptimizationOptions::clear_filter_parallelization() { |
2026 | if (has_filter_parallelization()) { |
2027 | optional_filter_parallelization_.filter_parallelization_ = false; |
2028 | clear_has_optional_filter_parallelization(); |
2029 | } |
2030 | } |
2031 | inline bool OptimizationOptions::filter_parallelization() const { |
2032 | // @@protoc_insertion_point(field_get:tensorflow.data.OptimizationOptions.filter_parallelization) |
2033 | if (has_filter_parallelization()) { |
2034 | return optional_filter_parallelization_.filter_parallelization_; |
2035 | } |
2036 | return false; |
2037 | } |
2038 | inline void OptimizationOptions::set_filter_parallelization(bool value) { |
2039 | if (!has_filter_parallelization()) { |
2040 | clear_optional_filter_parallelization(); |
2041 | set_has_filter_parallelization(); |
2042 | } |
2043 | optional_filter_parallelization_.filter_parallelization_ = value; |
2044 | // @@protoc_insertion_point(field_set:tensorflow.data.OptimizationOptions.filter_parallelization) |
2045 | } |
2046 | |
2047 | // bool inject_prefetch = 19; |
2048 | inline bool OptimizationOptions::has_inject_prefetch() const { |
2049 | return optional_inject_prefetch_case() == kInjectPrefetch; |
2050 | } |
2051 | inline void OptimizationOptions::set_has_inject_prefetch() { |
2052 | _oneof_case_[10] = kInjectPrefetch; |
2053 | } |
2054 | inline void OptimizationOptions::clear_inject_prefetch() { |
2055 | if (has_inject_prefetch()) { |
2056 | optional_inject_prefetch_.inject_prefetch_ = false; |
2057 | clear_has_optional_inject_prefetch(); |
2058 | } |
2059 | } |
2060 | inline bool OptimizationOptions::inject_prefetch() const { |
2061 | // @@protoc_insertion_point(field_get:tensorflow.data.OptimizationOptions.inject_prefetch) |
2062 | if (has_inject_prefetch()) { |
2063 | return optional_inject_prefetch_.inject_prefetch_; |
2064 | } |
2065 | return false; |
2066 | } |
2067 | inline void OptimizationOptions::set_inject_prefetch(bool value) { |
2068 | if (!has_inject_prefetch()) { |
2069 | clear_optional_inject_prefetch(); |
2070 | set_has_inject_prefetch(); |
2071 | } |
2072 | optional_inject_prefetch_.inject_prefetch_ = value; |
2073 | // @@protoc_insertion_point(field_set:tensorflow.data.OptimizationOptions.inject_prefetch) |
2074 | } |
2075 | |
2076 | inline bool OptimizationOptions::has_optional_apply_default_optimizations() const { |
2077 | return optional_apply_default_optimizations_case() != OPTIONAL_APPLY_DEFAULT_OPTIMIZATIONS_NOT_SET; |
2078 | } |
2079 | inline void OptimizationOptions::clear_has_optional_apply_default_optimizations() { |
2080 | _oneof_case_[0] = OPTIONAL_APPLY_DEFAULT_OPTIMIZATIONS_NOT_SET; |
2081 | } |
2082 | inline bool OptimizationOptions::has_optional_filter_fusion() const { |
2083 | return optional_filter_fusion_case() != OPTIONAL_FILTER_FUSION_NOT_SET; |
2084 | } |
2085 | inline void OptimizationOptions::clear_has_optional_filter_fusion() { |
2086 | _oneof_case_[1] = OPTIONAL_FILTER_FUSION_NOT_SET; |
2087 | } |
2088 | inline bool OptimizationOptions::has_optional_map_and_batch_fusion() const { |
2089 | return optional_map_and_batch_fusion_case() != OPTIONAL_MAP_AND_BATCH_FUSION_NOT_SET; |
2090 | } |
2091 | inline void OptimizationOptions::clear_has_optional_map_and_batch_fusion() { |
2092 | _oneof_case_[2] = OPTIONAL_MAP_AND_BATCH_FUSION_NOT_SET; |
2093 | } |
2094 | inline bool OptimizationOptions::has_optional_map_and_filter_fusion() const { |
2095 | return optional_map_and_filter_fusion_case() != OPTIONAL_MAP_AND_FILTER_FUSION_NOT_SET; |
2096 | } |
2097 | inline void OptimizationOptions::clear_has_optional_map_and_filter_fusion() { |
2098 | _oneof_case_[3] = OPTIONAL_MAP_AND_FILTER_FUSION_NOT_SET; |
2099 | } |
2100 | inline bool OptimizationOptions::has_optional_map_fusion() const { |
2101 | return optional_map_fusion_case() != OPTIONAL_MAP_FUSION_NOT_SET; |
2102 | } |
2103 | inline void OptimizationOptions::clear_has_optional_map_fusion() { |
2104 | _oneof_case_[4] = OPTIONAL_MAP_FUSION_NOT_SET; |
2105 | } |
2106 | inline bool OptimizationOptions::has_optional_map_parallelization() const { |
2107 | return optional_map_parallelization_case() != OPTIONAL_MAP_PARALLELIZATION_NOT_SET; |
2108 | } |
2109 | inline void OptimizationOptions::clear_has_optional_map_parallelization() { |
2110 | _oneof_case_[5] = OPTIONAL_MAP_PARALLELIZATION_NOT_SET; |
2111 | } |
2112 | inline bool OptimizationOptions::has_optional_noop_elimination() const { |
2113 | return optional_noop_elimination_case() != OPTIONAL_NOOP_ELIMINATION_NOT_SET; |
2114 | } |
2115 | inline void OptimizationOptions::clear_has_optional_noop_elimination() { |
2116 | _oneof_case_[6] = OPTIONAL_NOOP_ELIMINATION_NOT_SET; |
2117 | } |
2118 | inline bool OptimizationOptions::has_optional_parallel_batch() const { |
2119 | return optional_parallel_batch_case() != OPTIONAL_PARALLEL_BATCH_NOT_SET; |
2120 | } |
2121 | inline void OptimizationOptions::clear_has_optional_parallel_batch() { |
2122 | _oneof_case_[7] = OPTIONAL_PARALLEL_BATCH_NOT_SET; |
2123 | } |
2124 | inline bool OptimizationOptions::has_optional_shuffle_and_repeat_fusion() const { |
2125 | return optional_shuffle_and_repeat_fusion_case() != OPTIONAL_SHUFFLE_AND_REPEAT_FUSION_NOT_SET; |
2126 | } |
2127 | inline void OptimizationOptions::clear_has_optional_shuffle_and_repeat_fusion() { |
2128 | _oneof_case_[8] = OPTIONAL_SHUFFLE_AND_REPEAT_FUSION_NOT_SET; |
2129 | } |
2130 | inline bool OptimizationOptions::has_optional_filter_parallelization() const { |
2131 | return optional_filter_parallelization_case() != OPTIONAL_FILTER_PARALLELIZATION_NOT_SET; |
2132 | } |
2133 | inline void OptimizationOptions::clear_has_optional_filter_parallelization() { |
2134 | _oneof_case_[9] = OPTIONAL_FILTER_PARALLELIZATION_NOT_SET; |
2135 | } |
2136 | inline bool OptimizationOptions::has_optional_inject_prefetch() const { |
2137 | return optional_inject_prefetch_case() != OPTIONAL_INJECT_PREFETCH_NOT_SET; |
2138 | } |
2139 | inline void OptimizationOptions::clear_has_optional_inject_prefetch() { |
2140 | _oneof_case_[10] = OPTIONAL_INJECT_PREFETCH_NOT_SET; |
2141 | } |
2142 | inline OptimizationOptions::OptionalApplyDefaultOptimizationsCase OptimizationOptions::optional_apply_default_optimizations_case() const { |
2143 | return OptimizationOptions::OptionalApplyDefaultOptimizationsCase(_oneof_case_[0]); |
2144 | } |
2145 | inline OptimizationOptions::OptionalFilterFusionCase OptimizationOptions::optional_filter_fusion_case() const { |
2146 | return OptimizationOptions::OptionalFilterFusionCase(_oneof_case_[1]); |
2147 | } |
2148 | inline OptimizationOptions::OptionalMapAndBatchFusionCase OptimizationOptions::optional_map_and_batch_fusion_case() const { |
2149 | return OptimizationOptions::OptionalMapAndBatchFusionCase(_oneof_case_[2]); |
2150 | } |
2151 | inline OptimizationOptions::OptionalMapAndFilterFusionCase OptimizationOptions::optional_map_and_filter_fusion_case() const { |
2152 | return OptimizationOptions::OptionalMapAndFilterFusionCase(_oneof_case_[3]); |
2153 | } |
2154 | inline OptimizationOptions::OptionalMapFusionCase OptimizationOptions::optional_map_fusion_case() const { |
2155 | return OptimizationOptions::OptionalMapFusionCase(_oneof_case_[4]); |
2156 | } |
2157 | inline OptimizationOptions::OptionalMapParallelizationCase OptimizationOptions::optional_map_parallelization_case() const { |
2158 | return OptimizationOptions::OptionalMapParallelizationCase(_oneof_case_[5]); |
2159 | } |
2160 | inline OptimizationOptions::OptionalNoopEliminationCase OptimizationOptions::optional_noop_elimination_case() const { |
2161 | return OptimizationOptions::OptionalNoopEliminationCase(_oneof_case_[6]); |
2162 | } |
2163 | inline OptimizationOptions::OptionalParallelBatchCase OptimizationOptions::optional_parallel_batch_case() const { |
2164 | return OptimizationOptions::OptionalParallelBatchCase(_oneof_case_[7]); |
2165 | } |
2166 | inline OptimizationOptions::OptionalShuffleAndRepeatFusionCase OptimizationOptions::optional_shuffle_and_repeat_fusion_case() const { |
2167 | return OptimizationOptions::OptionalShuffleAndRepeatFusionCase(_oneof_case_[8]); |
2168 | } |
2169 | inline OptimizationOptions::OptionalFilterParallelizationCase OptimizationOptions::optional_filter_parallelization_case() const { |
2170 | return OptimizationOptions::OptionalFilterParallelizationCase(_oneof_case_[9]); |
2171 | } |
2172 | inline OptimizationOptions::OptionalInjectPrefetchCase OptimizationOptions::optional_inject_prefetch_case() const { |
2173 | return OptimizationOptions::OptionalInjectPrefetchCase(_oneof_case_[10]); |
2174 | } |
2175 | // ------------------------------------------------------------------- |
2176 | |
2177 | // ThreadingOptions |
2178 | |
2179 | // int32 max_intra_op_parallelism = 1; |
2180 | inline bool ThreadingOptions::has_max_intra_op_parallelism() const { |
2181 | return optional_max_intra_op_parallelism_case() == kMaxIntraOpParallelism; |
2182 | } |
2183 | inline void ThreadingOptions::set_has_max_intra_op_parallelism() { |
2184 | _oneof_case_[0] = kMaxIntraOpParallelism; |
2185 | } |
2186 | inline void ThreadingOptions::clear_max_intra_op_parallelism() { |
2187 | if (has_max_intra_op_parallelism()) { |
2188 | optional_max_intra_op_parallelism_.max_intra_op_parallelism_ = 0; |
2189 | clear_has_optional_max_intra_op_parallelism(); |
2190 | } |
2191 | } |
2192 | inline ::PROTOBUF_NAMESPACE_ID::int32 ThreadingOptions::max_intra_op_parallelism() const { |
2193 | // @@protoc_insertion_point(field_get:tensorflow.data.ThreadingOptions.max_intra_op_parallelism) |
2194 | if (has_max_intra_op_parallelism()) { |
2195 | return optional_max_intra_op_parallelism_.max_intra_op_parallelism_; |
2196 | } |
2197 | return 0; |
2198 | } |
2199 | inline void ThreadingOptions::set_max_intra_op_parallelism(::PROTOBUF_NAMESPACE_ID::int32 value) { |
2200 | if (!has_max_intra_op_parallelism()) { |
2201 | clear_optional_max_intra_op_parallelism(); |
2202 | set_has_max_intra_op_parallelism(); |
2203 | } |
2204 | optional_max_intra_op_parallelism_.max_intra_op_parallelism_ = value; |
2205 | // @@protoc_insertion_point(field_set:tensorflow.data.ThreadingOptions.max_intra_op_parallelism) |
2206 | } |
2207 | |
2208 | // int32 private_threadpool_size = 2; |
2209 | inline bool ThreadingOptions::has_private_threadpool_size() const { |
2210 | return optional_private_threadpool_size_case() == kPrivateThreadpoolSize; |
2211 | } |
2212 | inline void ThreadingOptions::set_has_private_threadpool_size() { |
2213 | _oneof_case_[1] = kPrivateThreadpoolSize; |
2214 | } |
2215 | inline void ThreadingOptions::clear_private_threadpool_size() { |
2216 | if (has_private_threadpool_size()) { |
2217 | optional_private_threadpool_size_.private_threadpool_size_ = 0; |
2218 | clear_has_optional_private_threadpool_size(); |
2219 | } |
2220 | } |
2221 | inline ::PROTOBUF_NAMESPACE_ID::int32 ThreadingOptions::private_threadpool_size() const { |
2222 | // @@protoc_insertion_point(field_get:tensorflow.data.ThreadingOptions.private_threadpool_size) |
2223 | if (has_private_threadpool_size()) { |
2224 | return optional_private_threadpool_size_.private_threadpool_size_; |
2225 | } |
2226 | return 0; |
2227 | } |
2228 | inline void ThreadingOptions::set_private_threadpool_size(::PROTOBUF_NAMESPACE_ID::int32 value) { |
2229 | if (!has_private_threadpool_size()) { |
2230 | clear_optional_private_threadpool_size(); |
2231 | set_has_private_threadpool_size(); |
2232 | } |
2233 | optional_private_threadpool_size_.private_threadpool_size_ = value; |
2234 | // @@protoc_insertion_point(field_set:tensorflow.data.ThreadingOptions.private_threadpool_size) |
2235 | } |
2236 | |
2237 | inline bool ThreadingOptions::has_optional_max_intra_op_parallelism() const { |
2238 | return optional_max_intra_op_parallelism_case() != OPTIONAL_MAX_INTRA_OP_PARALLELISM_NOT_SET; |
2239 | } |
2240 | inline void ThreadingOptions::clear_has_optional_max_intra_op_parallelism() { |
2241 | _oneof_case_[0] = OPTIONAL_MAX_INTRA_OP_PARALLELISM_NOT_SET; |
2242 | } |
2243 | inline bool ThreadingOptions::has_optional_private_threadpool_size() const { |
2244 | return optional_private_threadpool_size_case() != OPTIONAL_PRIVATE_THREADPOOL_SIZE_NOT_SET; |
2245 | } |
2246 | inline void ThreadingOptions::clear_has_optional_private_threadpool_size() { |
2247 | _oneof_case_[1] = OPTIONAL_PRIVATE_THREADPOOL_SIZE_NOT_SET; |
2248 | } |
2249 | inline ThreadingOptions::OptionalMaxIntraOpParallelismCase ThreadingOptions::optional_max_intra_op_parallelism_case() const { |
2250 | return ThreadingOptions::OptionalMaxIntraOpParallelismCase(_oneof_case_[0]); |
2251 | } |
2252 | inline ThreadingOptions::OptionalPrivateThreadpoolSizeCase ThreadingOptions::optional_private_threadpool_size_case() const { |
2253 | return ThreadingOptions::OptionalPrivateThreadpoolSizeCase(_oneof_case_[1]); |
2254 | } |
2255 | // ------------------------------------------------------------------- |
2256 | |
2257 | // Options |
2258 | |
2259 | // bool deterministic = 1; |
2260 | inline bool Options::has_deterministic() const { |
2261 | return optional_deterministic_case() == kDeterministic; |
2262 | } |
2263 | inline void Options::set_has_deterministic() { |
2264 | _oneof_case_[0] = kDeterministic; |
2265 | } |
2266 | inline void Options::clear_deterministic() { |
2267 | if (has_deterministic()) { |
2268 | optional_deterministic_.deterministic_ = false; |
2269 | clear_has_optional_deterministic(); |
2270 | } |
2271 | } |
2272 | inline bool Options::deterministic() const { |
2273 | // @@protoc_insertion_point(field_get:tensorflow.data.Options.deterministic) |
2274 | if (has_deterministic()) { |
2275 | return optional_deterministic_.deterministic_; |
2276 | } |
2277 | return false; |
2278 | } |
2279 | inline void Options::set_deterministic(bool value) { |
2280 | if (!has_deterministic()) { |
2281 | clear_optional_deterministic(); |
2282 | set_has_deterministic(); |
2283 | } |
2284 | optional_deterministic_.deterministic_ = value; |
2285 | // @@protoc_insertion_point(field_set:tensorflow.data.Options.deterministic) |
2286 | } |
2287 | |
2288 | // .tensorflow.data.AutotuneOptions autotune_options = 7; |
2289 | inline bool Options::has_autotune_options() const { |
2290 | return this != internal_default_instance() && autotune_options_ != nullptr; |
2291 | } |
2292 | inline void Options::clear_autotune_options() { |
2293 | if (GetArenaNoVirtual() == nullptr && autotune_options_ != nullptr) { |
2294 | delete autotune_options_; |
2295 | } |
2296 | autotune_options_ = nullptr; |
2297 | } |
2298 | inline const ::tensorflow::data::AutotuneOptions& Options::autotune_options() const { |
2299 | const ::tensorflow::data::AutotuneOptions* p = autotune_options_; |
2300 | // @@protoc_insertion_point(field_get:tensorflow.data.Options.autotune_options) |
2301 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::data::AutotuneOptions*>( |
2302 | &::tensorflow::data::_AutotuneOptions_default_instance_); |
2303 | } |
2304 | inline ::tensorflow::data::AutotuneOptions* Options::release_autotune_options() { |
2305 | // @@protoc_insertion_point(field_release:tensorflow.data.Options.autotune_options) |
2306 | |
2307 | ::tensorflow::data::AutotuneOptions* temp = autotune_options_; |
2308 | autotune_options_ = nullptr; |
2309 | return temp; |
2310 | } |
2311 | inline ::tensorflow::data::AutotuneOptions* Options::mutable_autotune_options() { |
2312 | |
2313 | if (autotune_options_ == nullptr) { |
2314 | auto* p = CreateMaybeMessage<::tensorflow::data::AutotuneOptions>(GetArenaNoVirtual()); |
2315 | autotune_options_ = p; |
2316 | } |
2317 | // @@protoc_insertion_point(field_mutable:tensorflow.data.Options.autotune_options) |
2318 | return autotune_options_; |
2319 | } |
2320 | inline void Options::set_allocated_autotune_options(::tensorflow::data::AutotuneOptions* autotune_options) { |
2321 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
2322 | if (message_arena == nullptr) { |
2323 | delete autotune_options_; |
2324 | } |
2325 | if (autotune_options) { |
2326 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
2327 | if (message_arena != submessage_arena) { |
2328 | autotune_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2329 | message_arena, autotune_options, submessage_arena); |
2330 | } |
2331 | |
2332 | } else { |
2333 | |
2334 | } |
2335 | autotune_options_ = autotune_options; |
2336 | // @@protoc_insertion_point(field_set_allocated:tensorflow.data.Options.autotune_options) |
2337 | } |
2338 | |
2339 | // .tensorflow.data.DistributeOptions distribute_options = 2; |
2340 | inline bool Options::has_distribute_options() const { |
2341 | return this != internal_default_instance() && distribute_options_ != nullptr; |
2342 | } |
2343 | inline void Options::clear_distribute_options() { |
2344 | if (GetArenaNoVirtual() == nullptr && distribute_options_ != nullptr) { |
2345 | delete distribute_options_; |
2346 | } |
2347 | distribute_options_ = nullptr; |
2348 | } |
2349 | inline const ::tensorflow::data::DistributeOptions& Options::distribute_options() const { |
2350 | const ::tensorflow::data::DistributeOptions* p = distribute_options_; |
2351 | // @@protoc_insertion_point(field_get:tensorflow.data.Options.distribute_options) |
2352 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::data::DistributeOptions*>( |
2353 | &::tensorflow::data::_DistributeOptions_default_instance_); |
2354 | } |
2355 | inline ::tensorflow::data::DistributeOptions* Options::release_distribute_options() { |
2356 | // @@protoc_insertion_point(field_release:tensorflow.data.Options.distribute_options) |
2357 | |
2358 | ::tensorflow::data::DistributeOptions* temp = distribute_options_; |
2359 | distribute_options_ = nullptr; |
2360 | return temp; |
2361 | } |
2362 | inline ::tensorflow::data::DistributeOptions* Options::mutable_distribute_options() { |
2363 | |
2364 | if (distribute_options_ == nullptr) { |
2365 | auto* p = CreateMaybeMessage<::tensorflow::data::DistributeOptions>(GetArenaNoVirtual()); |
2366 | distribute_options_ = p; |
2367 | } |
2368 | // @@protoc_insertion_point(field_mutable:tensorflow.data.Options.distribute_options) |
2369 | return distribute_options_; |
2370 | } |
2371 | inline void Options::set_allocated_distribute_options(::tensorflow::data::DistributeOptions* distribute_options) { |
2372 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
2373 | if (message_arena == nullptr) { |
2374 | delete distribute_options_; |
2375 | } |
2376 | if (distribute_options) { |
2377 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
2378 | if (message_arena != submessage_arena) { |
2379 | distribute_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2380 | message_arena, distribute_options, submessage_arena); |
2381 | } |
2382 | |
2383 | } else { |
2384 | |
2385 | } |
2386 | distribute_options_ = distribute_options; |
2387 | // @@protoc_insertion_point(field_set_allocated:tensorflow.data.Options.distribute_options) |
2388 | } |
2389 | |
2390 | // .tensorflow.data.OptimizationOptions optimization_options = 3; |
2391 | inline bool Options::has_optimization_options() const { |
2392 | return this != internal_default_instance() && optimization_options_ != nullptr; |
2393 | } |
2394 | inline void Options::clear_optimization_options() { |
2395 | if (GetArenaNoVirtual() == nullptr && optimization_options_ != nullptr) { |
2396 | delete optimization_options_; |
2397 | } |
2398 | optimization_options_ = nullptr; |
2399 | } |
2400 | inline const ::tensorflow::data::OptimizationOptions& Options::optimization_options() const { |
2401 | const ::tensorflow::data::OptimizationOptions* p = optimization_options_; |
2402 | // @@protoc_insertion_point(field_get:tensorflow.data.Options.optimization_options) |
2403 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::data::OptimizationOptions*>( |
2404 | &::tensorflow::data::_OptimizationOptions_default_instance_); |
2405 | } |
2406 | inline ::tensorflow::data::OptimizationOptions* Options::release_optimization_options() { |
2407 | // @@protoc_insertion_point(field_release:tensorflow.data.Options.optimization_options) |
2408 | |
2409 | ::tensorflow::data::OptimizationOptions* temp = optimization_options_; |
2410 | optimization_options_ = nullptr; |
2411 | return temp; |
2412 | } |
2413 | inline ::tensorflow::data::OptimizationOptions* Options::mutable_optimization_options() { |
2414 | |
2415 | if (optimization_options_ == nullptr) { |
2416 | auto* p = CreateMaybeMessage<::tensorflow::data::OptimizationOptions>(GetArenaNoVirtual()); |
2417 | optimization_options_ = p; |
2418 | } |
2419 | // @@protoc_insertion_point(field_mutable:tensorflow.data.Options.optimization_options) |
2420 | return optimization_options_; |
2421 | } |
2422 | inline void Options::set_allocated_optimization_options(::tensorflow::data::OptimizationOptions* optimization_options) { |
2423 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
2424 | if (message_arena == nullptr) { |
2425 | delete optimization_options_; |
2426 | } |
2427 | if (optimization_options) { |
2428 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
2429 | if (message_arena != submessage_arena) { |
2430 | optimization_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2431 | message_arena, optimization_options, submessage_arena); |
2432 | } |
2433 | |
2434 | } else { |
2435 | |
2436 | } |
2437 | optimization_options_ = optimization_options; |
2438 | // @@protoc_insertion_point(field_set_allocated:tensorflow.data.Options.optimization_options) |
2439 | } |
2440 | |
2441 | // bool slack = 4; |
2442 | inline bool Options::has_slack() const { |
2443 | return optional_slack_case() == kSlack; |
2444 | } |
2445 | inline void Options::set_has_slack() { |
2446 | _oneof_case_[1] = kSlack; |
2447 | } |
2448 | inline void Options::clear_slack() { |
2449 | if (has_slack()) { |
2450 | optional_slack_.slack_ = false; |
2451 | clear_has_optional_slack(); |
2452 | } |
2453 | } |
2454 | inline bool Options::slack() const { |
2455 | // @@protoc_insertion_point(field_get:tensorflow.data.Options.slack) |
2456 | if (has_slack()) { |
2457 | return optional_slack_.slack_; |
2458 | } |
2459 | return false; |
2460 | } |
2461 | inline void Options::set_slack(bool value) { |
2462 | if (!has_slack()) { |
2463 | clear_optional_slack(); |
2464 | set_has_slack(); |
2465 | } |
2466 | optional_slack_.slack_ = value; |
2467 | // @@protoc_insertion_point(field_set:tensorflow.data.Options.slack) |
2468 | } |
2469 | |
2470 | // .tensorflow.data.ThreadingOptions threading_options = 5; |
2471 | inline bool Options::has_threading_options() const { |
2472 | return this != internal_default_instance() && threading_options_ != nullptr; |
2473 | } |
2474 | inline void Options::clear_threading_options() { |
2475 | if (GetArenaNoVirtual() == nullptr && threading_options_ != nullptr) { |
2476 | delete threading_options_; |
2477 | } |
2478 | threading_options_ = nullptr; |
2479 | } |
2480 | inline const ::tensorflow::data::ThreadingOptions& Options::threading_options() const { |
2481 | const ::tensorflow::data::ThreadingOptions* p = threading_options_; |
2482 | // @@protoc_insertion_point(field_get:tensorflow.data.Options.threading_options) |
2483 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::data::ThreadingOptions*>( |
2484 | &::tensorflow::data::_ThreadingOptions_default_instance_); |
2485 | } |
2486 | inline ::tensorflow::data::ThreadingOptions* Options::release_threading_options() { |
2487 | // @@protoc_insertion_point(field_release:tensorflow.data.Options.threading_options) |
2488 | |
2489 | ::tensorflow::data::ThreadingOptions* temp = threading_options_; |
2490 | threading_options_ = nullptr; |
2491 | return temp; |
2492 | } |
2493 | inline ::tensorflow::data::ThreadingOptions* Options::mutable_threading_options() { |
2494 | |
2495 | if (threading_options_ == nullptr) { |
2496 | auto* p = CreateMaybeMessage<::tensorflow::data::ThreadingOptions>(GetArenaNoVirtual()); |
2497 | threading_options_ = p; |
2498 | } |
2499 | // @@protoc_insertion_point(field_mutable:tensorflow.data.Options.threading_options) |
2500 | return threading_options_; |
2501 | } |
2502 | inline void Options::set_allocated_threading_options(::tensorflow::data::ThreadingOptions* threading_options) { |
2503 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
2504 | if (message_arena == nullptr) { |
2505 | delete threading_options_; |
2506 | } |
2507 | if (threading_options) { |
2508 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
2509 | if (message_arena != submessage_arena) { |
2510 | threading_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2511 | message_arena, threading_options, submessage_arena); |
2512 | } |
2513 | |
2514 | } else { |
2515 | |
2516 | } |
2517 | threading_options_ = threading_options; |
2518 | // @@protoc_insertion_point(field_set_allocated:tensorflow.data.Options.threading_options) |
2519 | } |
2520 | |
2521 | // .tensorflow.data.ExternalStatePolicy external_state_policy = 6; |
2522 | inline bool Options::has_external_state_policy() const { |
2523 | return optional_external_state_policy_case() == kExternalStatePolicy; |
2524 | } |
2525 | inline void Options::set_has_external_state_policy() { |
2526 | _oneof_case_[2] = kExternalStatePolicy; |
2527 | } |
2528 | inline void Options::clear_external_state_policy() { |
2529 | if (has_external_state_policy()) { |
2530 | optional_external_state_policy_.external_state_policy_ = 0; |
2531 | clear_has_optional_external_state_policy(); |
2532 | } |
2533 | } |
2534 | inline ::tensorflow::data::ExternalStatePolicy Options::external_state_policy() const { |
2535 | // @@protoc_insertion_point(field_get:tensorflow.data.Options.external_state_policy) |
2536 | if (has_external_state_policy()) { |
2537 | return static_cast< ::tensorflow::data::ExternalStatePolicy >(optional_external_state_policy_.external_state_policy_); |
2538 | } |
2539 | return static_cast< ::tensorflow::data::ExternalStatePolicy >(0); |
2540 | } |
2541 | inline void Options::set_external_state_policy(::tensorflow::data::ExternalStatePolicy value) { |
2542 | if (!has_external_state_policy()) { |
2543 | clear_optional_external_state_policy(); |
2544 | set_has_external_state_policy(); |
2545 | } |
2546 | optional_external_state_policy_.external_state_policy_ = value; |
2547 | // @@protoc_insertion_point(field_set:tensorflow.data.Options.external_state_policy) |
2548 | } |
2549 | |
2550 | inline bool Options::has_optional_deterministic() const { |
2551 | return optional_deterministic_case() != OPTIONAL_DETERMINISTIC_NOT_SET; |
2552 | } |
2553 | inline void Options::clear_has_optional_deterministic() { |
2554 | _oneof_case_[0] = OPTIONAL_DETERMINISTIC_NOT_SET; |
2555 | } |
2556 | inline bool Options::has_optional_slack() const { |
2557 | return optional_slack_case() != OPTIONAL_SLACK_NOT_SET; |
2558 | } |
2559 | inline void Options::clear_has_optional_slack() { |
2560 | _oneof_case_[1] = OPTIONAL_SLACK_NOT_SET; |
2561 | } |
2562 | inline bool Options::has_optional_external_state_policy() const { |
2563 | return optional_external_state_policy_case() != OPTIONAL_EXTERNAL_STATE_POLICY_NOT_SET; |
2564 | } |
2565 | inline void Options::clear_has_optional_external_state_policy() { |
2566 | _oneof_case_[2] = OPTIONAL_EXTERNAL_STATE_POLICY_NOT_SET; |
2567 | } |
2568 | inline Options::OptionalDeterministicCase Options::optional_deterministic_case() const { |
2569 | return Options::OptionalDeterministicCase(_oneof_case_[0]); |
2570 | } |
2571 | inline Options::OptionalSlackCase Options::optional_slack_case() const { |
2572 | return Options::OptionalSlackCase(_oneof_case_[1]); |
2573 | } |
2574 | inline Options::OptionalExternalStatePolicyCase Options::optional_external_state_policy_case() const { |
2575 | return Options::OptionalExternalStatePolicyCase(_oneof_case_[2]); |
2576 | } |
2577 | #ifdef __GNUC__ |
2578 | #pragma GCC diagnostic pop |
2579 | #endif // __GNUC__ |
2580 | // ------------------------------------------------------------------- |
2581 | |
2582 | // ------------------------------------------------------------------- |
2583 | |
2584 | // ------------------------------------------------------------------- |
2585 | |
2586 | // ------------------------------------------------------------------- |
2587 | |
2588 | // ------------------------------------------------------------------- |
2589 | |
2590 | |
2591 | // @@protoc_insertion_point(namespace_scope) |
2592 | |
2593 | } // namespace data |
2594 | } // namespace tensorflow |
2595 | |
2596 | PROTOBUF_NAMESPACE_OPEN |
2597 | |
2598 | template <> struct is_proto_enum< ::tensorflow::data::CardinalityOptions_ComputeLevel> : ::std::true_type {}; |
2599 | template <> |
2600 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::data::CardinalityOptions_ComputeLevel>() { |
2601 | return ::tensorflow::data::CardinalityOptions_ComputeLevel_descriptor(); |
2602 | } |
2603 | template <> struct is_proto_enum< ::tensorflow::data::AutoShardPolicy> : ::std::true_type {}; |
2604 | template <> |
2605 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::data::AutoShardPolicy>() { |
2606 | return ::tensorflow::data::AutoShardPolicy_descriptor(); |
2607 | } |
2608 | template <> struct is_proto_enum< ::tensorflow::data::ExternalStatePolicy> : ::std::true_type {}; |
2609 | template <> |
2610 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::data::ExternalStatePolicy>() { |
2611 | return ::tensorflow::data::ExternalStatePolicy_descriptor(); |
2612 | } |
2613 | |
2614 | PROTOBUF_NAMESPACE_CLOSE |
2615 | |
2616 | // @@protoc_insertion_point(global_scope) |
2617 | |
2618 | #include <google/protobuf/port_undef.inc> |
2619 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdataset_5foptions_2eproto |
2620 | |