Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickCardMetadata
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::EnterpriseTopazSidekickCardMetadata
- 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
Card metadata.
Instance Attribute Summary collapse
-
#card_category ⇒ String
Declares a preference for how this card should be packed in MSCR.
-
#card_id ⇒ String
An ID to identify the card and match actions to it.
-
#chronology ⇒ String
Chronology.
-
#debug_info ⇒ String
Debug info (only reported if request's debug_level > 0).
-
#nlp_metadata ⇒ Google::Apis::CloudsearchV1::EnterpriseTopazSidekickNlpMetadata
Metadata about the NLP interpretation of the query.
-
#ranking_params ⇒ Google::Apis::CloudsearchV1::EnterpriseTopazSidekickRankingParams
Ranking params.
-
#render_mode ⇒ String
Render mode.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnterpriseTopazSidekickCardMetadata
constructor
A new instance of EnterpriseTopazSidekickCardMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnterpriseTopazSidekickCardMetadata
Returns a new instance of EnterpriseTopazSidekickCardMetadata.
1788 1789 1790 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1788 def initialize(**args) update!(**args) end |
Instance Attribute Details
#card_category ⇒ String
Declares a preference for how this card should be packed in MSCR. All cards in
a response must correspond to a single category. As a result, cards may be
dropped from the response if this field is set. Any card that does not match
the category of the card with the highest priority in the response will be
dropped.
Corresponds to the JSON property cardCategory
1750 1751 1752 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1750 def card_category @card_category end |
#card_id ⇒ String
An ID to identify the card and match actions to it. Be thoughtful of new card
IDs since actions will be associated to that ID. E.g., if two card IDs collide,
the system will think that the actions have been applied to the same card.
Similarly, if EAS can return multiple cards of the same type (e.g., Meetings),
ensure that the card_id identifies a given instance of the card so that, e.g.,
dismissals only affect the dismissed card as opposed to affecting all meeting
cards.
Corresponds to the JSON property cardId
1761 1762 1763 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1761 def card_id @card_id end |
#chronology ⇒ String
Chronology.
Corresponds to the JSON property chronology
1766 1767 1768 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1766 def chronology @chronology end |
#debug_info ⇒ String
Debug info (only reported if request's debug_level > 0).
Corresponds to the JSON property debugInfo
1771 1772 1773 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1771 def debug_info @debug_info end |
#nlp_metadata ⇒ Google::Apis::CloudsearchV1::EnterpriseTopazSidekickNlpMetadata
Metadata about the NLP interpretation of the query.
Corresponds to the JSON property nlpMetadata
1776 1777 1778 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1776 def @nlp_metadata end |
#ranking_params ⇒ Google::Apis::CloudsearchV1::EnterpriseTopazSidekickRankingParams
Ranking params.
Corresponds to the JSON property rankingParams
1781 1782 1783 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1781 def ranking_params @ranking_params end |
#render_mode ⇒ String
Render mode.
Corresponds to the JSON property renderMode
1786 1787 1788 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1786 def render_mode @render_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1793 1794 1795 1796 1797 1798 1799 1800 1801 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1793 def update!(**args) @card_category = args[:card_category] if args.key?(:card_category) @card_id = args[:card_id] if args.key?(:card_id) @chronology = args[:chronology] if args.key?(:chronology) @debug_info = args[:debug_info] if args.key?(:debug_info) @nlp_metadata = args[:nlp_metadata] if args.key?(:nlp_metadata) @ranking_params = args[:ranking_params] if args.key?(:ranking_params) @render_mode = args[:render_mode] if args.key?(:render_mode) end |