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 SummaryFields inherited from class com.google.protobuf.GeneratedMessageLite.Builderinstance
- 
Method SummaryModifier 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.Builderbuild, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.BuilderaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType, isInitialized
- 
Method Details- 
getNamename of the data in the array/tensor string name = 1 [json_name = "name"];- Specified by:
- getNamein interface- Mlmodel.TensorInfoOrBuilder
- Returns:
- The name.
 
- 
getNameBytespublic com.google.protobuf.ByteString getNameBytes()name of the data in the array/tensor string name = 1 [json_name = "name"];- Specified by:
- getNameBytesin interface- Mlmodel.TensorInfoOrBuilder
- Returns:
- The bytes for name.
 
- 
setNamename of the data in the array/tensor string name = 1 [json_name = "name"];- Parameters:
- value- The name to set.
- Returns:
- This builder for chaining.
 
- 
clearNamename of the data in the array/tensor string name = 1 [json_name = "name"];- Returns:
- This builder for chaining.
 
- 
setNameBytesname 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.
 
- 
getDescriptiondescription of the data in the array/tensor string description = 2 [json_name = "description"];- Specified by:
- getDescriptionin interface- Mlmodel.TensorInfoOrBuilder
- Returns:
- The description.
 
- 
getDescriptionBytespublic com.google.protobuf.ByteString getDescriptionBytes()description of the data in the array/tensor string description = 2 [json_name = "description"];- Specified by:
- getDescriptionBytesin interface- Mlmodel.TensorInfoOrBuilder
- Returns:
- The bytes for description.
 
- 
setDescriptiondescription of the data in the array/tensor string description = 2 [json_name = "description"];- Parameters:
- value- The description to set.
- Returns:
- This builder for chaining.
 
- 
clearDescriptiondescription of the data in the array/tensor string description = 2 [json_name = "description"];- Returns:
- This builder for chaining.
 
- 
setDescriptionBytesdescription 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.
 
- 
getDataTypedata type of the array/tensor, e.g. float32, float64, uint8 string data_type = 3 [json_name = "dataType"];- Specified by:
- getDataTypein interface- Mlmodel.TensorInfoOrBuilder
- Returns:
- The dataType.
 
- 
getDataTypeBytespublic 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 interface- Mlmodel.TensorInfoOrBuilder
- Returns:
- The bytes for dataType.
 
- 
setDataTypedata 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.
 
- 
clearDataTypedata type of the array/tensor, e.g. float32, float64, uint8 string data_type = 3 [json_name = "dataType"];- Returns:
- This builder for chaining.
 
- 
setDataTypeBytesdata 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.
 
- 
getShapeListshape of the array/tensor (-1 for unknown) repeated int32 shape = 4 [json_name = "shape"];- Specified by:
- getShapeListin interface- Mlmodel.TensorInfoOrBuilder
- Returns:
- A list containing the shape.
 
- 
getShapeCountpublic int getShapeCount()shape of the array/tensor (-1 for unknown) repeated int32 shape = 4 [json_name = "shape"];- Specified by:
- getShapeCountin interface- Mlmodel.TensorInfoOrBuilder
- Returns:
- The count of shape.
 
- 
getShapepublic int getShape(int index) shape of the array/tensor (-1 for unknown) repeated int32 shape = 4 [json_name = "shape"];- Specified by:
- getShapein interface- Mlmodel.TensorInfoOrBuilder
- Parameters:
- index- The index of the element to return.
- Returns:
- The shape at the given index.
 
- 
setShapeshape 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.
 
- 
addShapeshape 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.
 
- 
addAllShapeshape 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.
 
- 
clearShapeshape of the array/tensor (-1 for unknown) repeated int32 shape = 4 [json_name = "shape"];- Returns:
- This builder for chaining.
 
- 
getAssociatedFilesListfiles associated with the array/tensor, like for category labels repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];- Specified by:
- getAssociatedFilesListin interface- Mlmodel.TensorInfoOrBuilder
 
- 
getAssociatedFilesCountpublic 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 interface- Mlmodel.TensorInfoOrBuilder
 
- 
getAssociatedFilesfiles associated with the array/tensor, like for category labels repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];- Specified by:
- getAssociatedFilesin interface- Mlmodel.TensorInfoOrBuilder
 
- 
setAssociatedFilesfiles associated with the array/tensor, like for category labels repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
- 
setAssociatedFilespublic 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"];
- 
addAssociatedFilesfiles associated with the array/tensor, like for category labels repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
- 
addAssociatedFilesfiles associated with the array/tensor, like for category labels repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
- 
addAssociatedFilesfiles associated with the array/tensor, like for category labels repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
- 
addAssociatedFilespublic 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"];
- 
addAllAssociatedFilesfiles associated with the array/tensor, like for category labels repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
- 
clearAssociatedFilesfiles associated with the array/tensor, like for category labels repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
- 
removeAssociatedFilesfiles associated with the array/tensor, like for category labels repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
- 
hasExtrapublic boolean hasExtra()anything else you want to say .google.protobuf.Struct extra = 99 [json_name = "extra"];- Specified by:
- hasExtrain interface- Mlmodel.TensorInfoOrBuilder
- Returns:
- Whether the extra field is set.
 
- 
getExtrapublic com.google.protobuf.Struct getExtra()anything else you want to say .google.protobuf.Struct extra = 99 [json_name = "extra"];- Specified by:
- getExtrain interface- Mlmodel.TensorInfoOrBuilder
- Returns:
- The extra.
 
- 
setExtraanything else you want to say .google.protobuf.Struct extra = 99 [json_name = "extra"];
- 
setExtraanything else you want to say .google.protobuf.Struct extra = 99 [json_name = "extra"];
- 
mergeExtraanything else you want to say .google.protobuf.Struct extra = 99 [json_name = "extra"];
- 
clearExtraanything else you want to say .google.protobuf.Struct extra = 99 [json_name = "extra"];
 
-