Interface TensorOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Tensor
,Tensor.Builder
public interface TensorOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description 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]double
getDoubleVal(int index)
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]int
getDoubleValCount()
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]List<Double>
getDoubleValList()
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]Tensor.DataType
getDtype()
The data type of tensor.int
getDtypeValue()
The data type of tensor.float
getFloatVal(int index)
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]int
getFloatValCount()
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]List<Float>
getFloatValList()
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]long
getInt64Val(int index)
[INT64][google.aiplatform.master.Tensor.DataType.INT64]int
getInt64ValCount()
[INT64][google.aiplatform.master.Tensor.DataType.INT64]List<Long>
getInt64ValList()
[INT64][google.aiplatform.master.Tensor.DataType.INT64]int
getIntVal(int index)
[INT_8][google.aiplatform.master.Tensor.DataType.INT8] [INT_16][google.aiplatform.master.Tensor.DataType.INT16] [INT_32][google.aiplatform.master.Tensor.DataType.INT32]int
getIntValCount()
[INT_8][google.aiplatform.master.Tensor.DataType.INT8] [INT_16][google.aiplatform.master.Tensor.DataType.INT16] [INT_32][google.aiplatform.master.Tensor.DataType.INT32]List<Integer>
getIntValList()
[INT_8][google.aiplatform.master.Tensor.DataType.INT8] [INT_16][google.aiplatform.master.Tensor.DataType.INT16] [INT_32][google.aiplatform.master.Tensor.DataType.INT32]Tensor
getListVal(int index)
A list of tensor values.int
getListValCount()
A list of tensor values.List<Tensor>
getListValList()
A list of tensor values.TensorOrBuilder
getListValOrBuilder(int index)
A list of tensor values.List<? extends TensorOrBuilder>
getListValOrBuilderList()
A list of tensor values.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]List<String>
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]-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDtypeValue
int getDtypeValue()
The data type of tensor.
.google.cloud.aiplatform.v1beta1.Tensor.DataType dtype = 1;
- Returns:
- The enum numeric value on the wire for dtype.
-
getDtype
Tensor.DataType getDtype()
The data type of tensor.
.google.cloud.aiplatform.v1beta1.Tensor.DataType dtype = 1;
- Returns:
- The dtype.
-
getShapeList
List<Long> getShapeList()
Shape of the tensor.
repeated int64 shape = 2;
- Returns:
- A list containing the shape.
-
getShapeCount
int getShapeCount()
Shape of the tensor.
repeated int64 shape = 2;
- Returns:
- The count of shape.
-
getShape
long getShape(int index)
Shape of the tensor.
repeated int64 shape = 2;
- Parameters:
index
- The index of the element to return.- Returns:
- The shape at the given index.
-
getBoolValList
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;
- Returns:
- A list containing the boolVal.
-
getBoolValCount
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;
- Returns:
- The count of boolVal.
-
getBoolVal
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The boolVal at the given index.
-
getStringValList
List<String> getStringValList()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;
- Returns:
- A list containing the stringVal.
-
getStringValCount
int getStringValCount()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;
- Returns:
- The count of stringVal.
-
getStringVal
String getStringVal(int index)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;
- Parameters:
index
- The index of the element to return.- Returns:
- The stringVal at the given index.
-
getStringValBytes
com.google.protobuf.ByteString getStringValBytes(int index)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated string string_val = 14;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the stringVal at the given index.
-
getBytesValList
List<com.google.protobuf.ByteString> getBytesValList()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;
- Returns:
- A list containing the bytesVal.
-
getBytesValCount
int getBytesValCount()
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;
- Returns:
- The count of bytesVal.
-
getBytesVal
com.google.protobuf.ByteString getBytesVal(int index)
[STRING][google.aiplatform.master.Tensor.DataType.STRING]
repeated bytes bytes_val = 15;
- Parameters:
index
- The index of the element to return.- Returns:
- The bytesVal at the given index.
-
getFloatValList
List<Float> getFloatValList()
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;
- Returns:
- A list containing the floatVal.
-
getFloatValCount
int getFloatValCount()
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;
- Returns:
- The count of floatVal.
-
getFloatVal
float getFloatVal(int index)
[FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT]
repeated float float_val = 5;
- Parameters:
index
- The index of the element to return.- Returns:
- The floatVal at the given index.
-
getDoubleValList
List<Double> getDoubleValList()
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;
- Returns:
- A list containing the doubleVal.
-
getDoubleValCount
int getDoubleValCount()
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;
- Returns:
- The count of doubleVal.
-
getDoubleVal
double getDoubleVal(int index)
[DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE]
repeated double double_val = 6;
- Parameters:
index
- The index of the element to return.- Returns:
- The doubleVal at the given index.
-
getIntValList
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;
- Returns:
- A list containing the intVal.
-
getIntValCount
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;
- Returns:
- The count of intVal.
-
getIntVal
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The intVal at the given index.
-
getInt64ValList
List<Long> getInt64ValList()
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;
- Returns:
- A list containing the int64Val.
-
getInt64ValCount
int getInt64ValCount()
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;
- Returns:
- The count of int64Val.
-
getInt64Val
long getInt64Val(int index)
[INT64][google.aiplatform.master.Tensor.DataType.INT64]
repeated int64 int64_val = 8;
- Parameters:
index
- The index of the element to return.- Returns:
- The int64Val at the given index.
-
getUintValList
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;
- Returns:
- A list containing the uintVal.
-
getUintValCount
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;
- Returns:
- The count of uintVal.
-
getUintVal
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The uintVal at the given index.
-
getUint64ValList
List<Long> getUint64ValList()
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;
- Returns:
- A list containing the uint64Val.
-
getUint64ValCount
int getUint64ValCount()
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;
- Returns:
- The count of uint64Val.
-
getUint64Val
long getUint64Val(int index)
[UINT64][google.aiplatform.master.Tensor.DataType.UINT64]
repeated uint64 uint64_val = 10;
- Parameters:
index
- The index of the element to return.- Returns:
- The uint64Val at the given index.
-
getListValList
List<Tensor> getListValList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1beta1.Tensor list_val = 11;
-
getListVal
Tensor getListVal(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1beta1.Tensor list_val = 11;
-
getListValCount
int getListValCount()
A list of tensor values.
repeated .google.cloud.aiplatform.v1beta1.Tensor list_val = 11;
-
getListValOrBuilderList
List<? extends TensorOrBuilder> getListValOrBuilderList()
A list of tensor values.
repeated .google.cloud.aiplatform.v1beta1.Tensor list_val = 11;
-
getListValOrBuilder
TensorOrBuilder getListValOrBuilder(int index)
A list of tensor values.
repeated .google.cloud.aiplatform.v1beta1.Tensor list_val = 11;
-
getStructValCount
int getStructValCount()
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1beta1.Tensor> struct_val = 12;
-
containsStructVal
boolean containsStructVal(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1beta1.Tensor> struct_val = 12;
-
getStructVal
@Deprecated Map<String,Tensor> getStructVal()
Deprecated.UsegetStructValMap()
instead.
-
getStructValMap
Map<String,Tensor> getStructValMap()
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1beta1.Tensor> struct_val = 12;
-
getStructValOrDefault
Tensor getStructValOrDefault(String key, Tensor defaultValue)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1beta1.Tensor> struct_val = 12;
-
getStructValOrThrow
Tensor getStructValOrThrow(String key)
A map of string to tensor.
map<string, .google.cloud.aiplatform.v1beta1.Tensor> struct_val = 12;
-
getTensorVal
com.google.protobuf.ByteString getTensorVal()
Serialized raw tensor content.
bytes tensor_val = 13;
- Returns:
- The tensorVal.
-
-