View Source GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPrompt (google_api_content_warehouse v0.4.0)

Used in PeopleAPI layers + FBS/ContactsService (not in ProfileService)

Attributes

  • activeState (type: String.t, default: nil) - Indicates if this prompt is active regardless of its reccurrence date, dismiss date or notification triggers. This is required.
  • content (type: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPromptContent.t, default: nil) -
  • lastDismissDate (type: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t, default: nil) - The most recent day the user dismissed this prompt. Empty means the user has never dismissed the prompt.
  • notificationTriggers (type: list(GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoNotificationTrigger.t), default: nil) - If this is empty, only the "Prompt Spark" will be displayed (in the time-range read from per type config), no push notifications will be shown. If push notification are configured with this field, the "Prompt Spark" time-range will be determined by earliest notification value here.
  • purpose (type: String.t, default: nil) - Read-only. This is derived from the containing field value.
  • recurrence (type: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoRecurrence.t, default: nil) - How frequently will this prompt occur and how many times.
  • uniquePromptId (type: String.t, default: nil) - Prompt ID is generated by server on initial mutate.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPrompt{
  activeState: String.t() | nil,
  content:
    GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPromptContent.t()
    | nil,
  lastDismissDate: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDate.t() | nil,
  notificationTriggers:
    [
      GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoNotificationTrigger.t()
    ]
    | nil,
  purpose: String.t() | nil,
  recurrence:
    GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoRecurrence.t() | nil,
  uniquePromptId: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.