View Source GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersDateType (google_api_content_warehouse v0.3.0)

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

Attributes

  • allowAllRangeResolutions (type: boolean(), default: nil) - If true, will allow all resolutions that are ranges.
  • allowAllResolutions (type: boolean(), default: nil) - If true, overrides all other options in this message and allows any kind of DateTime annotation.
  • allowAllResolutionsExceptHolidays (type: boolean(), default: nil) - If true, will allow all resolutions except holidays.
  • 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.
  • 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.
  • 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";
  • 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.
  • allowHourResolution (type: boolean(), default: nil) - If true, will allow resolutions with an explicit hour such as "8am", "5pm".
  • 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";
  • allowNowResolution (type: boolean(), default: nil) - If true, will allow "now" resolutions, but not any other time
  • allowSymbolicTime (type: boolean(), default: nil) - If true, will allow symbolic time resolutions such as "tonight".
  • allowTimeResolutionsWithoutExplicitTimezone (type: boolean(), default: nil) - If true, will allow time resolutions without an explicit timezone.
  • allowYearResolution (type: boolean(), default: nil) - If true, will parse a mention to DateTime of resolution year. This allows parsing strings like "Next year ", "2010";
  • componentSpecificContracts (type: GoogleApi.ContentWarehouse.V1.Model.NlpMeaningComponentSpecificContracts.t, default: nil) - Contains data about the contracts that this ValueType level is available for. For more information see go/contract-based-conformance.
  • remodelings (type: GoogleApi.ContentWarehouse.V1.Model.NlpMeaningMeaningRemodelings.t, default: nil) - Contains data about current schema remodelings at this ValueType level. For more information see go/meaning-remodeling-framework.
  • subType (type: String.t, default: nil) -

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@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
}

Functions

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

Unwrap a decoded JSON object into its complex fields.