public static final class CropHintsParams.Builder extends GeneratedMessageV3.Builder<CropHintsParams.Builder> implements CropHintsParamsOrBuilder
Parameters for crop hints annotation request.
Protobuf type google.cloud.vision.v1p2beta1.CropHintsParams
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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;
Parameter |
---|
Name | Description |
values | Iterable<? extends java.lang.Float>
The aspectRatios to add.
|
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;
Parameter |
---|
Name | Description |
value | float
The aspectRatios to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CropHintsParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CropHintsParams build()
buildPartial()
public CropHintsParams buildPartial()
clear()
public CropHintsParams.Builder clear()
Overrides
clearAspectRatios()
public CropHintsParams.Builder clearAspectRatios()
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;
clearField(Descriptors.FieldDescriptor field)
public CropHintsParams.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CropHintsParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public CropHintsParams.Builder clone()
Overrides
getAspectRatios(int index)
public 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;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
float | The aspectRatios at the given index.
|
getAspectRatiosCount()
public 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 |
---|
Type | Description |
int | The count of aspectRatios.
|
getAspectRatiosList()
public 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 |
---|
Type | Description |
List<Float> | A list containing the aspectRatios.
|
getDefaultInstanceForType()
public CropHintsParams getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CropHintsParams other)
public CropHintsParams.Builder mergeFrom(CropHintsParams other)
public CropHintsParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CropHintsParams.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CropHintsParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAspectRatios(int index, float value)
public CropHintsParams.Builder setAspectRatios(int index, 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;
Parameters |
---|
Name | Description |
index | int
The index to set the value at.
|
value | float
The aspectRatios to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CropHintsParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CropHintsParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CropHintsParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides