Class: Google::Apis::CloudsearchV1::SearchLinkData
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SearchLinkData
- 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
SearchLink metadata, for SEARCH_LINK segments. For a search link, the "text" field should contain the display text. This is currently not indexed.
Instance Attribute Summary collapse
-
#kg_entity_confidence ⇒ Float
For lightweight scoring in serving time.
-
#mid ⇒ String
MID of the KG entity being linked.
-
#query_broadness_score ⇒ Float
Corresponds to the JSON property
queryBroadnessScore
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SearchLinkData
constructor
A new instance of SearchLinkData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SearchLinkData
Returns a new instance of SearchLinkData.
18222 18223 18224 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18222 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kg_entity_confidence ⇒ Float
For lightweight scoring in serving time.
Corresponds to the JSON property kgEntityConfidence
18210 18211 18212 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18210 def kg_entity_confidence @kg_entity_confidence end |
#mid ⇒ String
MID of the KG entity being linked.
Corresponds to the JSON property mid
18215 18216 18217 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18215 def mid @mid end |
#query_broadness_score ⇒ Float
Corresponds to the JSON property queryBroadnessScore
18220 18221 18222 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18220 def query_broadness_score @query_broadness_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18227 18228 18229 18230 18231 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18227 def update!(**args) @kg_entity_confidence = args[:kg_entity_confidence] if args.key?(:kg_entity_confidence) @mid = args[:mid] if args.key?(:mid) @query_broadness_score = args[:query_broadness_score] if args.key?(:query_broadness_score) end |