Reference documentation and code samples for the Common Protos for Google Cloud APIs V1 Client class CloudWorkspaceSourceContext.
A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
Generated from protobuf message google.devtools.source.v1.CloudWorkspaceSourceContext
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ workspace_id |
Google\Cloud\DevTools\Source\V1\CloudWorkspaceId
The ID of the workspace. |
↳ snapshot_id |
string
The ID of the snapshot. An empty snapshot_id refers to the most recent snapshot. |
getWorkspaceId
The ID of the workspace.
Returns | |
---|---|
Type | Description |
Google\Cloud\DevTools\Source\V1\CloudWorkspaceId|null |
hasWorkspaceId
clearWorkspaceId
setWorkspaceId
The ID of the workspace.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\DevTools\Source\V1\CloudWorkspaceId
|
Returns | |
---|---|
Type | Description |
$this |
getSnapshotId
The ID of the snapshot.
An empty snapshot_id refers to the most recent snapshot.
Returns | |
---|---|
Type | Description |
string |
setSnapshotId
The ID of the snapshot.
An empty snapshot_id refers to the most recent snapshot.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |