Package com.google.privacy.dlp.v2
Class BoundingBox.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BoundingBox.Builder>
com.google.privacy.dlp.v2.BoundingBox.Builder
- All Implemented Interfaces:
BoundingBoxOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BoundingBox
public static final class BoundingBox.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BoundingBox.Builder>
implements BoundingBoxOrBuilder
Bounding box encompassing detected text within an image.Protobuf type
google.privacy.dlp.v2.BoundingBox-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Height of the bounding box in pixels.Left coordinate of the bounding box. (0,0) is upper left.clearTop()Top coordinate of the bounding box. (0,0) is upper left.Width of the bounding box in pixels.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintHeight of the bounding box in pixels.intgetLeft()Left coordinate of the bounding box. (0,0) is upper left.intgetTop()Top coordinate of the bounding box. (0,0) is upper left.intgetWidth()Width of the bounding box in pixels.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(BoundingBox other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setHeight(int value) Height of the bounding box in pixels.setLeft(int value) Left coordinate of the bounding box. (0,0) is upper left.setTop(int value) Top coordinate of the bounding box. (0,0) is upper left.setWidth(int value) Width of the bounding box in pixels.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<BoundingBox.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<BoundingBox.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<BoundingBox.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<BoundingBox.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BoundingBox.Builder>
-
mergeFrom
public BoundingBox.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<BoundingBox.Builder>- Throws:
IOException
-
getTop
public int getTop()Top coordinate of the bounding box. (0,0) is upper left.
int32 top = 1;- Specified by:
getTopin interfaceBoundingBoxOrBuilder- Returns:
- The top.
-
setTop
Top coordinate of the bounding box. (0,0) is upper left.
int32 top = 1;- Parameters:
value- The top to set.- Returns:
- This builder for chaining.
-
clearTop
Top coordinate of the bounding box. (0,0) is upper left.
int32 top = 1;- Returns:
- This builder for chaining.
-
getLeft
public int getLeft()Left coordinate of the bounding box. (0,0) is upper left.
int32 left = 2;- Specified by:
getLeftin interfaceBoundingBoxOrBuilder- Returns:
- The left.
-
setLeft
Left coordinate of the bounding box. (0,0) is upper left.
int32 left = 2;- Parameters:
value- The left to set.- Returns:
- This builder for chaining.
-
clearLeft
Left coordinate of the bounding box. (0,0) is upper left.
int32 left = 2;- Returns:
- This builder for chaining.
-
getWidth
public int getWidth()Width of the bounding box in pixels.
int32 width = 3;- Specified by:
getWidthin interfaceBoundingBoxOrBuilder- Returns:
- The width.
-
setWidth
Width of the bounding box in pixels.
int32 width = 3;- Parameters:
value- The width to set.- Returns:
- This builder for chaining.
-
clearWidth
Width of the bounding box in pixels.
int32 width = 3;- Returns:
- This builder for chaining.
-
getHeight
public int getHeight()Height of the bounding box in pixels.
int32 height = 4;- Specified by:
getHeightin interfaceBoundingBoxOrBuilder- Returns:
- The height.
-
setHeight
Height of the bounding box in pixels.
int32 height = 4;- Parameters:
value- The height to set.- Returns:
- This builder for chaining.
-
clearHeight
Height of the bounding box in pixels.
int32 height = 4;- Returns:
- This builder for chaining.
-