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.
18060 18061 18062 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18060 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
18048 18049 18050 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18048 def kg_entity_confidence @kg_entity_confidence end |
#mid ⇒ String
MID of the KG entity being linked.
Corresponds to the JSON property mid
18053 18054 18055 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18053 def mid @mid end |
#query_broadness_score ⇒ Float
Corresponds to the JSON property queryBroadnessScore
18058 18059 18060 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18058 def query_broadness_score @query_broadness_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18065 18066 18067 18068 18069 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18065 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 |