Package com.viam.service.mlmodel.v1
Class Mlmodel.TensorInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.TensorInfo,Mlmodel.TensorInfo.Builder>
com.viam.service.mlmodel.v1.Mlmodel.TensorInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Mlmodel.TensorInfoOrBuilder,Cloneable
- Enclosing class:
- Mlmodel.TensorInfo
public static final class Mlmodel.TensorInfo.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.TensorInfo,Mlmodel.TensorInfo.Builder>
implements Mlmodel.TensorInfoOrBuilder
Protobuf type
viam.service.mlmodel.v1.TensorInfo-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllAssociatedFiles(Iterable<? extends Mlmodel.File> values) files associated with the array/tensor, like for category labelsaddAllShape(Iterable<? extends Integer> values) shape of the array/tensor (-1 for unknown)addAssociatedFiles(int index, Mlmodel.File value) files associated with the array/tensor, like for category labelsaddAssociatedFiles(int index, Mlmodel.File.Builder builderForValue) files associated with the array/tensor, like for category labelsaddAssociatedFiles(Mlmodel.File value) files associated with the array/tensor, like for category labelsaddAssociatedFiles(Mlmodel.File.Builder builderForValue) files associated with the array/tensor, like for category labelsaddShape(int value) shape of the array/tensor (-1 for unknown)files associated with the array/tensor, like for category labelsdata type of the array/tensor, e.g.description of the data in the array/tensoranything else you want to sayname of the data in the array/tensorshape of the array/tensor (-1 for unknown)getAssociatedFiles(int index) files associated with the array/tensor, like for category labelsintfiles associated with the array/tensor, like for category labelsfiles associated with the array/tensor, like for category labelsdata type of the array/tensor, e.g.com.google.protobuf.ByteStringdata type of the array/tensor, e.g.description of the data in the array/tensorcom.google.protobuf.ByteStringdescription of the data in the array/tensorcom.google.protobuf.StructgetExtra()anything else you want to saygetName()name of the data in the array/tensorcom.google.protobuf.ByteStringname of the data in the array/tensorintgetShape(int index) shape of the array/tensor (-1 for unknown)intshape of the array/tensor (-1 for unknown)shape of the array/tensor (-1 for unknown)booleanhasExtra()anything else you want to saymergeExtra(com.google.protobuf.Struct value) anything else you want to sayremoveAssociatedFiles(int index) files associated with the array/tensor, like for category labelssetAssociatedFiles(int index, Mlmodel.File value) files associated with the array/tensor, like for category labelssetAssociatedFiles(int index, Mlmodel.File.Builder builderForValue) files associated with the array/tensor, like for category labelssetDataType(String value) data type of the array/tensor, e.g.setDataTypeBytes(com.google.protobuf.ByteString value) data type of the array/tensor, e.g.setDescription(String value) description of the data in the array/tensorsetDescriptionBytes(com.google.protobuf.ByteString value) description of the data in the array/tensorsetExtra(com.google.protobuf.Struct value) anything else you want to saysetExtra(com.google.protobuf.Struct.Builder builderForValue) anything else you want to sayname of the data in the array/tensorsetNameBytes(com.google.protobuf.ByteString value) name of the data in the array/tensorsetShape(int index, int value) shape of the array/tensor (-1 for unknown)Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
name of the data in the array/tensor
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceMlmodel.TensorInfoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()name of the data in the array/tensor
string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceMlmodel.TensorInfoOrBuilder- Returns:
- The bytes for name.
-
setName
name of the data in the array/tensor
string name = 1 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
name of the data in the array/tensor
string name = 1 [json_name = "name"];- Returns:
- This builder for chaining.
-
setNameBytes
name of the data in the array/tensor
string name = 1 [json_name = "name"];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
description of the data in the array/tensor
string description = 2 [json_name = "description"];- Specified by:
getDescriptionin interfaceMlmodel.TensorInfoOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()description of the data in the array/tensor
string description = 2 [json_name = "description"];- Specified by:
getDescriptionBytesin interfaceMlmodel.TensorInfoOrBuilder- Returns:
- The bytes for description.
-
setDescription
description of the data in the array/tensor
string description = 2 [json_name = "description"];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
description of the data in the array/tensor
string description = 2 [json_name = "description"];- Returns:
- This builder for chaining.
-
setDescriptionBytes
description of the data in the array/tensor
string description = 2 [json_name = "description"];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getDataType
data type of the array/tensor, e.g. float32, float64, uint8
string data_type = 3 [json_name = "dataType"];- Specified by:
getDataTypein interfaceMlmodel.TensorInfoOrBuilder- Returns:
- The dataType.
-
getDataTypeBytes
public com.google.protobuf.ByteString getDataTypeBytes()data type of the array/tensor, e.g. float32, float64, uint8
string data_type = 3 [json_name = "dataType"];- Specified by:
getDataTypeBytesin interfaceMlmodel.TensorInfoOrBuilder- Returns:
- The bytes for dataType.
-
setDataType
data type of the array/tensor, e.g. float32, float64, uint8
string data_type = 3 [json_name = "dataType"];- Parameters:
value- The dataType to set.- Returns:
- This builder for chaining.
-
clearDataType
data type of the array/tensor, e.g. float32, float64, uint8
string data_type = 3 [json_name = "dataType"];- Returns:
- This builder for chaining.
-
setDataTypeBytes
data type of the array/tensor, e.g. float32, float64, uint8
string data_type = 3 [json_name = "dataType"];- Parameters:
value- The bytes for dataType to set.- Returns:
- This builder for chaining.
-
getShapeList
shape of the array/tensor (-1 for unknown)
repeated int32 shape = 4 [json_name = "shape"];- Specified by:
getShapeListin interfaceMlmodel.TensorInfoOrBuilder- Returns:
- A list containing the shape.
-
getShapeCount
public int getShapeCount()shape of the array/tensor (-1 for unknown)
repeated int32 shape = 4 [json_name = "shape"];- Specified by:
getShapeCountin interfaceMlmodel.TensorInfoOrBuilder- Returns:
- The count of shape.
-
getShape
public int getShape(int index) shape of the array/tensor (-1 for unknown)
repeated int32 shape = 4 [json_name = "shape"];- Specified by:
getShapein interfaceMlmodel.TensorInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The shape at the given index.
-
setShape
shape of the array/tensor (-1 for unknown)
repeated int32 shape = 4 [json_name = "shape"];- Parameters:
value- The shape to set.- Returns:
- This builder for chaining.
-
addShape
shape of the array/tensor (-1 for unknown)
repeated int32 shape = 4 [json_name = "shape"];- Parameters:
value- The shape to add.- Returns:
- This builder for chaining.
-
addAllShape
shape of the array/tensor (-1 for unknown)
repeated int32 shape = 4 [json_name = "shape"];- Parameters:
values- The shape to add.- Returns:
- This builder for chaining.
-
clearShape
shape of the array/tensor (-1 for unknown)
repeated int32 shape = 4 [json_name = "shape"];- Returns:
- This builder for chaining.
-
getAssociatedFilesList
files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];- Specified by:
getAssociatedFilesListin interfaceMlmodel.TensorInfoOrBuilder
-
getAssociatedFilesCount
public int getAssociatedFilesCount()files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];- Specified by:
getAssociatedFilesCountin interfaceMlmodel.TensorInfoOrBuilder
-
getAssociatedFiles
files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];- Specified by:
getAssociatedFilesin interfaceMlmodel.TensorInfoOrBuilder
-
setAssociatedFiles
files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; -
setAssociatedFiles
public Mlmodel.TensorInfo.Builder setAssociatedFiles(int index, Mlmodel.File.Builder builderForValue) files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; -
addAssociatedFiles
files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; -
addAssociatedFiles
files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; -
addAssociatedFiles
files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; -
addAssociatedFiles
public Mlmodel.TensorInfo.Builder addAssociatedFiles(int index, Mlmodel.File.Builder builderForValue) files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; -
addAllAssociatedFiles
files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; -
clearAssociatedFiles
files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; -
removeAssociatedFiles
files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"]; -
hasExtra
public boolean hasExtra()anything else you want to say
.google.protobuf.Struct extra = 99 [json_name = "extra"];- Specified by:
hasExtrain interfaceMlmodel.TensorInfoOrBuilder- Returns:
- Whether the extra field is set.
-
getExtra
public com.google.protobuf.Struct getExtra()anything else you want to say
.google.protobuf.Struct extra = 99 [json_name = "extra"];- Specified by:
getExtrain interfaceMlmodel.TensorInfoOrBuilder- Returns:
- The extra.
-
setExtra
anything else you want to say
.google.protobuf.Struct extra = 99 [json_name = "extra"]; -
setExtra
anything else you want to say
.google.protobuf.Struct extra = 99 [json_name = "extra"]; -
mergeExtra
anything else you want to say
.google.protobuf.Struct extra = 99 [json_name = "extra"]; -
clearExtra
anything else you want to say
.google.protobuf.Struct extra = 99 [json_name = "extra"];
-