environment = $environment; } /** * @return Environment */ public function getEnvironment() { return $this->environment; } /** * Output only. Unique id set by the service. * * @param string $id */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * Output only. Id of the containing TestMatrix. * * @param string $matrixId */ public function setMatrixId($matrixId) { $this->matrixId = $matrixId; } /** * @return string */ public function getMatrixId() { return $this->matrixId; } /** * Output only. The cloud project that owns the test execution. * * @param string $projectId */ public function setProjectId($projectId) { $this->projectId = $projectId; } /** * @return string */ public function getProjectId() { return $this->projectId; } /** * Output only. Details about the shard. * * @param Shard $shard */ public function setShard(Shard $shard) { $this->shard = $shard; } /** * @return Shard */ public function getShard() { return $this->shard; } /** * Output only. Indicates the current progress of the test execution (e.g., * FINISHED). * * Accepted values: TEST_STATE_UNSPECIFIED, VALIDATING, PENDING, RUNNING, * FINISHED, ERROR, UNSUPPORTED_ENVIRONMENT, INCOMPATIBLE_ENVIRONMENT, * INCOMPATIBLE_ARCHITECTURE, CANCELLED, INVALID * * @param self::STATE_* $state */ public function setState($state) { $this->state = $state; } /** * @return self::STATE_* */ public function getState() { return $this->state; } /** * Output only. Additional details about the running test. * * @param TestDetails $testDetails */ public function setTestDetails(TestDetails $testDetails) { $this->testDetails = $testDetails; } /** * @return TestDetails */ public function getTestDetails() { return $this->testDetails; } /** * Output only. How to run the test. * * @param TestSpecification $testSpecification */ public function setTestSpecification(TestSpecification $testSpecification) { $this->testSpecification = $testSpecification; } /** * @return TestSpecification */ public function getTestSpecification() { return $this->testSpecification; } /** * Output only. The time this test execution was initially created. * * @param string $timestamp */ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; } /** * @return string */ public function getTimestamp() { return $this->timestamp; } /** * Output only. Where the results for this execution are written. * * @param ToolResultsStep $toolResultsStep */ public function setToolResultsStep(ToolResultsStep $toolResultsStep) { $this->toolResultsStep = $toolResultsStep; } /** * @return ToolResultsStep */ public function getToolResultsStep() { return $this->toolResultsStep; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(TestExecution::class, 'Google_Service_Testing_TestExecution');