Send feedback
Class IndexDatapoint.SparseEmbedding (3.52.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.52.0 keyboard_arrow_down
public static final class IndexDatapoint . SparseEmbedding extends GeneratedMessageV3 implements IndexDatapoint . SparseEmbeddingOrBuilder
Feature embedding vector for sparse index. An array of numbers whose values
are located in the specified dimensions.
Protobuf type google.cloud.aiplatform.v1beta1.IndexDatapoint.SparseEmbedding
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 DIMENSIONS_FIELD_NUMBER
Field Value
Type
Description
int
public static final int VALUES_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static IndexDatapoint . SparseEmbedding getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static IndexDatapoint . SparseEmbedding . Builder newBuilder ()
public static IndexDatapoint . SparseEmbedding . Builder newBuilder ( IndexDatapoint . SparseEmbedding prototype )
public static IndexDatapoint . SparseEmbedding parseDelimitedFrom ( InputStream input )
public static IndexDatapoint . SparseEmbedding parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static IndexDatapoint . SparseEmbedding parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static IndexDatapoint . SparseEmbedding parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static IndexDatapoint . SparseEmbedding parseFrom ( ByteString data )
public static IndexDatapoint . SparseEmbedding parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static IndexDatapoint . SparseEmbedding parseFrom ( CodedInputStream input )
public static IndexDatapoint . SparseEmbedding parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static IndexDatapoint . SparseEmbedding parseFrom ( InputStream input )
public static IndexDatapoint . SparseEmbedding parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static IndexDatapoint . SparseEmbedding parseFrom ( ByteBuffer data )
public static IndexDatapoint . SparseEmbedding parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<IndexDatapoint . SparseEmbedding > parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public IndexDatapoint . SparseEmbedding getDefaultInstanceForType ()
public long getDimensions ( int index )
Required. The list of indexes for the embedding values of the sparse
vector.
repeated int64 dimensions = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
index
int
The index of the element to return.
Returns
Type
Description
long
The dimensions at the given index.
public int getDimensionsCount ()
Required. The list of indexes for the embedding values of the sparse
vector.
repeated int64 dimensions = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
int
The count of dimensions.
public List<Long> getDimensionsList ()
Required. The list of indexes for the embedding values of the sparse
vector.
repeated int64 dimensions = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
List <Long >
A list containing the dimensions.
public Parser<IndexDatapoint . SparseEmbedding > getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public float getValues ( int index )
Required. The list of embedding values of the sparse vector.
repeated float values = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
index
int
The index of the element to return.
Returns
Type
Description
float
The values at the given index.
public int getValuesCount ()
Required. The list of embedding values of the sparse vector.
repeated float values = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
int
The count of values.
public List<Float> getValuesList ()
Required. The list of embedding values of the sparse vector.
repeated float values = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
List <Float >
A list containing the values.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public IndexDatapoint . SparseEmbedding . Builder newBuilderForType ()
protected IndexDatapoint . SparseEmbedding . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public IndexDatapoint . SparseEmbedding . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]