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

0.13.0 (latest) 0.12.0 0.11.1 0.10.0 0.9.1 0.8.0 0.7.2 0.6.2 0.5.0 0.4.0 0.3.0 0.2.6 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**

- ([::Google::Cloud::DataQnA::V1alpha::AnnotatedString::SemanticMarkupType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-AnnotatedString-SemanticMarkupType)) --- The semantic type of the markup substring.

### #type=

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

**Parameter**

- **value** ([::Google::Cloud::DataQnA::V1alpha::AnnotatedString::SemanticMarkupType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-AnnotatedString-SemanticMarkupType)) --- The semantic type of the markup substring.
**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::AnnotatedString::SemanticMarkupType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-AnnotatedString-SemanticMarkupType)) --- The semantic type of the markup substring.