Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignalsCustomSignal
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignalsCustomSignal
- 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
-
#name ⇒ String
Optional.
-
#value ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignalsCustomSignal
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignalsCustomSignal.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignalsCustomSignal
Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignalsCustomSignal.
31692 31693 31694 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31692 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Optional. Name of the signal.
Corresponds to the JSON property name
31685 31686 31687 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31685 def name @name end |
#value ⇒ Float
Optional. Float value representing the ranking signal (e.g. 1.25 for BM25).
Corresponds to the JSON property value
31690 31691 31692 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31690 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
31697 31698 31699 31700 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31697 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |