Class: Google::Apis::CloudsearchV1::DeepLinkData
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::DeepLinkData
- 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
Deep-linking data is used to construct a deep-link URI for an activity or frame's embed, such that on click, the user is taken to the right place in a mobile app. If the app is not installed, the user is taken to the app store. If not on mobile, an analogous web uri is used.
Instance Attribute Summary collapse
-
#app_id ⇒ Fixnum
Application ID (or project ID) from Google API Console.
-
#client ⇒ Array<Google::Apis::CloudsearchV1::PackagingServiceClient>
The data for a Google API Console client is entered by a developer during client registration and is stored in PackagingService.
-
#deep_link_id ⇒ String
The ID for non-URL content.
-
#url ⇒ String
Analogous web presence.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeepLinkData
constructor
A new instance of DeepLinkData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeepLinkData
Returns a new instance of DeepLinkData.
7519 7520 7521 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7519 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_id ⇒ Fixnum
Application ID (or project ID) from Google API Console.
Corresponds to the JSON property appId
7494 7495 7496 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7494 def app_id @app_id end |
#client ⇒ Array<Google::Apis::CloudsearchV1::PackagingServiceClient>
The data for a Google API Console client is entered by a developer during
client registration and is stored in PackagingService.
Corresponds to the JSON property client
7500 7501 7502 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7500 def client @client end |
#deep_link_id ⇒ String
The ID for non-URL content. Embeds may either have no analogous web presence
or prefer a native mobile experience if supported. In the case of no web
presence, instead of setting the "url" field of an embed, such developers will
set this field and other content fields, e.g. thumbnail, title, description.
If set, this field is used to construct the deep-link URI. Note that the
native experience is preferred over the web link and the web link is used as a
fallback.
Corresponds to the JSON property deepLinkId
7511 7512 7513 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7511 def deep_link_id @deep_link_id end |
#url ⇒ String
Analogous web presence. Used as desktop fallback or when no native link data
is present.
Corresponds to the JSON property url
7517 7518 7519 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7517 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7524 7525 7526 7527 7528 7529 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7524 def update!(**args) @app_id = args[:app_id] if args.key?(:app_id) @client = args[:client] if args.key?(:client) @deep_link_id = args[:deep_link_id] if args.key?(:deep_link_id) @url = args[:url] if args.key?(:url) end |