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.



18060
18061
18062
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18060

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)


18048
18049
18050
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18048

def kg_entity_confidence
  @kg_entity_confidence
end

#midString

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

Returns:

  • (String)


18053
18054
18055
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18053

def mid
  @mid
end

#query_broadness_scoreFloat

Corresponds to the JSON property queryBroadnessScore

Returns:

  • (Float)


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