// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: ar/v1/agent.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.AR.V1 {

  /// <summary>Holder for reflection information generated from ar/v1/agent.proto</summary>
  public static partial class AgentReflection {

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

    static AgentReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChFhci92MS9hZ2VudC5wcm90bxIFYXIudjEaFGFyL3YxL3Byb3BlcnR5LnBy",
            "b3RvGhZnZW9tZXRyeS92MS9wb3NlLnByb3RvIvACCgxBZ2VudE1lc3NhZ2US",
            "DgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSJAoEdHlwZRgD",
            "IAEoDjIQLmFyLnYxLkFnZW50VHlwZVIEdHlwZRI4Cg1vcGVyYXRvcl90eXBl",
            "GAQgASgOMhMuYXIudjEuT3BlcmF0b3JUeXBlUgxvcGVyYXRvclR5cGUSLwoK",
            "cm9ib3RfdHlwZRgFIAEoDjIQLmFyLnYxLlJvYm90VHlwZVIJcm9ib3RUeXBl",
            "EkIKEWVuZF9lZmZlY3Rvcl90eXBlGAYgASgOMhYuYXIudjEuRW5kRWZmZWN0",
            "b3JUeXBlUg9lbmRFZmZlY3RvclR5cGUSNgoIbG9jYXRpb24YByABKAsyGi5n",
            "ZW9tZXRyeS52MS5Mb2NhbGl6ZWRQb3NlUghsb2NhdGlvbhIvCgpwcm9wZXJ0",
            "aWVzGAggAygLMg8uYXIudjEuUHJvcGVydHlSCnByb3BlcnRpZXMqVgoJQWdl",
            "bnRUeXBlEhoKFkFHRU5UX1RZUEVfVU5TUEVDSUZJRUQQABIXChNBR0VOVF9U",
            "WVBFX09QRVJBVE9SEAESFAoQQUdFTlRfVFlQRV9ST0JPVBACKoEBCgxPcGVy",
            "YXRvclR5cGUSHQoZT1BFUkFUT1JfVFlQRV9VTlNQRUNJRklFRBAAEhgKFE9Q",
            "RVJBVE9SX1RZUEVfTk9WSUNFEAESHgoaT1BFUkFUT1JfVFlQRV9JTlRFUk1F",
            "RElBVEUQAhIYChRPUEVSQVRPUl9UWVBFX0VYUEVSVBADKpcBChJPcGVyYXRv",
            "clBlcm1pc3Npb24SIwofT1BFUkFUT1JfUEVSTUlTU0lPTl9VTlNQRUNJRklF",
            "RBAAEhwKGE9QRVJBVE9SX1BFUk1JU1NJT05fTk9ORRABEiAKHE9QRVJBVE9S",
            "X1BFUk1JU1NJT05fQ09TTUVUSUMQAhIcChhPUEVSQVRPUl9QRVJNSVNTSU9O",
            "X0ZVTEwQAyqBAQoJUm9ib3RUeXBlEhoKFlJPQk9UX1RZUEVfVU5TUEVDSUZJ",
            "RUQQABITCg9ST0JPVF9UWVBFX1VSM0UQChITCg9ST0JPVF9UWVBFX1VSNUUQ",
            "CxIUChBST0JPVF9UWVBFX1VSMTBFEAwSGAoUUk9CT1RfVFlQRV9LVUtBX0lJ",
            "V0EQFCqbAQoPRW5kRWZmZWN0b3JUeXBlEiEKHUVORF9FRkZFQ1RPUl9UWVBF",
            "X1VOU1BFQ0lGSUVEEAASGwoXRU5EX0VGRkVDVE9SX1RZUEVfRU1QVFkQARIk",
            "CiBFTkRfRUZGRUNUT1JfVFlQRV9ST0JPVElRX0hBTkRfRRAKEiIKHkVORF9F",
            "RkZFQ1RPUl9UWVBFX0NVU1RPTV9NT1VOVBAUQoYBCgljb20uYXIudjFCCkFn",
            "ZW50UHJvdG9QAVovZ2l0aHViLmNvbS9jb2JvdGFyL3Byb3RvY29sL21lc3Nh",
            "Z2VzL2FyL3YxO2FydjGiAgNBWFiqAg5NZXNzYWdlcy5BUi5WMcoCBUFyXFYx",
            "4gIRQXJcVjFcR1BCTWV0YWRhdGHqAgZBcjo6VjFiBnByb3RvMw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::Messages.AR.V1.PropertyReflection.Descriptor, global::Messages.Common.V1.PoseReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Messages.AR.V1.AgentType), typeof(global::Messages.AR.V1.OperatorType), typeof(global::Messages.AR.V1.OperatorPermission), typeof(global::Messages.AR.V1.RobotType), typeof(global::Messages.AR.V1.EndEffectorType), }, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Messages.AR.V1.AgentMessage), global::Messages.AR.V1.AgentMessage.Parser, new[]{ "Id", "Name", "Type", "OperatorType", "RobotType", "EndEffectorType", "Location", "Properties" }, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Enums
  public enum AgentType {
    [pbr::OriginalName("AGENT_TYPE_UNSPECIFIED")] Unspecified = 0,
    [pbr::OriginalName("AGENT_TYPE_OPERATOR")] Operator = 1,
    [pbr::OriginalName("AGENT_TYPE_ROBOT")] Robot = 2,
  }

  public enum OperatorType {
    [pbr::OriginalName("OPERATOR_TYPE_UNSPECIFIED")] Unspecified = 0,
    [pbr::OriginalName("OPERATOR_TYPE_NOVICE")] Novice = 1,
    [pbr::OriginalName("OPERATOR_TYPE_INTERMEDIATE")] Intermediate = 2,
    [pbr::OriginalName("OPERATOR_TYPE_EXPERT")] Expert = 3,
  }

  public enum OperatorPermission {
    [pbr::OriginalName("OPERATOR_PERMISSION_UNSPECIFIED")] Unspecified = 0,
    [pbr::OriginalName("OPERATOR_PERMISSION_NONE")] None = 1,
    [pbr::OriginalName("OPERATOR_PERMISSION_COSMETIC")] Cosmetic = 2,
    [pbr::OriginalName("OPERATOR_PERMISSION_FULL")] Full = 3,
  }

  public enum RobotType {
    [pbr::OriginalName("ROBOT_TYPE_UNSPECIFIED")] Unspecified = 0,
    [pbr::OriginalName("ROBOT_TYPE_UR3E")] Ur3E = 10,
    [pbr::OriginalName("ROBOT_TYPE_UR5E")] Ur5E = 11,
    [pbr::OriginalName("ROBOT_TYPE_UR10E")] Ur10E = 12,
    [pbr::OriginalName("ROBOT_TYPE_KUKA_IIWA")] KukaIiwa = 20,
  }

  public enum EndEffectorType {
    [pbr::OriginalName("END_EFFECTOR_TYPE_UNSPECIFIED")] Unspecified = 0,
    [pbr::OriginalName("END_EFFECTOR_TYPE_EMPTY")] Empty = 1,
    [pbr::OriginalName("END_EFFECTOR_TYPE_ROBOTIQ_HAND_E")] RobotiqHandE = 10,
    [pbr::OriginalName("END_EFFECTOR_TYPE_CUSTOM_MOUNT")] CustomMount = 20,
  }

  #endregion

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Messages.AR.V1.AgentReflection.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 AgentMessage() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public AgentMessage(AgentMessage other) : this() {
      id_ = other.id_;
      name_ = other.name_;
      type_ = other.type_;
      operatorType_ = other.operatorType_;
      robotType_ = other.robotType_;
      endEffectorType_ = other.endEffectorType_;
      location_ = other.location_ != null ? other.location_.Clone() : null;
      properties_ = other.properties_.Clone();
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public AgentMessage Clone() {
      return new AgentMessage(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 "type" field.</summary>
    public const int TypeFieldNumber = 3;
    private global::Messages.AR.V1.AgentType type_ = global::Messages.AR.V1.AgentType.Unspecified;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.AR.V1.AgentType Type {
      get { return type_; }
      set {
        type_ = value;
      }
    }

    /// <summary>Field number for the "operator_type" field.</summary>
    public const int OperatorTypeFieldNumber = 4;
    private global::Messages.AR.V1.OperatorType operatorType_ = global::Messages.AR.V1.OperatorType.Unspecified;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.AR.V1.OperatorType OperatorType {
      get { return operatorType_; }
      set {
        operatorType_ = value;
      }
    }

    /// <summary>Field number for the "robot_type" field.</summary>
    public const int RobotTypeFieldNumber = 5;
    private global::Messages.AR.V1.RobotType robotType_ = global::Messages.AR.V1.RobotType.Unspecified;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.AR.V1.RobotType RobotType {
      get { return robotType_; }
      set {
        robotType_ = value;
      }
    }

    /// <summary>Field number for the "end_effector_type" field.</summary>
    public const int EndEffectorTypeFieldNumber = 6;
    private global::Messages.AR.V1.EndEffectorType endEffectorType_ = global::Messages.AR.V1.EndEffectorType.Unspecified;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.AR.V1.EndEffectorType EndEffectorType {
      get { return endEffectorType_; }
      set {
        endEffectorType_ = value;
      }
    }

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

    /// <summary>Field number for the "properties" field.</summary>
    public const int PropertiesFieldNumber = 8;
    private static readonly pb::FieldCodec<global::Messages.AR.V1.Property> _repeated_properties_codec
        = pb::FieldCodec.ForMessage(66, global::Messages.AR.V1.Property.Parser);
    private readonly pbc::RepeatedField<global::Messages.AR.V1.Property> properties_ = new pbc::RepeatedField<global::Messages.AR.V1.Property>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::Messages.AR.V1.Property> Properties {
      get { return properties_; }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(AgentMessage 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 (Type != other.Type) return false;
      if (OperatorType != other.OperatorType) return false;
      if (RobotType != other.RobotType) return false;
      if (EndEffectorType != other.EndEffectorType) return false;
      if (!object.Equals(Location, other.Location)) return false;
      if(!properties_.Equals(other.properties_)) 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 (Type != global::Messages.AR.V1.AgentType.Unspecified) hash ^= Type.GetHashCode();
      if (OperatorType != global::Messages.AR.V1.OperatorType.Unspecified) hash ^= OperatorType.GetHashCode();
      if (RobotType != global::Messages.AR.V1.RobotType.Unspecified) hash ^= RobotType.GetHashCode();
      if (EndEffectorType != global::Messages.AR.V1.EndEffectorType.Unspecified) hash ^= EndEffectorType.GetHashCode();
      if (location_ != null) hash ^= Location.GetHashCode();
      hash ^= properties_.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 (Type != global::Messages.AR.V1.AgentType.Unspecified) {
        output.WriteRawTag(24);
        output.WriteEnum((int) Type);
      }
      if (OperatorType != global::Messages.AR.V1.OperatorType.Unspecified) {
        output.WriteRawTag(32);
        output.WriteEnum((int) OperatorType);
      }
      if (RobotType != global::Messages.AR.V1.RobotType.Unspecified) {
        output.WriteRawTag(40);
        output.WriteEnum((int) RobotType);
      }
      if (EndEffectorType != global::Messages.AR.V1.EndEffectorType.Unspecified) {
        output.WriteRawTag(48);
        output.WriteEnum((int) EndEffectorType);
      }
      if (location_ != null) {
        output.WriteRawTag(58);
        output.WriteMessage(Location);
      }
      properties_.WriteTo(output, _repeated_properties_codec);
      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 (Type != global::Messages.AR.V1.AgentType.Unspecified) {
        output.WriteRawTag(24);
        output.WriteEnum((int) Type);
      }
      if (OperatorType != global::Messages.AR.V1.OperatorType.Unspecified) {
        output.WriteRawTag(32);
        output.WriteEnum((int) OperatorType);
      }
      if (RobotType != global::Messages.AR.V1.RobotType.Unspecified) {
        output.WriteRawTag(40);
        output.WriteEnum((int) RobotType);
      }
      if (EndEffectorType != global::Messages.AR.V1.EndEffectorType.Unspecified) {
        output.WriteRawTag(48);
        output.WriteEnum((int) EndEffectorType);
      }
      if (location_ != null) {
        output.WriteRawTag(58);
        output.WriteMessage(Location);
      }
      properties_.WriteTo(ref output, _repeated_properties_codec);
      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 (Type != global::Messages.AR.V1.AgentType.Unspecified) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
      }
      if (OperatorType != global::Messages.AR.V1.OperatorType.Unspecified) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OperatorType);
      }
      if (RobotType != global::Messages.AR.V1.RobotType.Unspecified) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RobotType);
      }
      if (EndEffectorType != global::Messages.AR.V1.EndEffectorType.Unspecified) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EndEffectorType);
      }
      if (location_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location);
      }
      size += properties_.CalculateSize(_repeated_properties_codec);
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(AgentMessage other) {
      if (other == null) {
        return;
      }
      if (other.Id.Length != 0) {
        Id = other.Id;
      }
      if (other.Name.Length != 0) {
        Name = other.Name;
      }
      if (other.Type != global::Messages.AR.V1.AgentType.Unspecified) {
        Type = other.Type;
      }
      if (other.OperatorType != global::Messages.AR.V1.OperatorType.Unspecified) {
        OperatorType = other.OperatorType;
      }
      if (other.RobotType != global::Messages.AR.V1.RobotType.Unspecified) {
        RobotType = other.RobotType;
      }
      if (other.EndEffectorType != global::Messages.AR.V1.EndEffectorType.Unspecified) {
        EndEffectorType = other.EndEffectorType;
      }
      if (other.location_ != null) {
        if (location_ == null) {
          Location = new global::Messages.Common.V1.LocalizedPose();
        }
        Location.MergeFrom(other.Location);
      }
      properties_.Add(other.properties_);
      _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 24: {
            Type = (global::Messages.AR.V1.AgentType) input.ReadEnum();
            break;
          }
          case 32: {
            OperatorType = (global::Messages.AR.V1.OperatorType) input.ReadEnum();
            break;
          }
          case 40: {
            RobotType = (global::Messages.AR.V1.RobotType) input.ReadEnum();
            break;
          }
          case 48: {
            EndEffectorType = (global::Messages.AR.V1.EndEffectorType) input.ReadEnum();
            break;
          }
          case 58: {
            if (location_ == null) {
              Location = new global::Messages.Common.V1.LocalizedPose();
            }
            input.ReadMessage(Location);
            break;
          }
          case 66: {
            properties_.AddEntriesFrom(input, _repeated_properties_codec);
            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 24: {
            Type = (global::Messages.AR.V1.AgentType) input.ReadEnum();
            break;
          }
          case 32: {
            OperatorType = (global::Messages.AR.V1.OperatorType) input.ReadEnum();
            break;
          }
          case 40: {
            RobotType = (global::Messages.AR.V1.RobotType) input.ReadEnum();
            break;
          }
          case 48: {
            EndEffectorType = (global::Messages.AR.V1.EndEffectorType) input.ReadEnum();
            break;
          }
          case 58: {
            if (location_ == null) {
              Location = new global::Messages.Common.V1.LocalizedPose();
            }
            input.ReadMessage(Location);
            break;
          }
          case 66: {
            properties_.AddEntriesFrom(ref input, _repeated_properties_codec);
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
