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

    Modifier and Type
    Method
    Description
    double
    The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`.
    The crop type.
    int
    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 Details

    • 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

       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.