region = $region; } /** * @return string */ public function getRegion() { return $this->region; } /** * When used for locality of upstream hosts, this field further splits zone * into smaller chunks of sub-zones so they can be load balanced * independently. * * @param string $subZone */ public function setSubZone($subZone) { $this->subZone = $subZone; } /** * @return string */ public function getSubZone() { return $this->subZone; } /** * Defines the local service zone where Envoy is running. Though optional, it * should be set if discovery service routing is used and the discovery * service exposes :ref:`zone data `, either in this message or via * :option:`--service-zone`. The meaning of zone is context dependent, e.g. * `Availability Zone (AZ) `_ on AWS, `Zone `_ on GCP, etc. * * @param string $zone */ public function setZone($zone) { $this->zone = $zone; } /** * @return string */ public function getZone() { return $this->zone; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Locality::class, 'Google_Service_TrafficDirectorService_Locality');