SocialGraphApiProtoRecurrence

GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoRecurrence


Table of Contents ▼

Jump to a specific part of the page:

Description

Flexible Recurrence proto to be used with People Prompts. Examples: Single recurrence that occurs on a specific date: single_recurrence { date { year: 2022 month: 11 day: 17 } } Yearly recurrence such as a birthday or anniversary: yearly_recurrence { monthly_pattern { monthly_day_recurrence { month_day: 17 } } months: JULY } Weekly reccurrence such as: every two weeks on Monday: every: 2 weekly_recurrence { week_day: MONDAY } Monthly recurrence such as: third Thursday of every month: monthly_recurrence { monthly_weekday_recurrence { week_day: THURSDAY week_day_number: 3 } } Used in PeopleAPI layers + FBS/ContactsService (not in ProfileService) The canonical recurrence validation function is located here: http://google3/java/com/google/social/people/prompts/util/PromptValidators.java?q=func:%5CbvalidateRecurrence%5Cb

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. dailyRecurrence (type: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoDailyRecurrence, default: nil)
    -
  2. every (type: integer(), default: nil)
    - Multiplier on the frequency of the recurrence. Use this to specify patterns that recur every X days, months, years, etc. Must be a positive int. Example: [remind me to call mom every 2nd week]. If this field isn't set, it will default to 1 (every day,every week, etc). This field is ignored when recurrence_data is a SingleRecurrence. Optional.
  3. monthlyRecurrence (type: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoMonthlyRecurrence, default: nil)
    -
  4. recurrenceEndDate (type: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime, default: nil)
    - Ends at abstract DateTime. (inclusive)
  5. recurrenceStart (type: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime, default: nil)
    - The start of the recurrence can be represented as a DateTime. This field is ignored when recurrence_data is a SingleRecurrence.
  6. repeatCount (type: integer(), default: nil)
    - Will repeat only a finite number of times. This is the original number of times the recurrence will repeat and not how many times are left for it to repeat. This end type is not currently supported.
  7. repeatForever (type: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoRecurrenceRepeatForever, default: nil)
    - Will continue to repeat until prompt is deleted.
  8. singleRecurrence (type: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoSingleRecurrence, default: nil)
    -
  9. weeklyRecurrence (type: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoWeeklyRecurrence, default: nil)
    -
  10. yearlyRecurrence (type: GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoYearlyRecurrence, default: nil)
    -

Type

Function

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

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoRecurrence