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.v1p4beta1.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, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
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, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.Likelihood spoof = 2;
getSpoof
in interface SafeSearchAnnotationOrBuilder
public int getMedicalValue()
Likelihood that this is a medical image.
.google.cloud.vision.v1p4beta1.Likelihood medical = 3;
getMedicalValue
in interface SafeSearchAnnotationOrBuilder
public Likelihood getMedical()
Likelihood that this is a medical image.
.google.cloud.vision.v1p4beta1.Likelihood medical = 3;
getMedical
in interface SafeSearchAnnotationOrBuilder
public int getViolenceValue()
Likelihood that this image contains violent content.
.google.cloud.vision.v1p4beta1.Likelihood violence = 4;
getViolenceValue
in interface SafeSearchAnnotationOrBuilder
public Likelihood getViolence()
Likelihood that this image contains violent content.
.google.cloud.vision.v1p4beta1.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.v1p4beta1.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.v1p4beta1.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 IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(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(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SafeSearchAnnotation parseFrom(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(InputStream input) throws IOException
IOException
public static SafeSearchAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SafeSearchAnnotation parseDelimitedFrom(InputStream input) throws IOException
IOException
public static SafeSearchAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SafeSearchAnnotation parseFrom(CodedInputStream input) throws IOException
IOException
public static SafeSearchAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
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
Copyright © 2022 Google LLC. All rights reserved.