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.



2536
2537
2538
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2536

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

Instance Attribute Details

#description_typeString

Corresponds to the JSON property descriptionType

Returns:

  • (String)


2529
2530
2531
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2529

def description_type
  @description_type
end

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

Corresponds to the JSON property textSegment



2534
2535
2536
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2534

def text_segment
  @text_segment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2541
2542
2543
2544
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2541

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