Reference documentation and code samples for the Google Cloud Chronicle Client class Id.
Identifier to identify a UDM object like a UDM event, Entity, Collection.
The full identifier for persistence is created by setting the 32 most significant bits as the Id.Namespace enum This is a convenience wrapper to define the id space enum values and provide an easy interface for RPCs, most persistence use cases should use a denormalized form.
Generated from protobuf message google.backstory.Id
Namespace
Google \ BackstoryMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ namespace |
int
Namespace the id belongs to. |
↳ id |
string
Full raw ID. |
↳ string_id |
string
Some ids are stored as strings that are not able to be translated to bytes, so store these separately. Ex. detection id of the form de_aaaaaaaa-aaaa... |
getNamespace
Namespace the id belongs to.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Namespace. |
setNamespace
Namespace the id belongs to.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Namespace. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getId
Full raw ID.
| Returns | |
|---|---|
| Type | Description |
string |
|
setId
Full raw ID.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStringId
Some ids are stored as strings that are not able to be translated to bytes, so store these separately.
Ex. detection id of the form de_aaaaaaaa-aaaa...
| Returns | |
|---|---|
| Type | Description |
string |
|
setStringId
Some ids are stored as strings that are not able to be translated to bytes, so store these separately.
Ex. detection id of the form de_aaaaaaaa-aaaa...
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|