Class: Google::Cloud::DataQnA::V1alpha::AnnotatedString::SemanticMarkup

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dataqna/v1alpha/annotated_string.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#length::Integer

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

Returns:

  • (::Integer)

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



78
79
80
81
# File 'proto_docs/google/cloud/dataqna/v1alpha/annotated_string.rb', line 78

class SemanticMarkup
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#start_char_index::Integer

Returns Unicode character index of the query.

Returns:

  • (::Integer)

    Unicode character index of the query.



78
79
80
81
# File 'proto_docs/google/cloud/dataqna/v1alpha/annotated_string.rb', line 78

class SemanticMarkup
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#type::Google::Cloud::DataQnA::V1alpha::AnnotatedString::SemanticMarkupType

Returns The semantic type of the markup substring.

Returns:



78
79
80
81
# File 'proto_docs/google/cloud/dataqna/v1alpha/annotated_string.rb', line 78

class SemanticMarkup
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end