Class ResponseComputerToolCall.Action.Scroll
-
- All Implemented Interfaces:
public final class ResponseComputerToolCall.Action.ScrollA scroll action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseComputerToolCall.Action.Scroll.BuilderA builder for Scroll.
-
Method Summary
Modifier and Type Method Description final LongscrollX()The horizontal scroll distance. final LongscrollY()The vertical scroll distance. final JsonValue_type()Specifies the event type. final Longx()The x-coordinate where the scroll occurred. final Longy()The y-coordinate where the scroll occurred. final Optional<List<String>>keys()The keys being held while scrolling. final JsonField<Long>_scrollX()Returns the raw JSON value of scrollX. final JsonField<Long>_scrollY()Returns the raw JSON value of scrollY. final JsonField<Long>_x()Returns the raw JSON value of x. final JsonField<Long>_y()Returns the raw JSON value of y. final JsonField<List<String>>_keys()Returns the raw JSON value of keys. final Map<String, JsonValue>_additionalProperties()final ResponseComputerToolCall.Action.Scroll.BuildertoBuilder()final ResponseComputerToolCall.Action.Scrollvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseComputerToolCall.Action.Scroll.Builderbuilder()Returns a mutable builder for constructing an instance of Scroll. -
-
Method Detail
-
_type
final JsonValue _type()
Specifies the event type. For a scroll action, this property is always set to
scroll.Expected to always return the following:
JsonValue.from("scroll")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_scrollX
final JsonField<Long> _scrollX()
Returns the raw JSON value of scrollX.
Unlike scrollX, this method doesn't throw if the JSON field has an unexpected type.
-
_scrollY
final JsonField<Long> _scrollY()
Returns the raw JSON value of scrollY.
Unlike scrollY, this method doesn't throw if the JSON field has an unexpected type.
-
_x
final JsonField<Long> _x()
Returns the raw JSON value of x.
Unlike x, this method doesn't throw if the JSON field has an unexpected type.
-
_y
final JsonField<Long> _y()
Returns the raw JSON value of y.
Unlike y, this method doesn't throw if the JSON field has an unexpected type.
-
_keys
final JsonField<List<String>> _keys()
Returns the raw JSON value of keys.
Unlike keys, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseComputerToolCall.Action.Scroll.Builder toBuilder()
-
validate
final ResponseComputerToolCall.Action.Scroll 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 ResponseComputerToolCall.Action.Scroll.Builder builder()
Returns a mutable builder for constructing an instance of Scroll.
The following fields are required:
.scrollX() .scrollY() .x() .y()
-
-
-
-