lastRunTime = $lastRunTime; } /** * @return string */ public function getLastRunTime() { return $this->lastRunTime; } /** * Logging query that can be executed in Logs Explorer or via Logging API. * * @param LoggingQuery $loggingQuery */ public function setLoggingQuery(LoggingQuery $loggingQuery) { $this->loggingQuery = $loggingQuery; } /** * @return LoggingQuery */ public function getLoggingQuery() { return $this->loggingQuery; } /** * Output only. Resource name of the recent query.In the format: * "projects/[PROJECT_ID]/locations/[LOCATION_ID]/recentQueries/[QUERY_ID]" * For a list of supported locations, see Supported Regions * (https://docs.cloud.google.com/logging/docs/region-support)The QUERY_ID is * a system generated alphanumeric ID. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * Analytics query that can be executed in Log Analytics. * * @param OpsAnalyticsQuery $opsAnalyticsQuery */ public function setOpsAnalyticsQuery(OpsAnalyticsQuery $opsAnalyticsQuery) { $this->opsAnalyticsQuery = $opsAnalyticsQuery; } /** * @return OpsAnalyticsQuery */ public function getOpsAnalyticsQuery() { return $this->opsAnalyticsQuery; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(RecentQuery::class, 'Google_Service_Logging_RecentQuery');