Google Cloud Datalabeling V1beta1 Client - Class InputConfig (0.6.3)

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.

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

Returns
Type
Description
TextMetadata |null

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

Parameter
Name
Description
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
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

hasBigquerySource

setBigquerySource

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

Parameter
Name
Description
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

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

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
Returns
Type
Description
$this
Returns
Type
Description
string

getSource

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: