google.devtools.source.v1.CloudWorkspaceSourceContext */ class CloudWorkspaceSourceContext extends \Google\Protobuf\Internal\Message { /** * The ID of the workspace. * * Generated from protobuf field .google.devtools.source.v1.CloudWorkspaceId workspace_id = 1; */ private $workspace_id = null; /** * The ID of the snapshot. * An empty snapshot_id refers to the most recent snapshot. * * Generated from protobuf field string snapshot_id = 2; */ private $snapshot_id = ''; /** * Constructor. * * @param 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. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); parent::__construct($data); } /** * The ID of the workspace. * * Generated from protobuf field .google.devtools.source.v1.CloudWorkspaceId workspace_id = 1; * @return \Google\Cloud\DevTools\Source\V1\CloudWorkspaceId */ public function getWorkspaceId() { return $this->workspace_id; } /** * The ID of the workspace. * * Generated from protobuf field .google.devtools.source.v1.CloudWorkspaceId workspace_id = 1; * @param \Google\Cloud\DevTools\Source\V1\CloudWorkspaceId $var * @return $this */ public function setWorkspaceId($var) { GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\CloudWorkspaceId::class); $this->workspace_id = $var; return $this; } /** * The ID of the snapshot. * An empty snapshot_id refers to the most recent snapshot. * * Generated from protobuf field string snapshot_id = 2; * @return string */ public function getSnapshotId() { return $this->snapshot_id; } /** * The ID of the snapshot. * An empty snapshot_id refers to the most recent snapshot. * * Generated from protobuf field string snapshot_id = 2; * @param string $var * @return $this */ public function setSnapshotId($var) { GPBUtil::checkString($var, True); $this->snapshot_id = $var; return $this; } }