loomplan.pb.h 16.9 KB
Newer Older
Stanislav Bohm's avatar
Stanislav Bohm committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: loomplan.proto

#ifndef PROTOBUF_loomplan_2eproto__INCLUDED
#define PROTOBUF_loomplan_2eproto__INCLUDED

#include <string>

#include <google/protobuf/stubs/common.h>

#if GOOGLE_PROTOBUF_VERSION < 2006000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please update
#error your headers.
#endif
#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/message_lite.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
// @@protoc_insertion_point(includes)

namespace loomplan {

// Internal implementation detail -- do not call these.
void  protobuf_AddDesc_loomplan_2eproto();
void protobuf_AssignDesc_loomplan_2eproto();
void protobuf_ShutdownFile_loomplan_2eproto();

class Task;
class Plan;

38 39 40 41
enum Task_Policy {
  Task_Policy_POLICY_STANDARD = 1,
  Task_Policy_POLICY_SIMPLE = 2,
  Task_Policy_POLICY_SCHEDULER = 3
Stanislav Bohm's avatar
Stanislav Bohm committed
42
};
43 44 45 46
bool Task_Policy_IsValid(int value);
const Task_Policy Task_Policy_Policy_MIN = Task_Policy_POLICY_STANDARD;
const Task_Policy Task_Policy_Policy_MAX = Task_Policy_POLICY_SCHEDULER;
const int Task_Policy_Policy_ARRAYSIZE = Task_Policy_Policy_MAX + 1;
Stanislav Bohm's avatar
Stanislav Bohm committed
47

Stanislav Bohm's avatar
Stanislav Bohm committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
// ===================================================================

class Task : public ::google::protobuf::MessageLite {
 public:
  Task();
  virtual ~Task();

  Task(const Task& from);

  inline Task& operator=(const Task& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const Task& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const Task* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(Task* other);

  // implements Message ----------------------------------------------

  Task* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
  void CopyFrom(const Task& from);
  void MergeFrom(const Task& from);
  void Clear();
  bool IsInitialized() const;

  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() const;

  // nested types ----------------------------------------------------

109 110 111 112 113 114
  typedef Task_Policy Policy;
  static const Policy POLICY_STANDARD = Task_Policy_POLICY_STANDARD;
  static const Policy POLICY_SIMPLE = Task_Policy_POLICY_SIMPLE;
  static const Policy POLICY_SCHEDULER = Task_Policy_POLICY_SCHEDULER;
  static inline bool Policy_IsValid(int value) {
    return Task_Policy_IsValid(value);
Stanislav Bohm's avatar
Stanislav Bohm committed
115
  }
116 117 118 119 120 121
  static const Policy Policy_MIN =
    Task_Policy_Policy_MIN;
  static const Policy Policy_MAX =
    Task_Policy_Policy_MAX;
  static const int Policy_ARRAYSIZE =
    Task_Policy_Policy_ARRAYSIZE;
Stanislav Bohm's avatar
Stanislav Bohm committed
122

Stanislav Bohm's avatar
Stanislav Bohm committed
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
  // accessors -------------------------------------------------------

  // required int32 task_type = 1;
  inline bool has_task_type() const;
  inline void clear_task_type();
  static const int kTaskTypeFieldNumber = 1;
  inline ::google::protobuf::int32 task_type() const;
  inline void set_task_type(::google::protobuf::int32 value);

  // required bytes config = 2;
  inline bool has_config() const;
  inline void clear_config();
  static const int kConfigFieldNumber = 2;
  inline const ::std::string& config() const;
  inline void set_config(const ::std::string& value);
  inline void set_config(const char* value);
  inline void set_config(const void* value, size_t size);
  inline ::std::string* mutable_config();
  inline ::std::string* release_config();
  inline void set_allocated_config(::std::string* config);

  // repeated int32 input_ids = 3;
  inline int input_ids_size() const;
  inline void clear_input_ids();
  static const int kInputIdsFieldNumber = 3;
  inline ::google::protobuf::int32 input_ids(int index) const;
  inline void set_input_ids(int index, ::google::protobuf::int32 value);
  inline void add_input_ids(::google::protobuf::int32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
      input_ids() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
      mutable_input_ids();

156 157 158 159 160 161
  // optional .loomplan.Task.Policy policy = 4 [default = POLICY_STANDARD];
  inline bool has_policy() const;
  inline void clear_policy();
  static const int kPolicyFieldNumber = 4;
  inline ::loomplan::Task_Policy policy() const;
  inline void set_policy(::loomplan::Task_Policy value);
Stanislav Bohm's avatar
Stanislav Bohm committed
162

Stanislav Bohm's avatar
Stanislav Bohm committed
163 164 165 166 167 168
  // @@protoc_insertion_point(class_scope:loomplan.Task)
 private:
  inline void set_has_task_type();
  inline void clear_has_task_type();
  inline void set_has_config();
  inline void clear_has_config();
169 170
  inline void set_has_policy();
  inline void clear_has_policy();
Stanislav Bohm's avatar
Stanislav Bohm committed
171 172 173 174 175 176 177

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::std::string* config_;
  ::google::protobuf::int32 task_type_;
178
  int policy_;
Stanislav Bohm's avatar
Stanislav Bohm committed
179
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > input_ids_;
Stanislav Bohm's avatar
Stanislav Bohm committed
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_loomplan_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_loomplan_2eproto();
  #endif
  friend void protobuf_AssignDesc_loomplan_2eproto();
  friend void protobuf_ShutdownFile_loomplan_2eproto();

  void InitAsDefaultInstance();
  static Task* default_instance_;
};
// -------------------------------------------------------------------

class Plan : public ::google::protobuf::MessageLite {
 public:
  Plan();
  virtual ~Plan();

  Plan(const Plan& from);

  inline Plan& operator=(const Plan& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const Plan& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const Plan* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(Plan* other);

  // implements Message ----------------------------------------------

  Plan* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
  void CopyFrom(const Plan& from);
  void MergeFrom(const Plan& from);
  void Clear();
  bool IsInitialized() const;

  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // repeated .loomplan.Task tasks = 2;
  inline int tasks_size() const;
  inline void clear_tasks();
  static const int kTasksFieldNumber = 2;
  inline const ::loomplan::Task& tasks(int index) const;
  inline ::loomplan::Task* mutable_tasks(int index);
  inline ::loomplan::Task* add_tasks();
  inline const ::google::protobuf::RepeatedPtrField< ::loomplan::Task >&
      tasks() const;
  inline ::google::protobuf::RepeatedPtrField< ::loomplan::Task >*
      mutable_tasks();

  // repeated int32 result_ids = 3;
  inline int result_ids_size() const;
  inline void clear_result_ids();
  static const int kResultIdsFieldNumber = 3;
  inline ::google::protobuf::int32 result_ids(int index) const;
  inline void set_result_ids(int index, ::google::protobuf::int32 value);
  inline void add_result_ids(::google::protobuf::int32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
      result_ids() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
      mutable_result_ids();

  // @@protoc_insertion_point(class_scope:loomplan.Plan)
 private:

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::google::protobuf::RepeatedPtrField< ::loomplan::Task > tasks_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > result_ids_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_loomplan_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_loomplan_2eproto();
  #endif
  friend void protobuf_AssignDesc_loomplan_2eproto();
  friend void protobuf_ShutdownFile_loomplan_2eproto();

  void InitAsDefaultInstance();
  static Plan* default_instance_;
};
// ===================================================================


// ===================================================================

// Task

// required int32 task_type = 1;
inline bool Task::has_task_type() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Task::set_has_task_type() {
  _has_bits_[0] |= 0x00000001u;
}
inline void Task::clear_has_task_type() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void Task::clear_task_type() {
  task_type_ = 0;
  clear_has_task_type();
}
inline ::google::protobuf::int32 Task::task_type() const {
  // @@protoc_insertion_point(field_get:loomplan.Task.task_type)
  return task_type_;
}
inline void Task::set_task_type(::google::protobuf::int32 value) {
  set_has_task_type();
  task_type_ = value;
  // @@protoc_insertion_point(field_set:loomplan.Task.task_type)
}

// required bytes config = 2;
inline bool Task::has_config() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void Task::set_has_config() {
  _has_bits_[0] |= 0x00000002u;
}
inline void Task::clear_has_config() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void Task::clear_config() {
  if (config_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    config_->clear();
  }
  clear_has_config();
}
inline const ::std::string& Task::config() const {
  // @@protoc_insertion_point(field_get:loomplan.Task.config)
  return *config_;
}
inline void Task::set_config(const ::std::string& value) {
  set_has_config();
  if (config_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    config_ = new ::std::string;
  }
  config_->assign(value);
  // @@protoc_insertion_point(field_set:loomplan.Task.config)
}
inline void Task::set_config(const char* value) {
  set_has_config();
  if (config_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    config_ = new ::std::string;
  }
  config_->assign(value);
  // @@protoc_insertion_point(field_set_char:loomplan.Task.config)
}
inline void Task::set_config(const void* value, size_t size) {
  set_has_config();
  if (config_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    config_ = new ::std::string;
  }
  config_->assign(reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_set_pointer:loomplan.Task.config)
}
inline ::std::string* Task::mutable_config() {
  set_has_config();
  if (config_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    config_ = new ::std::string;
  }
  // @@protoc_insertion_point(field_mutable:loomplan.Task.config)
  return config_;
}
inline ::std::string* Task::release_config() {
  clear_has_config();
  if (config_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    return NULL;
  } else {
    ::std::string* temp = config_;
    config_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    return temp;
  }
}
inline void Task::set_allocated_config(::std::string* config) {
  if (config_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    delete config_;
  }
  if (config) {
    set_has_config();
    config_ = config;
  } else {
    clear_has_config();
    config_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  // @@protoc_insertion_point(field_set_allocated:loomplan.Task.config)
}

// repeated int32 input_ids = 3;
inline int Task::input_ids_size() const {
  return input_ids_.size();
}
inline void Task::clear_input_ids() {
  input_ids_.Clear();
}
inline ::google::protobuf::int32 Task::input_ids(int index) const {
  // @@protoc_insertion_point(field_get:loomplan.Task.input_ids)
  return input_ids_.Get(index);
}
inline void Task::set_input_ids(int index, ::google::protobuf::int32 value) {
  input_ids_.Set(index, value);
  // @@protoc_insertion_point(field_set:loomplan.Task.input_ids)
}
inline void Task::add_input_ids(::google::protobuf::int32 value) {
  input_ids_.Add(value);
  // @@protoc_insertion_point(field_add:loomplan.Task.input_ids)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
Task::input_ids() const {
  // @@protoc_insertion_point(field_list:loomplan.Task.input_ids)
  return input_ids_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
Task::mutable_input_ids() {
  // @@protoc_insertion_point(field_mutable_list:loomplan.Task.input_ids)
  return &input_ids_;
}

435 436
// optional .loomplan.Task.Policy policy = 4 [default = POLICY_STANDARD];
inline bool Task::has_policy() const {
Stanislav Bohm's avatar
Stanislav Bohm committed
437 438
  return (_has_bits_[0] & 0x00000008u) != 0;
}
439
inline void Task::set_has_policy() {
Stanislav Bohm's avatar
Stanislav Bohm committed
440 441
  _has_bits_[0] |= 0x00000008u;
}
442
inline void Task::clear_has_policy() {
Stanislav Bohm's avatar
Stanislav Bohm committed
443 444
  _has_bits_[0] &= ~0x00000008u;
}
445 446 447
inline void Task::clear_policy() {
  policy_ = 1;
  clear_has_policy();
Stanislav Bohm's avatar
Stanislav Bohm committed
448
}
449 450 451
inline ::loomplan::Task_Policy Task::policy() const {
  // @@protoc_insertion_point(field_get:loomplan.Task.policy)
  return static_cast< ::loomplan::Task_Policy >(policy_);
Stanislav Bohm's avatar
Stanislav Bohm committed
452
}
453 454 455 456 457
inline void Task::set_policy(::loomplan::Task_Policy value) {
  assert(::loomplan::Task_Policy_IsValid(value));
  set_has_policy();
  policy_ = value;
  // @@protoc_insertion_point(field_set:loomplan.Task.policy)
Stanislav Bohm's avatar
Stanislav Bohm committed
458 459
}

Stanislav Bohm's avatar
Stanislav Bohm committed
460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531
// -------------------------------------------------------------------

// Plan

// repeated .loomplan.Task tasks = 2;
inline int Plan::tasks_size() const {
  return tasks_.size();
}
inline void Plan::clear_tasks() {
  tasks_.Clear();
}
inline const ::loomplan::Task& Plan::tasks(int index) const {
  // @@protoc_insertion_point(field_get:loomplan.Plan.tasks)
  return tasks_.Get(index);
}
inline ::loomplan::Task* Plan::mutable_tasks(int index) {
  // @@protoc_insertion_point(field_mutable:loomplan.Plan.tasks)
  return tasks_.Mutable(index);
}
inline ::loomplan::Task* Plan::add_tasks() {
  // @@protoc_insertion_point(field_add:loomplan.Plan.tasks)
  return tasks_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::loomplan::Task >&
Plan::tasks() const {
  // @@protoc_insertion_point(field_list:loomplan.Plan.tasks)
  return tasks_;
}
inline ::google::protobuf::RepeatedPtrField< ::loomplan::Task >*
Plan::mutable_tasks() {
  // @@protoc_insertion_point(field_mutable_list:loomplan.Plan.tasks)
  return &tasks_;
}

// repeated int32 result_ids = 3;
inline int Plan::result_ids_size() const {
  return result_ids_.size();
}
inline void Plan::clear_result_ids() {
  result_ids_.Clear();
}
inline ::google::protobuf::int32 Plan::result_ids(int index) const {
  // @@protoc_insertion_point(field_get:loomplan.Plan.result_ids)
  return result_ids_.Get(index);
}
inline void Plan::set_result_ids(int index, ::google::protobuf::int32 value) {
  result_ids_.Set(index, value);
  // @@protoc_insertion_point(field_set:loomplan.Plan.result_ids)
}
inline void Plan::add_result_ids(::google::protobuf::int32 value) {
  result_ids_.Add(value);
  // @@protoc_insertion_point(field_add:loomplan.Plan.result_ids)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
Plan::result_ids() const {
  // @@protoc_insertion_point(field_list:loomplan.Plan.result_ids)
  return result_ids_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
Plan::mutable_result_ids() {
  // @@protoc_insertion_point(field_mutable_list:loomplan.Plan.result_ids)
  return &result_ids_;
}


// @@protoc_insertion_point(namespace_scope)

}  // namespace loomplan

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_loomplan_2eproto__INCLUDED