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
- allowAllRangeResolutions
- allowAllResolutions
- allowAllResolutionsExceptHolidays
- allowAllResolutionsWithout4digit24hrTime
- allowAllResolutionsWithoutTime
- allowDayResolution
- allowDayResolutionExceptHolidaysOrOrdinal
- allowHourResolution
- allowMonthResolution
- allowNowResolution
- allowSymbolicTime
- allowTimeResolutionsWithoutExplicitTimezone
- allowYearResolution
- componentSpecificContracts
- remodelings
- subType
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
, 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
, 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
)
-
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
}
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