Cloud Spanner Client - Class Uuid (2.10.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud Spanner Client class Uuid.
Represents a value with a data type of
UUID.
Example:
use Google\Cloud\Spanner\SpannerClient;
$spanner = new SpannerClient(['projectId' => 'my-project']);
$uuid = $spanner->uuid('f47ac10b-58cc-4372-a567-0e02b2c3d479');
Namespace
Google \ Cloud \ Spanner
Implements
Methods
__construct
| Parameter |
| Name |
Description |
value |
string
The UUID value.
|
get
Get the underlying value.
| Returns |
| Type |
Description |
string |
|
type
| Returns |
| Type |
Description |
int |
|
Format the value as a string.
| Returns |
| Type |
Description |
string |
|
__toString
Format the value as a string.
| Returns |
| Type |
Description |
string |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-31 UTC.
[null,null,["Last updated 2026-07-31 UTC."],[],[]]