Google Cloud Datalabeling V1beta1 Client - Class InputConfig (0.2.0)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Cloud\DataLabeling\V1beta1\TextMetadata|null

hasTextMetadata

setTextMetadata

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

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\TextMetadata
Returns
TypeDescription
$this

getGcsSource

Source located in Cloud Storage.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\GcsSource|null

hasGcsSource

setGcsSource

Source located in Cloud Storage.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\GcsSource
Returns
TypeDescription
$this

getBigquerySource

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

Returns
TypeDescription
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
NameDescription
var Google\Cloud\DataLabeling\V1beta1\BigQuerySource
Returns
TypeDescription
$this

getDataType

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

Returns
TypeDescription
int

setDataType

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

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Cloud\DataLabeling\V1beta1\ClassificationMetadata
Returns
TypeDescription
$this

getDataTypeMetadata

Returns
TypeDescription
string

getSource

Returns
TypeDescription
string