Package com.sap.ai.sdk.grounding.model
Class ValidationError
java.lang.Object
com.sap.ai.sdk.grounding.model.ValidationError
ValidationError
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for ValidationError. -
Method Summary
Modifier and TypeMethodDescriptionaddLocItem(LocationInner locItem) Add one loc instance to thisValidationError.static ValidationError.Buildercreate()Create a type-safe, fluent-api builder object to construct a newValidationErrorinstance with all required arguments.Set the ctx of thisValidationErrorinstance and return the same instance.booleangetCtx()Get ctxgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theValidationError.getInput()Get inputgetLoc()Get locgetMsg()Get msggetType()Get typeinthashCode()Set the input of thisValidationErrorinstance and return the same instance.loc(List<LocationInner> loc) Set the loc of thisValidationErrorinstance and return the same instance.Set the msg of thisValidationErrorinstance and return the same instance.voidSet the ctx of thisValidationErrorinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisValidationErrorinstance.voidSet the input of thisValidationErrorinstance.voidsetLoc(List<LocationInner> loc) Set the loc of thisValidationErrorinstance.voidSet the msg of thisValidationErrorinstance.voidSet the type of thisValidationErrorinstance.toMap()Get the value of all properties of thisValidationErrorinstance including unrecognized properties.toString()Set the type of thisValidationErrorinstance and return the same instance.
-
Constructor Details
-
ValidationError
protected ValidationError()Default constructor for ValidationError.
-
-
Method Details
-
loc
Set the loc of thisValidationErrorinstance and return the same instance.- Parameters:
loc- The loc of thisValidationError- Returns:
- The same instance of this
ValidationErrorclass
-
addLocItem
Add one loc instance to thisValidationError.- Parameters:
locItem- The loc that should be added- Returns:
- The same instance of type
ValidationError
-
getLoc
Get loc- Returns:
- loc The loc of this
ValidationErrorinstance.
-
setLoc
Set the loc of thisValidationErrorinstance.- Parameters:
loc- The loc of thisValidationError
-
msg
Set the msg of thisValidationErrorinstance and return the same instance.- Parameters:
msg- The msg of thisValidationError- Returns:
- The same instance of this
ValidationErrorclass
-
getMsg
Get msg- Returns:
- msg The msg of this
ValidationErrorinstance.
-
setMsg
Set the msg of thisValidationErrorinstance.- Parameters:
msg- The msg of thisValidationError
-
type
Set the type of thisValidationErrorinstance and return the same instance.- Parameters:
type- The type of thisValidationError- Returns:
- The same instance of this
ValidationErrorclass
-
getType
Get type- Returns:
- type The type of this
ValidationErrorinstance.
-
setType
Set the type of thisValidationErrorinstance.- Parameters:
type- The type of thisValidationError
-
input
Set the input of thisValidationErrorinstance and return the same instance.- Parameters:
input- The input of thisValidationError- Returns:
- The same instance of this
ValidationErrorclass
-
getInput
Get input- Returns:
- input The input of this
ValidationErrorinstance.
-
setInput
Set the input of thisValidationErrorinstance.- Parameters:
input- The input of thisValidationError
-
ctx
Set the ctx of thisValidationErrorinstance and return the same instance.- Parameters:
ctx- The ctx of thisValidationError- Returns:
- The same instance of this
ValidationErrorclass
-
getCtx
Get ctx- Returns:
- ctx The ctx of this
ValidationErrorinstance.
-
setCtx
Set the ctx of thisValidationErrorinstance.- Parameters:
ctx- The ctx of thisValidationError
-
getCustomFieldNames
Get the names of the unrecognizable properties of theValidationError.- 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 thisValidationErrorinstance.- 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 thisValidationErrorinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisValidationErrorinstance. 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 newValidationErrorinstance with all required arguments.
-
toMap()instead.