Reference documentation and code samples for the Google Cloud Chronicle Client class Url.
Url.
Generated from protobuf message google.backstory.Url
Namespace
Google \ BackstoryMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ url |
string
URL. |
↳ categories |
string[]
Categorisation done by VirusTotal partners. |
↳ favicon |
Favicon
Difference hash and MD5 hash of the URL's. |
↳ html_meta |
Google\Protobuf\Struct
Meta tags (only for URLs downloading HTML). |
↳ last_final_url |
string
If the original URL redirects, where does it end. |
↳ last_http_response_code |
int
HTTP response code of the last response. |
↳ last_http_response_content_length |
int|string
Length in bytes of the content received. |
↳ last_http_response_content_sha256 |
string
URL response body's SHA256 hash. |
↳ last_http_response_cookies |
Google\Protobuf\Struct
Website's cookies. |
↳ last_http_response_headers |
Google\Protobuf\Struct
Headers and values of the last HTTP response. |
↳ tags |
string[]
Tags. |
↳ title |
string
Webpage title. |
↳ trackers |
array<Tracker>
Trackers found in the URL in a historical manner. |
getUrl
URL.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUrl
URL.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCategories
Categorisation done by VirusTotal partners.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setCategories
Categorisation done by VirusTotal partners.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFavicon
Difference hash and MD5 hash of the URL's.
| Returns | |
|---|---|
| Type | Description |
Favicon|null |
|
hasFavicon
clearFavicon
setFavicon
Difference hash and MD5 hash of the URL's.
| Parameter | |
|---|---|
| Name | Description |
var |
Favicon
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getHtmlMeta
Meta tags (only for URLs downloading HTML).
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Struct|null |
|
hasHtmlMeta
clearHtmlMeta
setHtmlMeta
Meta tags (only for URLs downloading HTML).
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Struct
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastFinalUrl
If the original URL redirects, where does it end.
| Returns | |
|---|---|
| Type | Description |
string |
|
setLastFinalUrl
If the original URL redirects, where does it end.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastHttpResponseCode
HTTP response code of the last response.
| Returns | |
|---|---|
| Type | Description |
int |
|
setLastHttpResponseCode
HTTP response code of the last response.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastHttpResponseContentLength
Length in bytes of the content received.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setLastHttpResponseContentLength
Length in bytes of the content received.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastHttpResponseContentSha256
URL response body's SHA256 hash.
| Returns | |
|---|---|
| Type | Description |
string |
|
setLastHttpResponseContentSha256
URL response body's SHA256 hash.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastHttpResponseCookies
Website's cookies.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Struct|null |
|
hasLastHttpResponseCookies
clearLastHttpResponseCookies
setLastHttpResponseCookies
Website's cookies.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Struct
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastHttpResponseHeaders
Headers and values of the last HTTP response.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Struct|null |
|
hasLastHttpResponseHeaders
clearLastHttpResponseHeaders
setLastHttpResponseHeaders
Headers and values of the last HTTP response.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Struct
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTags
Tags.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setTags
Tags.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTitle
Webpage title.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTitle
Webpage title.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTrackers
Trackers found in the URL in a historical manner.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Tracker> |
|
setTrackers
Trackers found in the URL in a historical manner.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Tracker>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|