domain = $domain; } /** * @return string */ public function getDomain() { return $this->domain; } /** * Additional structured details about this error. * * Keys must match a regular expression of `a-z+` but should ideally be * lowerCamelCase. Also, they must be limited to 64 characters in length. When * identifying the current value of an exceeded limit, the units should be * contained in the key, not the value. For example, rather than * `{"instanceLimit": "100/request"}`, should be returned as, * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of * instances that can be created in a single (batch) request. * * @param string[] $metadatas */ public function setMetadatas($metadatas) { $this->metadatas = $metadatas; } /** * @return string[] */ public function getMetadatas() { return $this->metadatas; } /** * The reason of the error. This is a constant value that identifies the * proximate cause of the error. Error reasons are unique within a particular * domain of errors. This should be at most 63 characters and match a regular * expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. * * @param string $reason */ public function setReason($reason) { $this->reason = $reason; } /** * @return string */ public function getReason() { return $this->reason; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ErrorInfo::class, 'Google_Service_Compute_ErrorInfo');