public final class SafeSearchAnnotation extends GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
SafeSearchAnnotation.Builder
Safe search annotation (based on per-frame visual signals only).
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ADULT_FIELD_NUMBER |
static int |
MEDICAL_FIELD_NUMBER |
static int |
RACY_FIELD_NUMBER |
static int |
SPOOF_FIELD_NUMBER |
static int |
TIME_OFFSET_FIELD_NUMBER |
static int |
VIOLENT_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int ADULT_FIELD_NUMBER
public static final int SPOOF_FIELD_NUMBER
public static final int MEDICAL_FIELD_NUMBER
public static final int VIOLENT_FIELD_NUMBER
public static final int RACY_FIELD_NUMBER
public static final int TIME_OFFSET_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public int getAdultValue()
Likelihood of adult content.
.google.cloud.videointelligence.v1beta1.Likelihood adult = 1;getAdultValue in interface SafeSearchAnnotationOrBuilderpublic Likelihood getAdult()
Likelihood of adult content.
.google.cloud.videointelligence.v1beta1.Likelihood adult = 1;getAdult in interface SafeSearchAnnotationOrBuilderpublic 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 SafeSearchAnnotationOrBuilderpublic 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 SafeSearchAnnotationOrBuilderpublic int getMedicalValue()
Likelihood of medical content.
.google.cloud.videointelligence.v1beta1.Likelihood medical = 3;getMedicalValue in interface SafeSearchAnnotationOrBuilderpublic Likelihood getMedical()
Likelihood of medical content.
.google.cloud.videointelligence.v1beta1.Likelihood medical = 3;getMedical in interface SafeSearchAnnotationOrBuilderpublic int getViolentValue()
Likelihood of violent content.
.google.cloud.videointelligence.v1beta1.Likelihood violent = 4;getViolentValue in interface SafeSearchAnnotationOrBuilderpublic Likelihood getViolent()
Likelihood of violent content.
.google.cloud.videointelligence.v1beta1.Likelihood violent = 4;getViolent in interface SafeSearchAnnotationOrBuilderpublic int getRacyValue()
Likelihood of racy content.
.google.cloud.videointelligence.v1beta1.Likelihood racy = 5;getRacyValue in interface SafeSearchAnnotationOrBuilderpublic Likelihood getRacy()
Likelihood of racy content.
.google.cloud.videointelligence.v1beta1.Likelihood racy = 5;getRacy in interface SafeSearchAnnotationOrBuilderpublic long getTimeOffset()
Video time offset in microseconds.
int64 time_offset = 6;getTimeOffset in interface SafeSearchAnnotationOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static SafeSearchAnnotation parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SafeSearchAnnotation parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SafeSearchAnnotation parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SafeSearchAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SafeSearchAnnotation parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SafeSearchAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SafeSearchAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SafeSearchAnnotation parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SafeSearchAnnotation parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SafeSearchAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic SafeSearchAnnotation.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static SafeSearchAnnotation.Builder newBuilder()
public static SafeSearchAnnotation.Builder newBuilder(SafeSearchAnnotation prototype)
public SafeSearchAnnotation.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected SafeSearchAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static SafeSearchAnnotation getDefaultInstance()
public static Parser<SafeSearchAnnotation> parser()
public Parser<SafeSearchAnnotation> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public SafeSearchAnnotation getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder