Package com.sap.ai.sdk.grounding.model
Class BasePipelineResponse
java.lang.Object
com.sap.ai.sdk.grounding.model.BasePipelineResponse
BasePipelineResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for BasePipelineResponse. -
Method Summary
Modifier and TypeMethodDescriptionstatic BasePipelineResponse.Buildercreate()Create a type-safe, fluent-api builder object to construct a newBasePipelineResponseinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theBasePipelineResponse.getId()Get idGet metadatagetType()Get typeinthashCode()Set the id of thisBasePipelineResponseinstance and return the same instance.Set the metadata of thisBasePipelineResponseinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisBasePipelineResponseinstance.voidSet the id of thisBasePipelineResponseinstance.voidsetMetadata(MetaData metadata) Set the metadata of thisBasePipelineResponseinstance.voidSet the type of thisBasePipelineResponseinstance.toMap()Get the value of all properties of thisBasePipelineResponseinstance including unrecognized properties.toString()Set the type of thisBasePipelineResponseinstance and return the same instance.
-
Constructor Details
-
BasePipelineResponse
protected BasePipelineResponse()Default constructor for BasePipelineResponse.
-
-
Method Details
-
id
Set the id of thisBasePipelineResponseinstance and return the same instance.- Parameters:
id- The id of thisBasePipelineResponse- Returns:
- The same instance of this
BasePipelineResponseclass
-
getId
Get id- Returns:
- id The id of this
BasePipelineResponseinstance.
-
setId
Set the id of thisBasePipelineResponseinstance.- Parameters:
id- The id of thisBasePipelineResponse
-
type
Set the type of thisBasePipelineResponseinstance and return the same instance.- Parameters:
type- The type of thisBasePipelineResponse- Returns:
- The same instance of this
BasePipelineResponseclass
-
getType
Get type- Returns:
- type The type of this
BasePipelineResponseinstance.
-
setType
Set the type of thisBasePipelineResponseinstance.- Parameters:
type- The type of thisBasePipelineResponse
-
metadata
Set the metadata of thisBasePipelineResponseinstance and return the same instance.- Parameters:
metadata- The metadata of thisBasePipelineResponse- Returns:
- The same instance of this
BasePipelineResponseclass
-
getMetadata
Get metadata- Returns:
- metadata The metadata of this
BasePipelineResponseinstance.
-
setMetadata
Set the metadata of thisBasePipelineResponseinstance.- Parameters:
metadata- The metadata of thisBasePipelineResponse
-
getCustomFieldNames
Get the names of the unrecognizable properties of theBasePipelineResponse.- 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 thisBasePipelineResponseinstance.- 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 thisBasePipelineResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisBasePipelineResponseinstance. 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 type-safe, fluent-api builder object to construct a newBasePipelineResponseinstance with all required arguments.
-
toMap()instead.