text: // Auto-generated. Do not edit!
  
  // (in-package ur_dashboard_msgs.msg)
  
  
  "use strict";
  
  const _serializer = _ros_msg_utils.Serialize;
  const _arraySerializer = _serializer.Array;
  const _deserializer = _ros_msg_utils.Deserialize;
  const _arrayDeserializer = _deserializer.Array;
  const _finder = _ros_msg_utils.Find;
  const _getByteLength = _ros_msg_utils.getByteLength;
  
  //-----------------------------------------------------------
  
  class ProgramState {
    constructor(initObj={}) {
      if (initObj === null) {
        // initObj === null is a special case for deserialization where we don't initialize fields
        this.state = null;
      }
      else {
        if (initObj.hasOwnProperty('state')) {
          this.state = initObj.state
        }
        else {
          this.state = '';
        }
      }
    }
  
    static serialize(obj, buffer, bufferOffset) {
      // Serializes a message object of type ProgramState
      // Serialize message field [state]
      bufferOffset = _serializer.string(obj.state, buffer, bufferOffset);
      return bufferOffset;
    }
  
    static deserialize(buffer, bufferOffset=[0]) {
      //deserializes a message object of type ProgramState
      let len;
      let data = new ProgramState(null);
      // Deserialize message field [state]
      data.state = _deserializer.string(buffer, bufferOffset);
      return data;
    }
  
    static getMessageSize(object) {
      let length = 0;
      length += object.state.length;
      return length + 4;
    }
  
    static datatype() {
      // Returns string type for a message object
      return 'ur_dashboard_msgs/ProgramState';
    }
  
    static md5sum() {
      //Returns md5sum for a message object
      return '0cf2a8b9397741f9e4ac8b71fd354966';
    }
  
    static messageDefinition() {
      // Returns full string definition for message
      return `
      string STOPPED=STOPPED
      string PLAYING=PLAYING
      string PAUSED=PAUSED
      
      string state
      
      
      `;
    }
  
    static Resolve(msg) {
      // deep-construct a valid message object instance of whatever was passed in
      if (typeof msg !== 'object' || msg === null) {
        msg = {};
      }
      const resolved = new ProgramState(null);
      if (msg.state !== undefined) {
        resolved.state = msg.state;
      }
      else {
        resolved.state = ''
      }
  
      return resolved;
      }
  };
  
  // Constants for message
  ProgramState.Constants = {
    STOPPED: 'STOPPED',
    PLAYING: 'PLAYING',
    PAUSED: 'PAUSED',
  }
  
  module.exports = ProgramState;
  