Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignalsCustomSignal

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

Custom clearbox signal represented by name and value pair.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignalsCustomSignal

Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignalsCustomSignal.



32644
32645
32646
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32644

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

Instance Attribute Details

#nameString

Optional. Name of the signal. Corresponds to the JSON property name

Returns:

  • (String)


32637
32638
32639
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32637

def name
  @name
end

#valueFloat

Optional. Float value representing the ranking signal (e.g. 1.25 for BM25). Corresponds to the JSON property value

Returns:

  • (Float)


32642
32643
32644
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32642

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32649
32650
32651
32652
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32649

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