Package org.opensearch.ml.common.model
Class Guardrails
java.lang.Object
org.opensearch.ml.common.model.Guardrails
- All Implemented Interfaces:
org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params -
Field Summary
FieldsFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionGuardrails(String type, Guardrail inputGuardrail, Guardrail outputGuardrail) Guardrails(org.opensearch.core.common.io.stream.StreamInput input) -
Method Summary
Modifier and TypeMethodDescriptionstatic Guardrails.GuardrailsBuilderbuilder()protected booleanbooleangetType()inthashCode()static Guardrailsparse(org.opensearch.core.xcontent.XContentParser parser) org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
TYPE_FIELD
- See Also:
-
INPUT_GUARDRAIL_FIELD
- See Also:
-
OUTPUT_GUARDRAIL_FIELD
- See Also:
-
-
Constructor Details
-
Guardrails
-
Guardrails
- Throws:
IOException
-
-
Method Details
-
writeTo
- Throws:
IOException
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
parse
public static Guardrails parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
builder
-
toBuilder
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getType
-
getInputGuardrail
-
getOutputGuardrail
-