Interface SafeSearchAnnotationOrBuilder (2.1.4)

public interface SafeSearchAnnotationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAdult()

public abstract Likelihood getAdult()

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
TypeDescription
Likelihood

The adult.

getAdultConfidence() (deprecated)

public abstract float getAdultConfidence()

Deprecated. google.cloud.vision.v1.SafeSearchAnnotation.adult_confidence is deprecated. See google/cloud/vision/v1/image_annotator.proto;l=582

Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means very confident.

float adult_confidence = 16 [deprecated = true];

Returns
TypeDescription
float

The adultConfidence.

getAdultValue()

public abstract int getAdultValue()

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
TypeDescription
int

The enum numeric value on the wire for adult.

getMedical()

public abstract Likelihood getMedical()

Likelihood that this is a medical image.

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

Returns
TypeDescription
Likelihood

The medical.

getMedicalConfidence() (deprecated)

public abstract float getMedicalConfidence()

Deprecated. google.cloud.vision.v1.SafeSearchAnnotation.medical_confidence is deprecated. See google/cloud/vision/v1/image_annotator.proto;l=590

Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means very confident.

float medical_confidence = 20 [deprecated = true];

Returns
TypeDescription
float

The medicalConfidence.

getMedicalValue()

public abstract int getMedicalValue()

Likelihood that this is a medical image.

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

Returns
TypeDescription
int

The enum numeric value on the wire for medical.

getNsfwConfidence() (deprecated)

public abstract float getNsfwConfidence()

Deprecated. google.cloud.vision.v1.SafeSearchAnnotation.nsfw_confidence is deprecated. See google/cloud/vision/v1/image_annotator.proto;l=602

Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very confident.

float nsfw_confidence = 26 [deprecated = true];

Returns
TypeDescription
float

The nsfwConfidence.

getRacy()

public abstract Likelihood getRacy()

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
TypeDescription
Likelihood

The racy.

getRacyConfidence() (deprecated)

public abstract float getRacyConfidence()

Deprecated. google.cloud.vision.v1.SafeSearchAnnotation.racy_confidence is deprecated. See google/cloud/vision/v1/image_annotator.proto;l=598

Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very confident.

float racy_confidence = 24 [deprecated = true];

Returns
TypeDescription
float

The racyConfidence.

getRacyValue()

public abstract int getRacyValue()

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
TypeDescription
int

The enum numeric value on the wire for racy.

getSpoof()

public abstract Likelihood getSpoof()

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
TypeDescription
Likelihood

The spoof.

getSpoofConfidence() (deprecated)

public abstract float getSpoofConfidence()

Deprecated. google.cloud.vision.v1.SafeSearchAnnotation.spoof_confidence is deprecated. See google/cloud/vision/v1/image_annotator.proto;l=586

Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means very confident.

float spoof_confidence = 18 [deprecated = true];

Returns
TypeDescription
float

The spoofConfidence.

getSpoofValue()

public abstract int getSpoofValue()

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
TypeDescription
int

The enum numeric value on the wire for spoof.

getViolence()

public abstract Likelihood getViolence()

Likelihood that this image contains violent content.

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

Returns
TypeDescription
Likelihood

The violence.

getViolenceConfidence() (deprecated)

public abstract float getViolenceConfidence()

Deprecated. google.cloud.vision.v1.SafeSearchAnnotation.violence_confidence is deprecated. See google/cloud/vision/v1/image_annotator.proto;l=594

Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means very confident.

float violence_confidence = 22 [deprecated = true];

Returns
TypeDescription
float

The violenceConfidence.

getViolenceValue()

public abstract int getViolenceValue()

Likelihood that this image contains violent content.

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

Returns
TypeDescription
int

The enum numeric value on the wire for violence.