description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, * without any article or other determiners. For example, `"Google Cloud SQL * Database"`. * * @param string $displayName */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is * identified by values for the labels `"database_id"` and `"zone"`. * * @param LabelDescriptor[] $labels */ public function setLabels($labels) { $this->labels = $labels; } /** * @return LabelDescriptor[] */ public function getLabels() { return $this->labels; } /** * Optional. The launch stage of the monitored resource definition. * * Accepted values: LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH, * EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED * * @param self::LAUNCH_STAGE_* $launchStage */ public function setLaunchStage($launchStage) { $this->launchStage = $launchStage; } /** * @return self::LAUNCH_STAGE_* */ public function getLaunchStage() { return $this->launchStage; } /** * Optional. The resource name of the monitored resource descriptor: * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where {type} * is the value of the `type` field in this object and {project_id} is a * project ID that provides API-specific context for accessing the type. APIs * that do not use project information can use the resource name format * `"monitoredResourceDescriptors/{type}"`. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * Required. The monitored resource type. For example, the type * `"cloudsql_database"` represents databases in Google Cloud SQL. For a list * of types, see [Monitored resource * types](https://cloud.google.com/monitoring/api/resources) and [Logging * resource types](https://cloud.google.com/logging/docs/api/v2/resource- * list). * * @param string $type */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(MonitoredResourceDescriptor::class, 'Google_Service_ServiceUsage_MonitoredResourceDescriptor');