Class: Google::Apis::ContentV2_1::ProductStructuredDescription

Inherits:
Object
  • Object
show all
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 description, for algorithmically (AI)-generated descriptions. See description for more information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductStructuredDescription

Returns a new instance of ProductStructuredDescription.



10087
10088
10089
# File 'lib/google/apis/content_v2_1/classes.rb', line 10087

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

Instance Attribute Details

#contentString

Required. The description text. Maximum length is 5000 characters. Corresponds to the JSON property content

Returns:

  • (String)


10079
10080
10081
# File 'lib/google/apis/content_v2_1/classes.rb', line 10079

def content
  @content
end

#digital_source_typeString

Optional. The digital source type. Acceptable values are: - " trained_algorithmic_media" - "default" Corresponds to the JSON property digitalSourceType

Returns:

  • (String)


10085
10086
10087
# File 'lib/google/apis/content_v2_1/classes.rb', line 10085

def digital_source_type
  @digital_source_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10092
10093
10094
10095
# File 'lib/google/apis/content_v2_1/classes.rb', line 10092

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