public static final class CropHint.Builder extends GeneratedMessage.Builder<CropHint.Builder> implements CropHintOrBuilderSingle crop hint that is used to generate a new crop when serving an image.
Protobuf type google.cloud.vision.v1.CropHint
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CropHint.BuilderImplements
CropHintOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CropHint build()| Returns | |
|---|---|
| Type | Description |
CropHint |
|
buildPartial()
public CropHint buildPartial()| Returns | |
|---|---|
| Type | Description |
CropHint |
|
clear()
public CropHint.Builder clear()| Returns | |
|---|---|
| Type | Description |
CropHint.Builder |
|
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.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
| Returns | |
|---|---|
| Type | Description |
CropHint.Builder |
|
clearConfidence()
public CropHint.Builder clearConfidence()Confidence of this being a salient region. Range [0, 1].
float confidence = 2;
| Returns | |
|---|---|
| Type | Description |
CropHint.Builder |
This builder for chaining. |
clearImportanceFraction()
public CropHint.Builder clearImportanceFraction()Fraction of importance of this salient region with respect to the original image.
float importance_fraction = 3;
| Returns | |
|---|---|
| Type | Description |
CropHint.Builder |
This builder for chaining. |
getBoundingPoly()
public BoundingPoly getBoundingPoly()The bounding polygon for the crop region. The coordinates of the bounding box are in the original image's scale.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
| Returns | |
|---|---|
| Type | Description |
BoundingPoly |
The boundingPoly. |
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.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
| Returns | |
|---|---|
| Type | Description |
BoundingPoly.Builder |
|
getBoundingPolyOrBuilder()
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()The bounding polygon for the crop region. The coordinates of the bounding box are in the original image's scale.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
| Returns | |
|---|---|
| Type | Description |
BoundingPolyOrBuilder |
|
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 | |
|---|---|
| Type | Description |
CropHint |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the boundingPoly field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
BoundingPoly |
| Returns | |
|---|---|
| Type | Description |
CropHint.Builder |
|
mergeFrom(CropHint other)
public CropHint.Builder mergeFrom(CropHint other)| Parameter | |
|---|---|
| Name | Description |
other |
CropHint |
| Returns | |
|---|---|
| Type | Description |
CropHint.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CropHint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CropHint.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CropHint.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CropHint.Builder |
|
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.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
BoundingPoly |
| Returns | |
|---|---|
| Type | Description |
CropHint.Builder |
|
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.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BoundingPoly.Builder |
| Returns | |
|---|---|
| Type | Description |
CropHint.Builder |
|
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 |
floatThe confidence to set. |
| Returns | |
|---|---|
| Type | Description |
CropHint.Builder |
This builder for chaining. |
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 |
floatThe importanceFraction to set. |
| Returns | |
|---|---|
| Type | Description |
CropHint.Builder |
This builder for chaining. |