Package com.viam.service.mlmodel.v1
Class Mlmodel.FlatTensors.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.FlatTensors,Mlmodel.FlatTensors.Builder>
com.viam.service.mlmodel.v1.Mlmodel.FlatTensors.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Mlmodel.FlatTensorsOrBuilder
,Cloneable
- Enclosing class:
- Mlmodel.FlatTensors
public static final class Mlmodel.FlatTensors.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.FlatTensors,Mlmodel.FlatTensors.Builder>
implements Mlmodel.FlatTensorsOrBuilder
Protobuf type
viam.service.mlmodel.v1.FlatTensors
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsTensors
(String key) A name-indexed collection of flat tensor objectsDeprecated.int
A name-indexed collection of flat tensor objectsA name-indexed collection of flat tensor objectsgetTensorsOrDefault
(String key, Mlmodel.FlatTensor defaultValue) A name-indexed collection of flat tensor objectsgetTensorsOrThrow
(String key) A name-indexed collection of flat tensor objectsputAllTensors
(Map<String, Mlmodel.FlatTensor> values) A name-indexed collection of flat tensor objectsputTensors
(String key, Mlmodel.FlatTensor value) A name-indexed collection of flat tensor objectsremoveTensors
(String key) A name-indexed collection of flat tensor objectsMethods 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
-
getTensorsCount
public int getTensorsCount()Description copied from interface:Mlmodel.FlatTensorsOrBuilder
A name-indexed collection of flat tensor objects
map<string, .viam.service.mlmodel.v1.FlatTensor> tensors = 1 [json_name = "tensors"];
- Specified by:
getTensorsCount
in interfaceMlmodel.FlatTensorsOrBuilder
-
containsTensors
A name-indexed collection of flat tensor objects
map<string, .viam.service.mlmodel.v1.FlatTensor> tensors = 1 [json_name = "tensors"];
- Specified by:
containsTensors
in interfaceMlmodel.FlatTensorsOrBuilder
-
clearTensors
-
removeTensors
A name-indexed collection of flat tensor objects
map<string, .viam.service.mlmodel.v1.FlatTensor> tensors = 1 [json_name = "tensors"];
-
getTensors
Deprecated.UsegetTensorsMap()
instead.- Specified by:
getTensors
in interfaceMlmodel.FlatTensorsOrBuilder
-
getTensorsMap
A name-indexed collection of flat tensor objects
map<string, .viam.service.mlmodel.v1.FlatTensor> tensors = 1 [json_name = "tensors"];
- Specified by:
getTensorsMap
in interfaceMlmodel.FlatTensorsOrBuilder
-
getTensorsOrDefault
A name-indexed collection of flat tensor objects
map<string, .viam.service.mlmodel.v1.FlatTensor> tensors = 1 [json_name = "tensors"];
- Specified by:
getTensorsOrDefault
in interfaceMlmodel.FlatTensorsOrBuilder
-
getTensorsOrThrow
A name-indexed collection of flat tensor objects
map<string, .viam.service.mlmodel.v1.FlatTensor> tensors = 1 [json_name = "tensors"];
- Specified by:
getTensorsOrThrow
in interfaceMlmodel.FlatTensorsOrBuilder
-
putTensors
A name-indexed collection of flat tensor objects
map<string, .viam.service.mlmodel.v1.FlatTensor> tensors = 1 [json_name = "tensors"];
-
putAllTensors
A name-indexed collection of flat tensor objects
map<string, .viam.service.mlmodel.v1.FlatTensor> tensors = 1 [json_name = "tensors"];
-