Package com.viam.service.mlmodel.v1
Class Mlmodel.FlatTensorDataUInt16.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.FlatTensorDataUInt16,Mlmodel.FlatTensorDataUInt16.Builder>
com.viam.service.mlmodel.v1.Mlmodel.FlatTensorDataUInt16.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Mlmodel.FlatTensorDataUInt16OrBuilder
,Cloneable
- Enclosing class:
- Mlmodel.FlatTensorDataUInt16
public static final class Mlmodel.FlatTensorDataUInt16.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.FlatTensorDataUInt16,Mlmodel.FlatTensorDataUInt16.Builder>
implements Mlmodel.FlatTensorDataUInt16OrBuilder
Protobuf type
viam.service.mlmodel.v1.FlatTensorDataUInt16
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllData
(Iterable<? extends Integer> values) packs two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensateaddData
(int value) packs two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensatepacks two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensateint
getData
(int index) packs two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensateint
packs two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensatepacks two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensatesetData
(int index, int value) packs two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensateMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getDataList
packs two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensate
repeated fixed32 data = 1 [json_name = "data", packed = true];
- Specified by:
getDataList
in interfaceMlmodel.FlatTensorDataUInt16OrBuilder
- Returns:
- A list containing the data.
-
getDataCount
public int getDataCount()packs two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensate
repeated fixed32 data = 1 [json_name = "data", packed = true];
- Specified by:
getDataCount
in interfaceMlmodel.FlatTensorDataUInt16OrBuilder
- Returns:
- The count of data.
-
getData
public int getData(int index) packs two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensate
repeated fixed32 data = 1 [json_name = "data", packed = true];
- Specified by:
getData
in interfaceMlmodel.FlatTensorDataUInt16OrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The data at the given index.
-
setData
packs two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensate
repeated fixed32 data = 1 [json_name = "data", packed = true];
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
addData
packs two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensate
repeated fixed32 data = 1 [json_name = "data", packed = true];
- Parameters:
value
- The data to add.- Returns:
- This builder for chaining.
-
addAllData
packs two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensate
repeated fixed32 data = 1 [json_name = "data", packed = true];
- Parameters:
values
- The data to add.- Returns:
- This builder for chaining.
-
clearData
packs two 16-bit numbers per entry - explicitly little-endian so big-endian producers/consumers must compensate
repeated fixed32 data = 1 [json_name = "data", packed = true];
- Returns:
- This builder for chaining.
-