Class ImageUrlDeltaBlock
-
- All Implemented Interfaces:
public final class ImageUrlDeltaBlock
References an image URL in the content of a message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ImageUrlDeltaBlock.Builder
A builder for ImageUrlDeltaBlock.
-
Method Summary
Modifier and Type Method Description final Long
index()
The index of the content part in the message. final JsonValue
_type()
Always image_url
.final Optional<ImageUrlDelta>
imageUrl()
final JsonField<Long>
_index()
Returns the raw JSON value of index. final JsonField<ImageUrlDelta>
_imageUrl()
Returns the raw JSON value of imageUrl. final Map<String, JsonValue>
_additionalProperties()
final ImageUrlDeltaBlock.Builder
toBuilder()
final ImageUrlDeltaBlock
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ImageUrlDeltaBlock.Builder
builder()
Returns a mutable builder for constructing an instance of ImageUrlDeltaBlock. -
-
Method Detail
-
_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 Optional<ImageUrlDelta> imageUrl()
-
_index
final JsonField<Long> _index()
Returns the raw JSON value of index.
Unlike index, this method doesn't throw if the JSON field has an unexpected type.
-
_imageUrl
final JsonField<ImageUrlDelta> _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 ImageUrlDeltaBlock.Builder toBuilder()
-
validate
final ImageUrlDeltaBlock validate()
-
builder
final static ImageUrlDeltaBlock.Builder builder()
Returns a mutable builder for constructing an instance of ImageUrlDeltaBlock.
The following fields are required:
.index()
-
-
-
-