Class SafeSearchAnnotation.Builder (2.1.4)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SafeSearchAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SafeSearchAnnotation.Builder
Overrides

build()

public SafeSearchAnnotation build()
Returns
TypeDescription
SafeSearchAnnotation

buildPartial()

public SafeSearchAnnotation buildPartial()
Returns
TypeDescription
SafeSearchAnnotation

clear()

public SafeSearchAnnotation.Builder clear()
Returns
TypeDescription
SafeSearchAnnotation.Builder
Overrides

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;

Returns
TypeDescription
SafeSearchAnnotation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SafeSearchAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SafeSearchAnnotation.Builder
Overrides