// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: robot/v1/program_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/program_state.proto</summary>
  public static partial class ProgramStateReflection {

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

    static ProgramStateReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "Chxyb2JvdC92MS9wcm9ncmFtX3N0YXRlLnByb3RvEghyb2JvdC52MSKgAQoT",
            "UHJvZ3JhbVN0YXRlTWVzc2FnZRIZCghyb2JvdF9pZBgBIAEoCVIHcm9ib3RJ",
            "ZBI1CgpzdGF0ZV9jb2RlGAIgASgOMhYucm9ib3QudjEuUHJvZ3JhbVN0YXRl",
            "UglzdGF0ZUNvZGUSFAoFc3RhdGUYAyABKAlSBXN0YXRlEiEKDHByb2dyYW1f",
            "ZmlsZRgEIAEoCVILcHJvZ3JhbUZpbGUqdgoMUHJvZ3JhbVN0YXRlEh0KGVBS",
            "T0dSQU1fU1RBVEVfVU5TUEVDSUZJRUQQABIWChJQUk9HUkFNX1NUQVRFX1BM",
            "QVkQARIXChNQUk9HUkFNX1NUQVRFX1BBVVNFEAISFgoSUFJPR1JBTV9TVEFU",
            "RV9TVE9QEANCowEKDGNvbS5yb2JvdC52MUIRUHJvZ3JhbVN0YXRlUHJvdG9Q",
            "AVo1Z2l0aHViLmNvbS9jb2JvdGFyL3Byb3RvY29sL21lc3NhZ2VzL3JvYm90",
            "L3YxO3JvYm90djGiAgNSWFiqAhJNZXNzYWdlcy5Db21tb24uVjHKAghSb2Jv",
            "dFxWMeICFFJvYm90XFYxXEdQQk1ldGFkYXRh6gIJUm9ib3Q6OlYxYgZwcm90",
            "bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { },
          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Messages.Common.V1.ProgramState), }, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Messages.Common.V1.ProgramStateMessage), global::Messages.Common.V1.ProgramStateMessage.Parser, new[]{ "RobotId", "StateCode", "State", "ProgramFile" }, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Enums
  public enum ProgramState {
    [pbr::OriginalName("PROGRAM_STATE_UNSPECIFIED")] Unspecified = 0,
    [pbr::OriginalName("PROGRAM_STATE_PLAY")] Play = 1,
    [pbr::OriginalName("PROGRAM_STATE_PAUSE")] Pause = 2,
    [pbr::OriginalName("PROGRAM_STATE_STOP")] Stop = 3,
  }

  #endregion

  #region Messages
  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
  public sealed partial class ProgramStateMessage : pb::IMessage<ProgramStateMessage>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<ProgramStateMessage> _parser = new pb::MessageParser<ProgramStateMessage>(() => new ProgramStateMessage());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<ProgramStateMessage> 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.ProgramStateReflection.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 ProgramStateMessage() {
      OnConstruction();
    }

    partial void OnConstruction();

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public ProgramStateMessage Clone() {
      return new ProgramStateMessage(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.ProgramState stateCode_ = global::Messages.Common.V1.ProgramState.Unspecified;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Messages.Common.V1.ProgramState 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 "program_file" field.</summary>
    public const int ProgramFileFieldNumber = 4;
    private string programFile_ = "";
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string ProgramFile {
      get { return programFile_; }
      set {
        programFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(ProgramStateMessage 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 (ProgramFile != other.ProgramFile) 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.ProgramState.Unspecified) hash ^= StateCode.GetHashCode();
      if (State.Length != 0) hash ^= State.GetHashCode();
      if (ProgramFile.Length != 0) hash ^= ProgramFile.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 (RobotId.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(RobotId);
      }
      if (StateCode != global::Messages.Common.V1.ProgramState.Unspecified) {
        output.WriteRawTag(16);
        output.WriteEnum((int) StateCode);
      }
      if (State.Length != 0) {
        output.WriteRawTag(26);
        output.WriteString(State);
      }
      if (ProgramFile.Length != 0) {
        output.WriteRawTag(34);
        output.WriteString(ProgramFile);
      }
      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.ProgramState.Unspecified) {
        output.WriteRawTag(16);
        output.WriteEnum((int) StateCode);
      }
      if (State.Length != 0) {
        output.WriteRawTag(26);
        output.WriteString(State);
      }
      if (ProgramFile.Length != 0) {
        output.WriteRawTag(34);
        output.WriteString(ProgramFile);
      }
      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.ProgramState.Unspecified) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StateCode);
      }
      if (State.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(State);
      }
      if (ProgramFile.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(ProgramFile);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

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

  }

  #endregion

}

#endregion Designer generated code
