RuntimeEntityInterpretation
public struct RuntimeEntityInterpretation : Codable, Equatable
RuntimeEntityInterpretation.
-
The precision or duration of a time range specified by a recognized
See more@sys-timeor@sys-dateentity.Declaration
Swift
public enum Granularity : String -
The calendar used to represent a recognized date (for example,
Gregorian).Declaration
Swift
public var calendarType: String? -
A unique identifier used to associate a recognized time and date. If the user input contains a date and time that are mentioned together (for example,
Today at 5, the same datetime_link value is returned for both the@sys-dateand@sys-timeentities).Declaration
Swift
public var datetimeLink: String? -
A locale-specific holiday name (such as
thanksgivingorchristmas). This property is included when a@sys-dateentity is recognized based on a holiday name in the user input.Declaration
Swift
public var festival: String? -
The precision or duration of a time range specified by a recognized
@sys-timeor@sys-dateentity.Declaration
Swift
public var granularity: String? -
A unique identifier used to associate multiple recognized
@sys-date,@sys-time, or@sys-numberentities that are recognized as a range of values in the user’s input (for example,from July 4 until July 14orfrom 20 to 25).Declaration
Swift
public var rangeLink: String? -
The word in the user input that indicates that a
sys-dateorsys-timeentity is part of an implied range where only one date or time is specified (for example,sinceoruntil).Declaration
Swift
public var rangeModifier: String? -
A recognized mention of a relative day, represented numerically as an offset from the current date (for example,
-1foryesterdayor10forin ten days).Declaration
Swift
public var relativeDay: Double? -
A recognized mention of a relative month, represented numerically as an offset from the current month (for example,
1fornext monthor-3forthree months ago).Declaration
Swift
public var relativeMonth: Double? -
A recognized mention of a relative week, represented numerically as an offset from the current week (for example,
2forin two weeksor-1for `last week).Declaration
Swift
public var relativeWeek: Double? -
A recognized mention of a relative date range for a weekend, represented numerically as an offset from the current weekend (for example,
0forthis weekendor-1forlast weekend).Declaration
Swift
public var relativeWeekend: Double? -
A recognized mention of a relative year, represented numerically as an offset from the current year (for example,
1fornext yearor-5forfive years ago).Declaration
Swift
public var relativeYear: Double? -
A recognized mention of a specific date, represented numerically as the date within the month (for example,
30forJune 30.).Declaration
Swift
public var specificDay: Double? -
A recognized mention of a specific day of the week as a lowercase string (for example,
monday).Declaration
Swift
public var specificDayOfWeek: String? -
A recognized mention of a specific month, represented numerically (for example,
7forJuly).Declaration
Swift
public var specificMonth: Double? -
A recognized mention of a specific quarter, represented numerically (for example,
3forthe third quarter).Declaration
Swift
public var specificQuarter: Double? -
A recognized mention of a specific year (for example,
2016).Declaration
Swift
public var specificYear: Double? -
A recognized numeric value, represented as an integer or double.
Declaration
Swift
public var numericValue: Double? -
The type of numeric value recognized in the user input (
integerorrational).Declaration
Swift
public var subtype: String? -
A recognized term for a time that was mentioned as a part of the day in the user’s input (for example,
morningorafternoon).Declaration
Swift
public var partOfDay: String? -
A recognized mention of a relative hour, represented numerically as an offset from the current hour (for example,
3forin three hoursor-1foran hour ago).Declaration
Swift
public var relativeHour: Double? -
A recognized mention of a relative time, represented numerically as an offset in minutes from the current time (for example,
5forin five minutesor-15forfifteen minutes ago).Declaration
Swift
public var relativeMinute: Double? -
A recognized mention of a relative time, represented numerically as an offset in seconds from the current time (for example,
10forin ten secondsor-30forthirty seconds ago).Declaration
Swift
public var relativeSecond: Double? -
A recognized specific hour mentioned as part of a time value (for example,
10for10:15 AM.).Declaration
Swift
public var specificHour: Double? -
A recognized specific minute mentioned as part of a time value (for example,
15for10:15 AM.).Declaration
Swift
public var specificMinute: Double? -
A recognized specific second mentioned as part of a time value (for example,
30for10:15:30 AM.).Declaration
Swift
public var specificSecond: Double? -
A recognized time zone mentioned as part of a time value (for example,
EST).Declaration
Swift
public var timezone: String? -
init(calendarType:datetimeLink: festival: granularity: rangeLink: rangeModifier: relativeDay: relativeMonth: relativeWeek: relativeWeekend: relativeYear: specificDay: specificDayOfWeek: specificMonth: specificQuarter: specificYear: numericValue: subtype: partOfDay: relativeHour: relativeMinute: relativeSecond: specificHour: specificMinute: specificSecond: timezone: ) Initialize a
RuntimeEntityInterpretationwith member variables.Declaration
Swift
public init( calendarType: String? = nil, datetimeLink: String? = nil, festival: String? = nil, granularity: String? = nil, rangeLink: String? = nil, rangeModifier: String? = nil, relativeDay: Double? = nil, relativeMonth: Double? = nil, relativeWeek: Double? = nil, relativeWeekend: Double? = nil, relativeYear: Double? = nil, specificDay: Double? = nil, specificDayOfWeek: String? = nil, specificMonth: Double? = nil, specificQuarter: Double? = nil, specificYear: Double? = nil, numericValue: Double? = nil, subtype: String? = nil, partOfDay: String? = nil, relativeHour: Double? = nil, relativeMinute: Double? = nil, relativeSecond: Double? = nil, specificHour: Double? = nil, specificMinute: Double? = nil, specificSecond: Double? = nil, timezone: String? = nil )Parameters
calendarTypeThe calendar used to represent a recognized date (for example,
Gregorian).datetimeLinkA unique identifier used to associate a recognized time and date. If the user input contains a date and time that are mentioned together (for example,
Today at 5, the same datetime_link value is returned for both the@sys-dateand@sys-timeentities).festivalA locale-specific holiday name (such as
thanksgivingorchristmas). This property is included when a@sys-dateentity is recognized based on a holiday name in the user input.granularityThe precision or duration of a time range specified by a recognized
@sys-timeor@sys-dateentity.rangeLinkA unique identifier used to associate multiple recognized
@sys-date,@sys-time, or@sys-numberentities that are recognized as a range of values in the user’s input (for example,from July 4 until July 14orfrom 20 to 25).rangeModifierThe word in the user input that indicates that a
sys-dateorsys-timeentity is part of an implied range where only one date or time is specified (for example,sinceoruntil).relativeDayA recognized mention of a relative day, represented numerically as an offset from the current date (for example,
-1foryesterdayor10forin ten days).relativeMonthA recognized mention of a relative month, represented numerically as an offset from the current month (for example,
1fornext monthor-3forthree months ago).relativeWeekA recognized mention of a relative week, represented numerically as an offset from the current week (for example,
2forin two weeksor-1for `last week).relativeWeekendA recognized mention of a relative date range for a weekend, represented numerically as an offset from the current weekend (for example,
0forthis weekendor-1forlast weekend).relativeYearA recognized mention of a relative year, represented numerically as an offset from the current year (for example,
1fornext yearor-5forfive years ago).specificDayA recognized mention of a specific date, represented numerically as the date within the month (for example,
30forJune 30.).specificDayOfWeekA recognized mention of a specific day of the week as a lowercase string (for example,
monday).specificMonthA recognized mention of a specific month, represented numerically (for example,
7forJuly).specificQuarterA recognized mention of a specific quarter, represented numerically (for example,
3forthe third quarter).specificYearA recognized mention of a specific year (for example,
2016).numericValueA recognized numeric value, represented as an integer or double.
subtypeThe type of numeric value recognized in the user input (
integerorrational).partOfDayA recognized term for a time that was mentioned as a part of the day in the user’s input (for example,
morningorafternoon).relativeHourA recognized mention of a relative hour, represented numerically as an offset from the current hour (for example,
3forin three hoursor-1foran hour ago).relativeMinuteA recognized mention of a relative time, represented numerically as an offset in minutes from the current time (for example,
5forin five minutesor-15forfifteen minutes ago).relativeSecondA recognized mention of a relative time, represented numerically as an offset in seconds from the current time (for example,
10forin ten secondsor-30forthirty seconds ago).specificHourA recognized specific hour mentioned as part of a time value (for example,
10for10:15 AM.).specificMinuteA recognized specific minute mentioned as part of a time value (for example,
15for10:15 AM.).specificSecondA recognized specific second mentioned as part of a time value (for example,
30for10:15:30 AM.).timezoneA recognized time zone mentioned as part of a time value (for example,
EST).Return Value
An initialized
RuntimeEntityInterpretation.
View on GitHub
RuntimeEntityInterpretation Structure Reference