Package com.viam.service.mlmodel.v1
Class Mlmodel.FlatTensorDataUInt32.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.FlatTensorDataUInt32,Mlmodel.FlatTensorDataUInt32.Builder>
com.viam.service.mlmodel.v1.Mlmodel.FlatTensorDataUInt32.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Mlmodel.FlatTensorDataUInt32OrBuilder
,Cloneable
- Enclosing class:
- Mlmodel.FlatTensorDataUInt32
public static final class Mlmodel.FlatTensorDataUInt32.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.FlatTensorDataUInt32,Mlmodel.FlatTensorDataUInt32.Builder>
implements Mlmodel.FlatTensorDataUInt32OrBuilder
Protobuf type
viam.service.mlmodel.v1.FlatTensorDataUInt32
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllData
(Iterable<? extends Integer> values) repeated fixed32 data = 1 [json_name = "data", packed = true];
addData
(int value) repeated fixed32 data = 1 [json_name = "data", packed = true];
repeated fixed32 data = 1 [json_name = "data", packed = true];
int
getData
(int index) repeated fixed32 data = 1 [json_name = "data", packed = true];
int
repeated fixed32 data = 1 [json_name = "data", packed = true];
repeated fixed32 data = 1 [json_name = "data", packed = true];
setData
(int index, int value) repeated fixed32 data = 1 [json_name = "data", packed = true];
Methods 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
repeated fixed32 data = 1 [json_name = "data", packed = true];
- Specified by:
getDataList
in interfaceMlmodel.FlatTensorDataUInt32OrBuilder
- Returns:
- A list containing the data.
-
getDataCount
public int getDataCount()repeated fixed32 data = 1 [json_name = "data", packed = true];
- Specified by:
getDataCount
in interfaceMlmodel.FlatTensorDataUInt32OrBuilder
- Returns:
- The count of data.
-
getData
public int getData(int index) repeated fixed32 data = 1 [json_name = "data", packed = true];
- Specified by:
getData
in interfaceMlmodel.FlatTensorDataUInt32OrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The data at the given index.
-
setData
repeated fixed32 data = 1 [json_name = "data", packed = true];
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
addData
repeated fixed32 data = 1 [json_name = "data", packed = true];
- Parameters:
value
- The data to add.- Returns:
- This builder for chaining.
-
addAllData
repeated fixed32 data = 1 [json_name = "data", packed = true];
- Parameters:
values
- The data to add.- Returns:
- This builder for chaining.
-
clearData
repeated fixed32 data = 1 [json_name = "data", packed = true];
- Returns:
- This builder for chaining.
-