Package com.google.cloud.automl.v1
Interface TextSegmentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TextSegment,TextSegment.Builder
@Generated
public interface TextSegmentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOutput only.com.google.protobuf.ByteStringOutput only.longRequired.longRequired.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
-
getContent
String getContent()Output only. The content of the TextSegment.
string content = 3;- Returns:
- The content.
-
getContentBytes
com.google.protobuf.ByteString getContentBytes()Output only. The content of the TextSegment.
string content = 3;- Returns:
- The bytes for content.
-
getStartOffset
long getStartOffset()Required. Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).
int64 start_offset = 1;- Returns:
- The startOffset.
-
getEndOffset
long getEndOffset()Required. Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text). The character at the end_offset is NOT included in the text segment.
int64 end_offset = 2;- Returns:
- The endOffset.
-