Common Protos for Google Cloud APIs V1 Client - Class CloudWorkspaceSourceContext (0.6.0)

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

Namespace

Google \ Cloud \ DevTools \ Source \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ workspace_id 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
CloudWorkspaceId|null

hasWorkspaceId

clearWorkspaceId

setWorkspaceId

The ID of the workspace.

Parameter
Name Description
var 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