Package com.google.cloud.documentai.v1
Interface Document.ShardInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Document.ShardInfo,Document.ShardInfo.Builder
- Enclosing class:
- Document
public static interface Document.ShardInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongTotal number of shards.longThe 0-based index of this shard.longThe index of the first character in [Document.text][google.cloud.documentai.v1.Document.text] in the overall document global text.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getShardIndex
long getShardIndex()The 0-based index of this shard.
int64 shard_index = 1;- Returns:
- The shardIndex.
-
getShardCount
long getShardCount()Total number of shards.
int64 shard_count = 2;- Returns:
- The shardCount.
-
getTextOffset
long getTextOffset()The index of the first character in [Document.text][google.cloud.documentai.v1.Document.text] in the overall document global text.
int64 text_offset = 3;- Returns:
- The textOffset.
-