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, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public int getAdultValue()
Likelihood of adult content.
.google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
getAdultValue
in interface SafeSearchAnnotationOrBuilder
public Likelihood getAdult()
Likelihood of adult content.
.google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
getAdult
in interface SafeSearchAnnotationOrBuilder
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 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 int getMedicalValue()
Likelihood of medical content.
.google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
getMedicalValue
in interface SafeSearchAnnotationOrBuilder
public Likelihood getMedical()
Likelihood of medical content.
.google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
getMedical
in interface SafeSearchAnnotationOrBuilder
public int getViolentValue()
Likelihood of violent content.
.google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
getViolentValue
in interface SafeSearchAnnotationOrBuilder
public Likelihood getViolent()
Likelihood of violent content.
.google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
getViolent
in interface SafeSearchAnnotationOrBuilder
public int getRacyValue()
Likelihood of racy content.
.google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
getRacyValue
in interface SafeSearchAnnotationOrBuilder
public Likelihood getRacy()
Likelihood of racy content.
.google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
getRacy
in interface SafeSearchAnnotationOrBuilder
public long getTimeOffset()
Video time offset in microseconds.
int64 time_offset = 6;
getTimeOffset
in interface SafeSearchAnnotationOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static SafeSearchAnnotation parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SafeSearchAnnotation parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SafeSearchAnnotation parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SafeSearchAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SafeSearchAnnotation parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SafeSearchAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SafeSearchAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static SafeSearchAnnotation parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static SafeSearchAnnotation parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static SafeSearchAnnotation parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static SafeSearchAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public SafeSearchAnnotation.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static SafeSearchAnnotation.Builder newBuilder()
public static SafeSearchAnnotation.Builder newBuilder(SafeSearchAnnotation prototype)
public SafeSearchAnnotation.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected SafeSearchAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static SafeSearchAnnotation getDefaultInstance()
public static Parser<SafeSearchAnnotation> parser()
public Parser<SafeSearchAnnotation> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public SafeSearchAnnotation getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder