BigQuery Data QnA V1alpha API - Class Google::Cloud::DataQnA::V1alpha::AnnotatedString::SemanticMarkup (v0.4.0)

Reference documentation and code samples for the BigQuery Data QnA V1alpha API class Google::Cloud::DataQnA::V1alpha::AnnotatedString::SemanticMarkup.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#length

def length() -> ::Integer
Returns
  • (::Integer) — The length (number of unicode characters) of the markup substring.

#length=

def length=(value) -> ::Integer
Parameter
  • value (::Integer) — The length (number of unicode characters) of the markup substring.
Returns
  • (::Integer) — The length (number of unicode characters) of the markup substring.

#start_char_index

def start_char_index() -> ::Integer
Returns
  • (::Integer) — Unicode character index of the query.

#start_char_index=

def start_char_index=(value) -> ::Integer
Parameter
  • value (::Integer) — Unicode character index of the query.
Returns
  • (::Integer) — Unicode character index of the query.

#type

def type() -> ::Google::Cloud::DataQnA::V1alpha::AnnotatedString::SemanticMarkupType
Returns

#type=

def type=(value) -> ::Google::Cloud::DataQnA::V1alpha::AnnotatedString::SemanticMarkupType
Parameter
Returns