public sealed class TextSpan : IMessage<TextSpan>, IEquatable<TextSpan>, IDeepCloneable<TextSpan>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Natural Language v1 API class TextSpan.
Represents an output piece of text.
Namespace
Google.Cloud.Language.V1Assembly
Google.Cloud.Language.V1.dll
Constructors
TextSpan()
public TextSpan()
TextSpan(TextSpan)
public TextSpan(TextSpan other)
Parameter | |
---|---|
Name | Description |
other |
TextSpan |
Properties
BeginOffset
public int BeginOffset { get; set; }
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.
Property Value | |
---|---|
Type | Description |
int |
Content
public string Content { get; set; }
The content of the output text.
Property Value | |
---|---|
Type | Description |
string |