Interface CropHintsParamsOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CropHintsParams
,CropHintsParams.Builder
public interface CropHintsParamsOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getAspectRatios(int index)
Aspect ratios in floats, representing the ratio of the width to the height of the image.int
getAspectRatiosCount()
Aspect ratios in floats, representing the ratio of the width to the height of the image.List<Float>
getAspectRatiosList()
Aspect ratios in floats, representing the ratio of the width to the height of the image.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getAspectRatiosList
List<Float> getAspectRatiosList()
Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.
repeated float aspect_ratios = 1;
- Returns:
- A list containing the aspectRatios.
-
getAspectRatiosCount
int getAspectRatiosCount()
Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.
repeated float aspect_ratios = 1;
- Returns:
- The count of aspectRatios.
-
getAspectRatios
float getAspectRatios(int index)
Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.
repeated float aspect_ratios = 1;
- Parameters:
index
- The index of the element to return.- Returns:
- The aspectRatios at the given index.
-
-