public final class SafeSearchAnnotation extends GeneratedMessageV3 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.v1p2beta1.SafeSearchAnnotation
Modifier and Type | Class and Description |
---|---|
static class |
SafeSearchAnnotation.Builder
Set of features pertaining to the image, computed by computer vision
methods over safe-search verticals (for example, adult, spoof, medical,
violence).
|
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 |
VIOLENCE_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 VIOLENCE_FIELD_NUMBER
public static final int RACY_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()
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.v1p2beta1.Likelihood adult = 1;
getAdultValue
in interface SafeSearchAnnotationOrBuilder
public Likelihood getAdult()
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.v1p2beta1.Likelihood adult = 1;
getAdult
in interface SafeSearchAnnotationOrBuilder
public int getSpoofValue()
Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.
.google.cloud.vision.v1p2beta1.Likelihood spoof = 2;
getSpoofValue
in interface SafeSearchAnnotationOrBuilder
public Likelihood getSpoof()
Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.
.google.cloud.vision.v1p2beta1.Likelihood spoof = 2;
getSpoof
in interface SafeSearchAnnotationOrBuilder
public int getMedicalValue()
Likelihood that this is a medical image.
.google.cloud.vision.v1p2beta1.Likelihood medical = 3;
getMedicalValue
in interface SafeSearchAnnotationOrBuilder
public Likelihood getMedical()
Likelihood that this is a medical image.
.google.cloud.vision.v1p2beta1.Likelihood medical = 3;
getMedical
in interface SafeSearchAnnotationOrBuilder
public int getViolenceValue()
Likelihood that this image contains violent content.
.google.cloud.vision.v1p2beta1.Likelihood violence = 4;
getViolenceValue
in interface SafeSearchAnnotationOrBuilder
public Likelihood getViolence()
Likelihood that this image contains violent content.
.google.cloud.vision.v1p2beta1.Likelihood violence = 4;
getViolence
in interface SafeSearchAnnotationOrBuilder
public int getRacyValue()
Likelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas.
.google.cloud.vision.v1p2beta1.Likelihood racy = 9;
getRacyValue
in interface SafeSearchAnnotationOrBuilder
public Likelihood getRacy()
Likelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas.
.google.cloud.vision.v1p2beta1.Likelihood racy = 9;
getRacy
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