# AI Platform Data Labeling Service V1beta1 API - Class Google::Cloud::DataLabeling::V1beta1::InputConfig (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::InputConfig.

The configuration of input data, including data type, location, etc.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #annotation_type

    def annotation_type() -> ::Google::Cloud::DataLabeling::V1beta1::AnnotationType

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::AnnotationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationType)) --- Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-EvaluationJob "Google::Cloud::DataLabeling::V1beta1::EvaluationJob (class)").

### #annotation_type=

    def annotation_type=(value) -> ::Google::Cloud::DataLabeling::V1beta1::AnnotationType

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::AnnotationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationType)) --- Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-EvaluationJob "Google::Cloud::DataLabeling::V1beta1::EvaluationJob (class)").
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::AnnotationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationType)) --- Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-EvaluationJob "Google::Cloud::DataLabeling::V1beta1::EvaluationJob (class)").

### #bigquery_source

    def bigquery_source() -> ::Google::Cloud::DataLabeling::V1beta1::BigQuerySource

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::BigQuerySource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-BigQuerySource)) --- Source located in BigQuery. You must specify this field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-EvaluationJob "Google::Cloud::DataLabeling::V1beta1::EvaluationJob (class)").


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

### #bigquery_source=

    def bigquery_source=(value) -> ::Google::Cloud::DataLabeling::V1beta1::BigQuerySource

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::BigQuerySource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-BigQuerySource)) --- Source located in BigQuery. You must specify this field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-EvaluationJob "Google::Cloud::DataLabeling::V1beta1::EvaluationJob (class)").


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

- ([::Google::Cloud::DataLabeling::V1beta1::BigQuerySource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-BigQuerySource)) --- Source located in BigQuery. You must specify this field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-EvaluationJob "Google::Cloud::DataLabeling::V1beta1::EvaluationJob (class)").


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

### #classification_metadata

    def classification_metadata() -> ::Google::Cloud::DataLabeling::V1beta1::ClassificationMetadata

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::ClassificationMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ClassificationMetadata)) --- Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-EvaluationJob "Google::Cloud::DataLabeling::V1beta1::EvaluationJob (class)") for a model version that performs classification.

### #classification_metadata=

    def classification_metadata=(value) -> ::Google::Cloud::DataLabeling::V1beta1::ClassificationMetadata

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::ClassificationMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ClassificationMetadata)) --- Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-EvaluationJob "Google::Cloud::DataLabeling::V1beta1::EvaluationJob (class)") for a model version that performs classification.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::ClassificationMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ClassificationMetadata)) --- Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-EvaluationJob "Google::Cloud::DataLabeling::V1beta1::EvaluationJob (class)") for a model version that performs classification.

### #data_type

    def data_type() -> ::Google::Cloud::DataLabeling::V1beta1::DataType

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::DataType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-DataType)) --- Required. Data type must be specifed when user tries to import data.

### #data_type=

    def data_type=(value) -> ::Google::Cloud::DataLabeling::V1beta1::DataType

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::DataType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-DataType)) --- Required. Data type must be specifed when user tries to import data.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::DataType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-DataType)) --- Required. Data type must be specifed when user tries to import data.

### #gcs_source

    def gcs_source() -> ::Google::Cloud::DataLabeling::V1beta1::GcsSource

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::GcsSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-GcsSource)) --- Source located in Cloud Storage.


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

### #gcs_source=

    def gcs_source=(value) -> ::Google::Cloud::DataLabeling::V1beta1::GcsSource

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::GcsSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-GcsSource)) --- Source located in Cloud Storage.


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

- ([::Google::Cloud::DataLabeling::V1beta1::GcsSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-GcsSource)) --- Source located in Cloud Storage.


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

### #text_metadata

    def text_metadata() -> ::Google::Cloud::DataLabeling::V1beta1::TextMetadata

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::TextMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextMetadata)) --- Required for text import, as language code must be specified.

### #text_metadata=

    def text_metadata=(value) -> ::Google::Cloud::DataLabeling::V1beta1::TextMetadata

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::TextMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextMetadata)) --- Required for text import, as language code must be specified.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::TextMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextMetadata)) --- Required for text import, as language code must be specified.