Google Cloud Datalabeling V1beta1 Client - Class InputConfig (0.5.5)

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 Google\Cloud\DataLabeling\V1beta1\TextMetadata

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

↳ gcs_source Google\Cloud\DataLabeling\V1beta1\GcsSource

Source located in Cloud Storage.

↳ bigquery_source Google\Cloud\DataLabeling\V1beta1\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 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 for a model version that performs classification.

getTextMetadata

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

Returns
Type Description
Google\Cloud\DataLabeling\V1beta1\TextMetadata|null

hasTextMetadata

setTextMetadata

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

Parameter
Name Description
var Google\Cloud\DataLabeling\V1beta1\TextMetadata
Returns
Type Description
$this

getGcsSource

Source located in Cloud Storage.

Returns
Type Description
Google\Cloud\DataLabeling\V1beta1\GcsSource|null

hasGcsSource

setGcsSource

Source located in Cloud Storage.

Parameter
Name Description
var Google\Cloud\DataLabeling\V1beta1\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
Google\Cloud\DataLabeling\V1beta1\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 Google\Cloud\DataLabeling\V1beta1\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
Google\Cloud\DataLabeling\V1beta1\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 Google\Cloud\DataLabeling\V1beta1\ClassificationMetadata
Returns
Type Description
$this

getDataTypeMetadata

Returns
Type Description
string

getSource

Returns
Type Description
string