Class: Google::Apis::ContentV2_1::ProductStructuredTitle
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ProductStructuredTitle
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Structured title, for algorithmically (AI)-generated titles. See title for more information.
Instance Attribute Summary collapse
-
#content ⇒ String
Required.
-
#digital_source_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductStructuredTitle
constructor
A new instance of ProductStructuredTitle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductStructuredTitle
Returns a new instance of ProductStructuredTitle.
10215 10216 10217 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10215 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
Required. The title text. Maximum length is 150 characters.
Corresponds to the JSON property content
10207 10208 10209 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10207 def content @content end |
#digital_source_type ⇒ String
Optional. The digital source type. Acceptable values are: - "
trained_algorithmic_media" - "default"
Corresponds to the JSON property digitalSourceType
10213 10214 10215 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10213 def digital_source_type @digital_source_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10220 10221 10222 10223 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10220 def update!(**args) @content = args[:content] if args.key?(:content) @digital_source_type = args[:digital_source_type] if args.key?(:digital_source_type) end |