Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickCardMetadata

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

Card metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseTopazSidekickCardMetadata

Returns a new instance of EnterpriseTopazSidekickCardMetadata.



1755
1756
1757
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1755

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

Instance Attribute Details

#card_categoryString

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

Returns:

  • (String)


1717
1718
1719
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1717

def card_category
  @card_category
end

#card_idString

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

Returns:

  • (String)


1728
1729
1730
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1728

def card_id
  @card_id
end

#chronologyString

Chronology. Corresponds to the JSON property chronology

Returns:

  • (String)


1733
1734
1735
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1733

def chronology
  @chronology
end

#debug_infoString

Debug info (only reported if request's debug_level > 0). Corresponds to the JSON property debugInfo

Returns:

  • (String)


1738
1739
1740
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1738

def debug_info
  @debug_info
end

#nlp_metadataGoogle::Apis::CloudsearchV1::EnterpriseTopazSidekickNlpMetadata

Metadata about the NLP interpretation of the query. Corresponds to the JSON property nlpMetadata



1743
1744
1745
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1743

def 
  @nlp_metadata
end

#ranking_paramsGoogle::Apis::CloudsearchV1::EnterpriseTopazSidekickRankingParams

Ranking params. Corresponds to the JSON property rankingParams



1748
1749
1750
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1748

def ranking_params
  @ranking_params
end

#render_modeString

Render mode. Corresponds to the JSON property renderMode

Returns:

  • (String)


1753
1754
1755
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1753

def render_mode
  @render_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1760
1761
1762
1763
1764
1765
1766
1767
1768
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1760

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