Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedTextSegmentsWithDescription

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 text segments with description type associated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteSharedTextSegmentsWithDescription

Returns a new instance of AppsDynamiteSharedTextSegmentsWithDescription.



2594
2595
2596
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2594

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

Instance Attribute Details

#description_typeString

Corresponds to the JSON property descriptionType

Returns:

  • (String)


2587
2588
2589
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2587

def description_type
  @description_type
end

#text_segmentArray<Google::Apis::CloudsearchV1::AppsDynamiteSharedTextSegment>

Corresponds to the JSON property textSegment



2592
2593
2594
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2592

def text_segment
  @text_segment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2599
2600
2601
2602
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2599

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