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

  /// <summary>Holder for reflection information generated from robot/v1/robot_state.proto</summary>
  public static partial class RobotStateReflection {

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

    static RobotStateReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "Chpyb2JvdC92MS9yb2JvdF9zdGF0ZS5wcm90bxIIcm9ib3QudjEivwEKEVJv",
            "Ym90U3RhdGVNZXNzYWdlEhkKCHJvYm90X2lkGAEgASgJUgdyb2JvdElkEjMK",
            "CnN0YXRlX2NvZGUYAiABKA4yFC5yb2JvdC52MS5Sb2JvdFN0YXRlUglzdGF0",
            "ZUNvZGUSFAoFc3RhdGUYAyABKAlSBXN0YXRlEiEKDHRhcmdldF9zcGVlZBgE",
            "IAEoAVILdGFyZ2V0U3BlZWQSIQoMYWN0dWFsX3NwZWVkGAUgASgBUgthY3R1",
            "YWxTcGVlZCrAAQoKUm9ib3RTdGF0ZRIbChdST0JPVF9TVEFURV9VTlNQRUNJ",
            "RklFRBAAEhgKFFJPQk9UX1NUQVRFX1NUT1BQSU5HEAESFwoTUk9CT1RfU1RB",
            "VEVfU1RPUFBFRBACEhcKE1JPQk9UX1NUQVRFX1BMQVlJTkcQAxIXChNST0JP",
            "VF9TVEFURV9QQVVTSU5HEAQSFgoSUk9CT1RfU1RBVEVfUEFVU0VEEAUSGAoU",
            "Uk9CT1RfU1RBVEVfUkVTVU1JTkcQBkKhAQoMY29tLnJvYm90LnYxQg9Sb2Jv",
            "dFN0YXRlUHJvdG9QAVo1Z2l0aHViLmNvbS9jb2JvdGFyL3Byb3RvY29sL21l",
            "c3NhZ2VzL3JvYm90L3YxO3JvYm90djGiAgNSWFiqAhJNZXNzYWdlcy5Db21t",
            "b24uVjHKAghSb2JvdFxWMeICFFJvYm90XFYxXEdQQk1ldGFkYXRh6gIJUm9i",
            "b3Q6OlYxYgZwcm90bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { },
          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Messages.Common.V1.RobotState), }, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Messages.Common.V1.RobotStateMessage), global::Messages.Common.V1.RobotStateMessage.Parser, new[]{ "RobotId", "StateCode", "State", "TargetSpeed", "ActualSpeed" }, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Enums
  public enum RobotState {
    [pbr::OriginalName("ROBOT_STATE_UNSPECIFIED")] Unspecified = 0,
    [pbr::OriginalName("ROBOT_STATE_STOPPING")] Stopping = 1,
    [pbr::OriginalName("ROBOT_STATE_STOPPED")] Stopped = 2,
    [pbr::OriginalName("ROBOT_STATE_PLAYING")] Playing = 3,
    [pbr::OriginalName("ROBOT_STATE_PAUSING")] Pausing = 4,
    [pbr::OriginalName("ROBOT_STATE_PAUSED")] Paused = 5,
    [pbr::OriginalName("ROBOT_STATE_RESUMING")] Resuming = 6,
  }

  #endregion

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

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public RobotStateMessage(RobotStateMessage other) : this() {
      robotId_ = other.robotId_;
      stateCode_ = other.stateCode_;
      state_ = other.state_;
      targetSpeed_ = other.targetSpeed_;
      actualSpeed_ = other.actualSpeed_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

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

    /// <summary>Field number for the "state_code" field.</summary>
    public const int StateCodeFieldNumber = 2;
    private global::Messages.Common.V1.RobotState stateCode_ = global::Messages.Common.V1.RobotState.Unspecified;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.Common.V1.RobotState StateCode {
      get { return stateCode_; }
      set {
        stateCode_ = value;
      }
    }

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

    /// <summary>Field number for the "target_speed" field.</summary>
    public const int TargetSpeedFieldNumber = 4;
    private double targetSpeed_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public double TargetSpeed {
      get { return targetSpeed_; }
      set {
        targetSpeed_ = value;
      }
    }

    /// <summary>Field number for the "actual_speed" field.</summary>
    public const int ActualSpeedFieldNumber = 5;
    private double actualSpeed_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public double ActualSpeed {
      get { return actualSpeed_; }
      set {
        actualSpeed_ = value;
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(RobotStateMessage other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (RobotId != other.RobotId) return false;
      if (StateCode != other.StateCode) return false;
      if (State != other.State) return false;
      if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TargetSpeed, other.TargetSpeed)) return false;
      if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ActualSpeed, other.ActualSpeed)) 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 (RobotId.Length != 0) hash ^= RobotId.GetHashCode();
      if (StateCode != global::Messages.Common.V1.RobotState.Unspecified) hash ^= StateCode.GetHashCode();
      if (State.Length != 0) hash ^= State.GetHashCode();
      if (TargetSpeed != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TargetSpeed);
      if (ActualSpeed != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ActualSpeed);
      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 (RobotId.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(RobotId);
      }
      if (StateCode != global::Messages.Common.V1.RobotState.Unspecified) {
        output.WriteRawTag(16);
        output.WriteEnum((int) StateCode);
      }
      if (State.Length != 0) {
        output.WriteRawTag(26);
        output.WriteString(State);
      }
      if (TargetSpeed != 0D) {
        output.WriteRawTag(33);
        output.WriteDouble(TargetSpeed);
      }
      if (ActualSpeed != 0D) {
        output.WriteRawTag(41);
        output.WriteDouble(ActualSpeed);
      }
      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 (RobotId.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(RobotId);
      }
      if (StateCode != global::Messages.Common.V1.RobotState.Unspecified) {
        output.WriteRawTag(16);
        output.WriteEnum((int) StateCode);
      }
      if (State.Length != 0) {
        output.WriteRawTag(26);
        output.WriteString(State);
      }
      if (TargetSpeed != 0D) {
        output.WriteRawTag(33);
        output.WriteDouble(TargetSpeed);
      }
      if (ActualSpeed != 0D) {
        output.WriteRawTag(41);
        output.WriteDouble(ActualSpeed);
      }
      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 (RobotId.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(RobotId);
      }
      if (StateCode != global::Messages.Common.V1.RobotState.Unspecified) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StateCode);
      }
      if (State.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(State);
      }
      if (TargetSpeed != 0D) {
        size += 1 + 8;
      }
      if (ActualSpeed != 0D) {
        size += 1 + 8;
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(RobotStateMessage other) {
      if (other == null) {
        return;
      }
      if (other.RobotId.Length != 0) {
        RobotId = other.RobotId;
      }
      if (other.StateCode != global::Messages.Common.V1.RobotState.Unspecified) {
        StateCode = other.StateCode;
      }
      if (other.State.Length != 0) {
        State = other.State;
      }
      if (other.TargetSpeed != 0D) {
        TargetSpeed = other.TargetSpeed;
      }
      if (other.ActualSpeed != 0D) {
        ActualSpeed = other.ActualSpeed;
      }
      _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: {
            RobotId = input.ReadString();
            break;
          }
          case 16: {
            StateCode = (global::Messages.Common.V1.RobotState) input.ReadEnum();
            break;
          }
          case 26: {
            State = input.ReadString();
            break;
          }
          case 33: {
            TargetSpeed = input.ReadDouble();
            break;
          }
          case 41: {
            ActualSpeed = input.ReadDouble();
            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: {
            RobotId = input.ReadString();
            break;
          }
          case 16: {
            StateCode = (global::Messages.Common.V1.RobotState) input.ReadEnum();
            break;
          }
          case 26: {
            State = input.ReadString();
            break;
          }
          case 33: {
            TargetSpeed = input.ReadDouble();
            break;
          }
          case 41: {
            ActualSpeed = input.ReadDouble();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
