# AI Platform Data Labeling Service V1beta1 API - Class Google::Cloud::DataLabeling::V1beta1::LabelTextRequest (v0.15.0)

0.15.0 (latest) 0.14.0 0.13.1 0.12.0 0.11.1 0.10.1 0.9.0 0.8.1 0.7.2 0.6.0 0.5.0 0.4.0 0.3.5 Reference documentation and code samples for the AI Platform Data Labeling Service V1beta1 API class Google::Cloud::DataLabeling::V1beta1::LabelTextRequest.

Request message for LabelText.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #basic_config

    def basic_config() -> ::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-HumanAnnotationConfig)) --- Required. Basic human annotation config.

### #basic_config=

    def basic_config=(value) -> ::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-HumanAnnotationConfig)) --- Required. Basic human annotation config.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-HumanAnnotationConfig)) --- Required. Basic human annotation config.

### #feature

    def feature() -> ::Google::Cloud::DataLabeling::V1beta1::LabelTextRequest::Feature

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::LabelTextRequest::Feature](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-LabelTextRequest-Feature)) --- Required. The type of text labeling task.

### #feature=

    def feature=(value) -> ::Google::Cloud::DataLabeling::V1beta1::LabelTextRequest::Feature

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::LabelTextRequest::Feature](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-LabelTextRequest-Feature)) --- Required. The type of text labeling task.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::LabelTextRequest::Feature](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-LabelTextRequest-Feature)) --- Required. The type of text labeling task.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}
**Returns**

- (::String) --- Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

### #text_classification_config

    def text_classification_config() -> ::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextClassificationConfig)) --- Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.


  Note: The following fields are mutually exclusive: `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #text_classification_config=

    def text_classification_config=(value) -> ::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextClassificationConfig)) --- Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.


  Note: The following fields are mutually exclusive: `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextClassificationConfig)) --- Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.


  Note: The following fields are mutually exclusive: `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #text_entity_extraction_config

    def text_entity_extraction_config() -> ::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextEntityExtractionConfig)) --- Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.


  Note: The following fields are mutually exclusive: `text_entity_extraction_config`, `text_classification_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #text_entity_extraction_config=

    def text_entity_extraction_config=(value) -> ::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextEntityExtractionConfig)) --- Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.


  Note: The following fields are mutually exclusive: `text_entity_extraction_config`, `text_classification_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextEntityExtractionConfig)) --- Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.


  Note: The following fields are mutually exclusive: `text_entity_extraction_config`, `text_classification_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.