Class TextSpan (3.0.0)

public sealed class TextSpan : IMessage<TextSpan>, IEquatable<TextSpan>, IDeepCloneable<TextSpan>, IBufferMessage, IMessage

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