Class BetaResponseImageGenCallPartialImageEvent.Builder
-
- All Implemented Interfaces:
public final class BetaResponseImageGenCallPartialImageEvent.BuilderA builder for BetaResponseImageGenCallPartialImageEvent.
-
-
Method Summary
-
-
Method Detail
-
itemId
final BetaResponseImageGenCallPartialImageEvent.Builder itemId(String itemId)
The unique identifier of the image generation item being processed.
-
itemId
final BetaResponseImageGenCallPartialImageEvent.Builder itemId(JsonField<String> itemId)
Sets Builder.itemId to an arbitrary JSON value.
You should usually call Builder.itemId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputIndex
final BetaResponseImageGenCallPartialImageEvent.Builder outputIndex(Long outputIndex)
The index of the output item in the response's output array.
-
outputIndex
final BetaResponseImageGenCallPartialImageEvent.Builder outputIndex(JsonField<Long> outputIndex)
Sets Builder.outputIndex to an arbitrary JSON value.
You should usually call Builder.outputIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
partialImageB64
final BetaResponseImageGenCallPartialImageEvent.Builder partialImageB64(String partialImageB64)
Base64-encoded partial image data, suitable for rendering as an image.
-
partialImageB64
final BetaResponseImageGenCallPartialImageEvent.Builder partialImageB64(JsonField<String> partialImageB64)
Sets Builder.partialImageB64 to an arbitrary JSON value.
You should usually call Builder.partialImageB64 with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
partialImageIndex
final BetaResponseImageGenCallPartialImageEvent.Builder partialImageIndex(Long partialImageIndex)
0-based index for the partial image (backend is 1-based, but this is 0-based for the user).
-
partialImageIndex
final BetaResponseImageGenCallPartialImageEvent.Builder partialImageIndex(JsonField<Long> partialImageIndex)
Sets Builder.partialImageIndex to an arbitrary JSON value.
You should usually call Builder.partialImageIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sequenceNumber
final BetaResponseImageGenCallPartialImageEvent.Builder sequenceNumber(Long sequenceNumber)
The sequence number of the image generation item being processed.
-
sequenceNumber
final BetaResponseImageGenCallPartialImageEvent.Builder sequenceNumber(JsonField<Long> sequenceNumber)
Sets Builder.sequenceNumber to an arbitrary JSON value.
You should usually call Builder.sequenceNumber with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaResponseImageGenCallPartialImageEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("response.image_generation_call.partial_image")This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final BetaResponseImageGenCallPartialImageEvent.Builder agent(BetaResponseImageGenCallPartialImageEvent.Agent agent)
The agent that owns this multi-agent streaming event.
-
agent
final BetaResponseImageGenCallPartialImageEvent.Builder agent(Optional<BetaResponseImageGenCallPartialImageEvent.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseImageGenCallPartialImageEvent.Builder agent(JsonField<BetaResponseImageGenCallPartialImageEvent.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseImageGenCallPartialImageEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseImageGenCallPartialImageEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseImageGenCallPartialImageEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseImageGenCallPartialImageEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseImageGenCallPartialImageEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseImageGenCallPartialImageEvent build()
Returns an immutable instance of BetaResponseImageGenCallPartialImageEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.itemId() .outputIndex() .partialImageB64() .partialImageIndex() .sequenceNumber()
-
-
-
-