public static final class Tensor.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder> implements TensorOrBuilder
A tensor value type.Protobuf type
google.cloud.aiplatform.v1.Tensor| Modifier and Type | Method and Description |
|---|---|
Tensor.Builder |
addAllBoolVal(Iterable<? extends Boolean> values)
Type specific representations that make it easy to create tensor protos in
all languages.
|
Tensor.Builder |
addAllBytesVal(Iterable<? extends com.google.protobuf.ByteString> values)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
|
Tensor.Builder |
addAllDoubleVal(Iterable<? extends Double> values)
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
|
Tensor.Builder |
addAllFloatVal(Iterable<? extends Float> values)
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
|
Tensor.Builder |
addAllInt64Val(Iterable<? extends Long> values)
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
|
Tensor.Builder |
addAllIntVal(Iterable<? extends Integer> values)
[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.Builder |
addAllListVal(Iterable<? extends Tensor> values)
A list of tensor values.
|
Tensor.Builder |
addAllShape(Iterable<? extends Long> values)
Shape of the tensor.
|
Tensor.Builder |
addAllStringVal(Iterable<String> values)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
|
Tensor.Builder |
addAllUint64Val(Iterable<? extends Long> values)
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
|
Tensor.Builder |
addAllUintVal(Iterable<? extends Integer> values)
[UINT8][google.aiplatform.master.Tensor.DataType.UINT8]
[UINT16][google.aiplatform.master.Tensor.DataType.UINT16]
[UINT32][google.aiplatform.master.Tensor.DataType.UINT32]
|
Tensor.Builder |
addBoolVal(boolean value)
Type specific representations that make it easy to create tensor protos in
all languages.
|
Tensor.Builder |
addBytesVal(com.google.protobuf.ByteString value)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
|
Tensor.Builder |
addDoubleVal(double value)
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
|
Tensor.Builder |
addFloatVal(float value)
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
|
Tensor.Builder |
addInt64Val(long value)
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
|
Tensor.Builder |
addIntVal(int value)
[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.Builder |
addListVal(int index,
Tensor.Builder builderForValue)
A list of tensor values.
|
Tensor.Builder |
addListVal(int index,
Tensor value)
A list of tensor values.
|
Tensor.Builder |
addListVal(Tensor.Builder builderForValue)
A list of tensor values.
|
Tensor.Builder |
addListVal(Tensor value)
A list of tensor values.
|
Tensor.Builder |
addListValBuilder()
A list of tensor values.
|
Tensor.Builder |
addListValBuilder(int index)
A list of tensor values.
|
Tensor.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Tensor.Builder |
addShape(long value)
Shape of the tensor.
|
Tensor.Builder |
addStringVal(String value)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
|
Tensor.Builder |
addStringValBytes(com.google.protobuf.ByteString value)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
|
Tensor.Builder |
addUint64Val(long value)
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
|
Tensor.Builder |
addUintVal(int value)
[UINT8][google.aiplatform.master.Tensor.DataType.UINT8]
[UINT16][google.aiplatform.master.Tensor.DataType.UINT16]
[UINT32][google.aiplatform.master.Tensor.DataType.UINT32]
|
Tensor |
build() |
Tensor |
buildPartial() |
Tensor.Builder |
clear() |
Tensor.Builder |
clearBoolVal()
Type specific representations that make it easy to create tensor protos in
all languages.
|
Tensor.Builder |
clearBytesVal()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
|
Tensor.Builder |
clearDoubleVal()
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
|
Tensor.Builder |
clearDtype()
The data type of tensor.
|
Tensor.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Tensor.Builder |
clearFloatVal()
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
|
Tensor.Builder |
clearInt64Val()
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
|
Tensor.Builder |
clearIntVal()
[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.Builder |
clearListVal()
A list of tensor values.
|
Tensor.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Tensor.Builder |
clearShape()
Shape of the tensor.
|
Tensor.Builder |
clearStringVal()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
|
Tensor.Builder |
clearStructVal() |
Tensor.Builder |
clearTensorVal()
Serialized raw tensor content.
|
Tensor.Builder |
clearUint64Val()
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
|
Tensor.Builder |
clearUintVal()
[UINT8][google.aiplatform.master.Tensor.DataType.UINT8]
[UINT16][google.aiplatform.master.Tensor.DataType.UINT16]
[UINT32][google.aiplatform.master.Tensor.DataType.UINT32]
|
Tensor.Builder |
clone() |
boolean |
containsStructVal(String key)
A map of string to tensor.
|
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]
|
Tensor |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
Tensor.Builder |
getListValBuilder(int index)
A list of tensor values.
|
List<Tensor.Builder> |
getListValBuilderList()
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.
|
Map<String,Tensor> |
getMutableStructVal()
Deprecated.
|
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]
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
Tensor.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Tensor.Builder |
mergeFrom(com.google.protobuf.Message other) |
Tensor.Builder |
mergeFrom(Tensor other) |
Tensor.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Tensor.Builder |
putAllStructVal(Map<String,Tensor> values)
A map of string to tensor.
|
Tensor.Builder |
putStructVal(String key,
Tensor value)
A map of string to tensor.
|
Tensor.Builder |
putStructValBuilderIfAbsent(String key)
A map of string to tensor.
|
Tensor.Builder |
removeListVal(int index)
A list of tensor values.
|
Tensor.Builder |
removeStructVal(String key)
A map of string to tensor.
|
Tensor.Builder |
setBoolVal(int index,
boolean value)
Type specific representations that make it easy to create tensor protos in
all languages.
|
Tensor.Builder |
setBytesVal(int index,
com.google.protobuf.ByteString value)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
|
Tensor.Builder |
setDoubleVal(int index,
double value)
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
|
Tensor.Builder |
setDtype(Tensor.DataType value)
The data type of tensor.
|
Tensor.Builder |
setDtypeValue(int value)
The data type of tensor.
|
Tensor.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Tensor.Builder |
setFloatVal(int index,
float value)
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
|
Tensor.Builder |
setInt64Val(int index,
long value)
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
|
Tensor.Builder |
setIntVal(int index,
int value)
[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.Builder |
setListVal(int index,
Tensor.Builder builderForValue)
A list of tensor values.
|
Tensor.Builder |
setListVal(int index,
Tensor value)
A list of tensor values.
|
Tensor.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Tensor.Builder |
setShape(int index,
long value)
Shape of the tensor.
|
Tensor.Builder |
setStringVal(int index,
String value)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
|
Tensor.Builder |
setTensorVal(com.google.protobuf.ByteString value)
Serialized raw tensor content.
|
Tensor.Builder |
setUint64Val(int index,
long value)
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
|
Tensor.Builder |
setUintVal(int index,
int value)
[UINT8][google.aiplatform.master.Tensor.DataType.UINT8]
[UINT16][google.aiplatform.master.Tensor.DataType.UINT16]
[UINT32][google.aiplatform.master.Tensor.DataType.UINT32]
|
Tensor.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>public Tensor.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>public Tensor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Tensor build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Tensor buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Tensor.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>public Tensor.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>public Tensor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>public Tensor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>public Tensor.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>public Tensor.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>public Tensor.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tensor.Builder>public Tensor.Builder mergeFrom(Tensor other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>public Tensor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tensor.Builder>IOExceptionpublic int getDtypeValue()
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;getDtypeValue in interface TensorOrBuilderpublic Tensor.Builder setDtypeValue(int value)
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;value - The enum numeric value on the wire for dtype to set.public Tensor.DataType getDtype()
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;getDtype in interface TensorOrBuilderpublic Tensor.Builder setDtype(Tensor.DataType value)
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;value - The dtype to set.public Tensor.Builder clearDtype()
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;public List<Long> getShapeList()
Shape of the tensor.
repeated int64 shape = 2;getShapeList in interface TensorOrBuilderpublic int getShapeCount()
Shape of the tensor.
repeated int64 shape = 2;getShapeCount in interface TensorOrBuilderpublic long getShape(int index)
Shape of the tensor.
repeated int64 shape = 2;getShape in interface TensorOrBuilderindex - The index of the element to return.public Tensor.Builder setShape(int index, long value)
Shape of the tensor.
repeated int64 shape = 2;index - The index to set the value at.value - The shape to set.public Tensor.Builder addShape(long value)
Shape of the tensor.
repeated int64 shape = 2;value - The shape to add.public Tensor.Builder addAllShape(Iterable<? extends Long> values)
Shape of the tensor.
repeated int64 shape = 2;values - The shape to add.public Tensor.Builder clearShape()
Shape of the tensor.
repeated int64 shape = 2;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;getBoolValList in interface TensorOrBuilderpublic 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;getBoolValCount in interface TensorOrBuilderpublic 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;getBoolVal in interface TensorOrBuilderindex - The index of the element to return.public Tensor.Builder setBoolVal(int index, boolean value)
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;index - The index to set the value at.value - The boolVal to set.public Tensor.Builder addBoolVal(boolean value)
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;value - The boolVal to add.public Tensor.Builder addAllBoolVal(Iterable<? extends Boolean> values)
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;values - The boolVal to add.public Tensor.Builder clearBoolVal()
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;public com.google.protobuf.ProtocolStringList getStringValList()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;getStringValList in interface TensorOrBuilderpublic int getStringValCount()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;getStringValCount in interface TensorOrBuilderpublic String getStringVal(int index)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;getStringVal in interface TensorOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getStringValBytes(int index)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;getStringValBytes in interface TensorOrBuilderindex - The index of the value to return.public Tensor.Builder setStringVal(int index, String value)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;index - The index to set the value at.value - The stringVal to set.public Tensor.Builder addStringVal(String value)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;value - The stringVal to add.public Tensor.Builder addAllStringVal(Iterable<String> values)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;values - The stringVal to add.public Tensor.Builder clearStringVal()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;public Tensor.Builder addStringValBytes(com.google.protobuf.ByteString value)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;value - The bytes of the stringVal to add.public List<com.google.protobuf.ByteString> getBytesValList()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;getBytesValList in interface TensorOrBuilderpublic int getBytesValCount()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;getBytesValCount in interface TensorOrBuilderpublic com.google.protobuf.ByteString getBytesVal(int index)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;getBytesVal in interface TensorOrBuilderindex - The index of the element to return.public Tensor.Builder setBytesVal(int index, com.google.protobuf.ByteString value)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;index - The index to set the value at.value - The bytesVal to set.public Tensor.Builder addBytesVal(com.google.protobuf.ByteString value)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;value - The bytesVal to add.public Tensor.Builder addAllBytesVal(Iterable<? extends com.google.protobuf.ByteString> values)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;values - The bytesVal to add.public Tensor.Builder clearBytesVal()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;public List<Float> getFloatValList()
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;getFloatValList in interface TensorOrBuilderpublic int getFloatValCount()
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;getFloatValCount in interface TensorOrBuilderpublic float getFloatVal(int index)
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;getFloatVal in interface TensorOrBuilderindex - The index of the element to return.public Tensor.Builder setFloatVal(int index, float value)
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;index - The index to set the value at.value - The floatVal to set.public Tensor.Builder addFloatVal(float value)
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;value - The floatVal to add.public Tensor.Builder addAllFloatVal(Iterable<? extends Float> values)
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;values - The floatVal to add.public Tensor.Builder clearFloatVal()
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;public List<Double> getDoubleValList()
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;getDoubleValList in interface TensorOrBuilderpublic int getDoubleValCount()
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;getDoubleValCount in interface TensorOrBuilderpublic double getDoubleVal(int index)
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;getDoubleVal in interface TensorOrBuilderindex - The index of the element to return.public Tensor.Builder setDoubleVal(int index, double value)
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;index - The index to set the value at.value - The doubleVal to set.public Tensor.Builder addDoubleVal(double value)
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;value - The doubleVal to add.public Tensor.Builder addAllDoubleVal(Iterable<? extends Double> values)
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;values - The doubleVal to add.public Tensor.Builder clearDoubleVal()
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;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;getIntValList in interface TensorOrBuilderpublic 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;getIntValCount in interface TensorOrBuilderpublic 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;getIntVal in interface TensorOrBuilderindex - The index of the element to return.public Tensor.Builder setIntVal(int index, int value)
[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;index - The index to set the value at.value - The intVal to set.public Tensor.Builder addIntVal(int value)
[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;value - The intVal to add.public Tensor.Builder addAllIntVal(Iterable<? extends Integer> values)
[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;values - The intVal to add.public Tensor.Builder clearIntVal()
[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;public List<Long> getInt64ValList()
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;getInt64ValList in interface TensorOrBuilderpublic int getInt64ValCount()
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;getInt64ValCount in interface TensorOrBuilderpublic long getInt64Val(int index)
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;getInt64Val in interface TensorOrBuilderindex - The index of the element to return.public Tensor.Builder setInt64Val(int index, long value)
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;index - The index to set the value at.value - The int64Val to set.public Tensor.Builder addInt64Val(long value)
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;value - The int64Val to add.public Tensor.Builder addAllInt64Val(Iterable<? extends Long> values)
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;values - The int64Val to add.public Tensor.Builder clearInt64Val()
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;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;getUintValList in interface TensorOrBuilderpublic 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;getUintValCount in interface TensorOrBuilderpublic 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;getUintVal in interface TensorOrBuilderindex - The index of the element to return.public Tensor.Builder setUintVal(int index, int value)
[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;index - The index to set the value at.value - The uintVal to set.public Tensor.Builder addUintVal(int value)
[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;value - The uintVal to add.public Tensor.Builder addAllUintVal(Iterable<? extends Integer> values)
[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;values - The uintVal to add.public Tensor.Builder clearUintVal()
[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;public List<Long> getUint64ValList()
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;getUint64ValList in interface TensorOrBuilderpublic int getUint64ValCount()
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;getUint64ValCount in interface TensorOrBuilderpublic long getUint64Val(int index)
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;getUint64Val in interface TensorOrBuilderindex - The index of the element to return.public Tensor.Builder setUint64Val(int index, long value)
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;index - The index to set the value at.value - The uint64Val to set.public Tensor.Builder addUint64Val(long value)
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;value - The uint64Val to add.public Tensor.Builder addAllUint64Val(Iterable<? extends Long> values)
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;values - The uint64Val to add.public Tensor.Builder clearUint64Val()
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;public List<Tensor> getListValList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;getListValList in interface TensorOrBuilderpublic int getListValCount()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;getListValCount in interface TensorOrBuilderpublic Tensor getListVal(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;getListVal in interface TensorOrBuilderpublic Tensor.Builder setListVal(int index, Tensor value)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public Tensor.Builder setListVal(int index, Tensor.Builder builderForValue)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public Tensor.Builder addListVal(Tensor value)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public Tensor.Builder addListVal(int index, Tensor value)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public Tensor.Builder addListVal(Tensor.Builder builderForValue)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public Tensor.Builder addListVal(int index, Tensor.Builder builderForValue)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public Tensor.Builder addAllListVal(Iterable<? extends Tensor> values)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public Tensor.Builder clearListVal()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public Tensor.Builder removeListVal(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public Tensor.Builder getListValBuilder(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public TensorOrBuilder getListValOrBuilder(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;getListValOrBuilder in interface TensorOrBuilderpublic List<? extends TensorOrBuilder> getListValOrBuilderList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;getListValOrBuilderList in interface TensorOrBuilderpublic Tensor.Builder addListValBuilder()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public Tensor.Builder addListValBuilder(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public List<Tensor.Builder> getListValBuilderList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;public int getStructValCount()
TensorOrBuilderA map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;getStructValCount in interface TensorOrBuilderpublic boolean containsStructVal(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;containsStructVal in interface TensorOrBuilder@Deprecated public Map<String,Tensor> getStructVal()
getStructValMap() instead.getStructVal in interface TensorOrBuilderpublic Map<String,Tensor> getStructValMap()
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;getStructValMap in interface TensorOrBuilderpublic Tensor getStructValOrDefault(String key, Tensor defaultValue)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;getStructValOrDefault in interface TensorOrBuilderpublic Tensor getStructValOrThrow(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;getStructValOrThrow in interface TensorOrBuilderpublic Tensor.Builder clearStructVal()
public Tensor.Builder removeStructVal(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;@Deprecated public Map<String,Tensor> getMutableStructVal()
public Tensor.Builder putStructVal(String key, Tensor value)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;public Tensor.Builder putAllStructVal(Map<String,Tensor> values)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;public Tensor.Builder putStructValBuilderIfAbsent(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;public com.google.protobuf.ByteString getTensorVal()
Serialized raw tensor content.
bytes tensor_val = 13;getTensorVal in interface TensorOrBuilderpublic Tensor.Builder setTensorVal(com.google.protobuf.ByteString value)
Serialized raw tensor content.
bytes tensor_val = 13;value - The tensorVal to set.public Tensor.Builder clearTensorVal()
Serialized raw tensor content.
bytes tensor_val = 13;public final Tensor.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>public final Tensor.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Tensor.Builder>Copyright © 2024 Google LLC. All rights reserved.