category = $category; } /** * @return self::CATEGORY_* */ public function getCategory() { return $this->category; } /** * Optional. Specify if the threshold is used for probability or severity * score. If not specified, the threshold is used for probability score. * * Accepted values: HARM_BLOCK_METHOD_UNSPECIFIED, SEVERITY, PROBABILITY * * @param self::METHOD_* $method */ public function setMethod($method) { $this->method = $method; } /** * @return self::METHOD_* */ public function getMethod() { return $this->method; } /** * The harm block threshold. * * Accepted values: HARM_BLOCK_THRESHOLD_UNSPECIFIED, BLOCK_LOW_AND_ABOVE, * BLOCK_MEDIUM_AND_ABOVE, BLOCK_ONLY_HIGH, BLOCK_NONE, OFF * * @param self::THRESHOLD_* $threshold */ public function setThreshold($threshold) { $this->threshold = $threshold; } /** * @return self::THRESHOLD_* */ public function getThreshold() { return $this->threshold; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudRetailV2SafetySetting::class, 'Google_Service_CloudRetail_GoogleCloudRetailV2SafetySetting');