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
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionaddAllRows(double... values) repeated double rows = 1;addRows(double value) repeated double rows = 1;clear()repeated double rows = 1;clone()protected intcopyFrom(Wpimath.ProtobufVector other) booleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<Wpimath.ProtobufVector>us.hebi.quickbuf.RepeatedDoublerepeated double rows = 1;This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedDoublegetRows()repeated double rows = 1;This method returns the internal storage object without modifying any has state.booleanhasRows()repeated double rows = 1;booleanisEmpty()mergeFrom(Wpimath.ProtobufVector other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static Wpimath.ProtobufVectorstatic Wpimath.ProtobufVectorparseFrom(byte[] data) static Wpimath.ProtobufVectorparseFrom(us.hebi.quickbuf.JsonSource input) static Wpimath.ProtobufVectorparseFrom(us.hebi.quickbuf.ProtoSource input) voidwriteTo(us.hebi.quickbuf.JsonSink output) voidwriteTo(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:
copyFromin classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<Wpimath.ProtobufVector>
-
isEmpty
- Overrides:
isEmptyin 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.
-