Package com.viam.service.mlmodel.v1
Class Mlmodel.FlatTensor
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Mlmodel.FlatTensor,Mlmodel.FlatTensor.Builder>
com.viam.service.mlmodel.v1.Mlmodel.FlatTensor
- All Implemented Interfaces:
com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,Mlmodel.FlatTensorOrBuilder
- Enclosing class:
- Mlmodel
public static final class Mlmodel.FlatTensor
extends com.google.protobuf.GeneratedMessageLite<Mlmodel.FlatTensor,Mlmodel.FlatTensor.Builder>
implements Mlmodel.FlatTensorOrBuilder
Protobuf type
viam.service.mlmodel.v1.FlatTensor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Protobuf typeviam.service.mlmodel.v1.FlatTensor
static enum
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
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) static Mlmodel.FlatTensor
.viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"];
.viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"];
.viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"];
.viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"];
.viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"];
.viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"];
long
getShape
(int index) the shape of the provided tensor as a list of integer extentsint
the shape of the provided tensor as a list of integer extentsthe shape of the provided tensor as a list of integer extents.viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"];
.viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"];
.viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"];
.viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"];
boolean
.viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"];
static Mlmodel.FlatTensor.Builder
static Mlmodel.FlatTensor.Builder
newBuilder
(Mlmodel.FlatTensor prototype) static Mlmodel.FlatTensor
parseDelimitedFrom
(InputStream input) static Mlmodel.FlatTensor
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Mlmodel.FlatTensor
parseFrom
(byte[] data) static Mlmodel.FlatTensor
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Mlmodel.FlatTensor
parseFrom
(com.google.protobuf.ByteString data) static Mlmodel.FlatTensor
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Mlmodel.FlatTensor
parseFrom
(com.google.protobuf.CodedInputStream input) static Mlmodel.FlatTensor
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Mlmodel.FlatTensor
parseFrom
(InputStream input) static Mlmodel.FlatTensor
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Mlmodel.FlatTensor
parseFrom
(ByteBuffer data) static Mlmodel.FlatTensor
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Mlmodel.FlatTensor>
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
-
SHAPE_FIELD_NUMBER
public static final int SHAPE_FIELD_NUMBER- See Also:
-
INT8_TENSOR_FIELD_NUMBER
public static final int INT8_TENSOR_FIELD_NUMBER- See Also:
-
UINT8_TENSOR_FIELD_NUMBER
public static final int UINT8_TENSOR_FIELD_NUMBER- See Also:
-
INT16_TENSOR_FIELD_NUMBER
public static final int INT16_TENSOR_FIELD_NUMBER- See Also:
-
UINT16_TENSOR_FIELD_NUMBER
public static final int UINT16_TENSOR_FIELD_NUMBER- See Also:
-
INT32_TENSOR_FIELD_NUMBER
public static final int INT32_TENSOR_FIELD_NUMBER- See Also:
-
UINT32_TENSOR_FIELD_NUMBER
public static final int UINT32_TENSOR_FIELD_NUMBER- See Also:
-
INT64_TENSOR_FIELD_NUMBER
public static final int INT64_TENSOR_FIELD_NUMBER- See Also:
-
UINT64_TENSOR_FIELD_NUMBER
public static final int UINT64_TENSOR_FIELD_NUMBER- See Also:
-
FLOAT_TENSOR_FIELD_NUMBER
public static final int FLOAT_TENSOR_FIELD_NUMBER- See Also:
-
DOUBLE_TENSOR_FIELD_NUMBER
public static final int DOUBLE_TENSOR_FIELD_NUMBER- See Also:
-
-
Method Details
-
getTensorCase
- Specified by:
getTensorCase
in interfaceMlmodel.FlatTensorOrBuilder
-
getShapeList
the shape of the provided tensor as a list of integer extents
repeated fixed64 shape = 1 [json_name = "shape"];
- Specified by:
getShapeList
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- A list containing the shape.
-
getShapeCount
public int getShapeCount()the shape of the provided tensor as a list of integer extents
repeated fixed64 shape = 1 [json_name = "shape"];
- Specified by:
getShapeCount
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- The count of shape.
-
getShape
public long getShape(int index) the shape of the provided tensor as a list of integer extents
repeated fixed64 shape = 1 [json_name = "shape"];
- Specified by:
getShape
in interfaceMlmodel.FlatTensorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The shape at the given index.
-
hasInt8Tensor
public boolean hasInt8Tensor().viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"];
- Specified by:
hasInt8Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- Whether the int8Tensor field is set.
-
getInt8Tensor
.viam.service.mlmodel.v1.FlatTensorDataInt8 int8_tensor = 2 [json_name = "int8Tensor"];
- Specified by:
getInt8Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- The int8Tensor.
-
hasUint8Tensor
public boolean hasUint8Tensor().viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"];
- Specified by:
hasUint8Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- Whether the uint8Tensor field is set.
-
getUint8Tensor
.viam.service.mlmodel.v1.FlatTensorDataUInt8 uint8_tensor = 3 [json_name = "uint8Tensor"];
- Specified by:
getUint8Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- The uint8Tensor.
-
hasInt16Tensor
public boolean hasInt16Tensor().viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"];
- Specified by:
hasInt16Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- Whether the int16Tensor field is set.
-
getInt16Tensor
.viam.service.mlmodel.v1.FlatTensorDataInt16 int16_tensor = 4 [json_name = "int16Tensor"];
- Specified by:
getInt16Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- The int16Tensor.
-
hasUint16Tensor
public boolean hasUint16Tensor().viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"];
- Specified by:
hasUint16Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- Whether the uint16Tensor field is set.
-
getUint16Tensor
.viam.service.mlmodel.v1.FlatTensorDataUInt16 uint16_tensor = 5 [json_name = "uint16Tensor"];
- Specified by:
getUint16Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- The uint16Tensor.
-
hasInt32Tensor
public boolean hasInt32Tensor().viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"];
- Specified by:
hasInt32Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- Whether the int32Tensor field is set.
-
getInt32Tensor
.viam.service.mlmodel.v1.FlatTensorDataInt32 int32_tensor = 6 [json_name = "int32Tensor"];
- Specified by:
getInt32Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- The int32Tensor.
-
hasUint32Tensor
public boolean hasUint32Tensor().viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"];
- Specified by:
hasUint32Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- Whether the uint32Tensor field is set.
-
getUint32Tensor
.viam.service.mlmodel.v1.FlatTensorDataUInt32 uint32_tensor = 7 [json_name = "uint32Tensor"];
- Specified by:
getUint32Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- The uint32Tensor.
-
hasInt64Tensor
public boolean hasInt64Tensor().viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"];
- Specified by:
hasInt64Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- Whether the int64Tensor field is set.
-
getInt64Tensor
.viam.service.mlmodel.v1.FlatTensorDataInt64 int64_tensor = 8 [json_name = "int64Tensor"];
- Specified by:
getInt64Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- The int64Tensor.
-
hasUint64Tensor
public boolean hasUint64Tensor().viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"];
- Specified by:
hasUint64Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- Whether the uint64Tensor field is set.
-
getUint64Tensor
.viam.service.mlmodel.v1.FlatTensorDataUInt64 uint64_tensor = 9 [json_name = "uint64Tensor"];
- Specified by:
getUint64Tensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- The uint64Tensor.
-
hasFloatTensor
public boolean hasFloatTensor().viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"];
- Specified by:
hasFloatTensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- Whether the floatTensor field is set.
-
getFloatTensor
.viam.service.mlmodel.v1.FlatTensorDataFloat float_tensor = 10 [json_name = "floatTensor"];
- Specified by:
getFloatTensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- The floatTensor.
-
hasDoubleTensor
public boolean hasDoubleTensor().viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"];
- Specified by:
hasDoubleTensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- Whether the doubleTensor field is set.
-
getDoubleTensor
.viam.service.mlmodel.v1.FlatTensorDataDouble double_tensor = 11 [json_name = "doubleTensor"];
- Specified by:
getDoubleTensor
in interfaceMlmodel.FlatTensorOrBuilder
- Returns:
- The doubleTensor.
-
parseFrom
public static Mlmodel.FlatTensor parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Mlmodel.FlatTensor parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Mlmodel.FlatTensor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Mlmodel.FlatTensor 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.FlatTensor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Mlmodel.FlatTensor 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.FlatTensor parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Mlmodel.FlatTensor parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Mlmodel.FlatTensor parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Mlmodel.FlatTensor 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.FlatTensor,
Mlmodel.FlatTensor.Builder>
-
getDefaultInstance
-
parser
-