Google Cloud Datalabeling V1beta1 Client - Class InputConfig (0.5.6)

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class InputConfig.

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

Generated from protobuf message google.cloud.datalabeling.v1beta1.InputConfig

Namespace

Google \ Cloud \ DataLabeling \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ text_metadata TextMetadata

Required for text import, as language code must be specified.

↳ gcs_source GcsSource

Source located in Cloud Storage.

↳ bigquery_source BigQuerySource

Source located in BigQuery. You must specify this field if you are using this InputConfig in an EvaluationJob.

↳ data_type int

Required. Data type must be specifed when user tries to import data.

↳ annotation_type int

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.

↳ classification_metadata ClassificationMetadata

Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an EvaluationJob for a model version that performs classification.

getTextMetadata

Required for text import, as language code must be specified.

Returns
Type Description
TextMetadata|null

hasTextMetadata

setTextMetadata

Required for text import, as language code must be specified.

Parameter
Name Description
var TextMetadata
Returns
Type Description
$this

getGcsSource

Source located in Cloud Storage.

Returns
Type Description
GcsSource|null

hasGcsSource

setGcsSource

Source located in Cloud Storage.

Parameter
Name Description
var GcsSource
Returns
Type Description
$this

getBigquerySource

Source located in BigQuery. You must specify this field if you are using this InputConfig in an EvaluationJob.

Returns
Type Description
BigQuerySource|null

hasBigquerySource

setBigquerySource

Source located in BigQuery. You must specify this field if you are using this InputConfig in an EvaluationJob.

Parameter
Name Description
var BigQuerySource
Returns
Type Description
$this

getDataType

Required. Data type must be specifed when user tries to import data.

Returns
Type Description
int

setDataType

Required. Data type must be specifed when user tries to import data.

Parameter
Name Description
var int
Returns
Type Description
$this

getAnnotationType

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.

Returns
Type Description
int

setAnnotationType

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.

Parameter
Name Description
var int
Returns
Type Description
$this

getClassificationMetadata

Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an EvaluationJob for a model version that performs classification.

Returns
Type Description
ClassificationMetadata|null

hasClassificationMetadata

clearClassificationMetadata

setClassificationMetadata

Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an EvaluationJob for a model version that performs classification.

Parameter
Name Description
var ClassificationMetadata
Returns
Type Description
$this

getDataTypeMetadata

Returns
Type Description
string

getSource

Returns
Type Description
string