Class AnnotatedString.Types.SemanticMarkup (1.0.0-alpha03)

public sealed class SemanticMarkup : IMessage<AnnotatedString.Types.SemanticMarkup>, IEquatable<AnnotatedString.Types.SemanticMarkup>, IDeepCloneable<AnnotatedString.Types.SemanticMarkup>, IBufferMessage, IMessage

Semantic markup denotes a substring (by index and length) with markup information.

Inheritance

Object > AnnotatedString.Types.SemanticMarkup

Namespace

Google.Cloud.DataQnA.V1Alpha

Assembly

Google.Cloud.DataQnA.V1Alpha.dll

Constructors

SemanticMarkup()

public SemanticMarkup()

SemanticMarkup(AnnotatedString.Types.SemanticMarkup)

public SemanticMarkup(AnnotatedString.Types.SemanticMarkup other)
Parameter
NameDescription
otherAnnotatedString.Types.SemanticMarkup

Properties

Length

public int Length { get; set; }

The length (number of unicode characters) of the markup substring.

Property Value
TypeDescription
Int32

StartCharIndex

public int StartCharIndex { get; set; }

Unicode character index of the query.

Property Value
TypeDescription
Int32

Type

public AnnotatedString.Types.SemanticMarkupType Type { get; set; }

The semantic type of the markup substring.

Property Value
TypeDescription
AnnotatedString.Types.SemanticMarkupType