Class: Google::Apis::CloudsearchV1::EmbedClientItem
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::EmbedClientItem
- 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
Represents an embedded object in an update. This is a wrapper class that can
contain a single specific item proto in an extension field. Think of it as a
base class like Message
in Java. Each item proto must declare that it
extends this proto: message ExampleObject option (item_type) =
EXAMPLE_OBJECT; extend EmbedClientItem
optional ExampleObject example_object
= ; See go/es-embeds for details.
Instance Attribute Summary collapse
-
#canonical_id ⇒ String
The canonical ID of the embed.
-
#deep_link_data ⇒ Google::Apis::CloudsearchV1::DeepLinkData
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.
-
#id ⇒ String
The ID of the embed.
-
#provenance ⇒ Google::Apis::CloudsearchV1::Provenance
This field records where the ItemScope was retrieved, if it was created via a web fetch.
-
#render_id ⇒ String
The ID used to identify the embed during rendering.
-
#signature ⇒ String
Signature of the embed, used for verification.
-
#transient_data ⇒ Google::Apis::CloudsearchV1::TransientData
Transient generic data that will not be saved on the server.
-
#type ⇒ Array<String>
The first value in
type
determines which extension field will be set.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EmbedClientItem
constructor
A new instance of EmbedClientItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EmbedClientItem
Returns a new instance of EmbedClientItem.
8624 8625 8626 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8624 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canonical_id ⇒ String
The canonical ID of the embed. If absent, the canonical ID is equal to the ID;
if present, then the canonical ID represents an "equivalence class" of embeds
which really refer to the same object. (For example, the URLs http://www.foo.
com/ and http://foo.com/ refer to the same object) This field may be updated
periodically by background processes.
Corresponds to the JSON property canonicalId
8577 8578 8579 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8577 def canonical_id @canonical_id end |
#deep_link_data ⇒ Google::Apis::CloudsearchV1::DeepLinkData
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.
Corresponds to the JSON property deepLinkData
8585 8586 8587 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8585 def deep_link_data @deep_link_data end |
#id ⇒ String
The ID of the embed. This corresponds to the schema.org ID, as represented in
the ItemScope.id field.
Corresponds to the JSON property id
8591 8592 8593 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8591 def id @id end |
#provenance ⇒ Google::Apis::CloudsearchV1::Provenance
This field records where the ItemScope was retrieved, if it was created via a
web fetch.
Corresponds to the JSON property provenance
8597 8598 8599 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8597 def provenance @provenance end |
#render_id ⇒ String
The ID used to identify the embed during rendering. This field will match ID,
if set, otherwise it will be the ID of the parent activity. This field is only
populated on the server for client use and is not persisted to storage.
Corresponds to the JSON property renderId
8604 8605 8606 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8604 def render_id @render_id end |
#signature ⇒ String
Signature of the embed, used for verification.
Corresponds to the JSON property signature
8609 8610 8611 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8609 def signature @signature end |
#transient_data ⇒ Google::Apis::CloudsearchV1::TransientData
Transient generic data that will not be saved on the server.
Corresponds to the JSON property transientData
8614 8615 8616 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8614 def transient_data @transient_data end |
#type ⇒ Array<String>
The first value in type
determines which extension field will be set. When
creating an EmbedClientItem, you only need to set the first (primary) type in
this field. When the server receives the item, it will populate the full type
list using the parent annotations in the ItemType enum.
Corresponds to the JSON property type
8622 8623 8624 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8622 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8629 def update!(**args) @canonical_id = args[:canonical_id] if args.key?(:canonical_id) @deep_link_data = args[:deep_link_data] if args.key?(:deep_link_data) @id = args[:id] if args.key?(:id) @provenance = args[:provenance] if args.key?(:provenance) @render_id = args[:render_id] if args.key?(:render_id) @signature = args[:signature] if args.key?(:signature) @transient_data = args[:transient_data] if args.key?(:transient_data) @type = args[:type] if args.key?(:type) end |