Class IndexStats.Builder (3.84.0)

public static final class IndexStats.Builder extends GeneratedMessage.Builder<IndexStats.Builder> implements IndexStatsOrBuilder

Stats of the Index.

Protobuf type google.cloud.aiplatform.v1beta1.IndexStats

Implements

IndexStatsOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public IndexStats build()
Returns
Type Description
IndexStats

buildPartial()

public IndexStats buildPartial()
Returns
Type Description
IndexStats

clear()

public IndexStats.Builder clear()
Returns
Type Description
IndexStats.Builder
Overrides

clearShardsCount()

public IndexStats.Builder clearShardsCount()

Output only. The number of shards in the Index.

int32 shards_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IndexStats.Builder

This builder for chaining.

clearSparseVectorsCount()

public IndexStats.Builder clearSparseVectorsCount()

Output only. The number of sparse vectors in the Index.

int64 sparse_vectors_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IndexStats.Builder

This builder for chaining.

clearVectorsCount()

public IndexStats.Builder clearVectorsCount()

Output only. The number of dense vectors in the Index.

int64 vectors_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IndexStats.Builder

This builder for chaining.

getDefaultInstanceForType()

public IndexStats getDefaultInstanceForType()
Returns
Type Description
IndexStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getShardsCount()

public int getShardsCount()

Output only. The number of shards in the Index.

int32 shards_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The shardsCount.

getSparseVectorsCount()

public long getSparseVectorsCount()

Output only. The number of sparse vectors in the Index.

int64 sparse_vectors_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The sparseVectorsCount.

getVectorsCount()

public long getVectorsCount()

Output only. The number of dense vectors in the Index.

int64 vectors_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The vectorsCount.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IndexStats other)

public IndexStats.Builder mergeFrom(IndexStats other)
Parameter
Name Description
other IndexStats
Returns
Type Description
IndexStats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IndexStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IndexStats.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public IndexStats.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IndexStats.Builder
Overrides

setShardsCount(int value)

public IndexStats.Builder setShardsCount(int value)

Output only. The number of shards in the Index.

int32 shards_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The shardsCount to set.

Returns
Type Description
IndexStats.Builder

This builder for chaining.

setSparseVectorsCount(long value)

public IndexStats.Builder setSparseVectorsCount(long value)

Output only. The number of sparse vectors in the Index.

int64 sparse_vectors_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The sparseVectorsCount to set.

Returns
Type Description
IndexStats.Builder

This builder for chaining.

setVectorsCount(long value)

public IndexStats.Builder setVectorsCount(long value)

Output only. The number of dense vectors in the Index.

int64 vectors_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The vectorsCount to set.

Returns
Type Description
IndexStats.Builder

This builder for chaining.