Class Index.IndexField.Builder (3.0.21)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Index.IndexField.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Index.IndexField.Builder
Overrides

build()

public Index.IndexField build()
Returns
TypeDescription
Index.IndexField

buildPartial()

public Index.IndexField buildPartial()
Returns
TypeDescription
Index.IndexField

clear()

public Index.IndexField.Builder clear()
Returns
TypeDescription
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
TypeDescription
Index.IndexField.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Index.IndexField.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Index.IndexField.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Index.IndexField.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Index.IndexField.Builder

This builder for chaining.

clearValueMode()

public Index.IndexField.Builder clearValueMode()
Returns
TypeDescription
Index.IndexField.Builder

clone()

public Index.IndexField.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for arrayConfig.

getDefaultInstanceForType()

public Index.IndexField getDefaultInstanceForType()
Returns
TypeDescription
Index.IndexField

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for order.

getValueModeCase()

public Index.IndexField.ValueModeCase getValueModeCase()
Returns
TypeDescription
Index.IndexField.ValueModeCase

hasArrayConfig()

public boolean hasArrayConfig()

Indicates that this field supports operations on array_values.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the order field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Index.IndexField other)

public Index.IndexField.Builder mergeFrom(Index.IndexField other)
Parameter
NameDescription
otherIndex.IndexField
Returns
TypeDescription
Index.IndexField.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Index.IndexField.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Index.IndexField.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Index.IndexField.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Index.IndexField.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Index.IndexField.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Index.IndexField.Builder
Overrides

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
NameDescription
valueIndex.IndexField.ArrayConfig

The arrayConfig to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Index.IndexField.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Index.IndexField.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The fieldPath to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for fieldPath to set.

Returns
TypeDescription
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
NameDescription
valueIndex.IndexField.Order

The order to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Index.IndexField.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Index.IndexField.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Index.IndexField.Builder
Overrides