// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: plm/v1/task.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code

using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Messages.Plm.V1 {

  /// <summary>Holder for reflection information generated from plm/v1/task.proto</summary>
  public static partial class TaskReflection {

    #region Descriptor
    /// <summary>File descriptor for plm/v1/task.proto</summary>
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static TaskReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChFwbG0vdjEvdGFzay5wcm90bxIGcGxtLnYxGhZnZW9tZXRyeS92MS9wb3Nl",
            "LnByb3RvGhlnZW9tZXRyeS92MS92ZWN0b3IzLnByb3RvIr0FCgtUYXNrTWVz",
            "c2FnZRIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtk",
            "ZXNjcmlwdGlvbhgDIAEoCVILZGVzY3JpcHRpb24SJwoPc2VxdWVuY2VfbnVt",
            "YmVyGAQgASgDUg5zZXF1ZW5jZU51bWJlchIXCgdwYXJ0X2lkGAUgASgJUgZw",
            "YXJ0SWQSGQoIbW9kZWxfaWQYBiABKAlSB21vZGVsSWQSLQoJdGFza190eXBl",
            "GAcgASgOMhAucGxtLnYxLlRhc2tUeXBlUgh0YXNrVHlwZRIyCgZ0YXJnZXQY",
            "CCABKAsyGi5nZW9tZXRyeS52MS5Mb2NhbGl6ZWRQb3NlUgZ0YXJnZXQSMAoI",
            "YXBwcm9hY2gYCSABKAsyFC5nZW9tZXRyeS52MS5WZWN0b3IzUghhcHByb2Fj",
            "aBIbCglwYXJlbnRfaWQYCiABKAlSCHBhcmVudElkEh0KCmFnZW50c19pZHMY",
            "CyADKAlSCWFnZW50c0lkcxIfCgthc3NpZ25lZF90bxgMIAEoCVIKYXNzaWdu",
            "ZWRUbxInCgVzdGF0ZRgNIAEoDjIRLnBsbS52MS5UYXNrU3RhdGVSBXN0YXRl",
            "EiQKDXByZWNvbmRpdGlvbnMYDiADKAlSDXByZWNvbmRpdGlvbnMSHgoKZGVw",
            "ZW5kYW50cxgPIAMoCVIKZGVwZW5kYW50cxJVChVhc3NpZ25tZW50X3ByZWZl",
            "cmVuY2UYEyABKA4yIC5wbG0udjEuVGFza0Fzc2lnbm1lbnRQcmVmZXJlbmNl",
            "UhRhc3NpZ25tZW50UHJlZmVyZW5jZRIhCgxjYW5fcmVhc3NpZ24YECABKAhS",
            "C2NhblJlYXNzaWduEhUKBmNhbl9kbxgRIAEoCFIFY2FuRG8SGQoIY2FuX3Vu",
            "ZG8YEiABKAhSB2NhblVuZG8iwwEKElRhc2tVcGRhdGVkTWVzc2FnZRIOCgJp",
            "ZBgBIAEoCVICaWQSHwoLYXNzaWduZWRfdG8YAiABKAlSCmFzc2lnbmVkVG8S",
            "JwoFc3RhdGUYAyABKA4yES5wbG0udjEuVGFza1N0YXRlUgVzdGF0ZRIhCgxj",
            "YW5fcmVhc3NpZ24YBCABKAhSC2NhblJlYXNzaWduEhUKBmNhbl9kbxgFIAEo",
            "CFIFY2FuRG8SGQoIY2FuX3VuZG8YBiABKAhSB2NhblVuZG8qsAEKCVRhc2tT",
            "dGF0ZRIaChZUQVNLX1NUQVRFX1VOU1BFQ0lGSUVEEAASIwofVEFTS19TVEFU",
            "RV9NSVNTSU5HX1BSRUNPTkRJVElPThABEhYKElRBU0tfU1RBVEVfV0FJVElO",
            "RxACEhoKFlRBU0tfU1RBVEVfSU5fUFJPR1JFU1MQAxIYChRUQVNLX1NUQVRF",
            "X0NPTVBMRVRFRBAEEhQKEFRBU0tfU1RBVEVfRVJST1IQBirpAQoIVGFza1R5",
            "cGUSGQoVVEFTS19UWVBFX1VOU1BFQ0lGSUVEEAASFQoRVEFTS19UWVBFX0lO",
            "U1BFQ1QQARIUChBUQVNLX1RZUEVfRkFTVEVOEAISFgoSVEFTS19UWVBFX1VO",
            "RkFTVEVOEAMSEwoPVEFTS19UWVBFX01PVU5UEAQSFQoRVEFTS19UWVBFX1VO",
            "TU9VTlQQBRISCg5UQVNLX1RZUEVfTU9WRRAGEhQKEFRBU0tfVFlQRV9SRU1P",
            "VkUQBxITCg9UQVNLX1RZUEVfQVBQTFkQCBISCg5UQVNLX1RZUEVfV0lQRRAJ",
            "KvYBChhUYXNrQXNzaWdubWVudFByZWZlcmVuY2USKgomVEFTS19BU1NJR05N",
            "RU5UX1BSRUZFUkVOQ0VfVU5TUEVDSUZJRUQQABIrCidUQVNLX0FTU0lHTk1F",
            "TlRfUFJFRkVSRU5DRV9QUkVGRVJfSFVNQU4QARIpCiVUQVNLX0FTU0lHTk1F",
            "TlRfUFJFRkVSRU5DRV9PTkxZX0hVTUFOEAISKwonVEFTS19BU1NJR05NRU5U",
            "X1BSRUZFUkVOQ0VfUFJFRkVSX1JPQk9UEAMSKQolVEFTS19BU1NJR05NRU5U",
            "X1BSRUZFUkVOQ0VfT05MWV9ST0JPVBAEQowBCgpjb20ucGxtLnYxQglUYXNr",
            "UHJvdG9QAVoxZ2l0aHViLmNvbS9jb2JvdGFyL3Byb3RvY29sL21lc3NhZ2Vz",
            "L3BsbS92MTtwbG12MaICA1BYWKoCD01lc3NhZ2VzLlBsbS5WMcoCBlBsbVxW",
            "MeICElBsbVxWMVxHUEJNZXRhZGF0YeoCB1BsbTo6VjFiBnByb3RvMw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::Messages.Common.V1.PoseReflection.Descriptor, global::Messages.Common.V1.Vector3Reflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Messages.Plm.V1.TaskState), typeof(global::Messages.Plm.V1.TaskType), typeof(global::Messages.Plm.V1.TaskAssignmentPreference), }, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Messages.Plm.V1.TaskMessage), global::Messages.Plm.V1.TaskMessage.Parser, new[]{ "Id", "Name", "Description", "SequenceNumber", "PartId", "ModelId", "TaskType", "Target", "Approach", "ParentId", "AgentsIds", "AssignedTo", "State", "Preconditions", "Dependants", "AssignmentPreference", "CanReassign", "CanDo", "CanUndo" }, null, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::Messages.Plm.V1.TaskUpdatedMessage), global::Messages.Plm.V1.TaskUpdatedMessage.Parser, new[]{ "Id", "AssignedTo", "State", "CanReassign", "CanDo", "CanUndo" }, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Enums
  public enum TaskState {
    [pbr::OriginalName("TASK_STATE_UNSPECIFIED")] Unspecified = 0,
    [pbr::OriginalName("TASK_STATE_MISSING_PRECONDITION")] MissingPrecondition = 1,
    [pbr::OriginalName("TASK_STATE_WAITING")] Waiting = 2,
    [pbr::OriginalName("TASK_STATE_IN_PROGRESS")] InProgress = 3,
    [pbr::OriginalName("TASK_STATE_COMPLETED")] Completed = 4,
    [pbr::OriginalName("TASK_STATE_ERROR")] Error = 6,
  }

  public enum TaskType {
    [pbr::OriginalName("TASK_TYPE_UNSPECIFIED")] Unspecified = 0,
    [pbr::OriginalName("TASK_TYPE_INSPECT")] Inspect = 1,
    [pbr::OriginalName("TASK_TYPE_FASTEN")] Fasten = 2,
    [pbr::OriginalName("TASK_TYPE_UNFASTEN")] Unfasten = 3,
    [pbr::OriginalName("TASK_TYPE_MOUNT")] Mount = 4,
    [pbr::OriginalName("TASK_TYPE_UNMOUNT")] Unmount = 5,
    [pbr::OriginalName("TASK_TYPE_MOVE")] Move = 6,
    [pbr::OriginalName("TASK_TYPE_REMOVE")] Remove = 7,
    [pbr::OriginalName("TASK_TYPE_APPLY")] Apply = 8,
    [pbr::OriginalName("TASK_TYPE_WIPE")] Wipe = 9,
  }

  public enum TaskAssignmentPreference {
    [pbr::OriginalName("TASK_ASSIGNMENT_PREFERENCE_UNSPECIFIED")] Unspecified = 0,
    [pbr::OriginalName("TASK_ASSIGNMENT_PREFERENCE_PREFER_HUMAN")] PreferHuman = 1,
    [pbr::OriginalName("TASK_ASSIGNMENT_PREFERENCE_ONLY_HUMAN")] OnlyHuman = 2,
    [pbr::OriginalName("TASK_ASSIGNMENT_PREFERENCE_PREFER_ROBOT")] PreferRobot = 3,
    [pbr::OriginalName("TASK_ASSIGNMENT_PREFERENCE_ONLY_ROBOT")] OnlyRobot = 4,
  }

  #endregion

  #region Messages
  /// <summary>
  /// TODO: add required skill?
  /// TODO: add tool_role?
  /// TODO: add validation
  /// TODO: add allowed_actors
  /// </summary>
  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
  public sealed partial class TaskMessage : pb::IMessage<TaskMessage>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<TaskMessage> _parser = new pb::MessageParser<TaskMessage>(() => new TaskMessage());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<TaskMessage> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Messages.Plm.V1.TaskReflection.Descriptor.MessageTypes[0]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public TaskMessage() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public TaskMessage(TaskMessage other) : this() {
      id_ = other.id_;
      name_ = other.name_;
      description_ = other.description_;
      sequenceNumber_ = other.sequenceNumber_;
      partId_ = other.partId_;
      modelId_ = other.modelId_;
      taskType_ = other.taskType_;
      target_ = other.target_ != null ? other.target_.Clone() : null;
      approach_ = other.approach_ != null ? other.approach_.Clone() : null;
      parentId_ = other.parentId_;
      agentsIds_ = other.agentsIds_.Clone();
      assignedTo_ = other.assignedTo_;
      state_ = other.state_;
      preconditions_ = other.preconditions_.Clone();
      dependants_ = other.dependants_.Clone();
      assignmentPreference_ = other.assignmentPreference_;
      canReassign_ = other.canReassign_;
      canDo_ = other.canDo_;
      canUndo_ = other.canUndo_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public TaskMessage Clone() {
      return new TaskMessage(this);
    }

    /// <summary>Field number for the "id" field.</summary>
    public const int IdFieldNumber = 1;
    private string id_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Id {
      get { return id_; }
      set {
        id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "name" field.</summary>
    public const int NameFieldNumber = 2;
    private string name_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Name {
      get { return name_; }
      set {
        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "description" field.</summary>
    public const int DescriptionFieldNumber = 3;
    private string description_ = "";
    /// <summary>
    /// TODO: rename to instruction_text
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Description {
      get { return description_; }
      set {
        description_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "sequence_number" field.</summary>
    public const int SequenceNumberFieldNumber = 4;
    private long sequenceNumber_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public long SequenceNumber {
      get { return sequenceNumber_; }
      set {
        sequenceNumber_ = value;
      }
    }

    /// <summary>Field number for the "part_id" field.</summary>
    public const int PartIdFieldNumber = 5;
    private string partId_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string PartId {
      get { return partId_; }
      set {
        partId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "model_id" field.</summary>
    public const int ModelIdFieldNumber = 6;
    private string modelId_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string ModelId {
      get { return modelId_; }
      set {
        modelId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "task_type" field.</summary>
    public const int TaskTypeFieldNumber = 7;
    private global::Messages.Plm.V1.TaskType taskType_ = global::Messages.Plm.V1.TaskType.Unspecified;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.Plm.V1.TaskType TaskType {
      get { return taskType_; }
      set {
        taskType_ = value;
      }
    }

    /// <summary>Field number for the "target" field.</summary>
    public const int TargetFieldNumber = 8;
    private global::Messages.Common.V1.LocalizedPose target_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.Common.V1.LocalizedPose Target {
      get { return target_; }
      set {
        target_ = value;
      }
    }

    /// <summary>Field number for the "approach" field.</summary>
    public const int ApproachFieldNumber = 9;
    private global::Messages.Common.V1.Vector3 approach_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.Common.V1.Vector3 Approach {
      get { return approach_; }
      set {
        approach_ = value;
      }
    }

    /// <summary>Field number for the "parent_id" field.</summary>
    public const int ParentIdFieldNumber = 10;
    private string parentId_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string ParentId {
      get { return parentId_; }
      set {
        parentId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "agents_ids" field.</summary>
    public const int AgentsIdsFieldNumber = 11;
    private static readonly pb::FieldCodec<string> _repeated_agentsIds_codec
        = pb::FieldCodec.ForString(90);
    private readonly pbc::RepeatedField<string> agentsIds_ = new pbc::RepeatedField<string>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<string> AgentsIds {
      get { return agentsIds_; }
    }

    /// <summary>Field number for the "assigned_to" field.</summary>
    public const int AssignedToFieldNumber = 12;
    private string assignedTo_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string AssignedTo {
      get { return assignedTo_; }
      set {
        assignedTo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "state" field.</summary>
    public const int StateFieldNumber = 13;
    private global::Messages.Plm.V1.TaskState state_ = global::Messages.Plm.V1.TaskState.Unspecified;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.Plm.V1.TaskState State {
      get { return state_; }
      set {
        state_ = value;
      }
    }

    /// <summary>Field number for the "preconditions" field.</summary>
    public const int PreconditionsFieldNumber = 14;
    private static readonly pb::FieldCodec<string> _repeated_preconditions_codec
        = pb::FieldCodec.ForString(114);
    private readonly pbc::RepeatedField<string> preconditions_ = new pbc::RepeatedField<string>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<string> Preconditions {
      get { return preconditions_; }
    }

    /// <summary>Field number for the "dependants" field.</summary>
    public const int DependantsFieldNumber = 15;
    private static readonly pb::FieldCodec<string> _repeated_dependants_codec
        = pb::FieldCodec.ForString(122);
    private readonly pbc::RepeatedField<string> dependants_ = new pbc::RepeatedField<string>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<string> Dependants {
      get { return dependants_; }
    }

    /// <summary>Field number for the "assignment_preference" field.</summary>
    public const int AssignmentPreferenceFieldNumber = 19;
    private global::Messages.Plm.V1.TaskAssignmentPreference assignmentPreference_ = global::Messages.Plm.V1.TaskAssignmentPreference.Unspecified;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.Plm.V1.TaskAssignmentPreference AssignmentPreference {
      get { return assignmentPreference_; }
      set {
        assignmentPreference_ = value;
      }
    }

    /// <summary>Field number for the "can_reassign" field.</summary>
    public const int CanReassignFieldNumber = 16;
    private bool canReassign_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool CanReassign {
      get { return canReassign_; }
      set {
        canReassign_ = value;
      }
    }

    /// <summary>Field number for the "can_do" field.</summary>
    public const int CanDoFieldNumber = 17;
    private bool canDo_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool CanDo {
      get { return canDo_; }
      set {
        canDo_ = value;
      }
    }

    /// <summary>Field number for the "can_undo" field.</summary>
    public const int CanUndoFieldNumber = 18;
    private bool canUndo_;
    /// <summary>
    /// TODO: 'complete-importance': could be different levels of "this must be explicitly completed" or tie it together with user level, such that expertise level (expert, intermediate, novice) equal and above intermediate can {bulk, automatic, ... } complete and below must explicitly complete. This should potentially also be tied to the part and this field(s) can then be a custom override for this specific task.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool CanUndo {
      get { return canUndo_; }
      set {
        canUndo_ = value;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override bool Equals(object other) {
      return Equals(other as TaskMessage);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(TaskMessage other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Id != other.Id) return false;
      if (Name != other.Name) return false;
      if (Description != other.Description) return false;
      if (SequenceNumber != other.SequenceNumber) return false;
      if (PartId != other.PartId) return false;
      if (ModelId != other.ModelId) return false;
      if (TaskType != other.TaskType) return false;
      if (!object.Equals(Target, other.Target)) return false;
      if (!object.Equals(Approach, other.Approach)) return false;
      if (ParentId != other.ParentId) return false;
      if(!agentsIds_.Equals(other.agentsIds_)) return false;
      if (AssignedTo != other.AssignedTo) return false;
      if (State != other.State) return false;
      if(!preconditions_.Equals(other.preconditions_)) return false;
      if(!dependants_.Equals(other.dependants_)) return false;
      if (AssignmentPreference != other.AssignmentPreference) return false;
      if (CanReassign != other.CanReassign) return false;
      if (CanDo != other.CanDo) return false;
      if (CanUndo != other.CanUndo) return false;
      return Equals(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override int GetHashCode() {
      int hash = 1;
      if (Id.Length != 0) hash ^= Id.GetHashCode();
      if (Name.Length != 0) hash ^= Name.GetHashCode();
      if (Description.Length != 0) hash ^= Description.GetHashCode();
      if (SequenceNumber != 0L) hash ^= SequenceNumber.GetHashCode();
      if (PartId.Length != 0) hash ^= PartId.GetHashCode();
      if (ModelId.Length != 0) hash ^= ModelId.GetHashCode();
      if (TaskType != global::Messages.Plm.V1.TaskType.Unspecified) hash ^= TaskType.GetHashCode();
      if (target_ != null) hash ^= Target.GetHashCode();
      if (approach_ != null) hash ^= Approach.GetHashCode();
      if (ParentId.Length != 0) hash ^= ParentId.GetHashCode();
      hash ^= agentsIds_.GetHashCode();
      if (AssignedTo.Length != 0) hash ^= AssignedTo.GetHashCode();
      if (State != global::Messages.Plm.V1.TaskState.Unspecified) hash ^= State.GetHashCode();
      hash ^= preconditions_.GetHashCode();
      hash ^= dependants_.GetHashCode();
      if (AssignmentPreference != global::Messages.Plm.V1.TaskAssignmentPreference.Unspecified) hash ^= AssignmentPreference.GetHashCode();
      if (CanReassign != false) hash ^= CanReassign.GetHashCode();
      if (CanDo != false) hash ^= CanDo.GetHashCode();
      if (CanUndo != false) hash ^= CanUndo.GetHashCode();
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
      return hash;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override string ToString() {
      return pb::JsonFormatter.ToDiagnosticString(this);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void WriteTo(pb::CodedOutputStream output) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      output.WriteRawMessage(this);
    #else
      if (Id.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Id);
      }
      if (Name.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(Name);
      }
      if (Description.Length != 0) {
        output.WriteRawTag(26);
        output.WriteString(Description);
      }
      if (SequenceNumber != 0L) {
        output.WriteRawTag(32);
        output.WriteInt64(SequenceNumber);
      }
      if (PartId.Length != 0) {
        output.WriteRawTag(42);
        output.WriteString(PartId);
      }
      if (ModelId.Length != 0) {
        output.WriteRawTag(50);
        output.WriteString(ModelId);
      }
      if (TaskType != global::Messages.Plm.V1.TaskType.Unspecified) {
        output.WriteRawTag(56);
        output.WriteEnum((int) TaskType);
      }
      if (target_ != null) {
        output.WriteRawTag(66);
        output.WriteMessage(Target);
      }
      if (approach_ != null) {
        output.WriteRawTag(74);
        output.WriteMessage(Approach);
      }
      if (ParentId.Length != 0) {
        output.WriteRawTag(82);
        output.WriteString(ParentId);
      }
      agentsIds_.WriteTo(output, _repeated_agentsIds_codec);
      if (AssignedTo.Length != 0) {
        output.WriteRawTag(98);
        output.WriteString(AssignedTo);
      }
      if (State != global::Messages.Plm.V1.TaskState.Unspecified) {
        output.WriteRawTag(104);
        output.WriteEnum((int) State);
      }
      preconditions_.WriteTo(output, _repeated_preconditions_codec);
      dependants_.WriteTo(output, _repeated_dependants_codec);
      if (CanReassign != false) {
        output.WriteRawTag(128, 1);
        output.WriteBool(CanReassign);
      }
      if (CanDo != false) {
        output.WriteRawTag(136, 1);
        output.WriteBool(CanDo);
      }
      if (CanUndo != false) {
        output.WriteRawTag(144, 1);
        output.WriteBool(CanUndo);
      }
      if (AssignmentPreference != global::Messages.Plm.V1.TaskAssignmentPreference.Unspecified) {
        output.WriteRawTag(152, 1);
        output.WriteEnum((int) AssignmentPreference);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
      if (Id.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Id);
      }
      if (Name.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(Name);
      }
      if (Description.Length != 0) {
        output.WriteRawTag(26);
        output.WriteString(Description);
      }
      if (SequenceNumber != 0L) {
        output.WriteRawTag(32);
        output.WriteInt64(SequenceNumber);
      }
      if (PartId.Length != 0) {
        output.WriteRawTag(42);
        output.WriteString(PartId);
      }
      if (ModelId.Length != 0) {
        output.WriteRawTag(50);
        output.WriteString(ModelId);
      }
      if (TaskType != global::Messages.Plm.V1.TaskType.Unspecified) {
        output.WriteRawTag(56);
        output.WriteEnum((int) TaskType);
      }
      if (target_ != null) {
        output.WriteRawTag(66);
        output.WriteMessage(Target);
      }
      if (approach_ != null) {
        output.WriteRawTag(74);
        output.WriteMessage(Approach);
      }
      if (ParentId.Length != 0) {
        output.WriteRawTag(82);
        output.WriteString(ParentId);
      }
      agentsIds_.WriteTo(ref output, _repeated_agentsIds_codec);
      if (AssignedTo.Length != 0) {
        output.WriteRawTag(98);
        output.WriteString(AssignedTo);
      }
      if (State != global::Messages.Plm.V1.TaskState.Unspecified) {
        output.WriteRawTag(104);
        output.WriteEnum((int) State);
      }
      preconditions_.WriteTo(ref output, _repeated_preconditions_codec);
      dependants_.WriteTo(ref output, _repeated_dependants_codec);
      if (CanReassign != false) {
        output.WriteRawTag(128, 1);
        output.WriteBool(CanReassign);
      }
      if (CanDo != false) {
        output.WriteRawTag(136, 1);
        output.WriteBool(CanDo);
      }
      if (CanUndo != false) {
        output.WriteRawTag(144, 1);
        output.WriteBool(CanUndo);
      }
      if (AssignmentPreference != global::Messages.Plm.V1.TaskAssignmentPreference.Unspecified) {
        output.WriteRawTag(152, 1);
        output.WriteEnum((int) AssignmentPreference);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(ref output);
      }
    }
    #endif

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int CalculateSize() {
      int size = 0;
      if (Id.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
      }
      if (Name.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
      }
      if (Description.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Description);
      }
      if (SequenceNumber != 0L) {
        size += 1 + pb::CodedOutputStream.ComputeInt64Size(SequenceNumber);
      }
      if (PartId.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(PartId);
      }
      if (ModelId.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(ModelId);
      }
      if (TaskType != global::Messages.Plm.V1.TaskType.Unspecified) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TaskType);
      }
      if (target_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Target);
      }
      if (approach_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Approach);
      }
      if (ParentId.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentId);
      }
      size += agentsIds_.CalculateSize(_repeated_agentsIds_codec);
      if (AssignedTo.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(AssignedTo);
      }
      if (State != global::Messages.Plm.V1.TaskState.Unspecified) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State);
      }
      size += preconditions_.CalculateSize(_repeated_preconditions_codec);
      size += dependants_.CalculateSize(_repeated_dependants_codec);
      if (AssignmentPreference != global::Messages.Plm.V1.TaskAssignmentPreference.Unspecified) {
        size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AssignmentPreference);
      }
      if (CanReassign != false) {
        size += 2 + 1;
      }
      if (CanDo != false) {
        size += 2 + 1;
      }
      if (CanUndo != false) {
        size += 2 + 1;
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(TaskMessage other) {
      if (other == null) {
        return;
      }
      if (other.Id.Length != 0) {
        Id = other.Id;
      }
      if (other.Name.Length != 0) {
        Name = other.Name;
      }
      if (other.Description.Length != 0) {
        Description = other.Description;
      }
      if (other.SequenceNumber != 0L) {
        SequenceNumber = other.SequenceNumber;
      }
      if (other.PartId.Length != 0) {
        PartId = other.PartId;
      }
      if (other.ModelId.Length != 0) {
        ModelId = other.ModelId;
      }
      if (other.TaskType != global::Messages.Plm.V1.TaskType.Unspecified) {
        TaskType = other.TaskType;
      }
      if (other.target_ != null) {
        if (target_ == null) {
          Target = new global::Messages.Common.V1.LocalizedPose();
        }
        Target.MergeFrom(other.Target);
      }
      if (other.approach_ != null) {
        if (approach_ == null) {
          Approach = new global::Messages.Common.V1.Vector3();
        }
        Approach.MergeFrom(other.Approach);
      }
      if (other.ParentId.Length != 0) {
        ParentId = other.ParentId;
      }
      agentsIds_.Add(other.agentsIds_);
      if (other.AssignedTo.Length != 0) {
        AssignedTo = other.AssignedTo;
      }
      if (other.State != global::Messages.Plm.V1.TaskState.Unspecified) {
        State = other.State;
      }
      preconditions_.Add(other.preconditions_);
      dependants_.Add(other.dependants_);
      if (other.AssignmentPreference != global::Messages.Plm.V1.TaskAssignmentPreference.Unspecified) {
        AssignmentPreference = other.AssignmentPreference;
      }
      if (other.CanReassign != false) {
        CanReassign = other.CanReassign;
      }
      if (other.CanDo != false) {
        CanDo = other.CanDo;
      }
      if (other.CanUndo != false) {
        CanUndo = other.CanUndo;
      }
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(pb::CodedInputStream input) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      input.ReadRawMessage(this);
    #else
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
      if ((tag & 7) == 4) {
        // Abort on any end group tag.
        return;
      }
      switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
            break;
          case 10: {
            Id = input.ReadString();
            break;
          }
          case 18: {
            Name = input.ReadString();
            break;
          }
          case 26: {
            Description = input.ReadString();
            break;
          }
          case 32: {
            SequenceNumber = input.ReadInt64();
            break;
          }
          case 42: {
            PartId = input.ReadString();
            break;
          }
          case 50: {
            ModelId = input.ReadString();
            break;
          }
          case 56: {
            TaskType = (global::Messages.Plm.V1.TaskType) input.ReadEnum();
            break;
          }
          case 66: {
            if (target_ == null) {
              Target = new global::Messages.Common.V1.LocalizedPose();
            }
            input.ReadMessage(Target);
            break;
          }
          case 74: {
            if (approach_ == null) {
              Approach = new global::Messages.Common.V1.Vector3();
            }
            input.ReadMessage(Approach);
            break;
          }
          case 82: {
            ParentId = input.ReadString();
            break;
          }
          case 90: {
            agentsIds_.AddEntriesFrom(input, _repeated_agentsIds_codec);
            break;
          }
          case 98: {
            AssignedTo = input.ReadString();
            break;
          }
          case 104: {
            State = (global::Messages.Plm.V1.TaskState) input.ReadEnum();
            break;
          }
          case 114: {
            preconditions_.AddEntriesFrom(input, _repeated_preconditions_codec);
            break;
          }
          case 122: {
            dependants_.AddEntriesFrom(input, _repeated_dependants_codec);
            break;
          }
          case 128: {
            CanReassign = input.ReadBool();
            break;
          }
          case 136: {
            CanDo = input.ReadBool();
            break;
          }
          case 144: {
            CanUndo = input.ReadBool();
            break;
          }
          case 152: {
            AssignmentPreference = (global::Messages.Plm.V1.TaskAssignmentPreference) input.ReadEnum();
            break;
          }
        }
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
      if ((tag & 7) == 4) {
        // Abort on any end group tag.
        return;
      }
      switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
            break;
          case 10: {
            Id = input.ReadString();
            break;
          }
          case 18: {
            Name = input.ReadString();
            break;
          }
          case 26: {
            Description = input.ReadString();
            break;
          }
          case 32: {
            SequenceNumber = input.ReadInt64();
            break;
          }
          case 42: {
            PartId = input.ReadString();
            break;
          }
          case 50: {
            ModelId = input.ReadString();
            break;
          }
          case 56: {
            TaskType = (global::Messages.Plm.V1.TaskType) input.ReadEnum();
            break;
          }
          case 66: {
            if (target_ == null) {
              Target = new global::Messages.Common.V1.LocalizedPose();
            }
            input.ReadMessage(Target);
            break;
          }
          case 74: {
            if (approach_ == null) {
              Approach = new global::Messages.Common.V1.Vector3();
            }
            input.ReadMessage(Approach);
            break;
          }
          case 82: {
            ParentId = input.ReadString();
            break;
          }
          case 90: {
            agentsIds_.AddEntriesFrom(ref input, _repeated_agentsIds_codec);
            break;
          }
          case 98: {
            AssignedTo = input.ReadString();
            break;
          }
          case 104: {
            State = (global::Messages.Plm.V1.TaskState) input.ReadEnum();
            break;
          }
          case 114: {
            preconditions_.AddEntriesFrom(ref input, _repeated_preconditions_codec);
            break;
          }
          case 122: {
            dependants_.AddEntriesFrom(ref input, _repeated_dependants_codec);
            break;
          }
          case 128: {
            CanReassign = input.ReadBool();
            break;
          }
          case 136: {
            CanDo = input.ReadBool();
            break;
          }
          case 144: {
            CanUndo = input.ReadBool();
            break;
          }
          case 152: {
            AssignmentPreference = (global::Messages.Plm.V1.TaskAssignmentPreference) input.ReadEnum();
            break;
          }
        }
      }
    }
    #endif

  }

  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
  public sealed partial class TaskUpdatedMessage : pb::IMessage<TaskUpdatedMessage>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<TaskUpdatedMessage> _parser = new pb::MessageParser<TaskUpdatedMessage>(() => new TaskUpdatedMessage());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<TaskUpdatedMessage> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Messages.Plm.V1.TaskReflection.Descriptor.MessageTypes[1]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public TaskUpdatedMessage() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public TaskUpdatedMessage(TaskUpdatedMessage other) : this() {
      id_ = other.id_;
      assignedTo_ = other.assignedTo_;
      state_ = other.state_;
      canReassign_ = other.canReassign_;
      canDo_ = other.canDo_;
      canUndo_ = other.canUndo_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public TaskUpdatedMessage Clone() {
      return new TaskUpdatedMessage(this);
    }

    /// <summary>Field number for the "id" field.</summary>
    public const int IdFieldNumber = 1;
    private string id_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Id {
      get { return id_; }
      set {
        id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "assigned_to" field.</summary>
    public const int AssignedToFieldNumber = 2;
    private string assignedTo_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string AssignedTo {
      get { return assignedTo_; }
      set {
        assignedTo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "state" field.</summary>
    public const int StateFieldNumber = 3;
    private global::Messages.Plm.V1.TaskState state_ = global::Messages.Plm.V1.TaskState.Unspecified;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.Plm.V1.TaskState State {
      get { return state_; }
      set {
        state_ = value;
      }
    }

    /// <summary>Field number for the "can_reassign" field.</summary>
    public const int CanReassignFieldNumber = 4;
    private bool canReassign_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool CanReassign {
      get { return canReassign_; }
      set {
        canReassign_ = value;
      }
    }

    /// <summary>Field number for the "can_do" field.</summary>
    public const int CanDoFieldNumber = 5;
    private bool canDo_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool CanDo {
      get { return canDo_; }
      set {
        canDo_ = value;
      }
    }

    /// <summary>Field number for the "can_undo" field.</summary>
    public const int CanUndoFieldNumber = 6;
    private bool canUndo_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool CanUndo {
      get { return canUndo_; }
      set {
        canUndo_ = value;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override bool Equals(object other) {
      return Equals(other as TaskUpdatedMessage);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(TaskUpdatedMessage other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Id != other.Id) return false;
      if (AssignedTo != other.AssignedTo) return false;
      if (State != other.State) return false;
      if (CanReassign != other.CanReassign) return false;
      if (CanDo != other.CanDo) return false;
      if (CanUndo != other.CanUndo) return false;
      return Equals(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override int GetHashCode() {
      int hash = 1;
      if (Id.Length != 0) hash ^= Id.GetHashCode();
      if (AssignedTo.Length != 0) hash ^= AssignedTo.GetHashCode();
      if (State != global::Messages.Plm.V1.TaskState.Unspecified) hash ^= State.GetHashCode();
      if (CanReassign != false) hash ^= CanReassign.GetHashCode();
      if (CanDo != false) hash ^= CanDo.GetHashCode();
      if (CanUndo != false) hash ^= CanUndo.GetHashCode();
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
      return hash;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override string ToString() {
      return pb::JsonFormatter.ToDiagnosticString(this);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void WriteTo(pb::CodedOutputStream output) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      output.WriteRawMessage(this);
    #else
      if (Id.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Id);
      }
      if (AssignedTo.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(AssignedTo);
      }
      if (State != global::Messages.Plm.V1.TaskState.Unspecified) {
        output.WriteRawTag(24);
        output.WriteEnum((int) State);
      }
      if (CanReassign != false) {
        output.WriteRawTag(32);
        output.WriteBool(CanReassign);
      }
      if (CanDo != false) {
        output.WriteRawTag(40);
        output.WriteBool(CanDo);
      }
      if (CanUndo != false) {
        output.WriteRawTag(48);
        output.WriteBool(CanUndo);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
      if (Id.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Id);
      }
      if (AssignedTo.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(AssignedTo);
      }
      if (State != global::Messages.Plm.V1.TaskState.Unspecified) {
        output.WriteRawTag(24);
        output.WriteEnum((int) State);
      }
      if (CanReassign != false) {
        output.WriteRawTag(32);
        output.WriteBool(CanReassign);
      }
      if (CanDo != false) {
        output.WriteRawTag(40);
        output.WriteBool(CanDo);
      }
      if (CanUndo != false) {
        output.WriteRawTag(48);
        output.WriteBool(CanUndo);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(ref output);
      }
    }
    #endif

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int CalculateSize() {
      int size = 0;
      if (Id.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
      }
      if (AssignedTo.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(AssignedTo);
      }
      if (State != global::Messages.Plm.V1.TaskState.Unspecified) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State);
      }
      if (CanReassign != false) {
        size += 1 + 1;
      }
      if (CanDo != false) {
        size += 1 + 1;
      }
      if (CanUndo != false) {
        size += 1 + 1;
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(TaskUpdatedMessage other) {
      if (other == null) {
        return;
      }
      if (other.Id.Length != 0) {
        Id = other.Id;
      }
      if (other.AssignedTo.Length != 0) {
        AssignedTo = other.AssignedTo;
      }
      if (other.State != global::Messages.Plm.V1.TaskState.Unspecified) {
        State = other.State;
      }
      if (other.CanReassign != false) {
        CanReassign = other.CanReassign;
      }
      if (other.CanDo != false) {
        CanDo = other.CanDo;
      }
      if (other.CanUndo != false) {
        CanUndo = other.CanUndo;
      }
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(pb::CodedInputStream input) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      input.ReadRawMessage(this);
    #else
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
      if ((tag & 7) == 4) {
        // Abort on any end group tag.
        return;
      }
      switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
            break;
          case 10: {
            Id = input.ReadString();
            break;
          }
          case 18: {
            AssignedTo = input.ReadString();
            break;
          }
          case 24: {
            State = (global::Messages.Plm.V1.TaskState) input.ReadEnum();
            break;
          }
          case 32: {
            CanReassign = input.ReadBool();
            break;
          }
          case 40: {
            CanDo = input.ReadBool();
            break;
          }
          case 48: {
            CanUndo = input.ReadBool();
            break;
          }
        }
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
      if ((tag & 7) == 4) {
        // Abort on any end group tag.
        return;
      }
      switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
            break;
          case 10: {
            Id = input.ReadString();
            break;
          }
          case 18: {
            AssignedTo = input.ReadString();
            break;
          }
          case 24: {
            State = (global::Messages.Plm.V1.TaskState) input.ReadEnum();
            break;
          }
          case 32: {
            CanReassign = input.ReadBool();
            break;
          }
          case 40: {
            CanDo = input.ReadBool();
            break;
          }
          case 48: {
            CanUndo = input.ReadBool();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
