Package com.google.cloud.aiplatform.v1
Class Tensor
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.aiplatform.v1.Tensor
-
- All Implemented Interfaces:
TensorOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Tensor extends com.google.protobuf.GeneratedMessageV3 implements TensorOrBuilder
A tensor value type.
Protobuf typegoogle.cloud.aiplatform.v1.Tensor
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Tensor.Builder
A tensor value type.static class
Tensor.DataType
Data type of the tensor.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
BOOL_VAL_FIELD_NUMBER
static int
BYTES_VAL_FIELD_NUMBER
static int
DOUBLE_VAL_FIELD_NUMBER
static int
DTYPE_FIELD_NUMBER
static int
FLOAT_VAL_FIELD_NUMBER
static int
INT_VAL_FIELD_NUMBER
static int
INT64_VAL_FIELD_NUMBER
static int
LIST_VAL_FIELD_NUMBER
static int
SHAPE_FIELD_NUMBER
static int
STRING_VAL_FIELD_NUMBER
static int
STRUCT_VAL_FIELD_NUMBER
static int
TENSOR_VAL_FIELD_NUMBER
static int
UINT_VAL_FIELD_NUMBER
static int
UINT64_VAL_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsStructVal(String key)
A map of string to tensor.boolean
equals(Object obj)
boolean
getBoolVal(int index)
Type specific representations that make it easy to create tensor protos in all languages.int
getBoolValCount()
Type specific representations that make it easy to create tensor protos in all languages.List<Boolean>
getBoolValList()
Type specific representations that make it easy to create tensor protos in all languages.com.google.protobuf.ByteString
getBytesVal(int index)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]int
getBytesValCount()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]List<com.google.protobuf.ByteString>
getBytesValList()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]static Tensor
getDefaultInstance()
Tensor
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
double
getDoubleVal(int index)
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]int
getDoubleValCount()
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]List<Double>
getDoubleValList()
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]Tensor.DataType
getDtype()
The data type of tensor.int
getDtypeValue()
The data type of tensor.float
getFloatVal(int index)
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]int
getFloatValCount()
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]List<Float>
getFloatValList()
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]long
getInt64Val(int index)
[INT64][google.aiplatform.master.Tensor.DataType.INT64]int
getInt64ValCount()
[INT64][google.aiplatform.master.Tensor.DataType.INT64]List<Long>
getInt64ValList()
[INT64][google.aiplatform.master.Tensor.DataType.INT64]int
getIntVal(int index)
[INT_8][google.aiplatform.master.Tensor.DataType.INT8] [INT_16][google.aiplatform.master.Tensor.DataType.INT16] [INT_32][google.aiplatform.master.Tensor.DataType.INT32]int
getIntValCount()
[INT_8][google.aiplatform.master.Tensor.DataType.INT8] [INT_16][google.aiplatform.master.Tensor.DataType.INT16] [INT_32][google.aiplatform.master.Tensor.DataType.INT32]List<Integer>
getIntValList()
[INT_8][google.aiplatform.master.Tensor.DataType.INT8] [INT_16][google.aiplatform.master.Tensor.DataType.INT16] [INT_32][google.aiplatform.master.Tensor.DataType.INT32]Tensor
getListVal(int index)
A list of tensor values.int
getListValCount()
A list of tensor values.List<Tensor>
getListValList()
A list of tensor values.TensorOrBuilder
getListValOrBuilder(int index)
A list of tensor values.List<? extends TensorOrBuilder>
getListValOrBuilderList()
A list of tensor values.com.google.protobuf.Parser<Tensor>
getParserForType()
int
getSerializedSize()
long
getShape(int index)
Shape of the tensor.int
getShapeCount()
Shape of the tensor.List<Long>
getShapeList()
Shape of the tensor.String
getStringVal(int index)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]com.google.protobuf.ByteString
getStringValBytes(int index)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]int
getStringValCount()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]com.google.protobuf.ProtocolStringList
getStringValList()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]Map<String,Tensor>
getStructVal()
Deprecated.int
getStructValCount()
A map of string to tensor.Map<String,Tensor>
getStructValMap()
A map of string to tensor.Tensor
getStructValOrDefault(String key, Tensor defaultValue)
A map of string to tensor.Tensor
getStructValOrThrow(String key)
A map of string to tensor.com.google.protobuf.ByteString
getTensorVal()
Serialized raw tensor content.long
getUint64Val(int index)
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]int
getUint64ValCount()
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]List<Long>
getUint64ValList()
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]int
getUintVal(int index)
[UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]int
getUintValCount()
[UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]List<Integer>
getUintValList()
[UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static Tensor.Builder
newBuilder()
static Tensor.Builder
newBuilder(Tensor prototype)
Tensor.Builder
newBuilderForType()
protected Tensor.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Tensor
parseDelimitedFrom(InputStream input)
static Tensor
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Tensor
parseFrom(byte[] data)
static Tensor
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Tensor
parseFrom(com.google.protobuf.ByteString data)
static Tensor
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Tensor
parseFrom(com.google.protobuf.CodedInputStream input)
static Tensor
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Tensor
parseFrom(InputStream input)
static Tensor
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Tensor
parseFrom(ByteBuffer data)
static Tensor
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Tensor>
parser()
Tensor.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DTYPE_FIELD_NUMBER
public static final int DTYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHAPE_FIELD_NUMBER
public static final int SHAPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOL_VAL_FIELD_NUMBER
public static final int BOOL_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_VAL_FIELD_NUMBER
public static final int STRING_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BYTES_VAL_FIELD_NUMBER
public static final int BYTES_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FLOAT_VAL_FIELD_NUMBER
public static final int FLOAT_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOUBLE_VAL_FIELD_NUMBER
public static final int DOUBLE_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT_VAL_FIELD_NUMBER
public static final int INT_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT64_VAL_FIELD_NUMBER
public static final int INT64_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UINT_VAL_FIELD_NUMBER
public static final int UINT_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UINT64_VAL_FIELD_NUMBER
public static final int UINT64_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIST_VAL_FIELD_NUMBER
public static final int LIST_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRUCT_VAL_FIELD_NUMBER
public static final int STRUCT_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSOR_VAL_FIELD_NUMBER
public static final int TENSOR_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getDtypeValue
public int getDtypeValue()
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;
- Specified by:
getDtypeValue
in interfaceTensorOrBuilder
- Returns:
- The enum numeric value on the wire for dtype.
-
getDtype
public Tensor.DataType getDtype()
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;
- Specified by:
getDtype
in interfaceTensorOrBuilder
- Returns:
- The dtype.
-
getShapeList
public List<Long> getShapeList()
Shape of the tensor.
repeated int64 shape = 2;
- Specified by:
getShapeList
in interfaceTensorOrBuilder
- Returns:
- A list containing the shape.
-
getShapeCount
public int getShapeCount()
Shape of the tensor.
repeated int64 shape = 2;
- Specified by:
getShapeCount
in interfaceTensorOrBuilder
- Returns:
- The count of shape.
-
getShape
public long getShape(int index)
Shape of the tensor.
repeated int64 shape = 2;
- Specified by:
getShape
in interfaceTensorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The shape at the given index.
-
getBoolValList
public List<Boolean> getBoolValList()
Type specific representations that make it easy to create tensor protos in all languages. Only the representation corresponding to "dtype" can be set. The values hold the flattened representation of the tensor in row major order. [BOOL][google.aiplatform.master.Tensor.DataType.BOOL]
repeated bool bool_val = 3;
- Specified by:
getBoolValList
in interfaceTensorOrBuilder
- Returns:
- A list containing the boolVal.
-
getBoolValCount
public int getBoolValCount()
Type specific representations that make it easy to create tensor protos in all languages. Only the representation corresponding to "dtype" can be set. The values hold the flattened representation of the tensor in row major order. [BOOL][google.aiplatform.master.Tensor.DataType.BOOL]
repeated bool bool_val = 3;
- Specified by:
getBoolValCount
in interfaceTensorOrBuilder
- Returns:
- The count of boolVal.
-
getBoolVal
public boolean getBoolVal(int index)
Type specific representations that make it easy to create tensor protos in all languages. Only the representation corresponding to "dtype" can be set. The values hold the flattened representation of the tensor in row major order. [BOOL][google.aiplatform.master.Tensor.DataType.BOOL]
repeated bool bool_val = 3;
- Specified by:
getBoolVal
in interfaceTensorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The boolVal at the given index.
-
getStringValList
public com.google.protobuf.ProtocolStringList getStringValList()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;
- Specified by:
getStringValList
in interfaceTensorOrBuilder
- Returns:
- A list containing the stringVal.
-
getStringValCount
public int getStringValCount()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;
- Specified by:
getStringValCount
in interfaceTensorOrBuilder
- Returns:
- The count of stringVal.
-
getStringVal
public String getStringVal(int index)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;
- Specified by:
getStringVal
in interfaceTensorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The stringVal at the given index.
-
getStringValBytes
public com.google.protobuf.ByteString getStringValBytes(int index)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;
- Specified by:
getStringValBytes
in interfaceTensorOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the stringVal at the given index.
-
getBytesValList
public List<com.google.protobuf.ByteString> getBytesValList()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;
- Specified by:
getBytesValList
in interfaceTensorOrBuilder
- Returns:
- A list containing the bytesVal.
-
getBytesValCount
public int getBytesValCount()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;
- Specified by:
getBytesValCount
in interfaceTensorOrBuilder
- Returns:
- The count of bytesVal.
-
getBytesVal
public com.google.protobuf.ByteString getBytesVal(int index)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;
- Specified by:
getBytesVal
in interfaceTensorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The bytesVal at the given index.
-
getFloatValList
public List<Float> getFloatValList()
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;
- Specified by:
getFloatValList
in interfaceTensorOrBuilder
- Returns:
- A list containing the floatVal.
-
getFloatValCount
public int getFloatValCount()
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;
- Specified by:
getFloatValCount
in interfaceTensorOrBuilder
- Returns:
- The count of floatVal.
-
getFloatVal
public float getFloatVal(int index)
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;
- Specified by:
getFloatVal
in interfaceTensorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The floatVal at the given index.
-
getDoubleValList
public List<Double> getDoubleValList()
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;
- Specified by:
getDoubleValList
in interfaceTensorOrBuilder
- Returns:
- A list containing the doubleVal.
-
getDoubleValCount
public int getDoubleValCount()
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;
- Specified by:
getDoubleValCount
in interfaceTensorOrBuilder
- Returns:
- The count of doubleVal.
-
getDoubleVal
public double getDoubleVal(int index)
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;
- Specified by:
getDoubleVal
in interfaceTensorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The doubleVal at the given index.
-
getIntValList
public List<Integer> getIntValList()
[INT_8][google.aiplatform.master.Tensor.DataType.INT8] [INT_16][google.aiplatform.master.Tensor.DataType.INT16] [INT_32][google.aiplatform.master.Tensor.DataType.INT32]
repeated int32 int_val = 7;
- Specified by:
getIntValList
in interfaceTensorOrBuilder
- Returns:
- A list containing the intVal.
-
getIntValCount
public int getIntValCount()
[INT_8][google.aiplatform.master.Tensor.DataType.INT8] [INT_16][google.aiplatform.master.Tensor.DataType.INT16] [INT_32][google.aiplatform.master.Tensor.DataType.INT32]
repeated int32 int_val = 7;
- Specified by:
getIntValCount
in interfaceTensorOrBuilder
- Returns:
- The count of intVal.
-
getIntVal
public int getIntVal(int index)
[INT_8][google.aiplatform.master.Tensor.DataType.INT8] [INT_16][google.aiplatform.master.Tensor.DataType.INT16] [INT_32][google.aiplatform.master.Tensor.DataType.INT32]
repeated int32 int_val = 7;
- Specified by:
getIntVal
in interfaceTensorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The intVal at the given index.
-
getInt64ValList
public List<Long> getInt64ValList()
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;
- Specified by:
getInt64ValList
in interfaceTensorOrBuilder
- Returns:
- A list containing the int64Val.
-
getInt64ValCount
public int getInt64ValCount()
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;
- Specified by:
getInt64ValCount
in interfaceTensorOrBuilder
- Returns:
- The count of int64Val.
-
getInt64Val
public long getInt64Val(int index)
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;
- Specified by:
getInt64Val
in interfaceTensorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The int64Val at the given index.
-
getUintValList
public List<Integer> getUintValList()
[UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]
repeated uint32 uint_val = 9;
- Specified by:
getUintValList
in interfaceTensorOrBuilder
- Returns:
- A list containing the uintVal.
-
getUintValCount
public int getUintValCount()
[UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]
repeated uint32 uint_val = 9;
- Specified by:
getUintValCount
in interfaceTensorOrBuilder
- Returns:
- The count of uintVal.
-
getUintVal
public int getUintVal(int index)
[UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]
repeated uint32 uint_val = 9;
- Specified by:
getUintVal
in interfaceTensorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The uintVal at the given index.
-
getUint64ValList
public List<Long> getUint64ValList()
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;
- Specified by:
getUint64ValList
in interfaceTensorOrBuilder
- Returns:
- A list containing the uint64Val.
-
getUint64ValCount
public int getUint64ValCount()
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;
- Specified by:
getUint64ValCount
in interfaceTensorOrBuilder
- Returns:
- The count of uint64Val.
-
getUint64Val
public long getUint64Val(int index)
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;
- Specified by:
getUint64Val
in interfaceTensorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The uint64Val at the given index.
-
getListValList
public List<Tensor> getListValList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
- Specified by:
getListValList
in interfaceTensorOrBuilder
-
getListValOrBuilderList
public List<? extends TensorOrBuilder> getListValOrBuilderList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
- Specified by:
getListValOrBuilderList
in interfaceTensorOrBuilder
-
getListValCount
public int getListValCount()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
- Specified by:
getListValCount
in interfaceTensorOrBuilder
-
getListVal
public Tensor getListVal(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
- Specified by:
getListVal
in interfaceTensorOrBuilder
-
getListValOrBuilder
public TensorOrBuilder getListValOrBuilder(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
- Specified by:
getListValOrBuilder
in interfaceTensorOrBuilder
-
getStructValCount
public int getStructValCount()
Description copied from interface:TensorOrBuilder
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
- Specified by:
getStructValCount
in interfaceTensorOrBuilder
-
containsStructVal
public boolean containsStructVal(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
- Specified by:
containsStructVal
in interfaceTensorOrBuilder
-
getStructVal
@Deprecated public Map<String,Tensor> getStructVal()
Deprecated.UsegetStructValMap()
instead.- Specified by:
getStructVal
in interfaceTensorOrBuilder
-
getStructValMap
public Map<String,Tensor> getStructValMap()
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
- Specified by:
getStructValMap
in interfaceTensorOrBuilder
-
getStructValOrDefault
public Tensor getStructValOrDefault(String key, Tensor defaultValue)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
- Specified by:
getStructValOrDefault
in interfaceTensorOrBuilder
-
getStructValOrThrow
public Tensor getStructValOrThrow(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
- Specified by:
getStructValOrThrow
in interfaceTensorOrBuilder
-
getTensorVal
public com.google.protobuf.ByteString getTensorVal()
Serialized raw tensor content.
bytes tensor_val = 13;
- Specified by:
getTensorVal
in interfaceTensorOrBuilder
- Returns:
- The tensorVal.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Tensor parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tensor parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tensor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tensor parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tensor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tensor parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tensor parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Tensor parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Tensor parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Tensor parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Tensor parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Tensor parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Tensor.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Tensor.Builder newBuilder()
-
newBuilder
public static Tensor.Builder newBuilder(Tensor prototype)
-
toBuilder
public Tensor.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Tensor.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Tensor getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Tensor> parser()
-
getParserForType
public com.google.protobuf.Parser<Tensor> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Tensor getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-