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

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
NameDescription
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
TypeDescription
Google\Cloud\DevTools\Source\V1\CloudWorkspaceId|null

hasWorkspaceId

clearWorkspaceId

setWorkspaceId

The ID of the workspace.

Parameter
NameDescription
var Google\Cloud\DevTools\Source\V1\CloudWorkspaceId
Returns
TypeDescription
$this

getSnapshotId

The ID of the snapshot.

An empty snapshot_id refers to the most recent snapshot.

Returns
TypeDescription
string

setSnapshotId

The ID of the snapshot.

An empty snapshot_id refers to the most recent snapshot.

Parameter
NameDescription
var string
Returns
TypeDescription
$this