Class Index.SearchIndexOptions.Builder (3.43.1)

public static final class Index.SearchIndexOptions.Builder extends GeneratedMessage.Builder<Index.SearchIndexOptions.Builder> implements Index.SearchIndexOptionsOrBuilder

Options for search indexes at the definition level.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearTextLanguage()

public Index.SearchIndexOptions.Builder clearTextLanguage()

Optional. The language to use for text search indexes. Used as the default language if not overridden at the document level by specifying the text_language_override_field. The language is specified as a BCP 47 language code. For indexes with MONGODB_COMPATIBLE_API ApiScope: If unspecified, the default language is English. For indexes with ANY_API ApiScope: If unspecified, the default behavior is autodetect.

string text_language = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Index.SearchIndexOptions.Builder

This builder for chaining.

clearTextLanguageOverrideFieldPath()

public Index.SearchIndexOptions.Builder clearTextLanguageOverrideFieldPath()

Optional. The field in the document that specifies which language to use for that specific document. For indexes with MONGODB_COMPATIBLE_API ApiScope: if unspecified, the language is taken from the "language" field if it exists or from text_language if it does not.

string text_language_override_field_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Index.SearchIndexOptions.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getTextLanguage()

public String getTextLanguage()

Optional. The language to use for text search indexes. Used as the default language if not overridden at the document level by specifying the text_language_override_field. The language is specified as a BCP 47 language code. For indexes with MONGODB_COMPATIBLE_API ApiScope: If unspecified, the default language is English. For indexes with ANY_API ApiScope: If unspecified, the default behavior is autodetect.

string text_language = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The textLanguage.

getTextLanguageBytes()

public ByteString getTextLanguageBytes()

Optional. The language to use for text search indexes. Used as the default language if not overridden at the document level by specifying the text_language_override_field. The language is specified as a BCP 47 language code. For indexes with MONGODB_COMPATIBLE_API ApiScope: If unspecified, the default language is English. For indexes with ANY_API ApiScope: If unspecified, the default behavior is autodetect.

string text_language = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for textLanguage.

getTextLanguageOverrideFieldPath()

public String getTextLanguageOverrideFieldPath()

Optional. The field in the document that specifies which language to use for that specific document. For indexes with MONGODB_COMPATIBLE_API ApiScope: if unspecified, the language is taken from the "language" field if it exists or from text_language if it does not.

string text_language_override_field_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The textLanguageOverrideFieldPath.

getTextLanguageOverrideFieldPathBytes()

public ByteString getTextLanguageOverrideFieldPathBytes()

Optional. The field in the document that specifies which language to use for that specific document. For indexes with MONGODB_COMPATIBLE_API ApiScope: if unspecified, the language is taken from the "language" field if it exists or from text_language if it does not.

string text_language_override_field_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for textLanguageOverrideFieldPath.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Index.SearchIndexOptions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setTextLanguage(String value)

public Index.SearchIndexOptions.Builder setTextLanguage(String value)

Optional. The language to use for text search indexes. Used as the default language if not overridden at the document level by specifying the text_language_override_field. The language is specified as a BCP 47 language code. For indexes with MONGODB_COMPATIBLE_API ApiScope: If unspecified, the default language is English. For indexes with ANY_API ApiScope: If unspecified, the default behavior is autodetect.

string text_language = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The textLanguage to set.

Returns
Type Description
Index.SearchIndexOptions.Builder

This builder for chaining.

setTextLanguageBytes(ByteString value)

public Index.SearchIndexOptions.Builder setTextLanguageBytes(ByteString value)

Optional. The language to use for text search indexes. Used as the default language if not overridden at the document level by specifying the text_language_override_field. The language is specified as a BCP 47 language code. For indexes with MONGODB_COMPATIBLE_API ApiScope: If unspecified, the default language is English. For indexes with ANY_API ApiScope: If unspecified, the default behavior is autodetect.

string text_language = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for textLanguage to set.

Returns
Type Description
Index.SearchIndexOptions.Builder

This builder for chaining.

setTextLanguageOverrideFieldPath(String value)

public Index.SearchIndexOptions.Builder setTextLanguageOverrideFieldPath(String value)

Optional. The field in the document that specifies which language to use for that specific document. For indexes with MONGODB_COMPATIBLE_API ApiScope: if unspecified, the language is taken from the "language" field if it exists or from text_language if it does not.

string text_language_override_field_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The textLanguageOverrideFieldPath to set.

Returns
Type Description
Index.SearchIndexOptions.Builder

This builder for chaining.

setTextLanguageOverrideFieldPathBytes(ByteString value)

public Index.SearchIndexOptions.Builder setTextLanguageOverrideFieldPathBytes(ByteString value)

Optional. The field in the document that specifies which language to use for that specific document. For indexes with MONGODB_COMPATIBLE_API ApiScope: if unspecified, the language is taken from the "language" field if it exists or from text_language if it does not.

string text_language_override_field_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for textLanguageOverrideFieldPath to set.

Returns
Type Description
Index.SearchIndexOptions.Builder

This builder for chaining.