Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextPayload
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextPayload
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datalabeling_v1beta1/classes.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb
Overview
Container of information about a piece of text.
Instance Attribute Summary collapse
-
#text_content ⇒ String
Text content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1TextPayload
constructor
A new instance of GoogleCloudDatalabelingV1beta1TextPayload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1TextPayload
Returns a new instance of GoogleCloudDatalabelingV1beta1TextPayload.
4377 4378 4379 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4377 def initialize(**args) update!(**args) end |
Instance Attribute Details
#text_content ⇒ String
Text content.
Corresponds to the JSON property textContent
4375 4376 4377 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4375 def text_content @text_content end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4382 4383 4384 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4382 def update!(**args) @text_content = args[:text_content] if args.key?(:text_content) end |