Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedTextWithDescription

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

Defines a text with descriptive text segments associated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteSharedTextWithDescription

Returns a new instance of AppsDynamiteSharedTextWithDescription.



2561
2562
2563
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2561

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

Instance Attribute Details

#text_bodyString

Corresponds to the JSON property textBody

Returns:

  • (String)


2554
2555
2556
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2554

def text_body
  @text_body
end

#text_segments_with_descriptionArray<Google::Apis::CloudsearchV1::AppsDynamiteSharedTextSegmentsWithDescription>

Corresponds to the JSON property textSegmentsWithDescription



2559
2560
2561
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2559

def text_segments_with_description
  @text_segments_with_description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2566
2567
2568
2569
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2566

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