Package com.sap.ai.sdk.grounding.model
Class MetaData
java.lang.Object
com.sap.ai.sdk.grounding.model.MetaData
MetaData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataRepositoryMetadataItem(MetaDataDataRepositoryMetadataInner dataRepositoryMetadataItem) Add one dataRepositoryMetadata instance to thisMetaData.static MetaDatacreate()Create a newMetaDatainstance.dataRepositoryMetadata(List<MetaDataDataRepositoryMetadataInner> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisMetaDatainstance and return the same instance.destination(String destination) Set the destination of thisMetaDatainstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theMetaData.Get dataRepositoryMetadataGet destinationinthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisMetaDatainstance.voidsetDataRepositoryMetadata(List<MetaDataDataRepositoryMetadataInner> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisMetaDatainstance.voidsetDestination(String destination) Set the destination of thisMetaDatainstance.toMap()Get the value of all properties of thisMetaDatainstance including unrecognized properties.toString()
-
Constructor Details
-
MetaData
protected MetaData()Default constructor for MetaData.
-
-
Method Details
-
destination
Set the destination of thisMetaDatainstance and return the same instance. -
getDestination
Get destination- Returns:
- destination The destination of this
MetaDatainstance.
-
setDestination
Set the destination of thisMetaDatainstance.- Parameters:
destination- The destination of thisMetaData
-
dataRepositoryMetadata
@Nonnull public MetaData dataRepositoryMetadata(@Nullable List<MetaDataDataRepositoryMetadataInner> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisMetaDatainstance and return the same instance. -
addDataRepositoryMetadataItem
@Nonnull public MetaData addDataRepositoryMetadataItem(@Nonnull MetaDataDataRepositoryMetadataInner dataRepositoryMetadataItem) Add one dataRepositoryMetadata instance to thisMetaData.- Parameters:
dataRepositoryMetadataItem- The dataRepositoryMetadata that should be added- Returns:
- The same instance of type
MetaData
-
getDataRepositoryMetadata
Get dataRepositoryMetadata- Returns:
- dataRepositoryMetadata The dataRepositoryMetadata of this
MetaDatainstance.
-
setDataRepositoryMetadata
public void setDataRepositoryMetadata(@Nullable List<MetaDataDataRepositoryMetadataInner> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisMetaDatainstance.- Parameters:
dataRepositoryMetadata- The dataRepositoryMetadata of thisMetaData
-
getCustomFieldNames
Get the names of the unrecognizable properties of theMetaData.- 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 thisMetaDatainstance.- 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 thisMetaDatainstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisMetaDatainstance. 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 newMetaDatainstance. No arguments are required.
-
toMap()instead.