- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.18
- 2.2.3
- 2.1.23
public static final class Document.Layout.Builder extends GeneratedMessageV3.Builder<Document.Layout.Builder> implements Document.LayoutOrBuilder
Describes the layout information of a text_segment in the document.
Protobuf type google.cloud.automl.v1.Document.Layout
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Document.Layout.BuilderImplements
Document.LayoutOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.Layout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Document.Layout.Builder |
build()
public Document.Layout build()
Type | Description |
Document.Layout |
buildPartial()
public Document.Layout buildPartial()
Type | Description |
Document.Layout |
clear()
public Document.Layout.Builder clear()
Type | Description |
Document.Layout.Builder |
clearBoundingPoly()
public Document.Layout.Builder clearBoundingPoly()
The position of the text_segment in the page. Contains exactly 4 normalized_vertices and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The NormalizedVertex-s are relative to the page. Coordinates are based on top-left as point (0,0).
.google.cloud.automl.v1.BoundingPoly bounding_poly = 3;
Type | Description |
Document.Layout.Builder |
clearField(Descriptors.FieldDescriptor field)
public Document.Layout.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Document.Layout.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.Layout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Document.Layout.Builder |
clearPageNumber()
public Document.Layout.Builder clearPageNumber()
Page number of the text_segment in the original document, starts from 1.
int32 page_number = 2;
Type | Description |
Document.Layout.Builder | This builder for chaining. |
clearTextSegment()
public Document.Layout.Builder clearTextSegment()
Text Segment that represents a segment in document_text.
.google.cloud.automl.v1.TextSegment text_segment = 1;
Type | Description |
Document.Layout.Builder |
clearTextSegmentType()
public Document.Layout.Builder clearTextSegmentType()
The type of the text_segment in document.
.google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4;
Type | Description |
Document.Layout.Builder | This builder for chaining. |
clone()
public Document.Layout.Builder clone()
Type | Description |
Document.Layout.Builder |
getBoundingPoly()
public BoundingPoly getBoundingPoly()
The position of the text_segment in the page. Contains exactly 4 normalized_vertices and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The NormalizedVertex-s are relative to the page. Coordinates are based on top-left as point (0,0).
.google.cloud.automl.v1.BoundingPoly bounding_poly = 3;
Type | Description |
BoundingPoly | The boundingPoly. |
getBoundingPolyBuilder()
public BoundingPoly.Builder getBoundingPolyBuilder()
The position of the text_segment in the page. Contains exactly 4 normalized_vertices and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The NormalizedVertex-s are relative to the page. Coordinates are based on top-left as point (0,0).
.google.cloud.automl.v1.BoundingPoly bounding_poly = 3;
Type | Description |
BoundingPoly.Builder |
getBoundingPolyOrBuilder()
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
The position of the text_segment in the page. Contains exactly 4 normalized_vertices and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The NormalizedVertex-s are relative to the page. Coordinates are based on top-left as point (0,0).
.google.cloud.automl.v1.BoundingPoly bounding_poly = 3;
Type | Description |
BoundingPolyOrBuilder |
getDefaultInstanceForType()
public Document.Layout getDefaultInstanceForType()
Type | Description |
Document.Layout |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getPageNumber()
public int getPageNumber()
Page number of the text_segment in the original document, starts from 1.
int32 page_number = 2;
Type | Description |
int | The pageNumber. |
getTextSegment()
public TextSegment getTextSegment()
Text Segment that represents a segment in document_text.
.google.cloud.automl.v1.TextSegment text_segment = 1;
Type | Description |
TextSegment | The textSegment. |
getTextSegmentBuilder()
public TextSegment.Builder getTextSegmentBuilder()
Text Segment that represents a segment in document_text.
.google.cloud.automl.v1.TextSegment text_segment = 1;
Type | Description |
TextSegment.Builder |
getTextSegmentOrBuilder()
public TextSegmentOrBuilder getTextSegmentOrBuilder()
Text Segment that represents a segment in document_text.
.google.cloud.automl.v1.TextSegment text_segment = 1;
Type | Description |
TextSegmentOrBuilder |
getTextSegmentType()
public Document.Layout.TextSegmentType getTextSegmentType()
The type of the text_segment in document.
.google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4;
Type | Description |
Document.Layout.TextSegmentType | The textSegmentType. |
getTextSegmentTypeValue()
public int getTextSegmentTypeValue()
The type of the text_segment in document.
.google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4;
Type | Description |
int | The enum numeric value on the wire for textSegmentType. |
hasBoundingPoly()
public boolean hasBoundingPoly()
The position of the text_segment in the page. Contains exactly 4 normalized_vertices and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The NormalizedVertex-s are relative to the page. Coordinates are based on top-left as point (0,0).
.google.cloud.automl.v1.BoundingPoly bounding_poly = 3;
Type | Description |
boolean | Whether the boundingPoly field is set. |
hasTextSegment()
public boolean hasTextSegment()
Text Segment that represents a segment in document_text.
.google.cloud.automl.v1.TextSegment text_segment = 1;
Type | Description |
boolean | Whether the textSegment field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeBoundingPoly(BoundingPoly value)
public Document.Layout.Builder mergeBoundingPoly(BoundingPoly value)
The position of the text_segment in the page. Contains exactly 4 normalized_vertices and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The NormalizedVertex-s are relative to the page. Coordinates are based on top-left as point (0,0).
.google.cloud.automl.v1.BoundingPoly bounding_poly = 3;
Name | Description |
value | BoundingPoly |
Type | Description |
Document.Layout.Builder |
mergeFrom(Document.Layout other)
public Document.Layout.Builder mergeFrom(Document.Layout other)
Name | Description |
other | Document.Layout |
Type | Description |
Document.Layout.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.Layout.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Document.Layout.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Document.Layout.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Document.Layout.Builder |
mergeTextSegment(TextSegment value)
public Document.Layout.Builder mergeTextSegment(TextSegment value)
Text Segment that represents a segment in document_text.
.google.cloud.automl.v1.TextSegment text_segment = 1;
Name | Description |
value | TextSegment |
Type | Description |
Document.Layout.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.Layout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Document.Layout.Builder |
setBoundingPoly(BoundingPoly value)
public Document.Layout.Builder setBoundingPoly(BoundingPoly value)
The position of the text_segment in the page. Contains exactly 4 normalized_vertices and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The NormalizedVertex-s are relative to the page. Coordinates are based on top-left as point (0,0).
.google.cloud.automl.v1.BoundingPoly bounding_poly = 3;
Name | Description |
value | BoundingPoly |
Type | Description |
Document.Layout.Builder |
setBoundingPoly(BoundingPoly.Builder builderForValue)
public Document.Layout.Builder setBoundingPoly(BoundingPoly.Builder builderForValue)
The position of the text_segment in the page. Contains exactly 4 normalized_vertices and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The NormalizedVertex-s are relative to the page. Coordinates are based on top-left as point (0,0).
.google.cloud.automl.v1.BoundingPoly bounding_poly = 3;
Name | Description |
builderForValue | BoundingPoly.Builder |
Type | Description |
Document.Layout.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Document.Layout.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Document.Layout.Builder |
setPageNumber(int value)
public Document.Layout.Builder setPageNumber(int value)
Page number of the text_segment in the original document, starts from 1.
int32 page_number = 2;
Name | Description |
value | int The pageNumber to set. |
Type | Description |
Document.Layout.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.Layout.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Document.Layout.Builder |
setTextSegment(TextSegment value)
public Document.Layout.Builder setTextSegment(TextSegment value)
Text Segment that represents a segment in document_text.
.google.cloud.automl.v1.TextSegment text_segment = 1;
Name | Description |
value | TextSegment |
Type | Description |
Document.Layout.Builder |
setTextSegment(TextSegment.Builder builderForValue)
public Document.Layout.Builder setTextSegment(TextSegment.Builder builderForValue)
Text Segment that represents a segment in document_text.
.google.cloud.automl.v1.TextSegment text_segment = 1;
Name | Description |
builderForValue | TextSegment.Builder |
Type | Description |
Document.Layout.Builder |
setTextSegmentType(Document.Layout.TextSegmentType value)
public Document.Layout.Builder setTextSegmentType(Document.Layout.TextSegmentType value)
The type of the text_segment in document.
.google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4;
Name | Description |
value | Document.Layout.TextSegmentType The textSegmentType to set. |
Type | Description |
Document.Layout.Builder | This builder for chaining. |
setTextSegmentTypeValue(int value)
public Document.Layout.Builder setTextSegmentTypeValue(int value)
The type of the text_segment in document.
.google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4;
Name | Description |
value | int The enum numeric value on the wire for textSegmentType to set. |
Type | Description |
Document.Layout.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.Layout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Document.Layout.Builder |