Reference documentation and code samples for the Contact Center AI Insights V1 API class Google::Type::Interval.
Represents a time interval, encoded as a Timestamp start (inclusive) and a
Timestamp end (exclusive).
The start must be less than or equal to the end.
When the start equals the end, the interval is empty (matches no time).
When both start and end are unspecified, the interval matches any time.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Contact Center AI Insights V1 API - Class Google::Type::Interval (v1.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.0 (latest)](/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Type-Interval)\n- [1.5.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.5.1/Google-Type-Interval)\n- [1.4.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.4.0/Google-Type-Interval)\n- [1.3.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.3.0/Google-Type-Interval)\n- [1.2.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.2.0/Google-Type-Interval)\n- [1.1.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.1.0/Google-Type-Interval)\n- [1.0.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.0.1/Google-Type-Interval)\n- [0.22.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.22.0/Google-Type-Interval)\n- [0.21.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.21.1/Google-Type-Interval)\n- [0.20.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.20.1/Google-Type-Interval)\n- [0.19.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.19.1/Google-Type-Interval)\n- [0.18.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.18.0/Google-Type-Interval)\n- [0.17.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.17.0/Google-Type-Interval)\n- [0.16.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.16.0/Google-Type-Interval)\n- [0.15.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.15.0/Google-Type-Interval)\n- [0.14.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.14.0/Google-Type-Interval)\n- [0.13.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.13.0/Google-Type-Interval)\n- [0.12.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.12.0/Google-Type-Interval)\n- [0.11.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.11.0/Google-Type-Interval)\n- [0.10.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.10.0/Google-Type-Interval)\n- [0.9.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.9.0/Google-Type-Interval)\n- [0.8.2](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.8.2/Google-Type-Interval)\n- [0.7.2](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.7.2/Google-Type-Interval)\n- [0.6.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.6.0/Google-Type-Interval) \nReference documentation and code samples for the Contact Center AI Insights V1 API class Google::Type::Interval.\n\nRepresents a time interval, encoded as a Timestamp start (inclusive) and a\nTimestamp end (exclusive).\n\n\n\u003cbr /\u003e\n\nThe start must be less than or equal to the end.\nWhen the start equals the end, the interval is empty (matches no time).\nWhen both start and end are unspecified, the interval matches any time. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #end_time\n\n def end_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Optional. Exclusive end of the interval.\n\n\n If specified, a Timestamp matching this interval will have to be before the\n end.\n\n### #end_time=\n\n def end_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Optional. Exclusive end of the interval.\n\n\n If specified, a Timestamp matching this interval will have to be before the\nend. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Optional. Exclusive end of the interval.\n\n\n If specified, a Timestamp matching this interval will have to be before the\n end.\n\n### #start_time\n\n def start_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Optional. Inclusive start of the interval.\n\n\n If specified, a Timestamp matching this interval will have to be the same\n or after the start.\n\n### #start_time=\n\n def start_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Optional. Inclusive start of the interval.\n\n\n If specified, a Timestamp matching this interval will have to be the same\nor after the start. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Optional. Inclusive start of the interval.\n\n\n If specified, a Timestamp matching this interval will have to be the same\n or after the start."]]