Google Analytics Admin V1beta Client - Class ChangeHistoryChange (0.20.0)

Reference documentation and code samples for the Google Analytics Admin V1beta Client class ChangeHistoryChange.

A description of a change to a single Google Analytics resource.

Generated from protobuf message google.analytics.admin.v1beta.ChangeHistoryChange

Namespace

Google \ Analytics \ Admin \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ resource string

Resource name of the resource whose changes are described by this entry.

↳ action int

The type of action that changed this resource.

↳ resource_before_change Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource

Resource contents from before the change was made. If this resource was created in this change, this field will be missing.

↳ resource_after_change Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource

Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing.

getResource

Resource name of the resource whose changes are described by this entry.

Returns
TypeDescription
string

setResource

Resource name of the resource whose changes are described by this entry.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAction

The type of action that changed this resource.

Returns
TypeDescription
int

setAction

The type of action that changed this resource.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getResourceBeforeChange

Resource contents from before the change was made. If this resource was created in this change, this field will be missing.

Returns
TypeDescription
Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource|null

hasResourceBeforeChange

clearResourceBeforeChange

setResourceBeforeChange

Resource contents from before the change was made. If this resource was created in this change, this field will be missing.

Parameter
NameDescription
var Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource
Returns
TypeDescription
$this

getResourceAfterChange

Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing.

Returns
TypeDescription
Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource|null

hasResourceAfterChange

clearResourceAfterChange

setResourceAfterChange

Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing.

Parameter
NameDescription
var Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource
Returns
TypeDescription
$this