Interface ColorInfoOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.type.Color getColor()
      RGB components of the color.
      com.google.type.ColorOrBuilder getColorOrBuilder()
      RGB components of the color.
      float getPixelFraction()
      The fraction of pixels the color occupies in the image.
      float getScore()
      Image-specific score for this color.
      boolean hasColor()
      RGB components of the color.
      • 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

      • hasColor

        boolean hasColor()
         RGB components of the color.
         
        .google.type.Color color = 1;
        Returns:
        Whether the color field is set.
      • getColor

        com.google.type.Color getColor()
         RGB components of the color.
         
        .google.type.Color color = 1;
        Returns:
        The color.
      • getColorOrBuilder

        com.google.type.ColorOrBuilder getColorOrBuilder()
         RGB components of the color.
         
        .google.type.Color color = 1;
      • getScore

        float getScore()
         Image-specific score for this color. Value in range [0, 1].
         
        float score = 2;
        Returns:
        The score.
      • getPixelFraction

        float getPixelFraction()
         The fraction of pixels the color occupies in the image.
         Value in range [0, 1].
         
        float pixel_fraction = 3;
        Returns:
        The pixelFraction.