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.v1beta2.EncodingType] specified in the API request.String
getContent()
The content of the output text.com.google.protobuf.ByteString
getContentBytes()
The content of the output text.-
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 output text.
string content = 1;
- Returns:
- The content.
-
getContentBytes
com.google.protobuf.ByteString getContentBytes()
The content of the output text.
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.v1beta2.EncodingType] specified in the API request.
int32 begin_offset = 2;
- Returns:
- The beginOffset.
-
-