# Cloud Vision V1 API - Class Google::Cloud::Vision::V1::SafeSearchAnnotation (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.1 1.2.1 1.1.0 1.0.1 0.15.0 0.14.0 0.13.2 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.4 Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::SafeSearchAnnotation.

Set of features pertaining to the image, computed by computer vision
methods over safe-search verticals (for example, adult, spoof, medical,
violence).

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #adult

    def adult() -> ::Google::Cloud::Vision::V1::Likelihood

**Returns**

- ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities.

### #adult=

    def adult=(value) -> ::Google::Cloud::Vision::V1::Likelihood

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities.
**Returns**

- ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities.

### #medical

    def medical() -> ::Google::Cloud::Vision::V1::Likelihood

**Returns**

- ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Likelihood that this is a medical image.

### #medical=

    def medical=(value) -> ::Google::Cloud::Vision::V1::Likelihood

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Likelihood that this is a medical image.
**Returns**

- ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Likelihood that this is a medical image.

### #racy

    def racy() -> ::Google::Cloud::Vision::V1::Likelihood

**Returns**

- ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Likelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas.

### #racy=

    def racy=(value) -> ::Google::Cloud::Vision::V1::Likelihood

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Likelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas.
**Returns**

- ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Likelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas.

### #spoof

    def spoof() -> ::Google::Cloud::Vision::V1::Likelihood

**Returns**

- ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.

### #spoof=

    def spoof=(value) -> ::Google::Cloud::Vision::V1::Likelihood

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.
**Returns**

- ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.

### #violence

    def violence() -> ::Google::Cloud::Vision::V1::Likelihood

**Returns**

- ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Likelihood that this image contains violent content. Violent content may include death, serious harm, or injury to individuals or groups of individuals.

### #violence=

    def violence=(value) -> ::Google::Cloud::Vision::V1::Likelihood

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Likelihood that this image contains violent content. Violent content may include death, serious harm, or injury to individuals or groups of individuals.
**Returns**

- ([::Google::Cloud::Vision::V1::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Likelihood)) --- Likelihood that this image contains violent content. Violent content may include death, serious harm, or injury to individuals or groups of individuals.