public static final class SafeSearchAnnotation.Builder extends com.google.protobuf.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.v1p4beta1.SafeSearchAnnotation| Modifier and Type | Method and Description |
|---|---|
SafeSearchAnnotation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SafeSearchAnnotation |
build() |
SafeSearchAnnotation |
buildPartial() |
SafeSearchAnnotation.Builder |
clear() |
SafeSearchAnnotation.Builder |
clearAdult()
Represents the adult content likelihood for the image.
|
SafeSearchAnnotation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SafeSearchAnnotation.Builder |
clearMedical()
Likelihood that this is a medical image.
|
SafeSearchAnnotation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SafeSearchAnnotation.Builder |
clearRacy()
Likelihood that the request image contains racy content.
|
SafeSearchAnnotation.Builder |
clearSpoof()
Spoof likelihood.
|
SafeSearchAnnotation.Builder |
clearViolence()
Likelihood that this image contains violent content.
|
SafeSearchAnnotation.Builder |
clone() |
Likelihood |
getAdult()
Represents the adult content likelihood for the image.
|
int |
getAdultValue()
Represents the adult content likelihood for the image.
|
SafeSearchAnnotation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Likelihood |
getMedical()
Likelihood that this is a medical image.
|
int |
getMedicalValue()
Likelihood that this is a medical image.
|
Likelihood |
getRacy()
Likelihood that the request image contains racy content.
|
int |
getRacyValue()
Likelihood that the request image contains racy content.
|
Likelihood |
getSpoof()
Spoof likelihood.
|
int |
getSpoofValue()
Spoof likelihood.
|
Likelihood |
getViolence()
Likelihood that this image contains violent content.
|
int |
getViolenceValue()
Likelihood that this image contains violent content.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SafeSearchAnnotation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SafeSearchAnnotation.Builder |
mergeFrom(com.google.protobuf.Message other) |
SafeSearchAnnotation.Builder |
mergeFrom(SafeSearchAnnotation other) |
SafeSearchAnnotation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SafeSearchAnnotation.Builder |
setAdult(Likelihood value)
Represents the adult content likelihood for the image.
|
SafeSearchAnnotation.Builder |
setAdultValue(int value)
Represents the adult content likelihood for the image.
|
SafeSearchAnnotation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SafeSearchAnnotation.Builder |
setMedical(Likelihood value)
Likelihood that this is a medical image.
|
SafeSearchAnnotation.Builder |
setMedicalValue(int value)
Likelihood that this is a medical image.
|
SafeSearchAnnotation.Builder |
setRacy(Likelihood value)
Likelihood that the request image contains racy content.
|
SafeSearchAnnotation.Builder |
setRacyValue(int value)
Likelihood that the request image contains racy content.
|
SafeSearchAnnotation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SafeSearchAnnotation.Builder |
setSpoof(Likelihood value)
Spoof likelihood.
|
SafeSearchAnnotation.Builder |
setSpoofValue(int value)
Spoof likelihood.
|
SafeSearchAnnotation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SafeSearchAnnotation.Builder |
setViolence(Likelihood value)
Likelihood that this image contains violent content.
|
SafeSearchAnnotation.Builder |
setViolenceValue(int value)
Likelihood that this image contains violent content.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>public SafeSearchAnnotation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>public SafeSearchAnnotation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SafeSearchAnnotation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SafeSearchAnnotation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SafeSearchAnnotation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>public SafeSearchAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>public SafeSearchAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>public SafeSearchAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>public SafeSearchAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>public SafeSearchAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>public SafeSearchAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SafeSearchAnnotation.Builder>public SafeSearchAnnotation.Builder mergeFrom(SafeSearchAnnotation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>public SafeSearchAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SafeSearchAnnotation.Builder>IOExceptionpublic 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.v1p4beta1.Likelihood adult = 1;getAdultValue in interface SafeSearchAnnotationOrBuilderpublic 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.v1p4beta1.Likelihood adult = 1;value - The enum numeric value on the wire for adult to set.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.v1p4beta1.Likelihood adult = 1;getAdult in interface SafeSearchAnnotationOrBuilderpublic 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.v1p4beta1.Likelihood adult = 1;value - The adult to set.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.v1p4beta1.Likelihood adult = 1;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.v1p4beta1.Likelihood spoof = 2;getSpoofValue in interface SafeSearchAnnotationOrBuilderpublic 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.v1p4beta1.Likelihood spoof = 2;value - The enum numeric value on the wire for spoof to set.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.v1p4beta1.Likelihood spoof = 2;getSpoof in interface SafeSearchAnnotationOrBuilderpublic 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.v1p4beta1.Likelihood spoof = 2;value - The spoof to set.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.v1p4beta1.Likelihood spoof = 2;public int getMedicalValue()
Likelihood that this is a medical image.
.google.cloud.vision.v1p4beta1.Likelihood medical = 3;getMedicalValue in interface SafeSearchAnnotationOrBuilderpublic SafeSearchAnnotation.Builder setMedicalValue(int value)
Likelihood that this is a medical image.
.google.cloud.vision.v1p4beta1.Likelihood medical = 3;value - The enum numeric value on the wire for medical to set.public Likelihood getMedical()
Likelihood that this is a medical image.
.google.cloud.vision.v1p4beta1.Likelihood medical = 3;getMedical in interface SafeSearchAnnotationOrBuilderpublic SafeSearchAnnotation.Builder setMedical(Likelihood value)
Likelihood that this is a medical image.
.google.cloud.vision.v1p4beta1.Likelihood medical = 3;value - The medical to set.public SafeSearchAnnotation.Builder clearMedical()
Likelihood that this is a medical image.
.google.cloud.vision.v1p4beta1.Likelihood medical = 3;public int getViolenceValue()
Likelihood that this image contains violent content.
.google.cloud.vision.v1p4beta1.Likelihood violence = 4;getViolenceValue in interface SafeSearchAnnotationOrBuilderpublic SafeSearchAnnotation.Builder setViolenceValue(int value)
Likelihood that this image contains violent content.
.google.cloud.vision.v1p4beta1.Likelihood violence = 4;value - The enum numeric value on the wire for violence to set.public Likelihood getViolence()
Likelihood that this image contains violent content.
.google.cloud.vision.v1p4beta1.Likelihood violence = 4;getViolence in interface SafeSearchAnnotationOrBuilderpublic SafeSearchAnnotation.Builder setViolence(Likelihood value)
Likelihood that this image contains violent content.
.google.cloud.vision.v1p4beta1.Likelihood violence = 4;value - The violence to set.public SafeSearchAnnotation.Builder clearViolence()
Likelihood that this image contains violent content.
.google.cloud.vision.v1p4beta1.Likelihood violence = 4;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.v1p4beta1.Likelihood racy = 9;getRacyValue in interface SafeSearchAnnotationOrBuilderpublic 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.v1p4beta1.Likelihood racy = 9;value - The enum numeric value on the wire for racy to set.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.v1p4beta1.Likelihood racy = 9;getRacy in interface SafeSearchAnnotationOrBuilderpublic 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.v1p4beta1.Likelihood racy = 9;value - The racy to set.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.v1p4beta1.Likelihood racy = 9;public final SafeSearchAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>public final SafeSearchAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>Copyright © 2020 Google LLC. All rights reserved.