publicfinalclass SafeSearchAnnotationextendsGeneratedMessageV3implementsSafeSearchAnnotationOrBuilder
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ADULT_FIELD_NUMBER
publicstaticfinalintADULT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MEDICAL_FIELD_NUMBER
publicstaticfinalintMEDICAL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
RACY_FIELD_NUMBER
publicstaticfinalintRACY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SPOOF_FIELD_NUMBER
publicstaticfinalintSPOOF_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
VIOLENCE_FIELD_NUMBER
publicstaticfinalintVIOLENCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticSafeSearchAnnotationgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticSafeSearchAnnotation.BuildernewBuilder()
newBuilder(SafeSearchAnnotation prototype)
publicstaticSafeSearchAnnotation.BuildernewBuilder(SafeSearchAnnotationprototype)
publicstaticSafeSearchAnnotationparseDelimitedFrom(InputStreaminput)
publicstaticSafeSearchAnnotationparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticSafeSearchAnnotationparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticSafeSearchAnnotationparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticSafeSearchAnnotationparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticSafeSearchAnnotationparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticSafeSearchAnnotationparseFrom(CodedInputStreaminput)
publicstaticSafeSearchAnnotationparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticSafeSearchAnnotationparseFrom(InputStreaminput)
publicstaticSafeSearchAnnotationparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticSafeSearchAnnotationparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticSafeSearchAnnotationparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<SafeSearchAnnotation>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAdult()
publicLikelihoodgetAdult()
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()
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;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for adult.
|
getDefaultInstanceForType()
publicSafeSearchAnnotationgetDefaultInstanceForType()
getMedical()
publicLikelihoodgetMedical()
Likelihood that this is a medical image.
.google.cloud.vision.v1p4beta1.Likelihood medical = 3;
getMedicalValue()
publicintgetMedicalValue()
Likelihood that this is a medical image.
.google.cloud.vision.v1p4beta1.Likelihood medical = 3;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for medical.
|
getParserForType()
publicParser<SafeSearchAnnotation>getParserForType()
Overrides
getRacy()
publicLikelihoodgetRacy()
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()
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;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for racy.
|
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getSpoof()
publicLikelihoodgetSpoof()
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()
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;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for spoof.
|
getViolence()
publicLikelihoodgetViolence()
Likelihood that this image contains violent content.
.google.cloud.vision.v1p4beta1.Likelihood violence = 4;
getViolenceValue()
publicintgetViolenceValue()
Likelihood that this image contains violent content.
.google.cloud.vision.v1p4beta1.Likelihood violence = 4;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for violence.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicSafeSearchAnnotation.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedSafeSearchAnnotation.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicSafeSearchAnnotation.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides