Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedMessageSearchInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteSharedMessageSearchInfo
- 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
Metadata used to describe how to render a message in search results page, e.g., highlighting and snipetting. In future, we can use this proto to return more search specific data attached to a message.
Instance Attribute Summary collapse
-
#matched_segments_in_text_body ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteSharedTextSegmentsWithDescription>
An example use case: clients can use this field to highlight matched segments in message text_body defined in http://google3/apps/dynamite/v1/frontend/api/ message.proto;l=104;rcl=513400736.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppsDynamiteSharedMessageSearchInfo
constructor
A new instance of AppsDynamiteSharedMessageSearchInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteSharedMessageSearchInfo
Returns a new instance of AppsDynamiteSharedMessageSearchInfo.
1970 1971 1972 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1970 def initialize(**args) update!(**args) end |
Instance Attribute Details
#matched_segments_in_text_body ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteSharedTextSegmentsWithDescription>
An example use case: clients can use this field to highlight matched segments
in message text_body defined in http://google3/apps/dynamite/v1/frontend/api/
message.proto;l=104;rcl=513400736.
Corresponds to the JSON property matchedSegmentsInTextBody
1968 1969 1970 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1968 def matched_segments_in_text_body @matched_segments_in_text_body end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1975 1976 1977 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1975 def update!(**args) @matched_segments_in_text_body = args[:matched_segments_in_text_body] if args.key?(:matched_segments_in_text_body) end |