Class ProtobufVector

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

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

    • newInstance

      public static ProtobufVector newInstance()
      Returns:
      a new empty instance of ProtobufVector
    • hasRows

      public boolean hasRows()
      repeated double rows = 1;
      Returns:
      whether the rows field is set
    • clearRows

      public ProtobufVector clearRows()
      repeated double rows = 1;
      Returns:
      this
    • getRows

      public us.hebi.quickbuf.RepeatedDouble getRows()
      repeated double rows = 1; 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 getMutableRows() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableRows

      public us.hebi.quickbuf.RepeatedDouble getMutableRows()
      repeated double rows = 1; 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
    • addRows

      public ProtobufVector addRows(double value)
      repeated double rows = 1;
      Parameters:
      value - the rows to add
      Returns:
      this
    • addAllRows

      public ProtobufVector addAllRows(double... values)
      repeated double rows = 1;
      Parameters:
      values - the rows to add
      Returns:
      this
    • copyFrom

      public ProtobufVector copyFrom(ProtobufVector other)
      Specified by:
      copyFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufVector>
    • mergeFrom

      public ProtobufVector mergeFrom(ProtobufVector other)
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufVector>
    • clear

      public ProtobufVector clear()
      Specified by:
      clear in class us.hebi.quickbuf.ProtoMessage<ProtobufVector>
    • clearQuick

      public ProtobufVector clearQuick()
      Overrides:
      clearQuick in class us.hebi.quickbuf.ProtoMessage<ProtobufVector>
    • equals

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

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

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

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

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

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

      public ProtobufVector clone()
      Specified by:
      clone in class us.hebi.quickbuf.ProtoMessage<ProtobufVector>
    • isEmpty

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

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

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

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

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

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