1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: fcp/client/engine/engine.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_fcp_2fclient_2fengine_2fengine_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_fcp_2fclient_2fengine_2fengine_2eproto
6
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/generated_enum_util.h>
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_fcp_2fclient_2fengine_2fengine_2eproto
36 PROTOBUF_NAMESPACE_OPEN
37 namespace internal {
38 class AnyMetadata;
39 } // namespace internal
40 PROTOBUF_NAMESPACE_CLOSE
41
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct_fcp_2fclient_2fengine_2fengine_2eproto {
44 static const ::uint32_t offsets[];
45 };
46 namespace fcp {
47 namespace client {
48 namespace engine {
49 class TaskRetry;
50 struct TaskRetryDefaultTypeInternal;
51 extern TaskRetryDefaultTypeInternal _TaskRetry_default_instance_;
52 } // namespace engine
53 } // namespace client
54 } // namespace fcp
55 PROTOBUF_NAMESPACE_OPEN
56 template<> ::fcp::client::engine::TaskRetry* Arena::CreateMaybeMessage<::fcp::client::engine::TaskRetry>(Arena*);
57 PROTOBUF_NAMESPACE_CLOSE
58 namespace fcp {
59 namespace client {
60 namespace engine {
61
62 enum PhaseOutcome : int {
63 PHASE_OUTCOME_UNDEFINED = 0,
64 COMPLETED = 1,
65 INTERRUPTED = 2,
66 ERROR = 3,
67 PhaseOutcome_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
68 PhaseOutcome_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
69 };
70 bool PhaseOutcome_IsValid(int value);
71 constexpr PhaseOutcome PhaseOutcome_MIN = PHASE_OUTCOME_UNDEFINED;
72 constexpr PhaseOutcome PhaseOutcome_MAX = ERROR;
73 constexpr int PhaseOutcome_ARRAYSIZE = PhaseOutcome_MAX + 1;
74
75 const std::string& PhaseOutcome_Name(PhaseOutcome value);
76 template<typename T>
PhaseOutcome_Name(T enum_t_value)77 inline const std::string& PhaseOutcome_Name(T enum_t_value) {
78 static_assert(::std::is_same<T, PhaseOutcome>::value ||
79 ::std::is_integral<T>::value,
80 "Incorrect type passed to function PhaseOutcome_Name.");
81 return PhaseOutcome_Name(static_cast<PhaseOutcome>(enum_t_value));
82 }
83 bool PhaseOutcome_Parse(
84 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PhaseOutcome* value);
85 enum DataSourceType : int {
86 TRAINING_DATA_SOURCE_UNDEFINED = 0,
87 FEED = 1,
88 DATASET = 2,
89 DataSourceType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
90 DataSourceType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
91 };
92 bool DataSourceType_IsValid(int value);
93 constexpr DataSourceType DataSourceType_MIN = TRAINING_DATA_SOURCE_UNDEFINED;
94 constexpr DataSourceType DataSourceType_MAX = DATASET;
95 constexpr int DataSourceType_ARRAYSIZE = DataSourceType_MAX + 1;
96
97 const std::string& DataSourceType_Name(DataSourceType value);
98 template<typename T>
DataSourceType_Name(T enum_t_value)99 inline const std::string& DataSourceType_Name(T enum_t_value) {
100 static_assert(::std::is_same<T, DataSourceType>::value ||
101 ::std::is_integral<T>::value,
102 "Incorrect type passed to function DataSourceType_Name.");
103 return DataSourceType_Name(static_cast<DataSourceType>(enum_t_value));
104 }
105 bool DataSourceType_Parse(
106 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DataSourceType* value);
107 // ===================================================================
108
109 class TaskRetry final :
110 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:fcp.client.engine.TaskRetry) */ {
111 public:
TaskRetry()112 inline TaskRetry() : TaskRetry(nullptr) {}
113 ~TaskRetry() override;
114 explicit PROTOBUF_CONSTEXPR TaskRetry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
115
116 TaskRetry(const TaskRetry& from);
TaskRetry(TaskRetry && from)117 TaskRetry(TaskRetry&& from) noexcept
118 : TaskRetry() {
119 *this = ::std::move(from);
120 }
121
122 inline TaskRetry& operator=(const TaskRetry& from) {
123 if (this == &from) return *this;
124 CopyFrom(from);
125 return *this;
126 }
127 inline TaskRetry& operator=(TaskRetry&& from) noexcept {
128 if (this == &from) return *this;
129 if (GetOwningArena() == from.GetOwningArena()
130 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
131 && GetOwningArena() != nullptr
132 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
133 ) {
134 InternalSwap(&from);
135 } else {
136 CopyFrom(from);
137 }
138 return *this;
139 }
140
default_instance()141 static const TaskRetry& default_instance() {
142 return *internal_default_instance();
143 }
internal_default_instance()144 static inline const TaskRetry* internal_default_instance() {
145 return reinterpret_cast<const TaskRetry*>(
146 &_TaskRetry_default_instance_);
147 }
148 static constexpr int kIndexInFileMessages =
149 0;
150
swap(TaskRetry & a,TaskRetry & b)151 friend void swap(TaskRetry& a, TaskRetry& b) {
152 a.Swap(&b);
153 }
Swap(TaskRetry * other)154 inline void Swap(TaskRetry* other) {
155 if (other == this) return;
156 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
157 if (GetOwningArena() != nullptr &&
158 GetOwningArena() == other->GetOwningArena()) {
159 #else // PROTOBUF_FORCE_COPY_IN_SWAP
160 if (GetOwningArena() == other->GetOwningArena()) {
161 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
162 InternalSwap(other);
163 } else {
164 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
165 }
166 }
167 void UnsafeArenaSwap(TaskRetry* other) {
168 if (other == this) return;
169 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
170 InternalSwap(other);
171 }
172
173 // implements Message ----------------------------------------------
174
175 TaskRetry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
176 return CreateMaybeMessage<TaskRetry>(arena);
177 }
178 TaskRetry* New() const {
179 return New(nullptr);
180 }
181 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
182 void CopyFrom(const TaskRetry& from);
183 void MergeFrom(const TaskRetry& from);
184 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
185 bool IsInitialized() const final;
186
187 size_t ByteSizeLong() const final;
188 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
189 ::uint8_t* _InternalSerialize(
190 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
191 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
192
193 private:
194 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
195 void SharedDtor();
196 void SetCachedSize(int size) const;
197 void InternalSwap(TaskRetry* other);
198
199 private:
200 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
201 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
202 return "fcp.client.engine.TaskRetry";
203 }
204 protected:
205 explicit TaskRetry(::PROTOBUF_NAMESPACE_ID::Arena* arena,
206 bool is_message_owned = false);
207 public:
208
209 std::string GetTypeName() const final;
210
211 // nested types ----------------------------------------------------
212
213 // accessors -------------------------------------------------------
214
215 enum : int {
216 kRetryTokenFieldNumber = 1,
217 kDelayMinFieldNumber = 2,
218 kDelayMaxFieldNumber = 3,
219 };
220 // string retry_token = 1;
221 void clear_retry_token();
222 const std::string& retry_token() const;
223 template <typename ArgT0 = const std::string&, typename... ArgT>
224 void set_retry_token(ArgT0&& arg0, ArgT... args);
225 std::string* mutable_retry_token();
226 PROTOBUF_NODISCARD std::string* release_retry_token();
227 void set_allocated_retry_token(std::string* retry_token);
228 private:
229 const std::string& _internal_retry_token() const;
230 inline PROTOBUF_ALWAYS_INLINE void _internal_set_retry_token(const std::string& value);
231 std::string* _internal_mutable_retry_token();
232 public:
233
234 // int64 delay_min = 2;
235 void clear_delay_min();
236 ::int64_t delay_min() const;
237 void set_delay_min(::int64_t value);
238 private:
239 ::int64_t _internal_delay_min() const;
240 void _internal_set_delay_min(::int64_t value);
241 public:
242
243 // int64 delay_max = 3;
244 void clear_delay_max();
245 ::int64_t delay_max() const;
246 void set_delay_max(::int64_t value);
247 private:
248 ::int64_t _internal_delay_max() const;
249 void _internal_set_delay_max(::int64_t value);
250 public:
251
252 // @@protoc_insertion_point(class_scope:fcp.client.engine.TaskRetry)
253 private:
254 class _Internal;
255
256 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
257 typedef void InternalArenaConstructable_;
258 typedef void DestructorSkippable_;
259 struct Impl_ {
260 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr retry_token_;
261 ::int64_t delay_min_;
262 ::int64_t delay_max_;
263 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
264 };
265 union { Impl_ _impl_; };
266 friend struct ::TableStruct_fcp_2fclient_2fengine_2fengine_2eproto;
267 };
268 // ===================================================================
269
270
271 // ===================================================================
272
273 #ifdef __GNUC__
274 #pragma GCC diagnostic push
275 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
276 #endif // __GNUC__
277 // TaskRetry
278
279 // string retry_token = 1;
clear_retry_token()280 inline void TaskRetry::clear_retry_token() {
281 _impl_.retry_token_.ClearToEmpty();
282 }
retry_token()283 inline const std::string& TaskRetry::retry_token() const {
284 // @@protoc_insertion_point(field_get:fcp.client.engine.TaskRetry.retry_token)
285 return _internal_retry_token();
286 }
287 template <typename ArgT0, typename... ArgT>
288 inline PROTOBUF_ALWAYS_INLINE
set_retry_token(ArgT0 && arg0,ArgT...args)289 void TaskRetry::set_retry_token(ArgT0&& arg0, ArgT... args) {
290
291 _impl_.retry_token_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
292 // @@protoc_insertion_point(field_set:fcp.client.engine.TaskRetry.retry_token)
293 }
mutable_retry_token()294 inline std::string* TaskRetry::mutable_retry_token() {
295 std::string* _s = _internal_mutable_retry_token();
296 // @@protoc_insertion_point(field_mutable:fcp.client.engine.TaskRetry.retry_token)
297 return _s;
298 }
_internal_retry_token()299 inline const std::string& TaskRetry::_internal_retry_token() const {
300 return _impl_.retry_token_.Get();
301 }
_internal_set_retry_token(const std::string & value)302 inline void TaskRetry::_internal_set_retry_token(const std::string& value) {
303
304 _impl_.retry_token_.Set(value, GetArenaForAllocation());
305 }
_internal_mutable_retry_token()306 inline std::string* TaskRetry::_internal_mutable_retry_token() {
307
308 return _impl_.retry_token_.Mutable(GetArenaForAllocation());
309 }
release_retry_token()310 inline std::string* TaskRetry::release_retry_token() {
311 // @@protoc_insertion_point(field_release:fcp.client.engine.TaskRetry.retry_token)
312 return _impl_.retry_token_.Release();
313 }
set_allocated_retry_token(std::string * retry_token)314 inline void TaskRetry::set_allocated_retry_token(std::string* retry_token) {
315 _impl_.retry_token_.SetAllocated(retry_token, GetArenaForAllocation());
316 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
317 if (_impl_.retry_token_.IsDefault()) {
318 _impl_.retry_token_.Set("", GetArenaForAllocation());
319 }
320 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
321 // @@protoc_insertion_point(field_set_allocated:fcp.client.engine.TaskRetry.retry_token)
322 }
323
324 // int64 delay_min = 2;
clear_delay_min()325 inline void TaskRetry::clear_delay_min() {
326 _impl_.delay_min_ = ::int64_t{0};
327 }
_internal_delay_min()328 inline ::int64_t TaskRetry::_internal_delay_min() const {
329 return _impl_.delay_min_;
330 }
delay_min()331 inline ::int64_t TaskRetry::delay_min() const {
332 // @@protoc_insertion_point(field_get:fcp.client.engine.TaskRetry.delay_min)
333 return _internal_delay_min();
334 }
_internal_set_delay_min(::int64_t value)335 inline void TaskRetry::_internal_set_delay_min(::int64_t value) {
336
337 _impl_.delay_min_ = value;
338 }
set_delay_min(::int64_t value)339 inline void TaskRetry::set_delay_min(::int64_t value) {
340 _internal_set_delay_min(value);
341 // @@protoc_insertion_point(field_set:fcp.client.engine.TaskRetry.delay_min)
342 }
343
344 // int64 delay_max = 3;
clear_delay_max()345 inline void TaskRetry::clear_delay_max() {
346 _impl_.delay_max_ = ::int64_t{0};
347 }
_internal_delay_max()348 inline ::int64_t TaskRetry::_internal_delay_max() const {
349 return _impl_.delay_max_;
350 }
delay_max()351 inline ::int64_t TaskRetry::delay_max() const {
352 // @@protoc_insertion_point(field_get:fcp.client.engine.TaskRetry.delay_max)
353 return _internal_delay_max();
354 }
_internal_set_delay_max(::int64_t value)355 inline void TaskRetry::_internal_set_delay_max(::int64_t value) {
356
357 _impl_.delay_max_ = value;
358 }
set_delay_max(::int64_t value)359 inline void TaskRetry::set_delay_max(::int64_t value) {
360 _internal_set_delay_max(value);
361 // @@protoc_insertion_point(field_set:fcp.client.engine.TaskRetry.delay_max)
362 }
363
364 #ifdef __GNUC__
365 #pragma GCC diagnostic pop
366 #endif // __GNUC__
367
368 // @@protoc_insertion_point(namespace_scope)
369
370 } // namespace engine
371 } // namespace client
372 } // namespace fcp
373
374 PROTOBUF_NAMESPACE_OPEN
375
376 template <> struct is_proto_enum< ::fcp::client::engine::PhaseOutcome> : ::std::true_type {};
377 template <> struct is_proto_enum< ::fcp::client::engine::DataSourceType> : ::std::true_type {};
378
379 PROTOBUF_NAMESPACE_CLOSE
380
381 // @@protoc_insertion_point(global_scope)
382
383 #include <google/protobuf/port_undef.inc>
384 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_fcp_2fclient_2fengine_2fengine_2eproto
385