Class Index.SearchIndexOptions (3.43.1)

public static final class Index.SearchIndexOptions extends GeneratedMessage implements Index.SearchIndexOptionsOrBuilder

Options for search indexes at the definition level.

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

Static Fields

TEXT_LANGUAGE_FIELD_NUMBER

public static final int TEXT_LANGUAGE_FIELD_NUMBER
Field Value
Type Description
int

TEXT_LANGUAGE_OVERRIDE_FIELD_PATH_FIELD_NUMBER

public static final int TEXT_LANGUAGE_OVERRIDE_FIELD_PATH_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Index.SearchIndexOptions getDefaultInstance()
Returns
Type Description
Index.SearchIndexOptions

getDescriptor()

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

newBuilder()

public static Index.SearchIndexOptions.Builder newBuilder()
Returns
Type Description
Index.SearchIndexOptions.Builder

newBuilder(Index.SearchIndexOptions prototype)

public static Index.SearchIndexOptions.Builder newBuilder(Index.SearchIndexOptions prototype)
Parameter
Name Description
prototype Index.SearchIndexOptions
Returns
Type Description
Index.SearchIndexOptions.Builder

parseDelimitedFrom(InputStream input)

public static Index.SearchIndexOptions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Index.SearchIndexOptions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Index.SearchIndexOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Index.SearchIndexOptions
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Index.SearchIndexOptions parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Index.SearchIndexOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Index.SearchIndexOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Index.SearchIndexOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Index.SearchIndexOptions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Index.SearchIndexOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Index.SearchIndexOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Index.SearchIndexOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Index.SearchIndexOptions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Index.SearchIndexOptions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Index.SearchIndexOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Index.SearchIndexOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Index.SearchIndexOptions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Index.SearchIndexOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Index.SearchIndexOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Index.SearchIndexOptions
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Index.SearchIndexOptions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Index.SearchIndexOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Index.SearchIndexOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Index.SearchIndexOptions
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Index.SearchIndexOptions> parser()
Returns
Type Description
Parser<SearchIndexOptions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<Index.SearchIndexOptions> getParserForType()
Returns
Type Description
Parser<SearchIndexOptions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Index.SearchIndexOptions.Builder newBuilderForType()
Returns
Type Description
Index.SearchIndexOptions.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Index.SearchIndexOptions.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Index.SearchIndexOptions.Builder
Overrides

toBuilder()

public Index.SearchIndexOptions.Builder toBuilder()
Returns
Type Description
Index.SearchIndexOptions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException