0.9.0 (latest) 0.8.0 0.7.2 0.5.0 0.4.0 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle Client class Browser.

Information about an entry in the web browser's local history database.

Generated from protobuf message `google.backstory.Browser`

## Namespace

Google \\ Backstory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ browser_type` | `int` The browser that recorded the history entry (e.g. "Chrome", "Firefox", "Safari", etc.). |
| `↳ browser_version` | `string` The browser version. |
| `↳ first_visit_time` | `Google\Protobuf\Timestamp` The timestamp indicating the initial visit to the URL. |
| `↳ last_visit_time` | `Google\Protobuf\Timestamp` The timestamp indicating the most recent visit to the URL. |
| `↳ profile` | `string` The browser profile associated with the history entry. |
| `↳ typed` | `bool` A boolean value indicating if the URL was typed by the user. |
| `↳ visit_type` | `int` Describes the type of navigation or visit (e.g., direct, redirect, etc.). |
| `↳ hidden` | `bool` A boolean value indicating if the history entry is hidden. |
| `↳ request_origin_uri` | `string` Indicates the URI from which the current visit originated. |
| `↳ visit_count` | `int|string` The total number of times the Url has been visited. |
| `↳ visit_count_criteria` | `string` Describes the criteria used to calculate the visit_count. |
| `↳ indexed_content` | `string` Represents the textual content of a web page. This field should be kept short. Large strings may affect latency and payload sizes. |
| `↳ first_bookmarked_time` | `Google\Protobuf\Timestamp` The timestamp indicating the first time the URL was bookmarked. |
| `↳ cookies` | `array<Browser\Cookie>` Information about the cookies. |
| `↳ typed_count` | `int|string` The number of times the URL was visited with this specific visit type and visit source. |
| `↳ visit_source` | `int` The source of the visit. |

### getBrowserType

The browser that recorded the history entry (e.g. "Chrome", "Firefox",
"Safari", etc.).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [BrowserType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Browser.BrowserType.md.txt). |

### setBrowserType

The browser that recorded the history entry (e.g. "Chrome", "Firefox",
"Safari", etc.).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [BrowserType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Browser.BrowserType.md.txt). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBrowserVersion

The browser version.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setBrowserVersion

The browser version.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFirstVisitTime

The timestamp indicating the initial visit to the URL.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasFirstVisitTime

### clearFirstVisitTime

### setFirstVisitTime

The timestamp indicating the initial visit to the URL.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLastVisitTime

The timestamp indicating the most recent visit to the URL.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasLastVisitTime

### clearLastVisitTime

### setLastVisitTime

The timestamp indicating the most recent visit to the URL.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProfile

The browser profile associated with the history entry.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setProfile

The browser profile associated with the history entry.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTyped

A boolean value indicating if the URL was typed by the user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setTyped

A boolean value indicating if the URL was typed by the user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVisitType

Describes the type of navigation or visit (e.g., direct, redirect, etc.).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [UrlVisitType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Browser.UrlVisitType.md.txt). |

### setVisitType

Describes the type of navigation or visit (e.g., direct, redirect, etc.).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [UrlVisitType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Browser.UrlVisitType.md.txt). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHidden

A boolean value indicating if the history entry is hidden.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setHidden

A boolean value indicating if the history entry is hidden.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequestOriginUri

Indicates the URI from which the current visit originated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRequestOriginUri

Indicates the URI from which the current visit originated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVisitCount

The total number of times the Url has been visited.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setVisitCount

The total number of times the Url has been visited.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVisitCountCriteria

Describes the criteria used to calculate the visit_count.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setVisitCountCriteria

Describes the criteria used to calculate the visit_count.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIndexedContent

Represents the textual content of a web page. This field should be kept
short. Large strings may affect latency and payload sizes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setIndexedContent

Represents the textual content of a web page. This field should be kept
short. Large strings may affect latency and payload sizes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFirstBookmarkedTime

The timestamp indicating the first time the URL was bookmarked.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasFirstBookmarkedTime

### clearFirstBookmarkedTime

### setFirstBookmarkedTime

The timestamp indicating the first time the URL was bookmarked.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCookies

Information about the cookies.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<Browser\Cookie>` |   |

### setCookies

Information about the cookies.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<Browser\Cookie>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTypedCount

The number of times the URL was visited with this specific visit type and
visit source.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setTypedCount

The number of times the URL was visited with this specific visit type and
visit source.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVisitSource

The source of the visit.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [VisitSource](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Browser.VisitSource.md.txt). |

### setVisitSource

The source of the visit.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [VisitSource](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Browser.VisitSource.md.txt). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |