Class: Google::Apis::CloudsearchV1::SearchLinkData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_confidenceFloat

For lightweight scoring in serving time. Corresponds to the JSON property kgEntityConfidence

Returns:

  • (Float)


18210
18211
18212
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18210

def kg_entity_confidence
  @kg_entity_confidence
end

#midString

MID of the KG entity being linked. Corresponds to the JSON property mid

Returns:

  • (String)


18215
18216
18217
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18215

def mid
  @mid
end

#query_broadness_scoreFloat

Corresponds to the JSON property queryBroadnessScore

Returns:

  • (Float)


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