Class ProtobufLinearSystem

java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
org.wpilib.math.proto.ProtobufLinearSystem
All Implemented Interfaces:
Cloneable

public final class ProtobufLinearSystem extends us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem> implements Cloneable
Protobuf type ProtobufLinearSystem
  • Method Details

    • newInstance

      Returns:
      a new empty instance of ProtobufLinearSystem
    • hasNumStates

      public boolean hasNumStates()
      optional uint32 num_states = 1;
      Returns:
      whether the numStates field is set
    • clearNumStates

      optional uint32 num_states = 1;
      Returns:
      this
    • getNumStates

      public int getNumStates()
      optional uint32 num_states = 1;
      Returns:
      the numStates
    • setNumStates

      public ProtobufLinearSystem setNumStates(int value)
      optional uint32 num_states = 1;
      Parameters:
      value - the numStates to set
      Returns:
      this
    • hasNumInputs

      public boolean hasNumInputs()
      optional uint32 num_inputs = 2;
      Returns:
      whether the numInputs field is set
    • clearNumInputs

      optional uint32 num_inputs = 2;
      Returns:
      this
    • getNumInputs

      public int getNumInputs()
      optional uint32 num_inputs = 2;
      Returns:
      the numInputs
    • setNumInputs

      public ProtobufLinearSystem setNumInputs(int value)
      optional uint32 num_inputs = 2;
      Parameters:
      value - the numInputs to set
      Returns:
      this
    • hasNumOutputs

      public boolean hasNumOutputs()
      optional uint32 num_outputs = 3;
      Returns:
      whether the numOutputs field is set
    • clearNumOutputs

      optional uint32 num_outputs = 3;
      Returns:
      this
    • getNumOutputs

      public int getNumOutputs()
      optional uint32 num_outputs = 3;
      Returns:
      the numOutputs
    • setNumOutputs

      public ProtobufLinearSystem setNumOutputs(int value)
      optional uint32 num_outputs = 3;
      Parameters:
      value - the numOutputs to set
      Returns:
      this
    • hasA

      public boolean hasA()
      optional .wpi.proto.ProtobufMatrix a = 4;
      Returns:
      whether the a field is set
    • clearA

      optional .wpi.proto.ProtobufMatrix a = 4;
      Returns:
      this
    • getA

      public ProtobufMatrix getA()
      optional .wpi.proto.ProtobufMatrix a = 4; This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. Use getMutableA() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableA

      optional .wpi.proto.ProtobufMatrix a = 4; This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.
      Returns:
      internal storage object for modifications
    • setA

      optional .wpi.proto.ProtobufMatrix a = 4;
      Parameters:
      value - the a to set
      Returns:
      this
    • hasB

      public boolean hasB()
      optional .wpi.proto.ProtobufMatrix b = 5;
      Returns:
      whether the b field is set
    • clearB

      optional .wpi.proto.ProtobufMatrix b = 5;
      Returns:
      this
    • getB

      public ProtobufMatrix getB()
      optional .wpi.proto.ProtobufMatrix b = 5; This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. Use getMutableB() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableB

      optional .wpi.proto.ProtobufMatrix b = 5; This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.
      Returns:
      internal storage object for modifications
    • setB

      optional .wpi.proto.ProtobufMatrix b = 5;
      Parameters:
      value - the b to set
      Returns:
      this
    • hasC

      public boolean hasC()
      optional .wpi.proto.ProtobufMatrix c = 6;
      Returns:
      whether the c field is set
    • clearC

      optional .wpi.proto.ProtobufMatrix c = 6;
      Returns:
      this
    • getC

      public ProtobufMatrix getC()
      optional .wpi.proto.ProtobufMatrix c = 6; This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. Use getMutableC() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableC

      optional .wpi.proto.ProtobufMatrix c = 6; This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.
      Returns:
      internal storage object for modifications
    • setC

      optional .wpi.proto.ProtobufMatrix c = 6;
      Parameters:
      value - the c to set
      Returns:
      this
    • hasD

      public boolean hasD()
      optional .wpi.proto.ProtobufMatrix d = 7;
      Returns:
      whether the d field is set
    • clearD

      optional .wpi.proto.ProtobufMatrix d = 7;
      Returns:
      this
    • getD

      public ProtobufMatrix getD()
      optional .wpi.proto.ProtobufMatrix d = 7; This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. Use getMutableD() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableD

      optional .wpi.proto.ProtobufMatrix d = 7; This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.
      Returns:
      internal storage object for modifications
    • setD

      optional .wpi.proto.ProtobufMatrix d = 7;
      Parameters:
      value - the d to set
      Returns:
      this
    • copyFrom

      Specified by:
      copyFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
    • mergeFrom

      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
    • clear

      Specified by:
      clear in class us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
    • clearQuick

      Overrides:
      clearQuick in class us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
    • writeTo

      public void writeTo(us.hebi.quickbuf.ProtoSink output) throws IOException
      Specified by:
      writeTo in class us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
      Throws:
      IOException
    • computeSerializedSize

      protected int computeSerializedSize()
      Specified by:
      computeSerializedSize in class us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
    • mergeFrom

      public ProtobufLinearSystem mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Specified by:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
      Throws:
      IOException
    • writeTo

      public void writeTo(us.hebi.quickbuf.JsonSink output) throws IOException
      Overrides:
      writeTo in class us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
      Throws:
      IOException
    • mergeFrom

      public ProtobufLinearSystem mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
      Throws:
      IOException
    • clone

      Specified by:
      clone in class us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
    • isEmpty

      public boolean isEmpty()
      Overrides:
      isEmpty in class us.hebi.quickbuf.ProtoMessage<ProtobufLinearSystem>
    • parseFrom

      public static ProtobufLinearSystem parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException
      Throws:
      us.hebi.quickbuf.InvalidProtocolBufferException
    • parseFrom

      public static ProtobufLinearSystem parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProtobufLinearSystem parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Throws:
      IOException
    • getFactory

      public static us.hebi.quickbuf.MessageFactory<ProtobufLinearSystem> getFactory()
      Returns:
      factory for creating ProtobufLinearSystem messages
    • getDescriptor

      public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()
      Returns:
      this type's descriptor.