# Class ComputerState

java.lang.Object
com.google.adk.tools.computeruse.ComputerState

public final class ComputerState extends Object
Represents the current state of the computer environment.

Attributes: screenshot: The screenshot in PNG format as bytes. url: The current URL of the webpage being displayed.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static final class`
  `ComputerState.Builder`
  Builder for `ComputerState`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static ComputerState.Builder`
  `builder()`
  `static ComputerState`
  `create(byte[] screenshot)`
  `static ComputerState`
  `create(byte[] screenshot, String url)`
  `boolean`
  `equals(Object o)`
  `int`
  `hashCode()`
  `byte[]`
  `screenshot()`
  `Optional<String>`
  `url()`

  ### Methods inherited from class Object

  `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### screenshot

    public byte[] screenshot()

  - ### url

    public Optional<String> url()

  - ### builder

    public static ComputerState.Builder builder()

  - ### create

    public static ComputerState create(byte[] screenshot, String url)

  - ### create

    public static ComputerState create(byte[] screenshot)

  - ### equals

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`