Google Cloud Datalabeling V1beta1 Client - Class TextMetadata (0.4.2)

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

Namespace

Google \ Cloud \ DataLabeling \ V1beta1

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