public static final class SafeSearchAnnotation.Builder extends GeneratedMessageV3.Builder<SafeSearchAnnotation.Builder> implements SafeSearchAnnotationOrBuilder
Safe search annotation (based on per-frame visual signals only). If no unsafe content has been detected in a frame, no annotations are present for that frame. If only some types of unsafe content have been detected in a frame, the likelihood is set to `UNKNOWN` for all other types of unsafe content.Protobuf type
google.cloud.videointelligence.v1beta1.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()
Likelihood of adult content.
.google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
getAdultValue
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setAdultValue(int value)
Likelihood of adult content.
.google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
public Likelihood getAdult()
Likelihood of adult content.
.google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
getAdult
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setAdult(Likelihood value)
Likelihood of adult content.
.google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
public SafeSearchAnnotation.Builder clearAdult()
Likelihood of adult content.
.google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
public int getSpoofValue()
Likelihood that an obvious modification was made to the original version to make it appear funny or offensive.
.google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
getSpoofValue
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setSpoofValue(int value)
Likelihood that an obvious modification was made to the original version to make it appear funny or offensive.
.google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
public Likelihood getSpoof()
Likelihood that an obvious modification was made to the original version to make it appear funny or offensive.
.google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
getSpoof
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setSpoof(Likelihood value)
Likelihood that an obvious modification was made to the original version to make it appear funny or offensive.
.google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
public SafeSearchAnnotation.Builder clearSpoof()
Likelihood that an obvious modification was made to the original version to make it appear funny or offensive.
.google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
public int getMedicalValue()
Likelihood of medical content.
.google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
getMedicalValue
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setMedicalValue(int value)
Likelihood of medical content.
.google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
public Likelihood getMedical()
Likelihood of medical content.
.google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
getMedical
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setMedical(Likelihood value)
Likelihood of medical content.
.google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
public SafeSearchAnnotation.Builder clearMedical()
Likelihood of medical content.
.google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
public int getViolentValue()
Likelihood of violent content.
.google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
getViolentValue
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setViolentValue(int value)
Likelihood of violent content.
.google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
public Likelihood getViolent()
Likelihood of violent content.
.google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
getViolent
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setViolent(Likelihood value)
Likelihood of violent content.
.google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
public SafeSearchAnnotation.Builder clearViolent()
Likelihood of violent content.
.google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
public int getRacyValue()
Likelihood of racy content.
.google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
getRacyValue
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setRacyValue(int value)
Likelihood of racy content.
.google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
public Likelihood getRacy()
Likelihood of racy content.
.google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
getRacy
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setRacy(Likelihood value)
Likelihood of racy content.
.google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
public SafeSearchAnnotation.Builder clearRacy()
Likelihood of racy content.
.google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
public long getTimeOffset()
Video time offset in microseconds.
int64 time_offset = 6;
getTimeOffset
in interface SafeSearchAnnotationOrBuilder
public SafeSearchAnnotation.Builder setTimeOffset(long value)
Video time offset in microseconds.
int64 time_offset = 6;
public SafeSearchAnnotation.Builder clearTimeOffset()
Video time offset in microseconds.
int64 time_offset = 6;
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>