GoogleCloudDiscoveryengineV1alphaFieldConfigResponse class
Configurations for fields of a schema. For example, configuring a field is indexable, or searchable.
Constructors
-
GoogleCloudDiscoveryengineV1alphaFieldConfigResponse({required Input<
String> completableOption, required Input<String> dynamicFacetableOption, required Input<String> fieldPath, required Input<String> fieldType, required Input<String> indexableOption, required Input<String> keyPropertyType, required Input<String> recsFilterableOption, required Input<String> retrievableOption, required Input<String> searchableOption}) -
Creates a new GoogleCloudDiscoveryengineV1alphaFieldConfigResponse.
completableOptionIf completable_option is COMPLETABLE_ENABLED, field values are directly used and returned as suggestions for Autocomplete in CompletionService.CompleteQuery. If completable_option is unset, the server behavior defaults to COMPLETABLE_DISABLED for fields that support setting completable options, which are juststringfields. For those fields that do not support setting completable options, the server will skip completable option setting, and setting completable_option for those fields will throwINVALID_ARGUMENTerror.dynamicFacetableOptionIf dynamic_facetable_option is DYNAMIC_FACETABLE_ENABLED, field values are available for dynamic facet. Could only be DYNAMIC_FACETABLE_DISABLED if FieldConfig.indexable_option is INDEXABLE_DISABLED. Otherwise, anINVALID_ARGUMENTerror will be returned. If dynamic_facetable_option is unset, the server behavior defaults to DYNAMIC_FACETABLE_DISABLED for fields that support setting dynamic facetable options. For those fields that do not support setting dynamic facetable options, such asobjectandboolean, the server will skip dynamic facetable option setting, and setting dynamic_facetable_option for those fields will throwINVALID_ARGUMENTerror.fieldPathField path of the schema field. For example:title,description,release_info.release_year.fieldTypeRaw type of the field.indexableOptionIf indexable_option is INDEXABLE_ENABLED, field values are indexed so that it can be filtered or faceted in SearchService.Search. If indexable_option is unset, the server behavior defaults to INDEXABLE_DISABLED for fields that support setting indexable options. For those fields that do not support setting indexable options, such asobjectandbooleanand key properties, the server will skip indexable_option setting, and setting indexable_option for those fields will throwINVALID_ARGUMENTerror.keyPropertyTypeType of the key property that this field is mapped to. Empty string if this is not annotated as mapped to a key property. Example types aretitle,description. Full list is defined bykeyPropertyMappingin the schema field annotation. If the schema field has aKeyPropertyMappingannotation,indexable_optionandsearchable_optionof this field cannot be modified.recsFilterableOptionIf recs_filterable_option is FILTERABLE_ENABLED, field values are filterable by filter expression in RecommendationService.Recommend. If FILTERABLE_ENABLED but the field type is numerical, field values are not filterable by text queries in RecommendationService.Recommend. Only textual fields are supported. If recs_filterable_option is unset, the default setting is FILTERABLE_DISABLED for fields that support setting filterable options. When a field set toFILTERABLE_DISABLEDis filtered, a warning is generated and an empty result is returned.retrievableOptionIf retrievable_option is RETRIEVABLE_ENABLED, field values are included in the search results. If retrievable_option is unset, the server behavior defaults to RETRIEVABLE_DISABLED for fields that support setting retrievable options. For those fields that do not support setting retrievable options, such asobjectandboolean, the server will skip retrievable option setting, and setting retrievable_option for those fields will throwINVALID_ARGUMENTerror.searchableOptionIf searchable_option is SEARCHABLE_ENABLED, field values are searchable by text queries in SearchService.Search. If SEARCHABLE_ENABLED but field type is numerical, field values will not be searchable by text queries in SearchService.Search, as there are no text values associated to numerical fields. If searchable_option is unset, the server behavior defaults to SEARCHABLE_DISABLED for fields that support setting searchable options. Onlystringfields that have no key property mapping support setting searchable_option. For those fields that do not support setting searchable options, the server will skip searchable option setting, and setting searchable_option for those fields will throwINVALID_ARGUMENTerror.const -
GoogleCloudDiscoveryengineV1alphaFieldConfigResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
completableOption
→ Input<
String> -
If completable_option is COMPLETABLE_ENABLED, field values are directly used and returned as suggestions for Autocomplete in CompletionService.CompleteQuery. If completable_option is unset, the server behavior defaults to COMPLETABLE_DISABLED for fields that support setting completable options, which are just
stringfields. For those fields that do not support setting completable options, the server will skip completable option setting, and setting completable_option for those fields will throwINVALID_ARGUMENTerror.final -
dynamicFacetableOption
→ Input<
String> -
If dynamic_facetable_option is DYNAMIC_FACETABLE_ENABLED, field values are available for dynamic facet. Could only be DYNAMIC_FACETABLE_DISABLED if FieldConfig.indexable_option is INDEXABLE_DISABLED. Otherwise, an
INVALID_ARGUMENTerror will be returned. If dynamic_facetable_option is unset, the server behavior defaults to DYNAMIC_FACETABLE_DISABLED for fields that support setting dynamic facetable options. For those fields that do not support setting dynamic facetable options, such asobjectandboolean, the server will skip dynamic facetable option setting, and setting dynamic_facetable_option for those fields will throwINVALID_ARGUMENTerror.final -
fieldPath
→ Input<
String> -
Field path of the schema field. For example:
title,description,release_info.release_year.final -
fieldType
→ Input<
String> -
Raw type of the field.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
indexableOption
→ Input<
String> -
If indexable_option is INDEXABLE_ENABLED, field values are indexed so that it can be filtered or faceted in SearchService.Search. If indexable_option is unset, the server behavior defaults to INDEXABLE_DISABLED for fields that support setting indexable options. For those fields that do not support setting indexable options, such as
objectandbooleanand key properties, the server will skip indexable_option setting, and setting indexable_option for those fields will throwINVALID_ARGUMENTerror.final -
keyPropertyType
→ Input<
String> -
Type of the key property that this field is mapped to. Empty string if this is not annotated as mapped to a key property. Example types are
title,description. Full list is defined bykeyPropertyMappingin the schema field annotation. If the schema field has aKeyPropertyMappingannotation,indexable_optionandsearchable_optionof this field cannot be modified.final -
recsFilterableOption
→ Input<
String> -
If recs_filterable_option is FILTERABLE_ENABLED, field values are filterable by filter expression in RecommendationService.Recommend. If FILTERABLE_ENABLED but the field type is numerical, field values are not filterable by text queries in RecommendationService.Recommend. Only textual fields are supported. If recs_filterable_option is unset, the default setting is FILTERABLE_DISABLED for fields that support setting filterable options. When a field set to
FILTERABLE_DISABLEDis filtered, a warning is generated and an empty result is returned.final -
retrievableOption
→ Input<
String> -
If retrievable_option is RETRIEVABLE_ENABLED, field values are included in the search results. If retrievable_option is unset, the server behavior defaults to RETRIEVABLE_DISABLED for fields that support setting retrievable options. For those fields that do not support setting retrievable options, such as
objectandboolean, the server will skip retrievable option setting, and setting retrievable_option for those fields will throwINVALID_ARGUMENTerror.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
searchableOption
→ Input<
String> -
If searchable_option is SEARCHABLE_ENABLED, field values are searchable by text queries in SearchService.Search. If SEARCHABLE_ENABLED but field type is numerical, field values will not be searchable by text queries in SearchService.Search, as there are no text values associated to numerical fields. If searchable_option is unset, the server behavior defaults to SEARCHABLE_DISABLED for fields that support setting searchable options. Only
stringfields that have no key property mapping support setting searchable_option. For those fields that do not support setting searchable options, the server will skip searchable option setting, and setting searchable_option for those fields will throwINVALID_ARGUMENTerror.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited