Class BetaManagedAgentsImageBlock
-
- All Implemented Interfaces:
public final class BetaManagedAgentsImageBlockImage content specified directly as base64 data or as a reference via a URL.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsImageBlock.BuilderA builder for BetaManagedAgentsImageBlock.
public final classBetaManagedAgentsImageBlock.SourceThe source of the image data.
-
Method Summary
Modifier and Type Method Description final BetaManagedAgentsImageBlock.Sourcesource()The source of the image data. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("image")final JsonField<BetaManagedAgentsImageBlock.Source>_source()Returns the raw JSON value of source. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsImageBlock.BuildertoBuilder()final BetaManagedAgentsImageBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsImageBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsImageBlock. final static BetaManagedAgentsImageBlockof(BetaManagedAgentsImageBlock.Source source)Returns an immutable instance of BetaManagedAgentsImageBlock with the required source set to the given value. final static BetaManagedAgentsImageBlockof(BetaManagedAgentsBase64ImageSource base64)Alias for calling of with Source.ofBase64(base64).final static BetaManagedAgentsImageBlockof(BetaManagedAgentsUrlImageSource url)Alias for calling of with Source.ofUrl(url).final static BetaManagedAgentsImageBlockof(BetaManagedAgentsFileImageSource file)Alias for calling of with Source.ofFile(file).-
-
Method Detail
-
source
final BetaManagedAgentsImageBlock.Source source()
The source of the image data.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("image")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_source
final JsonField<BetaManagedAgentsImageBlock.Source> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsImageBlock.Builder toBuilder()
-
validate
final BetaManagedAgentsImageBlock 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 BetaManagedAgentsImageBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsImageBlock.
The following fields are required:
.source()
-
of
final static BetaManagedAgentsImageBlock of(BetaManagedAgentsImageBlock.Source source)
Returns an immutable instance of BetaManagedAgentsImageBlock with the required source set to the given value.
-
of
final static BetaManagedAgentsImageBlock of(BetaManagedAgentsBase64ImageSource base64)
Alias for calling of with
Source.ofBase64(base64).
-
of
final static BetaManagedAgentsImageBlock of(BetaManagedAgentsUrlImageSource url)
Alias for calling of with
Source.ofUrl(url).
-
of
final static BetaManagedAgentsImageBlock of(BetaManagedAgentsFileImageSource file)
Alias for calling of with
Source.ofFile(file).
-
-
-
-