Package com.google.cloud.language.v2
Interface TextSpanOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TextSpan
,TextSpan.Builder
public interface TextSpanOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getBeginOffset()
The API calculates the beginning offset of the content in the original document according to the [EncodingType][google.cloud.language.v2.EncodingType] specified in the API request.String
getContent()
The content of the text span, which is a substring of the document.com.google.protobuf.ByteString
getContentBytes()
The content of the text span, which is a substring of the document.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getContent
String getContent()
The content of the text span, which is a substring of the document.
string content = 1;
- Returns:
- The content.
-
getContentBytes
com.google.protobuf.ByteString getContentBytes()
The content of the text span, which is a substring of the document.
string content = 1;
- Returns:
- The bytes for content.
-
getBeginOffset
int getBeginOffset()
The API calculates the beginning offset of the content in the original document according to the [EncodingType][google.cloud.language.v2.EncodingType] specified in the API request.
int32 begin_offset = 2;
- Returns:
- The beginOffset.
-
-