Package com.viam.service.mlmodel.v1
Interface Mlmodel.TensorInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Mlmodel.TensorInfo
,Mlmodel.TensorInfo.Builder
- Enclosing class:
- Mlmodel
public static interface Mlmodel.TensorInfoOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAssociatedFiles
(int index) files associated with the array/tensor, like for category labelsint
files 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.ByteString
data type of the array/tensor, e.g.description of the data in the array/tensorcom.google.protobuf.ByteString
description of the data in the array/tensorcom.google.protobuf.Struct
getExtra()
anything else you want to saygetName()
name of the data in the array/tensorcom.google.protobuf.ByteString
name of the data in the array/tensorint
getShape
(int index) shape of the array/tensor (-1 for unknown)int
shape of the array/tensor (-1 for unknown)shape of the array/tensor (-1 for unknown)boolean
hasExtra()
anything else you want to sayMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
String getName()name of the data in the array/tensor
string name = 1 [json_name = "name"];
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()name of the data in the array/tensor
string name = 1 [json_name = "name"];
- Returns:
- The bytes for name.
-
getDescription
String getDescription()description of the data in the array/tensor
string description = 2 [json_name = "description"];
- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()description of the data in the array/tensor
string description = 2 [json_name = "description"];
- Returns:
- The bytes for description.
-
getDataType
String getDataType()data type of the array/tensor, e.g. float32, float64, uint8
string data_type = 3 [json_name = "dataType"];
- Returns:
- The dataType.
-
getDataTypeBytes
com.google.protobuf.ByteString getDataTypeBytes()data type of the array/tensor, e.g. float32, float64, uint8
string data_type = 3 [json_name = "dataType"];
- Returns:
- The bytes for dataType.
-
getShapeList
shape of the array/tensor (-1 for unknown)
repeated int32 shape = 4 [json_name = "shape"];
- Returns:
- A list containing the shape.
-
getShapeCount
int getShapeCount()shape of the array/tensor (-1 for unknown)
repeated int32 shape = 4 [json_name = "shape"];
- Returns:
- The count of shape.
-
getShape
int getShape(int index) shape of the array/tensor (-1 for unknown)
repeated int32 shape = 4 [json_name = "shape"];
- Parameters:
index
- The index of the element to return.- Returns:
- The shape at the given index.
-
getAssociatedFilesList
List<Mlmodel.File> getAssociatedFilesList()files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
-
getAssociatedFiles
files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
-
getAssociatedFilesCount
int getAssociatedFilesCount()files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
-
hasExtra
boolean hasExtra()anything else you want to say
.google.protobuf.Struct extra = 99 [json_name = "extra"];
- Returns:
- Whether the extra field is set.
-
getExtra
com.google.protobuf.Struct getExtra()anything else you want to say
.google.protobuf.Struct extra = 99 [json_name = "extra"];
- Returns:
- The extra.
-