Package com.anthropic.models.messages
Class Base64ImageSource
-
- All Implemented Interfaces:
public final class Base64ImageSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBase64ImageSource.BuilderA builder for Base64ImageSource.
public final classBase64ImageSource.MediaType
-
Method Summary
Modifier and Type Method Description final Stringdata()final Base64ImageSource.MediaTypemediaType()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("base64")final JsonField<String>_data()Returns the raw JSON value of data. final JsonField<Base64ImageSource.MediaType>_mediaType()Returns the raw JSON value of mediaType. final Map<String, JsonValue>_additionalProperties()final Base64ImageSource.BuildertoBuilder()final Base64ImageSourcevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Base64ImageSource.Builderbuilder()Returns a mutable builder for constructing an instance of Base64ImageSource. -
-
Method Detail
-
mediaType
final Base64ImageSource.MediaType mediaType()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("base64")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_data
final JsonField<String> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_mediaType
final JsonField<Base64ImageSource.MediaType> _mediaType()
Returns the raw JSON value of mediaType.
Unlike mediaType, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Base64ImageSource.Builder toBuilder()
-
validate
final Base64ImageSource validate()
-
builder
final static Base64ImageSource.Builder builder()
Returns a mutable builder for constructing an instance of Base64ImageSource.
The following fields are required:
.data() .mediaType()
-
-
-
-