- 3.51.0 (latest)
- 3.50.0
- 3.49.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.3
- 2.1.4
- 2.0.29
public static final class SafeSearchAnnotation.Builder extends GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder> implements SafeSearchAnnotationOrBuilder
Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).
Protobuf type google.cloud.vision.v1.SafeSearchAnnotation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SafeSearchAnnotation.BuilderImplements
SafeSearchAnnotationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SafeSearchAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SafeSearchAnnotation.Builder |
build()
public SafeSearchAnnotation build()
Type | Description |
SafeSearchAnnotation |
buildPartial()
public SafeSearchAnnotation buildPartial()
Type | Description |
SafeSearchAnnotation |
clear()
public SafeSearchAnnotation.Builder clear()
Type | Description |
SafeSearchAnnotation.Builder |
clearAdult()
public SafeSearchAnnotation.Builder clearAdult()
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;
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
clearAdultConfidence() (deprecated)
public SafeSearchAnnotation.Builder clearAdultConfidence()
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];
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public SafeSearchAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
SafeSearchAnnotation.Builder |
clearMedical()
public SafeSearchAnnotation.Builder clearMedical()
Likelihood that this is a medical image.
.google.cloud.vision.v1.Likelihood medical = 3;
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
clearMedicalConfidence() (deprecated)
public SafeSearchAnnotation.Builder clearMedicalConfidence()
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];
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
clearNsfwConfidence() (deprecated)
public SafeSearchAnnotation.Builder clearNsfwConfidence()
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];
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SafeSearchAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
SafeSearchAnnotation.Builder |
clearRacy()
public SafeSearchAnnotation.Builder clearRacy()
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;
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
clearRacyConfidence() (deprecated)
public SafeSearchAnnotation.Builder clearRacyConfidence()
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];
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
clearSpoof()
public SafeSearchAnnotation.Builder clearSpoof()
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;
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
clearSpoofConfidence() (deprecated)
public SafeSearchAnnotation.Builder clearSpoofConfidence()
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];
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
clearViolence()
public SafeSearchAnnotation.Builder clearViolence()
Likelihood that this image contains violent content.
.google.cloud.vision.v1.Likelihood violence = 4;
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
clearViolenceConfidence() (deprecated)
public SafeSearchAnnotation.Builder clearViolenceConfidence()
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];
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
clone()
public SafeSearchAnnotation.Builder clone()
Type | Description |
SafeSearchAnnotation.Builder |
getAdult()
public 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;
Type | Description |
Likelihood | The adult. |
getAdultConfidence() (deprecated)
public 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];
Type | Description |
float | The adultConfidence. |
getAdultValue()
public 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;
Type | Description |
int | The enum numeric value on the wire for adult. |
getDefaultInstanceForType()
public SafeSearchAnnotation getDefaultInstanceForType()
Type | Description |
SafeSearchAnnotation |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMedical()
public Likelihood getMedical()
Likelihood that this is a medical image.
.google.cloud.vision.v1.Likelihood medical = 3;
Type | Description |
Likelihood | The medical. |
getMedicalConfidence() (deprecated)
public 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];
Type | Description |
float | The medicalConfidence. |
getMedicalValue()
public int getMedicalValue()
Likelihood that this is a medical image.
.google.cloud.vision.v1.Likelihood medical = 3;
Type | Description |
int | The enum numeric value on the wire for medical. |
getNsfwConfidence() (deprecated)
public 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];
Type | Description |
float | The nsfwConfidence. |
getRacy()
public 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;
Type | Description |
Likelihood | The racy. |
getRacyConfidence() (deprecated)
public 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];
Type | Description |
float | The racyConfidence. |
getRacyValue()
public 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;
Type | Description |
int | The enum numeric value on the wire for racy. |
getSpoof()
public 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;
Type | Description |
Likelihood | The spoof. |
getSpoofConfidence() (deprecated)
public 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];
Type | Description |
float | The spoofConfidence. |
getSpoofValue()
public 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;
Type | Description |
int | The enum numeric value on the wire for spoof. |
getViolence()
public Likelihood getViolence()
Likelihood that this image contains violent content.
.google.cloud.vision.v1.Likelihood violence = 4;
Type | Description |
Likelihood | The violence. |
getViolenceConfidence() (deprecated)
public 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];
Type | Description |
float | The violenceConfidence. |
getViolenceValue()
public int getViolenceValue()
Likelihood that this image contains violent content.
.google.cloud.vision.v1.Likelihood violence = 4;
Type | Description |
int | The enum numeric value on the wire for violence. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(SafeSearchAnnotation other)
public SafeSearchAnnotation.Builder mergeFrom(SafeSearchAnnotation other)
Name | Description |
other | SafeSearchAnnotation |
Type | Description |
SafeSearchAnnotation.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SafeSearchAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SafeSearchAnnotation.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SafeSearchAnnotation.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
SafeSearchAnnotation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SafeSearchAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SafeSearchAnnotation.Builder |
setAdult(Likelihood value)
public SafeSearchAnnotation.Builder setAdult(Likelihood value)
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;
Name | Description |
value | Likelihood The adult to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setAdultConfidence(float value) (deprecated)
public SafeSearchAnnotation.Builder setAdultConfidence(float value)
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];
Name | Description |
value | float The adultConfidence to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setAdultValue(int value)
public SafeSearchAnnotation.Builder setAdultValue(int value)
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;
Name | Description |
value | int The enum numeric value on the wire for adult to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public SafeSearchAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SafeSearchAnnotation.Builder |
setMedical(Likelihood value)
public SafeSearchAnnotation.Builder setMedical(Likelihood value)
Likelihood that this is a medical image.
.google.cloud.vision.v1.Likelihood medical = 3;
Name | Description |
value | Likelihood The medical to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setMedicalConfidence(float value) (deprecated)
public SafeSearchAnnotation.Builder setMedicalConfidence(float value)
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];
Name | Description |
value | float The medicalConfidence to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setMedicalValue(int value)
public SafeSearchAnnotation.Builder setMedicalValue(int value)
Likelihood that this is a medical image.
.google.cloud.vision.v1.Likelihood medical = 3;
Name | Description |
value | int The enum numeric value on the wire for medical to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setNsfwConfidence(float value) (deprecated)
public SafeSearchAnnotation.Builder setNsfwConfidence(float value)
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];
Name | Description |
value | float The nsfwConfidence to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setRacy(Likelihood value)
public SafeSearchAnnotation.Builder setRacy(Likelihood value)
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;
Name | Description |
value | Likelihood The racy to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setRacyConfidence(float value) (deprecated)
public SafeSearchAnnotation.Builder setRacyConfidence(float value)
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];
Name | Description |
value | float The racyConfidence to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setRacyValue(int value)
public SafeSearchAnnotation.Builder setRacyValue(int value)
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;
Name | Description |
value | int The enum numeric value on the wire for racy to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SafeSearchAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
SafeSearchAnnotation.Builder |
setSpoof(Likelihood value)
public SafeSearchAnnotation.Builder setSpoof(Likelihood value)
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;
Name | Description |
value | Likelihood The spoof to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setSpoofConfidence(float value) (deprecated)
public SafeSearchAnnotation.Builder setSpoofConfidence(float value)
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];
Name | Description |
value | float The spoofConfidence to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setSpoofValue(int value)
public SafeSearchAnnotation.Builder setSpoofValue(int value)
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;
Name | Description |
value | int The enum numeric value on the wire for spoof to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SafeSearchAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SafeSearchAnnotation.Builder |
setViolence(Likelihood value)
public SafeSearchAnnotation.Builder setViolence(Likelihood value)
Likelihood that this image contains violent content.
.google.cloud.vision.v1.Likelihood violence = 4;
Name | Description |
value | Likelihood The violence to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setViolenceConfidence(float value) (deprecated)
public SafeSearchAnnotation.Builder setViolenceConfidence(float value)
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];
Name | Description |
value | float The violenceConfidence to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |
setViolenceValue(int value)
public SafeSearchAnnotation.Builder setViolenceValue(int value)
Likelihood that this image contains violent content.
.google.cloud.vision.v1.Likelihood violence = 4;
Name | Description |
value | int The enum numeric value on the wire for violence to set. |
Type | Description |
SafeSearchAnnotation.Builder | This builder for chaining. |