Data QnA v1alpha API - Class AnnotatedString.Types.SemanticMarkup (2.0.0-alpha02)

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

Reference documentation and code samples for the Data QnA v1alpha API class AnnotatedString.Types.SemanticMarkup.

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(SemanticMarkup)

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

Properties

Length

public int Length { get; set; }

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

Property Value
TypeDescription
int

StartCharIndex

public int StartCharIndex { get; set; }

Unicode character index of the query.

Property Value
TypeDescription
int

Type

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

The semantic type of the markup substring.

Property Value
TypeDescription
AnnotatedStringTypesSemanticMarkupType