public static final class CropHintsParams.Builder extends GeneratedMessageV3.Builder<CropHintsParams.Builder> implements CropHintsParamsOrBuilder
Parameters for crop hints annotation request.
Protobuf type google.cloud.vision.v1p3beta1.CropHintsParams
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CropHintsParams.BuilderImplements
CropHintsParamsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllAspectRatios(Iterable<? extends Float> values)
public CropHintsParams.Builder addAllAspectRatios(Iterable<? extends Float> values)
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;
Name | Description |
values | Iterable<? extends java.lang.Float> The aspectRatios to add. |
Type | Description |
CropHintsParams.Builder | This builder for chaining. |
addAspectRatios(float value)
public CropHintsParams.Builder addAspectRatios(float value)
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;
Name | Description |
value | float The aspectRatios to add. |
Type | Description |
CropHintsParams.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CropHintsParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CropHintsParams.Builder |
build()
public CropHintsParams build()
Type | Description |
CropHintsParams |
buildPartial()
public CropHintsParams buildPartial()
Type | Description |
CropHintsParams |
clear()
public CropHintsParams.Builder clear()
Type | Description |