Class Index.IndexField.Builder (3.43.1)

public static final class Index.IndexField.Builder extends GeneratedMessage.Builder<Index.IndexField.Builder> implements Index.IndexFieldOrBuilder

A field in an index. The field_path describes which field is indexed, the value_mode describes how the field value is indexed.

Protobuf type google.firestore.admin.v1.Index.IndexField

Static Methods

getDescriptor()

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

Methods

build()

public Index.IndexField build()
Returns
Type Description
Index.IndexField

buildPartial()

public Index.IndexField buildPartial()
Returns
Type Description
Index.IndexField

clear()

public Index.IndexField.Builder clear()
Returns
Type Description
Index.IndexField.Builder
Overrides

clearArrayConfig()

public Index.IndexField.Builder clearArrayConfig()

Indicates that this field supports operations on array_values.

.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;

Returns
Type Description
Index.IndexField.Builder

This builder for chaining.

clearFieldPath()

public Index.IndexField.Builder clearFieldPath()

Can be name. For single field indexes, this must match the name of the field or may be omitted.

string field_path = 1;

Returns
Type Description
Index.IndexField.Builder

This builder for chaining.

clearOrder()

public Index.IndexField.Builder clearOrder()

Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.

.google.firestore.admin.v1.Index.IndexField.Order order = 2;

Returns
Type Description
Index.IndexField.Builder

This builder for chaining.

clearSearchConfig()

public Index.IndexField.Builder clearSearchConfig()

Indicates that this field supports search operations. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.

.google.firestore.admin.v1.Index.IndexField.SearchConfig search_config = 5;

Returns
Type Description
Index.IndexField.Builder

clearValueMode()

public Index.IndexField.Builder clearValueMode()
Returns
Type Description
Index.IndexField.Builder

clearVectorConfig()

public Index.IndexField.Builder clearVectorConfig()

Indicates that this field supports nearest neighbor and distance operations on vector.

.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;

Returns
Type Description
Index.IndexField.Builder

getArrayConfig()

public Index.IndexField.ArrayConfig getArrayConfig()

Indicates that this field supports operations on array_values.

.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;

Returns
Type Description
Index.IndexField.ArrayConfig

The arrayConfig.

getArrayConfigValue()

public int getArrayConfigValue()

Indicates that this field supports operations on array_values.

.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;

Returns
Type Description
int

The enum numeric value on the wire for arrayConfig.

getDefaultInstanceForType()

public Index.IndexField getDefaultInstanceForType()
Returns
Type Description
Index.IndexField

getDescriptorForType()

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

getFieldPath()

public String getFieldPath()

Can be name. For single field indexes, this must match the name of the field or may be omitted.

string field_path = 1;

Returns
Type Description
String

The fieldPath.

getFieldPathBytes()

public ByteString getFieldPathBytes()

Can be name. For single field indexes, this must match the name of the field or may be omitted.

string field_path = 1;

Returns
Type Description
ByteString

The bytes for fieldPath.

getOrder()

public Index.IndexField.Order getOrder()

Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.

.google.firestore.admin.v1.Index.IndexField.Order order = 2;

Returns
Type Description
Index.IndexField.Order

The order.

getOrderValue()

public int getOrderValue()

Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.

.google.firestore.admin.v1.Index.IndexField.Order order = 2;

Returns
Type Description
int

The enum numeric value on the wire for order.

getSearchConfig()

public Index.IndexField.SearchConfig getSearchConfig()

Indicates that this field supports search operations. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.

.google.firestore.admin.v1.Index.IndexField.SearchConfig search_config = 5;

Returns
Type Description
Index.IndexField.SearchConfig

The searchConfig.

getSearchConfigBuilder()

public Index.IndexField.SearchConfig.Builder getSearchConfigBuilder()

Indicates that this field supports search operations. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.

.google.firestore.admin.v1.Index.IndexField.SearchConfig search_config = 5;

Returns
Type Description
Index.IndexField.SearchConfig.Builder

getSearchConfigOrBuilder()

public Index.IndexField.SearchConfigOrBuilder getSearchConfigOrBuilder()

Indicates that this field supports search operations. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.

.google.firestore.admin.v1.Index.IndexField.SearchConfig search_config = 5;

Returns
Type Description
Index.IndexField.SearchConfigOrBuilder

getValueModeCase()

public Index.IndexField.ValueModeCase getValueModeCase()
Returns
Type Description
Index.IndexField.ValueModeCase

getVectorConfig()

public Index.IndexField.VectorConfig getVectorConfig()

Indicates that this field supports nearest neighbor and distance operations on vector.

.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;

Returns
Type Description
Index.IndexField.VectorConfig

The vectorConfig.

getVectorConfigBuilder()

public Index.IndexField.VectorConfig.Builder getVectorConfigBuilder()

Indicates that this field supports nearest neighbor and distance operations on vector.

.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;

Returns
Type Description
Index.IndexField.VectorConfig.Builder

getVectorConfigOrBuilder()

public Index.IndexField.VectorConfigOrBuilder getVectorConfigOrBuilder()

Indicates that this field supports nearest neighbor and distance operations on vector.

.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;

Returns
Type Description
Index.IndexField.VectorConfigOrBuilder

hasArrayConfig()

public boolean hasArrayConfig()

Indicates that this field supports operations on array_values.

.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;

Returns
Type Description
boolean

Whether the arrayConfig field is set.

hasOrder()

public boolean hasOrder()

Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.

.google.firestore.admin.v1.Index.IndexField.Order order = 2;

Returns
Type Description
boolean

Whether the order field is set.

hasSearchConfig()

public boolean hasSearchConfig()

Indicates that this field supports search operations. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.

.google.firestore.admin.v1.Index.IndexField.SearchConfig search_config = 5;

Returns
Type Description
boolean

Whether the searchConfig field is set.

hasVectorConfig()

public boolean hasVectorConfig()

Indicates that this field supports nearest neighbor and distance operations on vector.

.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;

Returns
Type Description
boolean

Whether the vectorConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Index.IndexField other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSearchConfig(Index.IndexField.SearchConfig value)

public Index.IndexField.Builder mergeSearchConfig(Index.IndexField.SearchConfig value)

Indicates that this field supports search operations. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.

.google.firestore.admin.v1.Index.IndexField.SearchConfig search_config = 5;

Parameter
Name Description
value Index.IndexField.SearchConfig
Returns
Type Description
Index.IndexField.Builder

mergeVectorConfig(Index.IndexField.VectorConfig value)

public Index.IndexField.Builder mergeVectorConfig(Index.IndexField.VectorConfig value)

Indicates that this field supports nearest neighbor and distance operations on vector.

.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;

Parameter
Name Description
value Index.IndexField.VectorConfig
Returns
Type Description
Index.IndexField.Builder

setArrayConfig(Index.IndexField.ArrayConfig value)

public Index.IndexField.Builder setArrayConfig(Index.IndexField.ArrayConfig value)

Indicates that this field supports operations on array_values.

.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;

Parameter
Name Description
value Index.IndexField.ArrayConfig

The arrayConfig to set.

Returns
Type Description
Index.IndexField.Builder

This builder for chaining.

setArrayConfigValue(int value)

public Index.IndexField.Builder setArrayConfigValue(int value)

Indicates that this field supports operations on array_values.

.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for arrayConfig to set.

Returns
Type Description
Index.IndexField.Builder

This builder for chaining.

setFieldPath(String value)

public Index.IndexField.Builder setFieldPath(String value)

Can be name. For single field indexes, this must match the name of the field or may be omitted.

string field_path = 1;

Parameter
Name Description
value String

The fieldPath to set.

Returns
Type Description
Index.IndexField.Builder

This builder for chaining.

setFieldPathBytes(ByteString value)

public Index.IndexField.Builder setFieldPathBytes(ByteString value)

Can be name. For single field indexes, this must match the name of the field or may be omitted.

string field_path = 1;

Parameter
Name Description
value ByteString

The bytes for fieldPath to set.

Returns
Type Description
Index.IndexField.Builder

This builder for chaining.

setOrder(Index.IndexField.Order value)

public Index.IndexField.Builder setOrder(Index.IndexField.Order value)

Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.

.google.firestore.admin.v1.Index.IndexField.Order order = 2;

Parameter
Name Description
value Index.IndexField.Order

The order to set.

Returns
Type Description
Index.IndexField.Builder

This builder for chaining.

setOrderValue(int value)

public Index.IndexField.Builder setOrderValue(int value)

Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.

.google.firestore.admin.v1.Index.IndexField.Order order = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for order to set.

Returns
Type Description
Index.IndexField.Builder

This builder for chaining.

setSearchConfig(Index.IndexField.SearchConfig value)

public Index.IndexField.Builder setSearchConfig(Index.IndexField.SearchConfig value)

Indicates that this field supports search operations. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.

.google.firestore.admin.v1.Index.IndexField.SearchConfig search_config = 5;

Parameter
Name Description
value Index.IndexField.SearchConfig
Returns
Type Description
Index.IndexField.Builder

setSearchConfig(Index.IndexField.SearchConfig.Builder builderForValue)

public Index.IndexField.Builder setSearchConfig(Index.IndexField.SearchConfig.Builder builderForValue)

Indicates that this field supports search operations. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.

.google.firestore.admin.v1.Index.IndexField.SearchConfig search_config = 5;

Parameter
Name Description
builderForValue Index.IndexField.SearchConfig.Builder
Returns
Type Description
Index.IndexField.Builder

setVectorConfig(Index.IndexField.VectorConfig value)

public Index.IndexField.Builder setVectorConfig(Index.IndexField.VectorConfig value)

Indicates that this field supports nearest neighbor and distance operations on vector.

.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;

Parameter
Name Description
value Index.IndexField.VectorConfig
Returns
Type Description
Index.IndexField.Builder

setVectorConfig(Index.IndexField.VectorConfig.Builder builderForValue)

public Index.IndexField.Builder setVectorConfig(Index.IndexField.VectorConfig.Builder builderForValue)

Indicates that this field supports nearest neighbor and distance operations on vector.

.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;

Parameter
Name Description
builderForValue Index.IndexField.VectorConfig.Builder
Returns
Type Description
Index.IndexField.Builder