rules = $rules; } /** * @return CustomErrorRule[] */ public function getRules() { return $this->rules; } /** * The list of custom error detail types, e.g. 'google.foo.v1.CustomError'. * * @param string[] $types */ 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_ServiceUsage_CustomError');