labels = $labels; } /** * @return string[] */ public function getLabels() { return $this->labels; } /** * Required. The monitored resource type. This field must match the type field * of a MonitoredResourceDescriptor object. For example, the type of a Compute * Engine VM instance is gce_instance. Some descriptors include the service * name in the type; for example, the type of a Datastream stream is * datastream.googleapis.com/Stream. * * @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(MonitoredResource::class, 'Google_Service_Logging_MonitoredResource');