customConstraint = $customConstraint; } /** * @return GoogleCloudOrgpolicyV2CustomConstraint */ public function getCustomConstraint() { return $this->customConstraint; } /** * @param GoogleRpcStatus */ public function setError(GoogleRpcStatus $error) { $this->error = $error; } /** * @return GoogleRpcStatus */ public function getError() { return $this->error; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param GoogleCloudPolicysimulatorV1ResourceContext */ public function setResource(GoogleCloudPolicysimulatorV1ResourceContext $resource) { $this->resource = $resource; } /** * @return GoogleCloudPolicysimulatorV1ResourceContext */ public function getResource() { return $this->resource; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudPolicysimulatorV1OrgPolicyViolation::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1OrgPolicyViolation');