Interface ImageCropStyleOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double getAspectRatio()
      The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`.
      ImageCropStyle.ImageCropType getType()
      The crop type.
      int getTypeValue()
      The crop type.
      • 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

      • getTypeValue

        int getTypeValue()
         The crop type.
         
        .google.apps.card.v1.ImageCropStyle.ImageCropType type = 1;
        Returns:
        The enum numeric value on the wire for type.
      • getType

        ImageCropStyle.ImageCropType getType()
         The crop type.
         
        .google.apps.card.v1.ImageCropStyle.ImageCropType type = 1;
        Returns:
        The type.
      • getAspectRatio

        double getAspectRatio()
         The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`.
        
         For example, here's how to apply a 16:9 aspect ratio:
        
         ```
         cropStyle {
          "type": "RECTANGLE_CUSTOM",
          "aspectRatio": 16/9
         }
         ```
         
        double aspect_ratio = 2;
        Returns:
        The aspectRatio.