Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaControlPromoteAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb

Overview

Promote certain links based on some trigger queries. Example: Promote shoe store link when searching for shoe keyword. The link can be outside of associated data store.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaControlPromoteAction

Returns a new instance of GoogleCloudDiscoveryengineV1betaControlPromoteAction.



13763
13764
13765
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 13763

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

Instance Attribute Details

#data_storeString

Required. Data store with which this promotion is attached to. Corresponds to the JSON property dataStore

Returns:

  • (String)


13755
13756
13757
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 13755

def data_store
  @data_store
end

Promotion proto includes uri and other helping information to display the promotion. Corresponds to the JSON property searchLinkPromotion



13761
13762
13763
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 13761

def search_link_promotion
  @search_link_promotion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13768
13769
13770
13771
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 13768

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