KnowledgeAnswersDateType

GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersDateType


Table of Contents ▼

Jump to a specific part of the page:

Description

A DateType configures a value whose type is intended to be a date. LINT.IfChange Next id: 17

Attributes List

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

View Attributes

Attributes

  1. allowAllRangeResolutions (type: boolean(), default: nil)
    - If true, will allow all resolutions that are ranges.
  2. allowAllResolutions (type: boolean(), default: nil)
    - If true, overrides all other options in this message and allows any kind of DateTime annotation.
  3. allowAllResolutionsExceptHolidays (type: boolean(), default: nil)
    - If true, will allow all resolutions except holidays.
  4. allowAllResolutionsWithout4digit24hrTime (type: boolean(), default: nil)
    - If true, will allow resolutions that aren't contiguous sequences of 4 digits annotated as 24-hr times. These are often mis-interpreted years or postcodes.
  5. allowAllResolutionsWithoutTime (type: boolean(), default: nil)
    - If true, will allow resolutions without an explicit hour. Symbolic ranges such as [this evening] are not considered as explicit hour, but the range [1-3pm] is considered as explicit.
  6. allowDayResolution (type: boolean(), default: nil)
    - If true, will parse a mention to DateTime of resolution day. This allows parsing strings like "August 30th", "2012-12-25";
  7. allowDayResolutionExceptHolidaysOrOrdinal (type: boolean(), default: nil)
    - If true, will allow day resolutions except holidays or ordinal numbers, such as "today", "December 13", but "Christmas", "first" are not allowed.
  8. allowHourResolution (type: boolean(), default: nil)
    - If true, will allow resolutions with an explicit hour such as "8am", "5pm".
  9. allowMonthResolution (type: boolean(), default: nil)
    - If true, will parse a mention to DateTime of resolution month. This allows parsing strings like "this August", "2012-12";
  10. allowNowResolution (type: boolean(), default: nil)
    - If true, will allow "now" resolutions, but not any other time
  11. allowSymbolicTime (type: boolean(), default: nil)
    - If true, will allow symbolic time resolutions such as "tonight".
  12. allowTimeResolutionsWithoutExplicitTimezone (type: boolean(), default: nil)
    - If true, will allow time resolutions without an explicit timezone.
  13. allowYearResolution (type: boolean(), default: nil)
    - If true, will parse a mention to DateTime of resolution year. This allows parsing strings like "Next year ", "2010";
  14. componentSpecificContracts (type: GoogleApi.ContentWarehouse.V1.Model.NlpMeaningComponentSpecificContracts, default: nil)
    - Contains data about the contracts that this ValueType level is available for. For more information see go/contract-based-conformance.
  15. remodelings (type: GoogleApi.ContentWarehouse.V1.Model.NlpMeaningMeaningRemodelings, default: nil)
    - Contains data about current schema remodelings at this ValueType level. For more information see go/meaning-remodeling-framework.
  16. subType (type: String.t, default: nil)
    -

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersDateType{
allowAllRangeResolutions: boolean() | nil,
allowAllResolutions: boolean() | nil,
allowAllResolutionsExceptHolidays: boolean() | nil,
allowAllResolutionsWithout4digit24hrTime: boolean() | nil,
allowAllResolutionsWithoutTime: boolean() | nil,
allowDayResolution: boolean() | nil,
allowDayResolutionExceptHolidaysOrOrdinal: boolean() | nil,
allowHourResolution: boolean() | nil,
allowMonthResolution: boolean() | nil,
allowNowResolution: boolean() | nil,
allowSymbolicTime: boolean() | nil,
allowTimeResolutionsWithoutExplicitTimezone: boolean() | nil,
allowYearResolution: boolean() | nil,
componentSpecificContracts: GoogleApi.ContentWarehouse.V1.Model.NlpMeaningComponentSpecificContracts.t() | nil,
remodelings: GoogleApi.ContentWarehouse.V1.Model.NlpMeaningMeaningRemodelings.t() | nil,
subType: String.t() | nil
}

Function

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

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