AssistantApiCoreTypesSurfaceIdentity

AI Overview😉

  • The potential purpose of this module is to help the server identify the device and surface (e.g., desktop, mobile, tablet) that a user is searching from, and to determine the capabilities of that surface. This information can be used to tailor the search results to the user's device and surface.
  • This module could impact search results by influencing the ranking of websites based on their compatibility and usability on different devices and surfaces. For example, a website that is optimized for mobile devices may be ranked higher in mobile search results, while a website that is not mobile-friendly may be ranked lower. This could also affect the types of results that are shown, such as filtering out results that are not compatible with the user's device.
  • To be more favorable for this function, a website may want to ensure that it is optimized for multiple devices and surfaces, including desktop, mobile, and tablet. This could involve using responsive design, ensuring that the website is easily usable on different devices, and testing the website on a variety of devices to identify and fix any compatibility issues. Additionally, websites may want to consider providing alternative versions of their content or interfaces that are optimized for specific devices or surfaces.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceIdentity (google_api_content_warehouse v0.4.0)

The set of information that helps the server identify the surface. This replaces the User-Agent string within the Assistant Server. Note: The SurfaceIdentity proto should only be used to derive the capabilities of a surface. It should not be accessed outside of the CapabilityBuilder or CapabilityChecker. NEXT ID: 6

Attributes

  • deviceId (type: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t, default: nil) - The identifier of the device.
  • legacySurfaceType (type: String.t, default: nil) - DEPRECATED: The legacy device's surface type enum. NOTE: Prefer using the ontological surface_type field above. If you need to access the legacy surface type, please file a bug and add it in your code to migrate to ontological surface type.
  • surfaceType (type: String.t, default: nil) - The device's surface type. The types are defined at google3/assistant/api/core_types/surfaces.gcl. For more details, refer to go/ontologicalize-surface-type.
  • surfaceTypeString (type: String.t, default: nil) - DEPRECATED. The legacy device's surface type string. NOTE: Prefer using the ontological surface_type field. The device's surface type. This is the string version of the assistant.api.core_types.SurfaceType enum. The server should not use this field, rather it should use the SurfaceType value derived from this string.
  • surfaceVersion (type: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceVersion.t, default: nil) - The version of the surface/client. This is different from the Conversation protocol version.

Summary

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceIdentity{
    deviceId:
      GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesDeviceId.t()
      | nil,
    legacySurfaceType: String.t() | nil,
    surfaceType: String.t() | nil,
    surfaceTypeString: String.t() | nil,
    surfaceVersion:
      GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesSurfaceVersion.t()
      | nil
  }

Functions

Link to this function

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.