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

expressions: "every Monday after December 1" "every morning starting from this Friday". Note: if a recurrent DATE/TIME expression is bounded (limited by a finite interval or a finite count), e.g., "every monday in the next 3 months", "... at 11:00am every Monday for 4 times" the grammar will resolve it to a finite number of |range|s. Next available ID: 17.

Attributes

  • countRestriction (type: integer(), default: nil) - How many times it repeats.
  • exception (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDateTime.t), default: nil) - An arbitrary exception to the recurrence. This can be an absolute point, a relative, a range or a recurrent expression. Examples: "every Tuesday except for July 13th 2021" "every Tuesday except for July 13th and November 2nd" "every second Monday except during the summer" "everyday except Thursdays" * "every Friday, except from October 1st to October 22nd"
  • frequency (type: integer(), default: nil) - |frequency| is used to represent the frequency of the recurrence over a given recurrent period. E.g. "twice a week", "once a month". An unknown frequency is represented with 0, as in just "repeating".
  • metadata (type: String.t, default: nil) -
  • period (type: integer(), default: nil) - |period| and |unit| specify how often |start_point| or |start_range| repeats. |period| should not be 0.
  • rangeRestriction (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRange.t, default: nil) -
  • relativeRangeRestriction (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRelativeDateTime.t, default: nil) -
  • restriction (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDateTime.t, default: nil) - A recurrent expression can be restricted by either a datetime |restriction| or |count_restriction| below. The restriction datetime can be expressed as an explicit range a relative datetime expression, a datetime point or a recurrent datetime. E.g. "every monday [next month]", "every second tuesday [this year]", etc. If |period| is > 0 and |restriction| is not set, repeat indefinitely. Note that this can support recurrent expressions as |restriction| as well. For example in the expression "every monday on [every other month]" where [every other month] is a restriction expressed as a recurrent datetime.
  • start (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeDateTime.t), default: nil) - |start| is used to represent the starting points, ranges or relative datetims in a recurrent expression, for example: "every morning", (range) "everyday at 5 pm", (point) "every second monday" (relative) |start| should never contain a recurrent element.
  • startPoint (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeAbsoluteDateTime.t), default: nil) - DO NOT USE: deprecated fields soon to be removed.
  • startRange (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRange.t), default: nil) -
  • startRelative (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeRelativeDateTime.t), default: nil) -
  • target (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeTargetToFetch.t, default: nil) - The target to be fetched. This could be a named day-of-week or month (e.g., "Monday", "April"), or a date/time unit (e.g., "day", "week", "month").
  • timeInterval (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingDatetimeQuantity.t, default: nil) - |time_interval| is a time amount or duration, used to described the time interval between the instances of the recurrence. (e.g. "every 3 hours", "every 35 minutes", "every 2 months and 15 days", etc)
  • unit (type: String.t, default: nil) -

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

Functions

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

Unwrap a decoded JSON object into its complex fields.