class CloudWorkspaceSourceContext extends Message

A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.

Generated from protobuf message google.devtools.source.v1.CloudWorkspaceSourceContext

Methods

__construct(array $data = NULL)

Constructor.

getWorkspaceId()

The ID of the workspace.

$this
setWorkspaceId(CloudWorkspaceId $var)

The ID of the workspace.

string
getSnapshotId()

The ID of the snapshot.

$this
setSnapshotId(string $var)

The ID of the snapshot.

Details

at line 45
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type \Google\Cloud\DevTools\Source\V1\CloudWorkspaceId $workspace_id
      The ID of the workspace.
@type string $snapshot_id
      The ID of the snapshot.
      An empty snapshot_id refers to the most recent snapshot.

}

at line 56
CloudWorkspaceId getWorkspaceId()

The ID of the workspace.

Generated from protobuf field .google.devtools.source.v1.CloudWorkspaceId workspace_id = 1;

Return Value

CloudWorkspaceId

at line 68
$this setWorkspaceId(CloudWorkspaceId $var)

The ID of the workspace.

Generated from protobuf field .google.devtools.source.v1.CloudWorkspaceId workspace_id = 1;

Parameters

CloudWorkspaceId $var

Return Value

$this

at line 83
string getSnapshotId()

The ID of the snapshot.

An empty snapshot_id refers to the most recent snapshot.

Generated from protobuf field string snapshot_id = 2;

Return Value

string

at line 96
$this setSnapshotId(string $var)

The ID of the snapshot.

An empty snapshot_id refers to the most recent snapshot.

Generated from protobuf field string snapshot_id = 2;

Parameters

string $var

Return Value

$this