Searched refs:datetime_component (Results 1 – 7 of 7) sorted by relevance
75 EntityData_::Datetime_::DatetimeComponentT datetime_component; in CreateDatetimeSerializedEntityData() local76 datetime_component.absolute_value = c.value; in CreateDatetimeSerializedEntityData()77 datetime_component.relative_count = c.relative_count; in CreateDatetimeSerializedEntityData()78 datetime_component.component_type = in CreateDatetimeSerializedEntityData()81 datetime_component.relation_type = in CreateDatetimeSerializedEntityData()85 datetime_component.relation_type = in CreateDatetimeSerializedEntityData()88 entity_data.datetime->datetime_component.emplace_back( in CreateDatetimeSerializedEntityData()89 new EntityData_::Datetime_::DatetimeComponentT(datetime_component)); in CreateDatetimeSerializedEntityData()
255 for (const DatetimeComponent& datetime_component : datetime_components) { in AddDatetimeComponents() local257 {datetime_component.component_type, datetime_component}); in AddDatetimeComponents()414 for (auto datetime_component : datetime_components) { in GetDatetimeComponent() local415 if (datetime_component.component_type == component_type) { in GetDatetimeComponent()416 return Optional<DatetimeComponent>(datetime_component); in GetDatetimeComponent()424 const std::vector<DatetimeComponent>& datetime_component) { in GetFinestGranularity() argument426 std::transform(datetime_component.begin(), datetime_component.end(), in GetFinestGranularity()
2577 EXPECT_EQ(entity_data->datetime()->datetime_component()->size(), 6); in VerifyClassifyTextOutputsDatetimeEntityData()2579 auto* meridiem = entity_data->datetime()->datetime_component()->Get(0); in VerifyClassifyTextOutputsDatetimeEntityData()2587 auto* minute = entity_data->datetime()->datetime_component()->Get(1); in VerifyClassifyTextOutputsDatetimeEntityData()2595 auto* hour = entity_data->datetime()->datetime_component()->Get(2); in VerifyClassifyTextOutputsDatetimeEntityData()2603 auto* day = entity_data->datetime()->datetime_component()->Get(3); in VerifyClassifyTextOutputsDatetimeEntityData()2612 auto* month = entity_data->datetime()->datetime_component()->Get(4); in VerifyClassifyTextOutputsDatetimeEntityData()2620 auto* year = entity_data->datetime()->datetime_component()->Get(5); in VerifyClassifyTextOutputsDatetimeEntityData()2662 EXPECT_EQ(entity_data->datetime()->datetime_component()->size(), 3); in VerifyAnnotateOutputsDatetimeEntityData()2664 auto* day = entity_data->datetime()->datetime_component()->Get(0); in VerifyAnnotateOutputsDatetimeEntityData()2673 auto* month = entity_data->datetime()->datetime_component()->Get(1); in VerifyAnnotateOutputsDatetimeEntityData()[all …]
73 datetime_component:[Datetime_.DatetimeComponent];
343 const std::vector<DatetimeComponent>& datetime_component);
46 const DatetimeComponent& datetime_component) { in AddComponent() argument47 datetime_components_.push_back(datetime_component); in AddComponent()
39 const DatetimeComponent& datetime_component);