public static interface FeatureDefinition.Builder extends SdkPojo, CopyableBuilder<FeatureDefinition.Builder,FeatureDefinition>
| Modifier and Type | Method and Description |
|---|---|
FeatureDefinition.Builder |
collectionConfig(CollectionConfig collectionConfig)
Configuration for your collection.
|
default FeatureDefinition.Builder |
collectionConfig(Consumer<CollectionConfig.Builder> collectionConfig)
Configuration for your collection.
|
FeatureDefinition.Builder |
collectionType(CollectionType collectionType)
A grouping of elements where each element within the collection must have the same feature type (
String, Integral, or Fractional). |
FeatureDefinition.Builder |
collectionType(String collectionType)
A grouping of elements where each element within the collection must have the same feature type (
String, Integral, or Fractional). |
FeatureDefinition.Builder |
featureName(String featureName)
The name of a feature.
|
FeatureDefinition.Builder |
featureType(FeatureType featureType)
The value type of a feature.
|
FeatureDefinition.Builder |
featureType(String featureType)
The value type of a feature.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildFeatureDefinition.Builder featureName(String featureName)
The name of a feature. The type must be a string. FeatureName cannot be any of the following:
is_deleted, write_time, api_invocation_time.
featureName - The name of a feature. The type must be a string. FeatureName cannot be any of the
following: is_deleted, write_time, api_invocation_time.FeatureDefinition.Builder featureType(String featureType)
The value type of a feature. Valid values are Integral, Fractional, or String.
featureType - The value type of a feature. Valid values are Integral, Fractional, or String.FeatureType,
FeatureTypeFeatureDefinition.Builder featureType(FeatureType featureType)
The value type of a feature. Valid values are Integral, Fractional, or String.
featureType - The value type of a feature. Valid values are Integral, Fractional, or String.FeatureType,
FeatureTypeFeatureDefinition.Builder collectionType(String collectionType)
A grouping of elements where each element within the collection must have the same feature type (
String, Integral, or Fractional).
List: An ordered collection of elements.
Set: An unordered collection of unique elements.
Vector: A specialized list that represents a fixed-size array of elements. The vector dimension
is determined by you. Must have elements with fractional feature types.
collectionType - A grouping of elements where each element within the collection must have the same feature type (
String, Integral, or Fractional).
List: An ordered collection of elements.
Set: An unordered collection of unique elements.
Vector: A specialized list that represents a fixed-size array of elements. The vector
dimension is determined by you. Must have elements with fractional feature types.
CollectionType,
CollectionTypeFeatureDefinition.Builder collectionType(CollectionType collectionType)
A grouping of elements where each element within the collection must have the same feature type (
String, Integral, or Fractional).
List: An ordered collection of elements.
Set: An unordered collection of unique elements.
Vector: A specialized list that represents a fixed-size array of elements. The vector dimension
is determined by you. Must have elements with fractional feature types.
collectionType - A grouping of elements where each element within the collection must have the same feature type (
String, Integral, or Fractional).
List: An ordered collection of elements.
Set: An unordered collection of unique elements.
Vector: A specialized list that represents a fixed-size array of elements. The vector
dimension is determined by you. Must have elements with fractional feature types.
CollectionType,
CollectionTypeFeatureDefinition.Builder collectionConfig(CollectionConfig collectionConfig)
Configuration for your collection.
collectionConfig - Configuration for your collection.default FeatureDefinition.Builder collectionConfig(Consumer<CollectionConfig.Builder> collectionConfig)
Configuration for your collection.
This is a convenience method that creates an instance of theCollectionConfig.Builder avoiding the
need to create one manually via CollectionConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to collectionConfig(CollectionConfig).
collectionConfig - a consumer that will call methods on CollectionConfig.BuildercollectionConfig(CollectionConfig)Copyright © 2023. All rights reserved.