Package com.openai.models.moderations
Class ModerationImageUrlInput.ImageUrl
-
- All Implemented Interfaces:
public final class ModerationImageUrlInput.ImageUrlContains either an image URL or a data URL for a base64 encoded image.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModerationImageUrlInput.ImageUrl.BuilderA builder for ImageUrl.
-
Method Summary
Modifier and Type Method Description final Stringurl()Either a URL of the image or the base64 encoded image data. final JsonField<String>_url()Returns the raw JSON value of url. final Map<String, JsonValue>_additionalProperties()final ModerationImageUrlInput.ImageUrl.BuildertoBuilder()final ModerationImageUrlInput.ImageUrlvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ModerationImageUrlInput.ImageUrl.Builderbuilder()Returns a mutable builder for constructing an instance of ImageUrl. -
-
Method Detail
-
_url
final JsonField<String> _url()
Returns the raw JSON value of url.
Unlike url, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ModerationImageUrlInput.ImageUrl.Builder toBuilder()
-
validate
final ModerationImageUrlInput.ImageUrl validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ModerationImageUrlInput.ImageUrl.Builder builder()
Returns a mutable builder for constructing an instance of ImageUrl.
The following fields are required:
.url()
-
-
-
-