Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextPayload

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_contentString

Text content. Corresponds to the JSON property textContent

Returns:

  • (String)


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