Google Cloud Chronicle Client - Class ResourceRecord (0.9.0)

Reference documentation and code samples for the Google Cloud Chronicle Client class ResourceRecord.

DNS Resource Records. See RFC1035, section 4.1.3.

Generated from protobuf message google.backstory.Dns.ResourceRecord

Namespace

Google \ Backstory \ Dns

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The name of the owner of the resource record.

↳ type int

The code specifying the type of the resource record.

↳ class int

The code specifying the class of the resource record.

↳ ttl int

The time interval for which the resource record can be cached before the source of the information should again be queried.

↳ data string

The payload or response to the DNS question for all responses encoded in UTF-8 format

↳ binary_data string

The raw bytes of any non-UTF8 strings that might be included as part of a DNS response.

getName

The name of the owner of the resource record.

Returns
Type Description
string

setName

The name of the owner of the resource record.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

The code specifying the type of the resource record.

Returns
Type Description
int

setType

The code specifying the type of the resource record.

Parameter
Name Description
var int
Returns
Type Description
$this

getClass

The code specifying the class of the resource record.

Returns
Type Description
int

setClass

The code specifying the class of the resource record.

Parameter
Name Description
var int
Returns
Type Description
$this

getTtl

The time interval for which the resource record can be cached before the source of the information should again be queried.

Returns
Type Description
int

setTtl

The time interval for which the resource record can be cached before the source of the information should again be queried.

Parameter
Name Description
var int
Returns
Type Description
$this

getData

The payload or response to the DNS question for all responses encoded in UTF-8 format

Returns
Type Description
string

setData

The payload or response to the DNS question for all responses encoded in UTF-8 format

Parameter
Name Description
var string
Returns
Type Description
$this

getBinaryData

The raw bytes of any non-UTF8 strings that might be included as part of a DNS response.

Returns
Type Description
string

setBinaryData

The raw bytes of any non-UTF8 strings that might be included as part of a DNS response.

Parameter
Name Description
var string
Returns
Type Description
$this