- 3.52.0 (latest)
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.3.0
- 3.2.0
- 3.0.0
- 2.9.8
- 2.8.9
- 2.7.4
- 2.5.3
- 2.4.0
public static final class Tensor.Builder extends GeneratedMessageV3.Builder<Tensor.Builder> implements TensorOrBuilder
A tensor value type.
Protobuf type google.cloud.aiplatform.v1.Tensor
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Tensor.BuilderImplements
TensorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllBoolVal(Iterable<? extends Boolean> values)
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 repeated bool bool_val = 3;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends java.lang.Boolean> The boolVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addAllBytesVal(Iterable<? extends ByteString> values)
public Tensor.Builder addAllBytesVal(Iterable<? extends ByteString> values)
repeated bytes bytes_val = 15;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.protobuf.ByteString> The bytesVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addAllDoubleVal(Iterable<? extends Double> values)
public Tensor.Builder addAllDoubleVal(Iterable<? extends Double> values)
repeated double double_val = 6;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends java.lang.Double> The doubleVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addAllFloatVal(Iterable<? extends Float> values)
public Tensor.Builder addAllFloatVal(Iterable<? extends Float> values)
repeated float float_val = 5;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends java.lang.Float> The floatVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addAllInt64Val(Iterable<? extends Long> values)
public Tensor.Builder addAllInt64Val(Iterable<? extends Long> values)
repeated int64 int64_val = 8;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends java.lang.Long> The int64Val to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addAllIntVal(Iterable<? extends Integer> values)
public Tensor.Builder addAllIntVal(Iterable<? extends Integer> values)
repeated int32 int_val = 7;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends java.lang.Integer> The intVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addAllListVal(Iterable<? extends Tensor> values)
public Tensor.Builder addAllListVal(Iterable<? extends Tensor> values)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.aiplatform.v1.Tensor> |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
addAllShape(Iterable<? extends Long> values)
public Tensor.Builder addAllShape(Iterable<? extends Long> values)
Shape of the tensor.
repeated int64 shape = 2;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends java.lang.Long> The shape to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addAllStringVal(Iterable<String> values)
public Tensor.Builder addAllStringVal(Iterable<String> values)
repeated string string_val = 14;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The stringVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addAllUint64Val(Iterable<? extends Long> values)
public Tensor.Builder addAllUint64Val(Iterable<? extends Long> values)
repeated uint64 uint64_val = 10;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends java.lang.Long> The uint64Val to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addAllUintVal(Iterable<? extends Integer> values)
public Tensor.Builder addAllUintVal(Iterable<? extends Integer> values)
repeated uint32 uint_val = 9;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends java.lang.Integer> The uintVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addBoolVal(boolean value)
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 repeated bool bool_val = 3;
Parameter | |
---|---|
Name | Description |
value | boolean The boolVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addBytesVal(ByteString value)
public Tensor.Builder addBytesVal(ByteString value)
repeated bytes bytes_val = 15;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytesVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addDoubleVal(double value)
public Tensor.Builder addDoubleVal(double value)
repeated double double_val = 6;
Parameter | |
---|---|
Name | Description |
value | double The doubleVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addFloatVal(float value)
public Tensor.Builder addFloatVal(float value)
repeated float float_val = 5;
Parameter | |
---|---|
Name | Description |
value | float The floatVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addInt64Val(long value)
public Tensor.Builder addInt64Val(long value)
repeated int64 int64_val = 8;
Parameter | |
---|---|
Name | Description |
value | long The int64Val to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addIntVal(int value)
public Tensor.Builder addIntVal(int value)
repeated int32 int_val = 7;
Parameter | |
---|---|
Name | Description |
value | int The intVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addListVal(Tensor value)
public Tensor.Builder addListVal(Tensor value)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Parameter | |
---|---|
Name | Description |
value | Tensor |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
addListVal(Tensor.Builder builderForValue)
public Tensor.Builder addListVal(Tensor.Builder builderForValue)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Parameter | |
---|---|
Name | Description |
builderForValue | Tensor.Builder |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
addListVal(int index, Tensor value)
public Tensor.Builder addListVal(int index, Tensor value)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Parameters | |
---|---|
Name | Description |
index | int |
value | Tensor |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
addListVal(int index, Tensor.Builder builderForValue)
public Tensor.Builder addListVal(int index, Tensor.Builder builderForValue)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Tensor.Builder |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
addListValBuilder()
public Tensor.Builder addListValBuilder()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Returns | |
---|---|
Type | Description |
Tensor.Builder |
addListValBuilder(int index)
public Tensor.Builder addListValBuilder(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Tensor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
addShape(long value)
public Tensor.Builder addShape(long value)
Shape of the tensor.
repeated int64 shape = 2;
Parameter | |
---|---|
Name | Description |
value | long The shape to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addStringVal(String value)
public Tensor.Builder addStringVal(String value)
repeated string string_val = 14;
Parameter | |
---|---|
Name | Description |
value | String The stringVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addStringValBytes(ByteString value)
public Tensor.Builder addStringValBytes(ByteString value)
repeated string string_val = 14;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the stringVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addUint64Val(long value)
public Tensor.Builder addUint64Val(long value)
repeated uint64 uint64_val = 10;
Parameter | |
---|---|
Name | Description |
value | long The uint64Val to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
addUintVal(int value)
public Tensor.Builder addUintVal(int value)
repeated uint32 uint_val = 9;
Parameter | |
---|---|
Name | Description |
value | int The uintVal to add. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
build()
public Tensor build()
Returns | |
---|---|
Type | Description |
Tensor |
buildPartial()
public Tensor buildPartial()
Returns | |
---|---|
Type | Description |
Tensor |
clear()
public Tensor.Builder clear()
Returns | |
---|---|
Type | Description |
Tensor.Builder |
clearBoolVal()
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 repeated bool bool_val = 3;
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
clearBytesVal()
public Tensor.Builder clearBytesVal()
repeated bytes bytes_val = 15;
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
clearDoubleVal()
public Tensor.Builder clearDoubleVal()
repeated double double_val = 6;
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
clearDtype()
public Tensor.Builder clearDtype()
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Tensor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
clearFloatVal()
public Tensor.Builder clearFloatVal()
repeated float float_val = 5;
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
clearInt64Val()
public Tensor.Builder clearInt64Val()
repeated int64 int64_val = 8;
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
clearIntVal()
public Tensor.Builder clearIntVal()
repeated int32 int_val = 7;
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
clearListVal()
public Tensor.Builder clearListVal()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Returns | |
---|---|
Type | Description |
Tensor.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Tensor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
clearShape()
public Tensor.Builder clearShape()
Shape of the tensor.
repeated int64 shape = 2;
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
clearStringVal()
public Tensor.Builder clearStringVal()
repeated string string_val = 14;
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
clearStructVal()
public Tensor.Builder clearStructVal()
Returns | |
---|---|
Type | Description |
Tensor.Builder |
clearTensorVal()
public Tensor.Builder clearTensorVal()
Serialized raw tensor content.
bytes tensor_val = 13;
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
clearUint64Val()
public Tensor.Builder clearUint64Val()
repeated uint64 uint64_val = 10;
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
clearUintVal()
public Tensor.Builder clearUintVal()
repeated uint32 uint_val = 9;
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
clone()
public Tensor.Builder clone()
Returns | |
---|---|
Type | Description |
Tensor.Builder |
containsStructVal(String key)
public boolean containsStructVal(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getBoolVal(int index)
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 repeated bool bool_val = 3;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
boolean | The boolVal at the given index. |
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 repeated bool bool_val = 3;
Returns | |
---|---|
Type | Description |
int | The count of boolVal. |
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 repeated bool bool_val = 3;
Returns | |
---|---|
Type | Description |
List<Boolean> | A list containing the boolVal. |
getBytesVal(int index)
public ByteString getBytesVal(int index)
repeated bytes bytes_val = 15;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytesVal at the given index. |
getBytesValCount()
public int getBytesValCount()
repeated bytes bytes_val = 15;
Returns | |
---|---|
Type | Description |
int | The count of bytesVal. |
getBytesValList()
public List<ByteString> getBytesValList()
repeated bytes bytes_val = 15;
Returns | |
---|---|
Type | Description |
List<ByteString> | A list containing the bytesVal. |
getDefaultInstanceForType()
public Tensor getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Tensor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDoubleVal(int index)
public double getDoubleVal(int index)
repeated double double_val = 6;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
double | The doubleVal at the given index. |
getDoubleValCount()
public int getDoubleValCount()
repeated double double_val = 6;
Returns | |
---|---|
Type | Description |
int | The count of doubleVal. |
getDoubleValList()
public List<Double> getDoubleValList()
repeated double double_val = 6;
Returns | |
---|---|
Type | Description |
List<Double> | A list containing the doubleVal. |
getDtype()
public Tensor.DataType getDtype()
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;
Returns | |
---|---|
Type | Description |
Tensor.DataType | The dtype. |
getDtypeValue()
public int getDtypeValue()
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for dtype. |
getFloatVal(int index)
public float getFloatVal(int index)
repeated float float_val = 5;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
float | The floatVal at the given index. |
getFloatValCount()
public int getFloatValCount()
repeated float float_val = 5;
Returns | |
---|---|
Type | Description |
int | The count of floatVal. |
getFloatValList()
public List<Float> getFloatValList()
repeated float float_val = 5;
Returns | |
---|---|
Type | Description |
List<Float> | A list containing the floatVal. |
getInt64Val(int index)
public long getInt64Val(int index)
repeated int64 int64_val = 8;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
long | The int64Val at the given index. |
getInt64ValCount()
public int getInt64ValCount()
repeated int64 int64_val = 8;
Returns | |
---|---|
Type | Description |
int | The count of int64Val. |
getInt64ValList()
public List<Long> getInt64ValList()
repeated int64 int64_val = 8;
Returns | |
---|---|
Type | Description |
List<Long> | A list containing the int64Val. |
getIntVal(int index)
public int getIntVal(int index)
repeated int32 int_val = 7;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
int | The intVal at the given index. |
getIntValCount()
public int getIntValCount()
repeated int32 int_val = 7;
Returns | |
---|---|
Type | Description |
int | The count of intVal. |
getIntValList()
public List<Integer> getIntValList()
repeated int32 int_val = 7;
Returns | |
---|---|
Type | Description |
List<Integer> | A list containing the intVal. |
getListVal(int index)
public Tensor getListVal(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Tensor |
getListValBuilder(int index)
public Tensor.Builder getListValBuilder(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
getListValBuilderList()
public List<Tensor.Builder> getListValBuilderList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Returns | |
---|---|
Type | Description |
List<Builder> |
getListValCount()
public int getListValCount()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Returns | |
---|---|
Type | Description |
int |
getListValList()
public List<Tensor> getListValList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Returns | |
---|---|
Type | Description |
List<Tensor> |
getListValOrBuilder(int index)
public TensorOrBuilder getListValOrBuilder(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
TensorOrBuilder |
getListValOrBuilderList()
public List<? extends TensorOrBuilder> getListValOrBuilderList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.aiplatform.v1.TensorOrBuilder> |
getMutableStructVal() (deprecated)
public Map<String,Tensor> getMutableStructVal()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,Tensor> |
getShape(int index)
public long getShape(int index)
Shape of the tensor.
repeated int64 shape = 2;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
long | The shape at the given index. |
getShapeCount()
public int getShapeCount()
Shape of the tensor.
repeated int64 shape = 2;
Returns | |
---|---|
Type | Description |
int | The count of shape. |
getShapeList()
public List<Long> getShapeList()
Shape of the tensor.
repeated int64 shape = 2;
Returns | |
---|---|
Type | Description |
List<Long> | A list containing the shape. |
getStringVal(int index)
public String getStringVal(int index)
repeated string string_val = 14;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The stringVal at the given index. |
getStringValBytes(int index)
public ByteString getStringValBytes(int index)
repeated string string_val = 14;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the stringVal at the given index. |
getStringValCount()
public int getStringValCount()
repeated string string_val = 14;
Returns | |
---|---|
Type | Description |
int | The count of stringVal. |
getStringValList()
public ProtocolStringList getStringValList()
repeated string string_val = 14;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the stringVal. |
getStructVal() (deprecated)
public Map<String,Tensor> getStructVal()
Use #getStructValMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,Tensor> |
getStructValCount()
public int getStructValCount()
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
Returns | |
---|---|
Type | Description |
int |
getStructValMap()
public Map<String,Tensor> getStructValMap()
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
Returns | |
---|---|
Type | Description |
Map<String,Tensor> |
getStructValOrDefault(String key, Tensor defaultValue)
public Tensor getStructValOrDefault(String key, Tensor defaultValue)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | Tensor |
Returns | |
---|---|
Type | Description |
Tensor |
getStructValOrThrow(String key)
public Tensor getStructValOrThrow(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
Tensor |
getTensorVal()
public ByteString getTensorVal()
Serialized raw tensor content.
bytes tensor_val = 13;
Returns | |
---|---|
Type | Description |
ByteString | The tensorVal. |
getUint64Val(int index)
public long getUint64Val(int index)
repeated uint64 uint64_val = 10;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
long | The uint64Val at the given index. |
getUint64ValCount()
public int getUint64ValCount()
repeated uint64 uint64_val = 10;
Returns | |
---|---|
Type | Description |
int | The count of uint64Val. |
getUint64ValList()
public List<Long> getUint64ValList()
repeated uint64 uint64_val = 10;
Returns | |
---|---|
Type | Description |
List<Long> | A list containing the uint64Val. |
getUintVal(int index)
public int getUintVal(int index)
repeated uint32 uint_val = 9;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
int | The uintVal at the given index. |
getUintValCount()
public int getUintValCount()
repeated uint32 uint_val = 9;
Returns | |
---|---|
Type | Description |
int | The count of uintVal. |
getUintValList()
public List<Integer> getUintValList()
repeated uint32 uint_val = 9;
Returns | |
---|---|
Type | Description |
List<Integer> | A list containing the uintVal. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Tensor other)
public Tensor.Builder mergeFrom(Tensor other)
Parameter | |
---|---|
Name | Description |
other | Tensor |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Tensor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Tensor.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Tensor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
putAllStructVal(Map<String,Tensor> values)
public Tensor.Builder putAllStructVal(Map<String,Tensor> values)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
Parameter | |
---|---|
Name | Description |
values | Map<String,Tensor> |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
putStructVal(String key, Tensor value)
public Tensor.Builder putStructVal(String key, Tensor value)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
Parameters | |
---|---|
Name | Description |
key | String |
value | Tensor |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
removeListVal(int index)
public Tensor.Builder removeListVal(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
removeStructVal(String key)
public Tensor.Builder removeStructVal(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
setBoolVal(int index, boolean value)
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 repeated bool bool_val = 3;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | boolean The boolVal to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setBytesVal(int index, ByteString value)
public Tensor.Builder setBytesVal(int index, ByteString value)
repeated bytes bytes_val = 15;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | ByteString The bytesVal to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setDoubleVal(int index, double value)
public Tensor.Builder setDoubleVal(int index, double value)
repeated double double_val = 6;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | double The doubleVal to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setDtype(Tensor.DataType value)
public Tensor.Builder setDtype(Tensor.DataType value)
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;
Parameter | |
---|---|
Name | Description |
value | Tensor.DataType The dtype to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setDtypeValue(int value)
public Tensor.Builder setDtypeValue(int value)
The data type of tensor.
.google.cloud.aiplatform.v1.Tensor.DataType dtype = 1;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for dtype to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Tensor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
setFloatVal(int index, float value)
public Tensor.Builder setFloatVal(int index, float value)
repeated float float_val = 5;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | float The floatVal to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setInt64Val(int index, long value)
public Tensor.Builder setInt64Val(int index, long value)
repeated int64 int64_val = 8;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | long The int64Val to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setIntVal(int index, int value)
public Tensor.Builder setIntVal(int index, int value)
repeated int32 int_val = 7;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | int The intVal to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setListVal(int index, Tensor value)
public Tensor.Builder setListVal(int index, Tensor value)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Parameters | |
---|---|
Name | Description |
index | int |
value | Tensor |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
setListVal(int index, Tensor.Builder builderForValue)
public Tensor.Builder setListVal(int index, Tensor.Builder builderForValue)
A list of tensor values.
repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Tensor.Builder |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Tensor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Tensor.Builder |
setShape(int index, long value)
public Tensor.Builder setShape(int index, long value)
Shape of the tensor.
repeated int64 shape = 2;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | long The shape to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setStringVal(int index, String value)
public Tensor.Builder setStringVal(int index, String value)
repeated string string_val = 14;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The stringVal to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setTensorVal(ByteString value)
public Tensor.Builder setTensorVal(ByteString value)
Serialized raw tensor content.
bytes tensor_val = 13;
Parameter | |
---|---|
Name | Description |
value | ByteString The tensorVal to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setUint64Val(int index, long value)
public Tensor.Builder setUint64Val(int index, long value)
repeated uint64 uint64_val = 10;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | long The uint64Val to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setUintVal(int index, int value)
public Tensor.Builder setUintVal(int index, int value)
repeated uint32 uint_val = 9;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | int The uintVal to set. |
Returns | |
---|---|
Type | Description |
Tensor.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Tensor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Tensor.Builder |