public static final class CropHint.Builder extends GeneratedMessageV3.Builder<CropHint.Builder> implements CropHintOrBuilder
Single crop hint that is used to generate a new crop when serving an image.
Protobuf type google.cloud.vision.v1p2beta1.CropHint
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CropHint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public CropHint buildPartial()
Returns
clear()
public CropHint.Builder clear()
Returns
Overrides
clearBoundingPoly()
public CropHint.Builder clearBoundingPoly()
The bounding polygon for the crop region. The coordinates of the bounding
box are in the original image's scale, as returned in ImageParams
.
.google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
Returns
clearConfidence()
public CropHint.Builder clearConfidence()
Confidence of this being a salient region. Range [0, 1].
float confidence = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public CropHint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearImportanceFraction()
public CropHint.Builder clearImportanceFraction()
Fraction of importance of this salient region with respect to the original
image.
float importance_fraction = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CropHint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public CropHint.Builder clone()
Returns
Overrides
getBoundingPoly()
public BoundingPoly getBoundingPoly()
The bounding polygon for the crop region. The coordinates of the bounding
box are in the original image's scale, as returned in ImageParams
.
.google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
Returns
getBoundingPolyBuilder()
public BoundingPoly.Builder getBoundingPolyBuilder()
The bounding polygon for the crop region. The coordinates of the bounding
box are in the original image's scale, as returned in ImageParams
.
.google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
Returns
getBoundingPolyOrBuilder()
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
The bounding polygon for the crop region. The coordinates of the bounding
box are in the original image's scale, as returned in ImageParams
.
.google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
Returns
getConfidence()
public float getConfidence()
Confidence of this being a salient region. Range [0, 1].
float confidence = 2;
Returns
Type | Description |
float | The confidence.
|
getDefaultInstanceForType()
public CropHint getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getImportanceFraction()
public float getImportanceFraction()
Fraction of importance of this salient region with respect to the original
image.
float importance_fraction = 3;
Returns
Type | Description |
float | The importanceFraction.
|
hasBoundingPoly()
public boolean hasBoundingPoly()
The bounding polygon for the crop region. The coordinates of the bounding
box are in the original image's scale, as returned in ImageParams
.
.google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
Returns
Type | Description |
boolean | Whether the boundingPoly field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeBoundingPoly(BoundingPoly value)
public CropHint.Builder mergeBoundingPoly(BoundingPoly value)
The bounding polygon for the crop region. The coordinates of the bounding
box are in the original image's scale, as returned in ImageParams
.
.google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
Parameter
Returns
mergeFrom(CropHint other)
public CropHint.Builder mergeFrom(CropHint other)
Parameter
Returns
public CropHint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CropHint.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CropHint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setBoundingPoly(BoundingPoly value)
public CropHint.Builder setBoundingPoly(BoundingPoly value)
The bounding polygon for the crop region. The coordinates of the bounding
box are in the original image's scale, as returned in ImageParams
.
.google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
Parameter
Returns
setBoundingPoly(BoundingPoly.Builder builderForValue)
public CropHint.Builder setBoundingPoly(BoundingPoly.Builder builderForValue)
The bounding polygon for the crop region. The coordinates of the bounding
box are in the original image's scale, as returned in ImageParams
.
.google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 1;
Parameter
Returns
setConfidence(float value)
public CropHint.Builder setConfidence(float value)
Confidence of this being a salient region. Range [0, 1].
float confidence = 2;
Parameter
Name | Description |
value | float
The confidence to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CropHint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setImportanceFraction(float value)
public CropHint.Builder setImportanceFraction(float value)
Fraction of importance of this salient region with respect to the original
image.
float importance_fraction = 3;
Parameter
Name | Description |
value | float
The importanceFraction to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CropHint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CropHint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides