google.cloud.location.Location */ class Location extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message { /** * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` * * Generated from protobuf field string name = 1; */ protected $name = ''; /** * The canonical id for this location. For example: `"us-east1"`. * * Generated from protobuf field string location_id = 4; */ protected $location_id = ''; /** * The friendly name for this location, typically a nearby city name. * For example, "Tokyo". * * Generated from protobuf field string display_name = 5; */ protected $display_name = ''; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} * * Generated from protobuf field map labels = 2; */ private $labels; /** * Service-specific metadata. For example the available capacity at the given * location. * * Generated from protobuf field .google.protobuf.Any metadata = 3; */ protected $metadata = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` * @type string $location_id * The canonical id for this location. For example: `"us-east1"`. * @type string $display_name * The friendly name for this location, typically a nearby city name. * For example, "Tokyo". * @type array|\Google\Protobuf\Internal\MapField $labels * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} * @type \Google\Protobuf\Any $metadata * Service-specific metadata. For example the available capacity at the given * location. * } */ public function __construct($data = NULL) { \DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Cloud\Location\Locations::initOnce(); parent::__construct($data); } /** * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The canonical id for this location. For example: `"us-east1"`. * * Generated from protobuf field string location_id = 4; * @return string */ public function getLocationId() { return $this->location_id; } /** * The canonical id for this location. For example: `"us-east1"`. * * Generated from protobuf field string location_id = 4; * @param string $var * @return $this */ public function setLocationId($var) { GPBUtil::checkString($var, True); $this->location_id = $var; return $this; } /** * The friendly name for this location, typically a nearby city name. * For example, "Tokyo". * * Generated from protobuf field string display_name = 5; * @return string */ public function getDisplayName() { return $this->display_name; } /** * The friendly name for this location, typically a nearby city name. * For example, "Tokyo". * * Generated from protobuf field string display_name = 5; * @param string $var * @return $this */ public function setDisplayName($var) { GPBUtil::checkString($var, True); $this->display_name = $var; return $this; } /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} * * Generated from protobuf field map labels = 2; * @return \Google\Protobuf\Internal\MapField */ public function getLabels() { return $this->labels; } /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} * * Generated from protobuf field map labels = 2; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setLabels($var) { $arr = GPBUtil::checkMapField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING); $this->labels = $arr; return $this; } /** * Service-specific metadata. For example the available capacity at the given * location. * * Generated from protobuf field .google.protobuf.Any metadata = 3; * @return \Google\Protobuf\Any|null */ public function getMetadata() { return $this->metadata; } public function hasMetadata() { return isset($this->metadata); } public function clearMetadata() { unset($this->metadata); } /** * Service-specific metadata. For example the available capacity at the given * location. * * Generated from protobuf field .google.protobuf.Any metadata = 3; * @param \Google\Protobuf\Any $var * @return $this */ public function setMetadata($var) { GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Any::class); $this->metadata = $var; return $this; } }