public final class Tensor extends GeneratedMessageV3 implements TensorOrBuilder
A tensor value type.
Protobuf type google.cloud.aiplatform.v1beta1.Tensor
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int BOOL_VAL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int BYTES_VAL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DOUBLE_VAL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DTYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int FLOAT_VAL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int INT64_VAL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int INT_VAL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int LIST_VAL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int SHAPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int STRING_VAL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int STRUCT_VAL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TENSOR_VAL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int UINT64_VAL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int UINT_VAL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static Tensor getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Tensor.Builder newBuilder()
public static Tensor.Builder newBuilder(Tensor prototype)
Parameter |
---|
Name | Description |
prototype | Tensor
|
public static Tensor parseDelimitedFrom(InputStream input)
public static Tensor parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Tensor parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static Tensor parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Tensor parseFrom(ByteString data)
public static Tensor parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Tensor parseFrom(CodedInputStream input)
public static Tensor parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Tensor parseFrom(InputStream input)
public static Tensor parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Tensor parseFrom(ByteBuffer data)
public static Tensor parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Tensor> parser()
Methods
public boolean containsStructVal(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1beta1.Tensor> struct_val = 12;
Parameter |
---|
Name | Description |
key | String
|
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
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.
|
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.
|
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.
|
public ByteString getBytesVal(int index)
STRING
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.
|
public int getBytesValCount()
STRING
repeated bytes bytes_val = 15;
Returns |
---|
Type | Description |
int | The count of bytesVal.
|
public List<ByteString> getBytesValList()
STRING
repeated bytes bytes_val = 15;
public Tensor getDefaultInstanceForType()
public double getDoubleVal(int index)
DOUBLE
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.
|
public int getDoubleValCount()
DOUBLE
repeated double double_val = 6;
Returns |
---|
Type | Description |
int | The count of doubleVal.
|
public List<Double> getDoubleValList()
DOUBLE
repeated double double_val = 6;
Returns |
---|
Type | Description |
List<Double> | A list containing the doubleVal.
|
public Tensor.DataType getDtype()
The data type of tensor.
.google.cloud.aiplatform.v1beta1.Tensor.DataType dtype = 1;
public int getDtypeValue()
The data type of tensor.
.google.cloud.aiplatform.v1beta1.Tensor.DataType dtype = 1;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for dtype.
|
public float getFloatVal(int index)
FLOAT
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.
|
public int getFloatValCount()
FLOAT
repeated float float_val = 5;
Returns |
---|
Type | Description |
int | The count of floatVal.
|
public List<Float> getFloatValList()
FLOAT
repeated float float_val = 5;
Returns |
---|
Type | Description |
List<Float> | A list containing the floatVal.
|
public long getInt64Val(int index)
INT64
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.
|
public int getInt64ValCount()
INT64
repeated int64 int64_val = 8;
Returns |
---|
Type | Description |
int | The count of int64Val.
|
public List<Long> getInt64ValList()
INT64
repeated int64 int64_val = 8;
Returns |
---|
Type | Description |
List<Long> | A list containing the int64Val.
|
public int getIntVal(int index)
INT_8
INT_16
INT_32
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.
|
public int getIntValCount()
INT_8
INT_16
INT_32
repeated int32 int_val = 7;
Returns |
---|
Type | Description |
int | The count of intVal.
|
public List<Integer> getIntValList()
INT_8
INT_16
INT_32
repeated int32 int_val = 7;
Returns |
---|
Type | Description |
List<Integer> | A list containing the intVal.
|
public Tensor getListVal(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1beta1.Tensor list_val = 11;
Parameter |
---|
Name | Description |
index | int
|
public int getListValCount()
A list of tensor values.
repeated .google.cloud.aiplatform.v1beta1.Tensor list_val = 11;
Returns |
---|
Type | Description |
int | |
public List<Tensor> getListValList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1beta1.Tensor list_val = 11;
public TensorOrBuilder getListValOrBuilder(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1beta1.Tensor list_val = 11;
Parameter |
---|
Name | Description |
index | int
|
public List<? extends TensorOrBuilder> getListValOrBuilderList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1beta1.Tensor list_val = 11;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.TensorOrBuilder> | |
public Parser<Tensor> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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.
|
public int getShapeCount()
Shape of the tensor.
repeated int64 shape = 2;
Returns |
---|
Type | Description |
int | The count of shape.
|
public List<Long> getShapeList()
Shape of the tensor.
repeated int64 shape = 2;
Returns |
---|
Type | Description |
List<Long> | A list containing the shape.
|
public String getStringVal(int index)
STRING
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.
|
public ByteString getStringValBytes(int index)
STRING
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.
|
public int getStringValCount()
STRING
repeated string string_val = 14;
Returns |
---|
Type | Description |
int | The count of stringVal.
|
public ProtocolStringList getStringValList()
STRING
repeated string string_val = 14;
public Map<String,Tensor> getStructVal()
public int getStructValCount()
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1beta1.Tensor> struct_val = 12;
Returns |
---|
Type | Description |
int | |
public Map<String,Tensor> getStructValMap()
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1beta1.Tensor> struct_val = 12;
public Tensor getStructValOrDefault(String key, Tensor defaultValue)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1beta1.Tensor> struct_val = 12;
public Tensor getStructValOrThrow(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1beta1.Tensor> struct_val = 12;
Parameter |
---|
Name | Description |
key | String
|
public ByteString getTensorVal()
Serialized raw tensor content.
bytes tensor_val = 13;
public long getUint64Val(int index)
UINT64
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.
|
public int getUint64ValCount()
UINT64
repeated uint64 uint64_val = 10;
Returns |
---|
Type | Description |
int | The count of uint64Val.
|
public List<Long> getUint64ValList()
UINT64
repeated uint64 uint64_val = 10;
Returns |
---|
Type | Description |
List<Long> | A list containing the uint64Val.
|
public int getUintVal(int index)
UINT8
UINT16
UINT32
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.
|
public int getUintValCount()
UINT8
UINT16
UINT32
repeated uint32 uint_val = 9;
Returns |
---|
Type | Description |
int | The count of uintVal.
|
public List<Integer> getUintValList()
UINT8
UINT16
UINT32
repeated uint32 uint_val = 9;
Returns |
---|
Type | Description |
List<Integer> | A list containing the uintVal.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
public final boolean isInitialized()
Overrides
public Tensor.Builder newBuilderForType()
protected Tensor.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public Tensor.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides