class Google::Apis::CloudsearchV1::Snippet

Snippet of the search result, which summarizes the content of the resulting page.

Attributes

match_ranges[RW]

The matched ranges in the snippet. Corresponds to the JSON property `matchRanges` @return [Array<Google::Apis::CloudsearchV1::MatchRange>]

snippet[RW]

The snippet of the document. The snippet of the document. May contain escaped HTML character that should be unescaped prior to rendering. Corresponds to the JSON property `snippet` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 4389
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 4394
def update!(**args)
  @match_ranges = args[:match_ranges] if args.key?(:match_ranges)
  @snippet = args[:snippet] if args.key?(:snippet)
end