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 Reference.

Reference to model primatives including event and entity. As support is added
for fast retrieval of objects by identifiers, this will be
expanded to include ID references rather than full object copies.

Generated from protobuf message `google.backstory.Reference`

## Namespace

Google \\ Backstory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ event` | `UDM` Only one of event or entity will be populated for a single reference. Start one-of Event being referenced. |
| `↳ entity` | `Entity` Entity being referenced. In cases where the entity graph is overridden by data table, this will represent the original entity. End one-of |
| `↳ joined_data_table_rows` | `array<DataTableRowInfo>` The data table rows joined with the event. |
| `↳ graph_enrichment` | `EntityGraphEnrichment` The entity graph enrichment details. Only set when the reference is an Entity which has been overridden by a data table or appended from a data table. |
| `↳ id` | `Id` Id being referenced. This field will also be populated for both event and entity with the event id. For detections, only this field will be populated. |
| `↳ log_batch_token` | `string` The log batch token of the event being referenced. This field is used to fetch the raw log associated with the event in some legacy systems. This field is only populated for events/entities. |

### getEvent

Only one of event or entity will be populated for a single
reference.

Start one-of
Event being referenced.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `UDM|null` |   |

### hasEvent

### clearEvent

### setEvent

Only one of event or entity will be populated for a single
reference.

Start one-of
Event being referenced.

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

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

### getEntity

Entity being referenced. In cases where the entity graph is overridden by
data table, this will represent the original entity.

End one-of

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Entity|null` |   |

### hasEntity

### clearEntity

### setEntity

Entity being referenced. In cases where the entity graph is overridden by
data table, this will represent the original entity.

End one-of

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

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

### getJoinedDataTableRows

The data table rows joined with the event.

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

### setJoinedDataTableRows

The data table rows joined with the event.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<DataTableRowInfo>` |

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

### getGraphEnrichment

The entity graph enrichment details. Only set when the reference is an
Entity which has been overridden by a data table or appended from a data
table.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `EntityGraphEnrichment|null` |   |

### hasGraphEnrichment

### clearGraphEnrichment

### setGraphEnrichment

The entity graph enrichment details. Only set when the reference is an
Entity which has been overridden by a data table or appended from a data
table.

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

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

### getId

Id being referenced. This field will also be populated for both event and
entity with the event id. For detections, only this field will be
populated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Id|null` |   |

### hasId

### clearId

### setId

Id being referenced. This field will also be populated for both event and
entity with the event id. For detections, only this field will be
populated.

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

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

### getLogBatchToken

The log batch token of the event being referenced. This field is
used to fetch the raw log associated with the event in some legacy systems.

This field is only populated for events/entities.

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

### setLogBatchToken

The log batch token of the event being referenced. This field is
used to fetch the raw log associated with the event in some legacy systems.

This field is only populated for events/entities.

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

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