Interface SafeSearchAnnotationOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    SafeSearchAnnotation, SafeSearchAnnotation.Builder

    public interface SafeSearchAnnotationOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Likelihood getAdult()
      Represents the adult content likelihood for the image.
      int getAdultValue()
      Represents the adult content likelihood for the image.
      Likelihood getMedical()
      Likelihood that this is a medical image.
      int getMedicalValue()
      Likelihood that this is a medical image.
      Likelihood getRacy()
      Likelihood that the request image contains racy content.
      int getRacyValue()
      Likelihood that the request image contains racy content.
      Likelihood getSpoof()
      Spoof likelihood.
      int getSpoofValue()
      Spoof likelihood.
      Likelihood getViolence()
      Likelihood that this image contains violent content.
      int getViolenceValue()
      Likelihood that this image contains violent content.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getAdultValue

        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;
        Returns:
        The enum numeric value on the wire for adult.
      • getAdult

        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.v1.Likelihood adult = 1;
        Returns:
        The adult.
      • getSpoofValue

        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;
        Returns:
        The enum numeric value on the wire for spoof.
      • getSpoof

        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.v1.Likelihood spoof = 2;
        Returns:
        The spoof.
      • getMedicalValue

        int getMedicalValue()
         Likelihood that this is a medical image.
         
        .google.cloud.vision.v1.Likelihood medical = 3;
        Returns:
        The enum numeric value on the wire for medical.
      • getMedical

        Likelihood getMedical()
         Likelihood that this is a medical image.
         
        .google.cloud.vision.v1.Likelihood medical = 3;
        Returns:
        The medical.
      • getViolenceValue

        int getViolenceValue()
         Likelihood that this image contains violent content.
         
        .google.cloud.vision.v1.Likelihood violence = 4;
        Returns:
        The enum numeric value on the wire for violence.
      • getViolence

        Likelihood getViolence()
         Likelihood that this image contains violent content.
         
        .google.cloud.vision.v1.Likelihood violence = 4;
        Returns:
        The violence.
      • getRacyValue

        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;
        Returns:
        The enum numeric value on the wire for racy.
      • getRacy

        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.v1.Likelihood racy = 9;
        Returns:
        The racy.