Class Index.IndexField.Builder (3.21.3)

public static final class Index.IndexField.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public Index.IndexField.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Index.IndexField.Builder
Overrides

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.

clearValueMode()

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

clearVectorConfig()

public Index.IndexField.Builder clearVectorConfig()

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

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

Returns
Type Description
Index.IndexField.Builder

clone()

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

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.

getValueModeCase()

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

getVectorConfig()

public Index.IndexField.VectorConfig getVectorConfig()

Indicates that this field supports nearest neighbors 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 neighbors 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 neighbors 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.

hasVectorConfig()

public boolean hasVectorConfig()

Indicates that this field supports nearest neighbors 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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVectorConfig(Index.IndexField.VectorConfig value)

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

Indicates that this field supports nearest neighbors 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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

public Index.IndexField.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Index.IndexField.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setVectorConfig(Index.IndexField.VectorConfig value)

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

Indicates that this field supports nearest neighbors 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 neighbors 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