Interface TensorOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Tensor, Tensor.Builder

@Generated public interface TensorOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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
    Type specific representations that make it easy to create tensor protos in all languages.
    Type specific representations that make it easy to create tensor protos in all languages.
    com.google.protobuf.ByteString
    getBytesVal(int index)
    [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING]
    int
    [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING]
    List<com.google.protobuf.ByteString>
    [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING]
    double
    getDoubleVal(int index)
    [DOUBLE][google.cloud.aiplatform.v1.Tensor.DataType.DOUBLE]
    int
    [DOUBLE][google.cloud.aiplatform.v1.Tensor.DataType.DOUBLE]
    [DOUBLE][google.cloud.aiplatform.v1.Tensor.DataType.DOUBLE]
    The data type of tensor.
    int
    The data type of tensor.
    float
    getFloatVal(int index)
    [FLOAT][google.cloud.aiplatform.v1.Tensor.DataType.FLOAT]
    int
    [FLOAT][google.cloud.aiplatform.v1.Tensor.DataType.FLOAT]
    [FLOAT][google.cloud.aiplatform.v1.Tensor.DataType.FLOAT]
    long
    getInt64Val(int index)
    [INT64][google.cloud.aiplatform.v1.Tensor.DataType.INT64]
    int
    [INT64][google.cloud.aiplatform.v1.Tensor.DataType.INT64]
    [INT64][google.cloud.aiplatform.v1.Tensor.DataType.INT64]
    int
    getIntVal(int index)
    [INT_8][google.cloud.aiplatform.v1.Tensor.DataType.INT8] [INT_16][google.cloud.aiplatform.v1.Tensor.DataType.INT16] [INT_32][google.cloud.aiplatform.v1.Tensor.DataType.INT32]
    int
    [INT_8][google.cloud.aiplatform.v1.Tensor.DataType.INT8] [INT_16][google.cloud.aiplatform.v1.Tensor.DataType.INT16] [INT_32][google.cloud.aiplatform.v1.Tensor.DataType.INT32]
    [INT_8][google.cloud.aiplatform.v1.Tensor.DataType.INT8] [INT_16][google.cloud.aiplatform.v1.Tensor.DataType.INT16] [INT_32][google.cloud.aiplatform.v1.Tensor.DataType.INT32]
    getListVal(int index)
    A list of tensor values.
    int
    A list of tensor values.
    A list of tensor values.
    A list of tensor values.
    A list of tensor values.
    long
    getShape(int index)
    Shape of the tensor.
    int
    Shape of the tensor.
    Shape of the tensor.
    getStringVal(int index)
    [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING]
    com.google.protobuf.ByteString
    getStringValBytes(int index)
    [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING]
    int
    [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING]
    [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING]
    Deprecated.
    int
    A map of string to tensor.
    A map of string to tensor.
    getStructValOrDefault(String key, Tensor defaultValue)
    A map of string to tensor.
    A map of string to tensor.
    com.google.protobuf.ByteString
    Serialized raw tensor content.
    long
    getUint64Val(int index)
    [UINT64][google.cloud.aiplatform.v1.Tensor.DataType.UINT64]
    int
    [UINT64][google.cloud.aiplatform.v1.Tensor.DataType.UINT64]
    [UINT64][google.cloud.aiplatform.v1.Tensor.DataType.UINT64]
    int
    getUintVal(int index)
    [UINT8][google.cloud.aiplatform.v1.Tensor.DataType.UINT8] [UINT16][google.cloud.aiplatform.v1.Tensor.DataType.UINT16] [UINT32][google.cloud.aiplatform.v1.Tensor.DataType.UINT32]
    int
    [UINT8][google.cloud.aiplatform.v1.Tensor.DataType.UINT8] [UINT16][google.cloud.aiplatform.v1.Tensor.DataType.UINT16] [UINT32][google.cloud.aiplatform.v1.Tensor.DataType.UINT32]
    [UINT8][google.cloud.aiplatform.v1.Tensor.DataType.UINT8] [UINT16][google.cloud.aiplatform.v1.Tensor.DataType.UINT16] [UINT32][google.cloud.aiplatform.v1.Tensor.DataType.UINT32]

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDtypeValue

      int getDtypeValue()
       The data type of tensor.
       
      .google.cloud.aiplatform.v1.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.v1.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.cloud.aiplatform.v1.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.cloud.aiplatform.v1.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.cloud.aiplatform.v1.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.cloud.aiplatform.v1.Tensor.DataType.STRING]
       
      repeated string string_val = 14;
      Returns:
      A list containing the stringVal.
    • getStringValCount

      int getStringValCount()
       [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING]
       
      repeated string string_val = 14;
      Returns:
      The count of stringVal.
    • getStringVal

      String getStringVal(int index)
       [STRING][google.cloud.aiplatform.v1.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.cloud.aiplatform.v1.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.cloud.aiplatform.v1.Tensor.DataType.STRING]
       
      repeated bytes bytes_val = 15;
      Returns:
      A list containing the bytesVal.
    • getBytesValCount

      int getBytesValCount()
       [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING]
       
      repeated bytes bytes_val = 15;
      Returns:
      The count of bytesVal.
    • getBytesVal

      com.google.protobuf.ByteString getBytesVal(int index)
       [STRING][google.cloud.aiplatform.v1.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.cloud.aiplatform.v1.Tensor.DataType.FLOAT]
       
      repeated float float_val = 5;
      Returns:
      A list containing the floatVal.
    • getFloatValCount

      int getFloatValCount()
       [FLOAT][google.cloud.aiplatform.v1.Tensor.DataType.FLOAT]
       
      repeated float float_val = 5;
      Returns:
      The count of floatVal.
    • getFloatVal

      float getFloatVal(int index)
       [FLOAT][google.cloud.aiplatform.v1.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.cloud.aiplatform.v1.Tensor.DataType.DOUBLE]
       
      repeated double double_val = 6;
      Returns:
      A list containing the doubleVal.
    • getDoubleValCount

      int getDoubleValCount()
       [DOUBLE][google.cloud.aiplatform.v1.Tensor.DataType.DOUBLE]
       
      repeated double double_val = 6;
      Returns:
      The count of doubleVal.
    • getDoubleVal

      double getDoubleVal(int index)
       [DOUBLE][google.cloud.aiplatform.v1.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.cloud.aiplatform.v1.Tensor.DataType.INT8]
       [INT_16][google.cloud.aiplatform.v1.Tensor.DataType.INT16]
       [INT_32][google.cloud.aiplatform.v1.Tensor.DataType.INT32]
       
      repeated int32 int_val = 7;
      Returns:
      A list containing the intVal.
    • getIntValCount

      int getIntValCount()
       [INT_8][google.cloud.aiplatform.v1.Tensor.DataType.INT8]
       [INT_16][google.cloud.aiplatform.v1.Tensor.DataType.INT16]
       [INT_32][google.cloud.aiplatform.v1.Tensor.DataType.INT32]
       
      repeated int32 int_val = 7;
      Returns:
      The count of intVal.
    • getIntVal

      int getIntVal(int index)
       [INT_8][google.cloud.aiplatform.v1.Tensor.DataType.INT8]
       [INT_16][google.cloud.aiplatform.v1.Tensor.DataType.INT16]
       [INT_32][google.cloud.aiplatform.v1.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.cloud.aiplatform.v1.Tensor.DataType.INT64]
       
      repeated int64 int64_val = 8;
      Returns:
      A list containing the int64Val.
    • getInt64ValCount

      int getInt64ValCount()
       [INT64][google.cloud.aiplatform.v1.Tensor.DataType.INT64]
       
      repeated int64 int64_val = 8;
      Returns:
      The count of int64Val.
    • getInt64Val

      long getInt64Val(int index)
       [INT64][google.cloud.aiplatform.v1.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.cloud.aiplatform.v1.Tensor.DataType.UINT8]
       [UINT16][google.cloud.aiplatform.v1.Tensor.DataType.UINT16]
       [UINT32][google.cloud.aiplatform.v1.Tensor.DataType.UINT32]
       
      repeated uint32 uint_val = 9;
      Returns:
      A list containing the uintVal.
    • getUintValCount

      int getUintValCount()
       [UINT8][google.cloud.aiplatform.v1.Tensor.DataType.UINT8]
       [UINT16][google.cloud.aiplatform.v1.Tensor.DataType.UINT16]
       [UINT32][google.cloud.aiplatform.v1.Tensor.DataType.UINT32]
       
      repeated uint32 uint_val = 9;
      Returns:
      The count of uintVal.
    • getUintVal

      int getUintVal(int index)
       [UINT8][google.cloud.aiplatform.v1.Tensor.DataType.UINT8]
       [UINT16][google.cloud.aiplatform.v1.Tensor.DataType.UINT16]
       [UINT32][google.cloud.aiplatform.v1.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.cloud.aiplatform.v1.Tensor.DataType.UINT64]
       
      repeated uint64 uint64_val = 10;
      Returns:
      A list containing the uint64Val.
    • getUint64ValCount

      int getUint64ValCount()
       [UINT64][google.cloud.aiplatform.v1.Tensor.DataType.UINT64]
       
      repeated uint64 uint64_val = 10;
      Returns:
      The count of uint64Val.
    • getUint64Val

      long getUint64Val(int index)
       [UINT64][google.cloud.aiplatform.v1.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.v1.Tensor list_val = 11;
    • getListVal

      Tensor getListVal(int index)
       A list of tensor values.
       
      repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
    • getListValCount

      int getListValCount()
       A list of tensor values.
       
      repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
    • getListValOrBuilderList

      List<? extends TensorOrBuilder> getListValOrBuilderList()
       A list of tensor values.
       
      repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
    • getListValOrBuilder

      TensorOrBuilder getListValOrBuilder(int index)
       A list of tensor values.
       
      repeated .google.cloud.aiplatform.v1.Tensor list_val = 11;
    • getStructValCount

      int getStructValCount()
       A map of string to tensor.
       
      map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
    • containsStructVal

      boolean containsStructVal(String key)
       A map of string to tensor.
       
      map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
    • getStructVal

      @Deprecated Map<String,Tensor> getStructVal()
      Deprecated.
      Use getStructValMap() instead.
    • getStructValMap

      Map<String,Tensor> getStructValMap()
       A map of string to tensor.
       
      map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
    • getStructValOrDefault

      Tensor getStructValOrDefault(String key, Tensor defaultValue)
       A map of string to tensor.
       
      map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
    • getStructValOrThrow

      Tensor getStructValOrThrow(String key)
       A map of string to tensor.
       
      map<string, .google.cloud.aiplatform.v1.Tensor> struct_val = 12;
    • getTensorVal

      com.google.protobuf.ByteString getTensorVal()
       Serialized raw tensor content.
       
      bytes tensor_val = 13;
      Returns:
      The tensorVal.