Class ProtobufVector
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufVector>
org.wpilib.math.proto.ProtobufVector
- All Implemented Interfaces:
Cloneable
public final class ProtobufVector
extends us.hebi.quickbuf.ProtoMessage<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(ProtobufVector other) booleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<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(ProtobufVector other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufVectorstatic ProtobufVectorparseFrom(byte[] data) static ProtobufVectorparseFrom(us.hebi.quickbuf.JsonSource input) static 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
-
clearRows
-
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<ProtobufVector>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufVector>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufVector>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufVector>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufVector>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufVector>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufVector>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufVector>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufVector>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufVector>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufVector>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufVector>
-
parseFrom
public static ProtobufVector parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufVector messages
-
getDescriptor
- Returns:
- this type's descriptor.
-