Package com.google.cloud.vision.v1
Class CropHint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CropHint.Builder>
com.google.cloud.vision.v1.CropHint.Builder
- All Implemented Interfaces:
CropHintOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CropHint
public static final class CropHint.Builder
extends com.google.protobuf.GeneratedMessage.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.v1.CropHint-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The bounding polygon for the crop region.Confidence of this being a salient region.Fraction of importance of this salient region with respect to the original image.The bounding polygon for the crop region.The bounding polygon for the crop region.The bounding polygon for the crop region.floatConfidence of this being a salient region.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatFraction of importance of this salient region with respect to the original image.booleanThe bounding polygon for the crop region.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBoundingPoly(BoundingPoly value) The bounding polygon for the crop region.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBoundingPoly(BoundingPoly value) The bounding polygon for the crop region.setBoundingPoly(BoundingPoly.Builder builderForValue) The bounding polygon for the crop region.setConfidence(float value) Confidence of this being a salient region.setImportanceFraction(float value) Fraction of importance of this salient region with respect to the original image.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CropHint.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CropHint.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CropHint.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CropHint.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CropHint.Builder>
-
mergeFrom
public CropHint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CropHint.Builder>- Throws:
IOException
-
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;- Specified by:
hasBoundingPolyin interfaceCropHintOrBuilder- Returns:
- Whether the boundingPoly field is set.
-
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;- Specified by:
getBoundingPolyin interfaceCropHintOrBuilder- Returns:
- The boundingPoly.
-
setBoundingPoly
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; -
setBoundingPoly
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; -
mergeBoundingPoly
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; -
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; -
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; -
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;- Specified by:
getBoundingPolyOrBuilderin interfaceCropHintOrBuilder
-
getConfidence
public float getConfidence()Confidence of this being a salient region. Range [0, 1].
float confidence = 2;- Specified by:
getConfidencein interfaceCropHintOrBuilder- Returns:
- The confidence.
-
setConfidence
Confidence of this being a salient region. Range [0, 1].
float confidence = 2;- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
Confidence of this being a salient region. Range [0, 1].
float confidence = 2;- Returns:
- This builder for chaining.
-
getImportanceFraction
public float getImportanceFraction()Fraction of importance of this salient region with respect to the original image.
float importance_fraction = 3;- Specified by:
getImportanceFractionin interfaceCropHintOrBuilder- Returns:
- The importanceFraction.
-
setImportanceFraction
Fraction of importance of this salient region with respect to the original image.
float importance_fraction = 3;- Parameters:
value- The importanceFraction to set.- Returns:
- This builder for chaining.
-
clearImportanceFraction
Fraction of importance of this salient region with respect to the original image.
float importance_fraction = 3;- Returns:
- This builder for chaining.
-