resourceType = $resourceType; } /** * @return string */ public function getResourceType() { return $this->resourceType; } /** * An identifier of the service, such as the name of the executable, job, or * Google App Engine service name. This field is expected to have a low number * of values that are relatively stable over time, as opposed to `version`, * which can be changed whenever new code is deployed. Contains the service * name for error reports extracted from Google App Engine logs or `default` * if the App Engine default service is used. * * @param string $service */ public function setService($service) { $this->service = $service; } /** * @return string */ public function getService() { return $this->service; } /** * Represents the source code version that the developer provided, which could * represent a version label or a Git SHA-1 hash, for example. For App Engine * standard environment, the version is set to the version of the app. * * @param string $version */ public function setVersion($version) { $this->version = $version; } /** * @return string */ public function getVersion() { return $this->version; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ServiceContext::class, 'Google_Service_Clouderrorreporting_ServiceContext');