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.v1p3beta1.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.v1p3beta1.Likelihood adult = 1;
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 |