rules = $rules; } /** * @return CustomErrorRule[] */ public function getRules() { return $this->rules; } /** * @param string[] */ public function setTypes($types) { $this->types = $types; } /** * @return string[] */ public function getTypes() { return $this->types; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(CustomError::class, 'Google_Service_ServiceConsumerManagement_CustomError');