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.v1p1beta1.CropHint
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CropHint.BuilderImplements
CropHintOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CropHint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CropHint.Builder |
build()
public CropHint build()
Type | Description |
CropHint |
buildPartial()
public CropHint buildPartial()
Type | Description |
CropHint |
clear()
public CropHint.Builder clear()
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, as returned in ImageParams
.
.google.cloud.vision.v1p1beta1.BoundingPoly bounding_poly = 1;
Type | Description |
CropHint.Builder |
clearConfidence()
public CropHint.Builder clearConfidence()
Confidence of this being a salient region. Range [0, 1].
float confidence = 2;
Type | Description |
CropHint.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CropHint.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CropHint.Builder |