- 2.57.0 (latest)
- 2.56.0
- 2.55.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.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.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.5
- 2.6.2
- 2.5.1
- 2.4.3
- 2.3.1
- 2.2.1
- 2.1.9
public static final class Document.TextAnchor.TextSegment.Builder extends GeneratedMessageV3.Builder<Document.TextAnchor.TextSegment.Builder> implements Document.TextAnchor.TextSegmentOrBuilder
A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See ShardInfo.text_offset
Protobuf type google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Document.TextAnchor.TextSegment.BuilderImplements
Document.TextAnchor.TextSegmentOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.TextAnchor.TextSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Document.TextAnchor.TextSegment.Builder |
build()
public Document.TextAnchor.TextSegment build()
Type | Description |
Document.TextAnchor.TextSegment |
buildPartial()
public Document.TextAnchor.TextSegment buildPartial()
Type | Description |
Document.TextAnchor.TextSegment |
clear()
public Document.TextAnchor.TextSegment.Builder clear()
Type | Description |
Document.TextAnchor.TextSegment.Builder |
clearEndIndex()
public Document.TextAnchor.TextSegment.Builder clearEndIndex()
TextSegment half open end UTF-8 char index in the Document.text.
int64 end_index = 2;
Type | Description |
Document.TextAnchor.TextSegment.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Document.TextAnchor.TextSegment.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Document.TextAnchor.TextSegment.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.TextAnchor.TextSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Document.TextAnchor.TextSegment.Builder |
clearStartIndex()
public Document.TextAnchor.TextSegment.Builder clearStartIndex()
TextSegment start UTF-8 char index in the Document.text.
int64 start_index = 1;
Type | Description |
Document.TextAnchor.TextSegment.Builder | This builder for chaining. |
clone()
public Document.TextAnchor.TextSegment.Builder clone()
Type | Description |
Document.TextAnchor.TextSegment.Builder |
getDefaultInstanceForType()
public Document.TextAnchor.TextSegment getDefaultInstanceForType()
Type | Description |
Document.TextAnchor.TextSegment |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEndIndex()
public long getEndIndex()
TextSegment half open end UTF-8 char index in the Document.text.
int64 end_index = 2;
Type | Description |
long | The endIndex. |
getStartIndex()
public long getStartIndex()
TextSegment start UTF-8 char index in the Document.text.
int64 start_index = 1;
Type | Description |
long | The startIndex. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Document.TextAnchor.TextSegment other)
public Document.TextAnchor.TextSegment.Builder mergeFrom(Document.TextAnchor.TextSegment other)
Name | Description |
other | Document.TextAnchor.TextSegment |
Type | Description |
Document.TextAnchor.TextSegment.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.TextAnchor.TextSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Document.TextAnchor.TextSegment.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Document.TextAnchor.TextSegment.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Document.TextAnchor.TextSegment.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.TextAnchor.TextSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Document.TextAnchor.TextSegment.Builder |
setEndIndex(long value)
public Document.TextAnchor.TextSegment.Builder setEndIndex(long value)
TextSegment half open end UTF-8 char index in the Document.text.
int64 end_index = 2;
Name | Description |
value | long The endIndex to set. |
Type | Description |
Document.TextAnchor.TextSegment.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Document.TextAnchor.TextSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Document.TextAnchor.TextSegment.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.TextAnchor.TextSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Document.TextAnchor.TextSegment.Builder |
setStartIndex(long value)
public Document.TextAnchor.TextSegment.Builder setStartIndex(long value)
TextSegment start UTF-8 char index in the Document.text.
int64 start_index = 1;
Name | Description |
value | long The startIndex to set. |
Type | Description |
Document.TextAnchor.TextSegment.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.TextAnchor.TextSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Document.TextAnchor.TextSegment.Builder |