Google Cloud Datalabeling V1beta1 Client - Class TextMetadata (0.2.0)

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

Metadata for the text.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ language_code string

The language of this text, as a BCP-47. Default value is en-US.

getLanguageCode

The language of this text, as a BCP-47.

Default value is en-US.

Returns
TypeDescription
string

setLanguageCode

The language of this text, as a BCP-47.

Default value is en-US.

Parameter
NameDescription
var string
Returns
TypeDescription
$this