Package com.sap.ai.sdk.grounding.model
Class SearchPipeline
java.lang.Object
com.sap.ai.sdk.grounding.model.SearchPipeline
SearchPipeline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataRepositoryMetadataItem(MetaDataDataRepositoryMetadataInner dataRepositoryMetadataItem) Add one dataRepositoryMetadata instance to thisSearchPipeline.static SearchPipelinecreate()Create a newSearchPipelineinstance.dataRepositoryMetadata(List<MetaDataDataRepositoryMetadataInner> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisSearchPipelineinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theSearchPipeline.Search for metadata happens at key level.inthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisSearchPipelineinstance.voidsetDataRepositoryMetadata(List<MetaDataDataRepositoryMetadataInner> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisSearchPipelineinstance.toMap()Get the value of all properties of thisSearchPipelineinstance including unrecognized properties.toString()
-
Constructor Details
-
SearchPipeline
protected SearchPipeline()Default constructor for SearchPipeline.
-
-
Method Details
-
dataRepositoryMetadata
@Nonnull public SearchPipeline dataRepositoryMetadata(@Nullable List<MetaDataDataRepositoryMetadataInner> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisSearchPipelineinstance and return the same instance.- Parameters:
dataRepositoryMetadata- Search for metadata happens at key level. Pipelines matching the search criteria will be returned.- Returns:
- The same instance of this
SearchPipelineclass
-
addDataRepositoryMetadataItem
@Nonnull public SearchPipeline addDataRepositoryMetadataItem(@Nonnull MetaDataDataRepositoryMetadataInner dataRepositoryMetadataItem) Add one dataRepositoryMetadata instance to thisSearchPipeline.- Parameters:
dataRepositoryMetadataItem- The dataRepositoryMetadata that should be added- Returns:
- The same instance of type
SearchPipeline
-
getDataRepositoryMetadata
Search for metadata happens at key level. Pipelines matching the search criteria will be returned.- Returns:
- dataRepositoryMetadata The dataRepositoryMetadata of this
SearchPipelineinstance.
-
setDataRepositoryMetadata
public void setDataRepositoryMetadata(@Nullable List<MetaDataDataRepositoryMetadataInner> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisSearchPipelineinstance.- Parameters:
dataRepositoryMetadata- Search for metadata happens at key level. Pipelines matching the search criteria will be returned.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theSearchPipeline.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisSearchPipelineinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisSearchPipelineinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisSearchPipelineinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a newSearchPipelineinstance. No arguments are required.
-
toMap()instead.