Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextMetadata
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextMetadata
- 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
-
#language_code ⇒ String
The language of this text, as a BCP-47.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1TextMetadata
constructor
A new instance of GoogleCloudDatalabelingV1beta1TextMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_code ⇒ String
The language of this text, as a BCP-47. Default value is en-US.
Corresponds to the JSON property languageCode
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 |