Package edu.wpi.first.math.proto
Class Wpimath.ProtobufVector
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
edu.wpi.first.math.proto.Wpimath.ProtobufVector
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Wpimath
public static final class Wpimath.ProtobufVector extends us.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector> implements Cloneable
Protobuf type
ProtobufVector
-
Field Summary
-
Method Summary
Modifier and Type Method Description Wpimath.ProtobufVector
addAllRows(double... values)
repeated double rows = 1;
Wpimath.ProtobufVector
addRows(double value)
repeated double rows = 1;
Wpimath.ProtobufVector
clear()
Wpimath.ProtobufVector
clearQuick()
Wpimath.ProtobufVector
clearRows()
repeated double rows = 1;
Wpimath.ProtobufVector
clone()
protected int
computeSerializedSize()
Wpimath.ProtobufVector
copyFrom(Wpimath.ProtobufVector other)
boolean
equals(Object o)
static us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
static us.hebi.quickbuf.MessageFactory<Wpimath.ProtobufVector>
getFactory()
us.hebi.quickbuf.RepeatedDouble
getMutableRows()
repeated double rows = 1;
This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedDouble
getRows()
repeated double rows = 1;
This method returns the internal storage object without modifying any has state.boolean
hasRows()
repeated double rows = 1;
boolean
isEmpty()
Wpimath.ProtobufVector
mergeFrom(Wpimath.ProtobufVector other)
Wpimath.ProtobufVector
mergeFrom(us.hebi.quickbuf.JsonSource input)
Wpimath.ProtobufVector
mergeFrom(us.hebi.quickbuf.ProtoSource input)
static Wpimath.ProtobufVector
newInstance()
static Wpimath.ProtobufVector
parseFrom(byte[] data)
static Wpimath.ProtobufVector
parseFrom(us.hebi.quickbuf.JsonSource input)
static Wpimath.ProtobufVector
parseFrom(us.hebi.quickbuf.ProtoSource input)
void
writeTo(us.hebi.quickbuf.JsonSink output)
void
writeTo(us.hebi.quickbuf.ProtoSink output)
Methods inherited from class us.hebi.quickbuf.ProtoMessage
bytesDefaultValue, checkInitialized, getCachedSize, getMissingFields, getMissingFields, getMissingFields, getMissingFields, getSerializedSize, getUnknownBytes, hashCode, isInitialized, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, rethrowFromParent, toByteArray, toByteArray, toByteArray, toString, writeDelimitedTo
-
Method Details
-
newInstance
- Returns:
- a new empty instance of
ProtobufVector
-
hasRows
repeated double rows = 1;
- Returns:
- whether the rows field is set
-
clearRows
repeated double rows = 1;
- Returns:
- this
-
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. UsegetMutableRows()
if you want to modify it.- Returns:
- internal storage object for reading
-
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
repeated double rows = 1;
- Parameters:
value
- the rows to add- Returns:
- this
-
addAllRows
repeated double rows = 1;
- Parameters:
values
- the rows to add- Returns:
- this
-
copyFrom
- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
mergeFrom
- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
isEmpty
- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
parseFrom
public static Wpimath.ProtobufVector parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException- Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Wpimath.ProtobufVector parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Throws:
IOException
-
parseFrom
public static Wpimath.ProtobufVector parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufVector messages
-
getDescriptor
- Returns:
- this type's descriptor.
-