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 classTensor.BuilderA tensor value type.static classTensor.DataTypeData 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 intBOOL_VAL_FIELD_NUMBERstatic intBYTES_VAL_FIELD_NUMBERstatic intDOUBLE_VAL_FIELD_NUMBERstatic intDTYPE_FIELD_NUMBERstatic intFLOAT_VAL_FIELD_NUMBERstatic intINT_VAL_FIELD_NUMBERstatic intINT64_VAL_FIELD_NUMBERstatic intLIST_VAL_FIELD_NUMBERstatic intSHAPE_FIELD_NUMBERstatic intSTRING_VAL_FIELD_NUMBERstatic intSTRUCT_VAL_FIELD_NUMBERstatic intTENSOR_VAL_FIELD_NUMBERstatic intUINT_VAL_FIELD_NUMBERstatic intUINT64_VAL_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsStructVal(String key)A map of string to tensor.booleanequals(Object obj)booleangetBoolVal(int index)Type specific representations that make it easy to create tensor protos in all languages.intgetBoolValCount()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.ByteStringgetBytesVal(int index)[STRING][google.aiplatform.master.Tensor.DataType.STRING]intgetBytesValCount()[STRING][google.aiplatform.master.Tensor.DataType.STRING]List<com.google.protobuf.ByteString>getBytesValList()[STRING][google.aiplatform.master.Tensor.DataType.STRING]static TensorgetDefaultInstance()TensorgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()doublegetDoubleVal(int index)[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]intgetDoubleValCount()[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]List<Double>getDoubleValList()[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]Tensor.DataTypegetDtype()The data type of tensor.intgetDtypeValue()The data type of tensor.floatgetFloatVal(int index)[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]intgetFloatValCount()[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]List<Float>getFloatValList()[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]longgetInt64Val(int index)[INT64][google.aiplatform.master.Tensor.DataType.INT64]intgetInt64ValCount()[INT64][google.aiplatform.master.Tensor.DataType.INT64]List<Long>getInt64ValList()[INT64][google.aiplatform.master.Tensor.DataType.INT64]intgetIntVal(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]intgetIntValCount()[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]TensorgetListVal(int index)A list of tensor values.intgetListValCount()A list of tensor values.List<Tensor>getListValList()A list of tensor values.TensorOrBuildergetListValOrBuilder(int index)A list of tensor values.List<? extends TensorOrBuilder>getListValOrBuilderList()A list of tensor values.com.google.protobuf.Parser<Tensor>getParserForType()intgetSerializedSize()longgetShape(int index)Shape of the tensor.intgetShapeCount()Shape of the tensor.List<Long>getShapeList()Shape of the tensor.StringgetStringVal(int index)[STRING][google.aiplatform.master.Tensor.DataType.STRING]com.google.protobuf.ByteStringgetStringValBytes(int index)[STRING][google.aiplatform.master.Tensor.DataType.STRING]intgetStringValCount()[STRING][google.aiplatform.master.Tensor.DataType.STRING]com.google.protobuf.ProtocolStringListgetStringValList()[STRING][google.aiplatform.master.Tensor.DataType.STRING]Map<String,Tensor>getStructVal()Deprecated.intgetStructValCount()A map of string to tensor.Map<String,Tensor>getStructValMap()A map of string to tensor.TensorgetStructValOrDefault(String key, Tensor defaultValue)A map of string to tensor.TensorgetStructValOrThrow(String key)A map of string to tensor.com.google.protobuf.ByteStringgetTensorVal()Serialized raw tensor content.longgetUint64Val(int index)[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]intgetUint64ValCount()[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]List<Long>getUint64ValList()[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]intgetUintVal(int index)[UINT8][google.aiplatform.master.Tensor.DataType.UINT8] [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] [UINT32][google.aiplatform.master.Tensor.DataType.UINT32]intgetUintValCount()[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]inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Tensor.BuildernewBuilder()static Tensor.BuildernewBuilder(Tensor prototype)Tensor.BuildernewBuilderForType()protected Tensor.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TensorparseDelimitedFrom(InputStream input)static TensorparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorparseFrom(byte[] data)static TensorparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorparseFrom(com.google.protobuf.ByteString data)static TensorparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorparseFrom(com.google.protobuf.CodedInputStream input)static TensorparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorparseFrom(InputStream input)static TensorparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorparseFrom(ByteBuffer data)static TensorparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Tensor>parser()Tensor.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getDtypeValue
public int getDtypeValue()
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;- Specified by:
getDtypeValuein 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:
getDtypein interfaceTensorOrBuilder- Returns:
- The dtype.
-
getShapeList
public List<Long> getShapeList()
Shape of the tensor.
repeated int64 shape = 2;- Specified by:
getShapeListin interfaceTensorOrBuilder- Returns:
- A list containing the shape.
-
getShapeCount
public int getShapeCount()
Shape of the tensor.
repeated int64 shape = 2;- Specified by:
getShapeCountin interfaceTensorOrBuilder- Returns:
- The count of shape.
-
getShape
public long getShape(int index)
Shape of the tensor.
repeated int64 shape = 2;- Specified by:
getShapein 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:
getBoolValListin 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:
getBoolValCountin 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:
getBoolValin 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:
getStringValListin 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:
getStringValCountin 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:
getStringValin 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:
getStringValBytesin 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:
getBytesValListin 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:
getBytesValCountin 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:
getBytesValin 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:
getFloatValListin 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:
getFloatValCountin 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:
getFloatValin 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:
getDoubleValListin 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:
getDoubleValCountin 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:
getDoubleValin 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:
getIntValListin 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:
getIntValCountin 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:
getIntValin 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:
getInt64ValListin 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:
getInt64ValCountin 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:
getInt64Valin 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:
getUintValListin 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:
getUintValCountin 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:
getUintValin 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:
getUint64ValListin 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:
getUint64ValCountin 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:
getUint64Valin 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:
getListValListin interfaceTensorOrBuilder
-
getListValOrBuilderList
public List<? extends TensorOrBuilder> getListValOrBuilderList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;- Specified by:
getListValOrBuilderListin interfaceTensorOrBuilder
-
getListValCount
public int getListValCount()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;- Specified by:
getListValCountin interfaceTensorOrBuilder
-
getListVal
public Tensor getListVal(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;- Specified by:
getListValin interfaceTensorOrBuilder
-
getListValOrBuilder
public TensorOrBuilder getListValOrBuilder(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;- Specified by:
getListValOrBuilderin interfaceTensorOrBuilder
-
getStructValCount
public int getStructValCount()
Description copied from interface:TensorOrBuilderA map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;- Specified by:
getStructValCountin 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:
containsStructValin interfaceTensorOrBuilder
-
getStructVal
@Deprecated public Map<String,Tensor> getStructVal()
Deprecated.UsegetStructValMap()instead.- Specified by:
getStructValin 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:
getStructValMapin 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:
getStructValOrDefaultin 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:
getStructValOrThrowin interfaceTensorOrBuilder
-
getTensorVal
public com.google.protobuf.ByteString getTensorVal()
Serialized raw tensor content.
bytes tensor_val = 13;- Specified by:
getTensorValin interfaceTensorOrBuilder- Returns:
- The tensorVal.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Tensor.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Tensor getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-