Package com.sap.ai.sdk.grounding.model
Class PatchPipelineMetadata
java.lang.Object
com.sap.ai.sdk.grounding.model.PatchPipelineMetadata
PatchPipelineMetadata
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PatchPipelineMetadata. -
Method Summary
Modifier and TypeMethodDescriptionaddDataRepositoryMetadataItem(MetaDataDataRepositoryMetadataInner dataRepositoryMetadataItem) Add one dataRepositoryMetadata instance to thisPatchPipelineMetadata.static PatchPipelineMetadatacreate()Create a newPatchPipelineMetadatainstance.dataRepositoryMetadata(List<MetaDataDataRepositoryMetadataInner> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisPatchPipelineMetadatainstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePatchPipelineMetadata.Patch for metadata happens at key level.inthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPatchPipelineMetadatainstance.voidsetDataRepositoryMetadata(List<MetaDataDataRepositoryMetadataInner> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisPatchPipelineMetadatainstance.toMap()Get the value of all properties of thisPatchPipelineMetadatainstance including unrecognized properties.toString()
-
Constructor Details
-
PatchPipelineMetadata
protected PatchPipelineMetadata()Default constructor for PatchPipelineMetadata.
-
-
Method Details
-
dataRepositoryMetadata
@Nonnull public PatchPipelineMetadata dataRepositoryMetadata(@Nullable List<MetaDataDataRepositoryMetadataInner> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisPatchPipelineMetadatainstance and return the same instance.- Parameters:
dataRepositoryMetadata- Patch for metadata happens at key level. Value for the specific key would be inserted/replaced.- Returns:
- The same instance of this
PatchPipelineMetadataclass
-
addDataRepositoryMetadataItem
@Nonnull public PatchPipelineMetadata addDataRepositoryMetadataItem(@Nonnull MetaDataDataRepositoryMetadataInner dataRepositoryMetadataItem) Add one dataRepositoryMetadata instance to thisPatchPipelineMetadata.- Parameters:
dataRepositoryMetadataItem- The dataRepositoryMetadata that should be added- Returns:
- The same instance of type
PatchPipelineMetadata
-
getDataRepositoryMetadata
Patch for metadata happens at key level. Value for the specific key would be inserted/replaced.- Returns:
- dataRepositoryMetadata The dataRepositoryMetadata of this
PatchPipelineMetadatainstance.
-
setDataRepositoryMetadata
public void setDataRepositoryMetadata(@Nullable List<MetaDataDataRepositoryMetadataInner> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisPatchPipelineMetadatainstance.- Parameters:
dataRepositoryMetadata- Patch for metadata happens at key level. Value for the specific key would be inserted/replaced.
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePatchPipelineMetadata.- 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 thisPatchPipelineMetadatainstance.- 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 thisPatchPipelineMetadatainstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPatchPipelineMetadatainstance. 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 newPatchPipelineMetadatainstance. No arguments are required.
-
toMap()instead.