Package com.google.cloud.vision.v1
Class SafeSearchAnnotation
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.vision.v1.SafeSearchAnnotation
- All Implemented Interfaces:
SafeSearchAnnotationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class SafeSearchAnnotation
extends com.google.protobuf.GeneratedMessage
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.v1.SafeSearchAnnotation- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSet of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAdult()Represents the adult content likelihood for the image.intRepresents the adult content likelihood for the image.static SafeSearchAnnotationstatic final com.google.protobuf.Descriptors.DescriptorLikelihood that this is a medical image.intLikelihood that this is a medical image.com.google.protobuf.Parser<SafeSearchAnnotation>getRacy()Likelihood that the request image contains racy content.intLikelihood that the request image contains racy content.intgetSpoof()Spoof likelihood.intSpoof likelihood.Likelihood that this image contains violent content.intLikelihood that this image contains violent content.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic SafeSearchAnnotation.Builderstatic SafeSearchAnnotation.BuildernewBuilder(SafeSearchAnnotation prototype) protected SafeSearchAnnotation.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SafeSearchAnnotationparseDelimitedFrom(InputStream input) static SafeSearchAnnotationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SafeSearchAnnotationparseFrom(byte[] data) static SafeSearchAnnotationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SafeSearchAnnotationparseFrom(com.google.protobuf.ByteString data) static SafeSearchAnnotationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SafeSearchAnnotationparseFrom(com.google.protobuf.CodedInputStream input) static SafeSearchAnnotationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SafeSearchAnnotationparseFrom(InputStream input) static SafeSearchAnnotationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SafeSearchAnnotationparseFrom(ByteBuffer data) static SafeSearchAnnotationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SafeSearchAnnotation>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ADULT_FIELD_NUMBER
public static final int ADULT_FIELD_NUMBER- See Also:
-
SPOOF_FIELD_NUMBER
public static final int SPOOF_FIELD_NUMBER- See Also:
-
MEDICAL_FIELD_NUMBER
public static final int MEDICAL_FIELD_NUMBER- See Also:
-
VIOLENCE_FIELD_NUMBER
public static final int VIOLENCE_FIELD_NUMBER- See Also:
-
RACY_FIELD_NUMBER
public static final int RACY_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getAdultValue
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.v1.Likelihood adult = 1;- Specified by:
getAdultValuein interfaceSafeSearchAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for adult.
-
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.v1.Likelihood adult = 1;- Specified by:
getAdultin interfaceSafeSearchAnnotationOrBuilder- Returns:
- The adult.
-
getSpoofValue
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.v1.Likelihood spoof = 2;- Specified by:
getSpoofValuein interfaceSafeSearchAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for spoof.
-
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.v1.Likelihood spoof = 2;- Specified by:
getSpoofin interfaceSafeSearchAnnotationOrBuilder- Returns:
- The spoof.
-
getMedicalValue
public int getMedicalValue()Likelihood that this is a medical image.
.google.cloud.vision.v1.Likelihood medical = 3;- Specified by:
getMedicalValuein interfaceSafeSearchAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for medical.
-
getMedical
Likelihood that this is a medical image.
.google.cloud.vision.v1.Likelihood medical = 3;- Specified by:
getMedicalin interfaceSafeSearchAnnotationOrBuilder- Returns:
- The medical.
-
getViolenceValue
public int getViolenceValue()Likelihood that this image contains violent content. Violent content may include death, serious harm, or injury to individuals or groups of individuals.
.google.cloud.vision.v1.Likelihood violence = 4;- Specified by:
getViolenceValuein interfaceSafeSearchAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for violence.
-
getViolence
Likelihood that this image contains violent content. Violent content may include death, serious harm, or injury to individuals or groups of individuals.
.google.cloud.vision.v1.Likelihood violence = 4;- Specified by:
getViolencein interfaceSafeSearchAnnotationOrBuilder- Returns:
- The violence.
-
getRacyValue
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.v1.Likelihood racy = 9;- Specified by:
getRacyValuein interfaceSafeSearchAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for racy.
-
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.v1.Likelihood racy = 9;- Specified by:
getRacyin interfaceSafeSearchAnnotationOrBuilder- Returns:
- The racy.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SafeSearchAnnotation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SafeSearchAnnotation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SafeSearchAnnotation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SafeSearchAnnotation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SafeSearchAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SafeSearchAnnotation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SafeSearchAnnotation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SafeSearchAnnotation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SafeSearchAnnotation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SafeSearchAnnotation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SafeSearchAnnotation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-