Class ResponseComputerToolCall.Action.Scroll
-
- All Implemented Interfaces:
public final class ResponseComputerToolCall.Action.Scroll
A scroll action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseComputerToolCall.Action.Scroll.Builder
A builder for Scroll.
-
Method Summary
Modifier and Type Method Description final Long
scrollX()
The horizontal scroll distance. final Long
scrollY()
The vertical scroll distance. final JsonValue
_type()
Specifies the event type. final Long
x()
The x-coordinate where the scroll occurred. final Long
y()
The y-coordinate where the scroll occurred. 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 Map<String, JsonValue>
_additionalProperties()
final ResponseComputerToolCall.Action.Scroll.Builder
toBuilder()
final ResponseComputerToolCall.Action.Scroll
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseComputerToolCall.Action.Scroll.Builder
builder()
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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseComputerToolCall.Action.Scroll.Builder toBuilder()
-
validate
final ResponseComputerToolCall.Action.Scroll validate()
-
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()
-
-
-
-