public static final class Index.SearchIndexOptions.Builder extends GeneratedMessage.Builder<Index.SearchIndexOptions.Builder> implements Index.SearchIndexOptionsOrBuilderOptions for search indexes at the definition level.
Protobuf type google.firestore.admin.v1.Index.SearchIndexOptions
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Index.SearchIndexOptions.BuilderImplements
Index.SearchIndexOptionsOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for textLanguageOverrideFieldPath to set. |
| Returns | |
|---|---|
| Type | Description |
Index.SearchIndexOptions.Builder |
This builder for chaining. |