Package com.viam.service.mlmodel.v1
Class Mlmodel.TensorInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Mlmodel.TensorInfo,Mlmodel.TensorInfo.Builder>
com.viam.service.mlmodel.v1.Mlmodel.TensorInfo
- All Implemented Interfaces:
com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,Mlmodel.TensorInfoOrBuilder
- Enclosing class:
- Mlmodel
public static final class Mlmodel.TensorInfo
extends com.google.protobuf.GeneratedMessageLite<Mlmodel.TensorInfo,Mlmodel.TensorInfo.Builder>
implements Mlmodel.TensorInfoOrBuilder
Protobuf type
viam.service.mlmodel.v1.TensorInfo
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Protobuf typeviam.service.mlmodel.v1.TensorInfo
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,
?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) getAssociatedFiles
(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 labelsgetAssociatedFilesOrBuilder
(int index) files associated with the array/tensor, like for category labelsList<? extends Mlmodel.FileOrBuilder>
files 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.static Mlmodel.TensorInfo
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 saystatic Mlmodel.TensorInfo.Builder
static Mlmodel.TensorInfo.Builder
newBuilder
(Mlmodel.TensorInfo prototype) static Mlmodel.TensorInfo
parseDelimitedFrom
(InputStream input) static Mlmodel.TensorInfo
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Mlmodel.TensorInfo
parseFrom
(byte[] data) static Mlmodel.TensorInfo
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Mlmodel.TensorInfo
parseFrom
(com.google.protobuf.ByteString data) static Mlmodel.TensorInfo
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Mlmodel.TensorInfo
parseFrom
(com.google.protobuf.CodedInputStream input) static Mlmodel.TensorInfo
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Mlmodel.TensorInfo
parseFrom
(InputStream input) static Mlmodel.TensorInfo
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Mlmodel.TensorInfo
parseFrom
(ByteBuffer data) static Mlmodel.TensorInfo
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Mlmodel.TensorInfo>
parser()
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
DATA_TYPE_FIELD_NUMBER
public static final int DATA_TYPE_FIELD_NUMBER- See Also:
-
SHAPE_FIELD_NUMBER
public static final int SHAPE_FIELD_NUMBER- See Also:
-
ASSOCIATED_FILES_FIELD_NUMBER
public static final int ASSOCIATED_FILES_FIELD_NUMBER- See Also:
-
EXTRA_FIELD_NUMBER
public static final int EXTRA_FIELD_NUMBER- See Also:
-
-
Method Details
-
getName
name of the data in the array/tensor
string name = 1 [json_name = "name"];
- Specified by:
getName
in 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:
getNameBytes
in interfaceMlmodel.TensorInfoOrBuilder
- Returns:
- The bytes for name.
-
getDescription
description of the data in the array/tensor
string description = 2 [json_name = "description"];
- Specified by:
getDescription
in 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:
getDescriptionBytes
in interfaceMlmodel.TensorInfoOrBuilder
- Returns:
- The bytes for description.
-
getDataType
data type of the array/tensor, e.g. float32, float64, uint8
string data_type = 3 [json_name = "dataType"];
- Specified by:
getDataType
in 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:
getDataTypeBytes
in interfaceMlmodel.TensorInfoOrBuilder
- Returns:
- The bytes for dataType.
-
getShapeList
shape of the array/tensor (-1 for unknown)
repeated int32 shape = 4 [json_name = "shape"];
- Specified by:
getShapeList
in 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:
getShapeCount
in 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:
getShape
in interfaceMlmodel.TensorInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The shape at the given index.
-
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:
getAssociatedFilesList
in interfaceMlmodel.TensorInfoOrBuilder
-
getAssociatedFilesOrBuilderList
files associated with the array/tensor, like for category labels
repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
-
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:
getAssociatedFilesCount
in 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:
getAssociatedFiles
in interfaceMlmodel.TensorInfoOrBuilder
-
getAssociatedFilesOrBuilder
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:
hasExtra
in 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:
getExtra
in interfaceMlmodel.TensorInfoOrBuilder
- Returns:
- The extra.
-
parseFrom
public static Mlmodel.TensorInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Mlmodel.TensorInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Mlmodel.TensorInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Mlmodel.TensorInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Mlmodel.TensorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Mlmodel.TensorInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Mlmodel.TensorInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Mlmodel.TensorInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Mlmodel.TensorInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Mlmodel.TensorInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Mlmodel.TensorInfo,
Mlmodel.TensorInfo.Builder>
-
getDefaultInstance
-
parser
-