Class IndexStats.Builder (3.56.0)

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

Stats of the Index.

Protobuf type google.cloud.aiplatform.v1.IndexStats

Implements

IndexStatsOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IndexStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IndexStats.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public IndexStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
IndexStats.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public IndexStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IndexStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IndexStats.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public IndexStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IndexStats.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public IndexStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
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.

setUnknownFields(UnknownFieldSet unknownFields)

public final IndexStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IndexStats.Builder
Overrides

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.