Google Cloud Chronicle Client - Class Relation (0.9.0)

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

Defines the relationship between the entity (a) and another entity (b).

Generated from protobuf message google.backstory.Relation

Namespace

Google \ Backstory

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ entity Noun

Entity (b) that the primary entity (a) is related to.

↳ entity_type int

Type of the related entity (b) in this relationship.

↳ relationship int

Type of relationship.

↳ direction int

Directionality of relationship between primary entity (a) and the related entity (b).

↳ uid string

UID of the relationship.

↳ entity_label int

Label to identify the Noun of the relation.

getEntity

Entity (b) that the primary entity (a) is related to.

Returns
Type Description
Noun|null

hasEntity

clearEntity

setEntity

Entity (b) that the primary entity (a) is related to.

Parameter
Name Description
var Noun
Returns
Type Description
$this

getEntityType

Type of the related entity (b) in this relationship.

Returns
Type Description
int Enum of type EntityType.

setEntityType

Type of the related entity (b) in this relationship.

Parameter
Name Description
var int

Enum of type EntityType.

Returns
Type Description
$this

getRelationship

Type of relationship.

Returns
Type Description
int Enum of type Relationship.

setRelationship

Type of relationship.

Parameter
Name Description
var int

Enum of type Relationship.

Returns
Type Description
$this

getDirection

Directionality of relationship between primary entity (a) and the related entity (b).

Returns
Type Description
int Enum of type Directionality.

setDirection

Directionality of relationship between primary entity (a) and the related entity (b).

Parameter
Name Description
var int

Enum of type Directionality.

Returns
Type Description
$this

getUid

UID of the relationship.

Returns
Type Description
string

setUid

UID of the relationship.

Parameter
Name Description
var string
Returns
Type Description
$this

getEntityLabel

Label to identify the Noun of the relation.

Returns
Type Description
int Enum of type EntityLabel.

setEntityLabel

Label to identify the Noun of the relation.

Parameter
Name Description
var int

Enum of type EntityLabel.

Returns
Type Description
$this