Interface SafeSearchAnnotationOrBuilder (3.78.0)

publicinterface SafeSearchAnnotationOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getAdult()

publicabstractLikelihoodgetAdult()

Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities.

.google.cloud.vision.v1.Likelihood adult = 1;

Returns
Type Description
Likelihood

The adult.

getAdultValue()

publicabstractintgetAdultValue()

Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities.

.google.cloud.vision.v1.Likelihood adult = 1;

Returns
Type Description
int

The enum numeric value on the wire for adult.

getMedical()

publicabstractLikelihoodgetMedical()

Likelihood that this is a medical image.

.google.cloud.vision.v1.Likelihood medical = 3;

Returns
Type Description
Likelihood

The medical.

getMedicalValue()

publicabstractintgetMedicalValue()

Likelihood that this is a medical image.

.google.cloud.vision.v1.Likelihood medical = 3;

Returns
Type Description
int

The enum numeric value on the wire for medical.

getRacy()

publicabstractLikelihoodgetRacy()

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.

.google.cloud.vision.v1.Likelihood racy = 9;

Returns
Type Description
Likelihood

The racy.

getRacyValue()

publicabstractintgetRacyValue()

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.

.google.cloud.vision.v1.Likelihood racy = 9;

Returns
Type Description
int

The enum numeric value on the wire for racy.

getSpoof()

publicabstractLikelihoodgetSpoof()

Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.

.google.cloud.vision.v1.Likelihood spoof = 2;

Returns
Type Description
Likelihood

The spoof.

getSpoofValue()

publicabstractintgetSpoofValue()

Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.

.google.cloud.vision.v1.Likelihood spoof = 2;

Returns
Type Description
int

The enum numeric value on the wire for spoof.

getViolence()

publicabstractLikelihoodgetViolence()

Likelihood that this image contains violent content. Violent content may include death, serious harm, or injury to individuals or groups of individuals.

.google.cloud.vision.v1.Likelihood violence = 4;

Returns
Type Description
Likelihood

The violence.

getViolenceValue()

publicabstractintgetViolenceValue()

Likelihood that this image contains violent content. Violent content may include death, serious harm, or injury to individuals or groups of individuals.

.google.cloud.vision.v1.Likelihood violence = 4;

Returns
Type Description
int

The enum numeric value on the wire for violence.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.