Package com.openai.models.moderations
Class ModerationImageUrlInput
-
- All Implemented Interfaces:
public final class ModerationImageUrlInputAn object describing an image to classify.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModerationImageUrlInput.BuilderA builder for ModerationImageUrlInput.
public final classModerationImageUrlInput.ImageUrlContains either an image URL or a data URL for a base64 encoded image.
-
Method Summary
Modifier and Type Method Description final ModerationImageUrlInput.ImageUrlimageUrl()Contains either an image URL or a data URL for a base64 encoded image. final JsonValue_type()Always image_url.final JsonField<ModerationImageUrlInput.ImageUrl>_imageUrl()Returns the raw JSON value of imageUrl. final Map<String, JsonValue>_additionalProperties()final ModerationImageUrlInput.BuildertoBuilder()final ModerationImageUrlInputvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ModerationImageUrlInput.Builderbuilder()Returns a mutable builder for constructing an instance of ModerationImageUrlInput. -
-
Method Detail
-
imageUrl
final ModerationImageUrlInput.ImageUrl imageUrl()
Contains either an image URL or a data URL for a base64 encoded image.
-
_type
final JsonValue _type()
Always
image_url.Expected to always return the following:
JsonValue.from("image_url")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_imageUrl
final JsonField<ModerationImageUrlInput.ImageUrl> _imageUrl()
Returns the raw JSON value of imageUrl.
Unlike imageUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ModerationImageUrlInput.Builder toBuilder()
-
validate
final ModerationImageUrlInput validate()
-
builder
final static ModerationImageUrlInput.Builder builder()
Returns a mutable builder for constructing an instance of ModerationImageUrlInput.
The following fields are required:
.imageUrl()
-
-
-
-