Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datalabeling_v1beta1/classes.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb

Overview

Metadata for the text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1TextMetadata

Returns a new instance of GoogleCloudDatalabelingV1beta1TextMetadata.



4358
4359
4360
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4358

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#language_codeString

The language of this text, as a BCP-47. Default value is en-US. Corresponds to the JSON property languageCode

Returns:

  • (String)


4356
4357
4358
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4356

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4363
4364
4365
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4363

def update!(**args)
  @language_code = args[:language_code] if args.key?(:language_code)
end