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.v1p2beta1.SafeSearchAnnotation
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>
public SafeSearchAnnotation.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>
public SafeSearchAnnotation getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SafeSearchAnnotation build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SafeSearchAnnotation buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SafeSearchAnnotation.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>
public SafeSearchAnnotation.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>
public SafeSearchAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>
public SafeSearchAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>
public SafeSearchAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>
public SafeSearchAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>
public SafeSearchAnnotation.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SafeSearchAnnotation.Builder>
public SafeSearchAnnotation.Builder mergeFrom(SafeSearchAnnotation other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>
public SafeSearchAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SafeSearchAnnotation.Builder>
java.io.IOException
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.v1p2beta1.Likelihood adult = 1;
getAdultValue
in interface SafeSearchAnnotationOrBuilder
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.v1p2beta1.Likelihood adult = 1;
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.v1p2beta1.Likelihood adult = 1;
getAdult
in interface SafeSearchAnnotationOrBuilder
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.v1p2beta1.Likelihood adult = 1;
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.v1p2beta1.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.v1p2beta1.Likelihood spoof = 2;
getSpoofValue
in interface SafeSearchAnnotationOrBuilder
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.v1p2beta1.Likelihood spoof = 2;
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.v1p2beta1.Likelihood spoof = 2;
getSpoof
in interface SafeSearchAnnotationOrBuilder
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.v1p2beta1.Likelihood spoof = 2;
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.v1p2beta1.Likelihood spoof = 2;
public int getMedicalValue()
Likelihood that this is a medical image.
.google.cloud.vision.v1p2beta1.Likelihood medical = 3;
getMedicalValue
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setMedicalValue(int value)
Likelihood that this is a medical image.
.google.cloud.vision.v1p2beta1.Likelihood medical = 3;
public Likelihood getMedical()
Likelihood that this is a medical image.
.google.cloud.vision.v1p2beta1.Likelihood medical = 3;
getMedical
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setMedical(Likelihood value)
Likelihood that this is a medical image.
.google.cloud.vision.v1p2beta1.Likelihood medical = 3;
public SafeSearchAnnotation.Builder clearMedical()
Likelihood that this is a medical image.
.google.cloud.vision.v1p2beta1.Likelihood medical = 3;
public int getViolenceValue()
Likelihood that this image contains violent content.
.google.cloud.vision.v1p2beta1.Likelihood violence = 4;
getViolenceValue
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setViolenceValue(int value)
Likelihood that this image contains violent content.
.google.cloud.vision.v1p2beta1.Likelihood violence = 4;
public Likelihood getViolence()
Likelihood that this image contains violent content.
.google.cloud.vision.v1p2beta1.Likelihood violence = 4;
getViolence
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setViolence(Likelihood value)
Likelihood that this image contains violent content.
.google.cloud.vision.v1p2beta1.Likelihood violence = 4;
public SafeSearchAnnotation.Builder clearViolence()
Likelihood that this image contains violent content.
.google.cloud.vision.v1p2beta1.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.v1p2beta1.Likelihood racy = 9;
getRacyValue
in interface SafeSearchAnnotationOrBuilder
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.v1p2beta1.Likelihood racy = 9;
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.v1p2beta1.Likelihood racy = 9;
getRacy
in interface SafeSearchAnnotationOrBuilder
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.v1p2beta1.Likelihood racy = 9;
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.v1p2beta1.Likelihood racy = 9;
public final SafeSearchAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>
public final SafeSearchAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder>