Google Cloud Natural Language v1 API - Class TextSpan (3.1.0)

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.

Inheritance

Object > TextSpan

Namespace

Google.Cloud.Language.V1

Assembly

Google.Cloud.Language.V1.dll

Constructors

TextSpan()

public TextSpan()

TextSpan(TextSpan)

public TextSpan(TextSpan other)
Parameter
NameDescription
otherTextSpan

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
TypeDescription
Int32

Content

public string Content { get; set; }

The content of the output text.

Property Value
TypeDescription
String