aliases = $aliases; } /** * @return string[] */ public function getAliases() { return $this->aliases; } /** * Allowing [CORS](https://en.wikipedia.org/wiki/Cross- * origin_resource_sharing), aka cross-domain traffic, would allow the * backends served from this endpoint to receive and respond to HTTP OPTIONS * requests. The response will be used by the browser to determine whether the * subsequent cross-origin request is allowed to proceed. * * @param bool $allowCors */ public function setAllowCors($allowCors) { $this->allowCors = $allowCors; } /** * @return bool */ public function getAllowCors() { return $this->allowCors; } /** * The canonical name of this endpoint. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * The specification of an Internet routable address of API frontend that will * handle requests to this [API * Endpoint](https://cloud.google.com/apis/design/glossary). It should be * either a valid IPv4 address or a fully-qualified domain name. For example, * "8.8.8.8" or "myservice.appspot.com". * * @param string $target */ public function setTarget($target) { $this->target = $target; } /** * @return string */ public function getTarget() { return $this->target; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Endpoint::class, 'Google_Service_ServiceUsage_Endpoint');