Package com.google.cloud.language.v1
Interface TextSpanOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TextSpan,TextSpan.Builder
@Generated
public interface TextSpanOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintThe API calculates the beginning offset of the content in the original document according to the [EncodingType][google.cloud.language.v1.EncodingType] specified in the API request.The content of the output text.com.google.protobuf.ByteStringThe content of the output 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
-
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.v1.EncodingType] specified in the API request.
int32 begin_offset = 2;- Returns:
- The beginOffset.
-