Class Categories.Builder
java.lang.Object
org.springframework.ai.moderation.Categories.Builder
- Enclosing class:
- Categories
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
harassment
(boolean harassment) harassmentThreatening
(boolean harassmentThreatening) hate
(boolean hate) hateThreatening
(boolean hateThreatening) selfHarm
(boolean selfHarm) selfHarmInstructions
(boolean selfHarmInstructions) selfHarmIntent
(boolean selfHarmIntent) sexual
(boolean sexual) sexualMinors
(boolean sexualMinors) violence
(boolean violence) violenceGraphic
(boolean violenceGraphic) withHarassment
(boolean harassment) Deprecated, for removal: This API element is subject to removal in a future version.withHarassmentThreatening
(boolean harassmentThreatening) Deprecated, for removal: This API element is subject to removal in a future version.useharassmentThreatening(boolean)
instead.withHate
(boolean hate) Deprecated, for removal: This API element is subject to removal in a future version.usehate(boolean)
instead.withHateThreatening
(boolean hateThreatening) Deprecated, for removal: This API element is subject to removal in a future version.usehateThreatening(boolean)
instead.withSelfHarm
(boolean selfHarm) Deprecated, for removal: This API element is subject to removal in a future version.useselfHarm(boolean)
instead.withSelfHarmInstructions
(boolean selfHarmInstructions) Deprecated, for removal: This API element is subject to removal in a future version.useselfHarmInstructions(boolean)
instead.withSelfHarmIntent
(boolean selfHarmIntent) Deprecated, for removal: This API element is subject to removal in a future version.useselfHarmIntent(boolean)
instead.withSexual
(boolean sexual) Deprecated, for removal: This API element is subject to removal in a future version.usesexual(boolean)
instead.withSexualMinors
(boolean sexualMinors) Deprecated, for removal: This API element is subject to removal in a future version.usesexualMinors(boolean)
instead.withViolence
(boolean violence) Deprecated, for removal: This API element is subject to removal in a future version.useviolence(boolean)
instead.withViolenceGraphic
(boolean violenceGraphic) Deprecated, for removal: This API element is subject to removal in a future version.useviolenceGraphic(boolean)
instead.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sexual
-
hate
-
harassment
-
selfHarm
-
sexualMinors
-
hateThreatening
-
violenceGraphic
-
selfHarmIntent
-
selfHarmInstructions
-
harassmentThreatening
-
violence
-
withSexual
Deprecated, for removal: This API element is subject to removal in a future version.usesexual(boolean)
instead. -
withHate
Deprecated, for removal: This API element is subject to removal in a future version.usehate(boolean)
instead. -
withHarassment
@Deprecated(forRemoval=true, since="1.0.0-M5") public Categories.Builder withHarassment(boolean harassment) Deprecated, for removal: This API element is subject to removal in a future version.useharassment(boolean)
instead. -
withSelfHarm
@Deprecated(forRemoval=true, since="1.0.0-M5") public Categories.Builder withSelfHarm(boolean selfHarm) Deprecated, for removal: This API element is subject to removal in a future version.useselfHarm(boolean)
instead. -
withSexualMinors
@Deprecated(forRemoval=true, since="1.0.0-M5") public Categories.Builder withSexualMinors(boolean sexualMinors) Deprecated, for removal: This API element is subject to removal in a future version.usesexualMinors(boolean)
instead. -
withHateThreatening
@Deprecated(forRemoval=true, since="1.0.0-M5") public Categories.Builder withHateThreatening(boolean hateThreatening) Deprecated, for removal: This API element is subject to removal in a future version.usehateThreatening(boolean)
instead. -
withViolenceGraphic
@Deprecated(forRemoval=true, since="1.0.0-M5") public Categories.Builder withViolenceGraphic(boolean violenceGraphic) Deprecated, for removal: This API element is subject to removal in a future version.useviolenceGraphic(boolean)
instead. -
withSelfHarmIntent
@Deprecated(forRemoval=true, since="1.0.0-M5") public Categories.Builder withSelfHarmIntent(boolean selfHarmIntent) Deprecated, for removal: This API element is subject to removal in a future version.useselfHarmIntent(boolean)
instead. -
withSelfHarmInstructions
@Deprecated(forRemoval=true, since="1.0.0-M5") public Categories.Builder withSelfHarmInstructions(boolean selfHarmInstructions) Deprecated, for removal: This API element is subject to removal in a future version.useselfHarmInstructions(boolean)
instead. -
withHarassmentThreatening
@Deprecated(forRemoval=true, since="1.0.0-M5") public Categories.Builder withHarassmentThreatening(boolean harassmentThreatening) Deprecated, for removal: This API element is subject to removal in a future version.useharassmentThreatening(boolean)
instead. -
withViolence
@Deprecated(forRemoval=true, since="1.0.0-M5") public Categories.Builder withViolence(boolean violence) Deprecated, for removal: This API element is subject to removal in a future version.useviolence(boolean)
instead. -
build
-
harassment(boolean)
instead.