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

General information associated with a UDM event.

Generated from protobuf message `google.backstory.Metadata`

## Namespace

Google \\ Backstory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` ID of the UDM event. Can be used for raw and normalized event retrieval. |
| `↳ product_log_id` | `string` A vendor-specific event identifier to uniquely identify the event (e.g. a GUID). |
| `↳ event_timestamp` | `Google\Protobuf\Timestamp` The GMT timestamp when the event was generated. |
| `↳ event_timestamp_attributes` | `int[]` Attributes associated with event_timestamp. This field is used to distinguish between different types of timestamps that can be used to represent the event_timestamp. |
| `↳ collected_timestamp` | `Google\Protobuf\Timestamp` The GMT timestamp when the event was collected by the vendor's local collection infrastructure. |
| `↳ ingested_timestamp` | `Google\Protobuf\Timestamp` The GMT timestamp when the event was ingested (received) by Chronicle. |
| `↳ event_type` | `int` The event type. If an event has multiple possible types, this specifies the most specific type. |
| `↳ vendor_name` | `string` The name of the product vendor. |
| `↳ product_name` | `string` The name of the product. |
| `↳ product_version` | `string` The version of the product. |
| `↳ product_event_type` | `string` A short, descriptive, human-readable, product-specific event name or type (e.g. "Scanned X", "User account created", "process_start"). |
| `↳ product_deployment_id` | `string` The deployment identifier assigned by the vendor for a product deployment. |
| `↳ description` | `string` A human-readable unparsable description of the event. |
| `↳ url_back_to_product` | `string` A URL that takes the user to the source product console for this event. |
| `↳ ingestion_labels` | `array<Label>` User-configured ingestion metadata labels. |
| `↳ tags` | `Tags` Tags added by Chronicle after an event is parsed. It is an error to populate this field from within a parser. |
| `↳ enrichment_state` | `int` The enrichment state. |
| `↳ log_type` | `string` The string value of log type. |
| `↳ base_labels` | `DataAccessLabels` Data access labels on the base event. |
| `↳ enrichment_labels` | `DataAccessLabels` Data access labels from all the contextual events used to enrich the base event. |
| `↳ structured_fields` | `Google\Protobuf\Struct` Flattened fields extracted from the log. |
| `↳ parser_version` | `string` The version of the parser that generated this UDM event. |

### getId

ID of the UDM event. Can be used for raw and normalized event retrieval.

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

### setId

ID of the UDM event. Can be used for raw and normalized event retrieval.

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

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

### getProductLogId

A vendor-specific event identifier to uniquely identify the event (e.g. a
GUID).

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

### setProductLogId

A vendor-specific event identifier to uniquely identify the event (e.g. a
GUID).

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

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

### getEventTimestamp

The GMT timestamp when the event was generated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasEventTimestamp

### clearEventTimestamp

### setEventTimestamp

The GMT timestamp when the event was generated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getEventTimestampAttributes

Attributes associated with event_timestamp. This field
is used to distinguish between different types of timestamps that can be
used to represent the event_timestamp.

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

### setEventTimestampAttributes

Attributes associated with event_timestamp. This field
is used to distinguish between different types of timestamps that can be
used to represent the event_timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

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

### getCollectedTimestamp

The GMT timestamp when the event was collected by the vendor's local
collection infrastructure.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCollectedTimestamp

### clearCollectedTimestamp

### setCollectedTimestamp

The GMT timestamp when the event was collected by the vendor's local
collection infrastructure.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getIngestedTimestamp

The GMT timestamp when the event was ingested (received) by Chronicle.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasIngestedTimestamp

### clearIngestedTimestamp

### setIngestedTimestamp

The GMT timestamp when the event was ingested (received) by Chronicle.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getEventType

The event type.

If an event has multiple possible types, this specifies the most specific
type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [EventType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Metadata.EventType.md.txt). |

### setEventType

The event type.

If an event has multiple possible types, this specifies the most specific
type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [EventType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Metadata.EventType.md.txt). |

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

### getVendorName

The name of the product vendor.

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

### setVendorName

The name of the product vendor.

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

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

### getProductName

The name of the product.

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

### setProductName

The name of the product.

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

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

### getProductVersion

The version of the product.

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

### setProductVersion

The version of the product.

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

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

### getProductEventType

A short, descriptive, human-readable, product-specific event name or type
(e.g. "Scanned X", "User account created", "process_start").

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

### setProductEventType

A short, descriptive, human-readable, product-specific event name or type
(e.g. "Scanned X", "User account created", "process_start").

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

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

### getProductDeploymentId

The deployment identifier assigned by the vendor for a product deployment.

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

### setProductDeploymentId

The deployment identifier assigned by the vendor for a product deployment.

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

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

### getDescription

A human-readable unparsable description of the event.

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

### setDescription

A human-readable unparsable description of the event.

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

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

### getUrlBackToProduct

A URL that takes the user to the source product console for this event.

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

### setUrlBackToProduct

A URL that takes the user to the source product console for this event.

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

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

### getIngestionLabels

User-configured ingestion metadata labels.

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

### setIngestionLabels

User-configured ingestion metadata labels.

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

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

### getTags

Tags added by Chronicle after an event is parsed. It is an error to
populate this field from within a parser.

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

### hasTags

### clearTags

### setTags

Tags added by Chronicle after an event is parsed. It is an error to
populate this field from within a parser.

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

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

### getEnrichmentState

The enrichment state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [EnrichmentState](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Metadata.EnrichmentState.md.txt). |

### setEnrichmentState

The enrichment state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [EnrichmentState](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Metadata.EnrichmentState.md.txt). |

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

### getLogType

The string value of log type.

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

### setLogType

The string value of log type.

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

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

### getBaseLabels

Data access labels on the base event.

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

### hasBaseLabels

### clearBaseLabels

### setBaseLabels

Data access labels on the base event.

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

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

### getEnrichmentLabels

Data access labels from all the contextual events used to enrich the base
event.

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

### hasEnrichmentLabels

### clearEnrichmentLabels

### setEnrichmentLabels

Data access labels from all the contextual events used to enrich the base
event.

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

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

### getStructuredFields

Flattened fields extracted from the log.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Struct|null` |   |

### hasStructuredFields

### clearStructuredFields

### setStructuredFields

Flattened fields extracted from the log.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Struct` |

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

### getParserVersion

The version of the parser that generated this UDM event.

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

### setParserVersion

The version of the parser that generated this UDM event.

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

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