Reference documentation and code samples for the Google API Common Protos Client class 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.
Generated from protobuf messagegoogle.type.Interval
[[["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-09-04 UTC."],[],[],null,["# Google API Common Protos Client - Class Interval (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Type.Interval)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Type.Interval)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Type.Interval)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Type.Interval)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Type.Interval)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Type.Interval) \nReference documentation and code samples for the Google API Common Protos Client class Interval.\n\nRepresents a time interval, encoded as a Timestamp start (inclusive) and a\nTimestamp end (exclusive).\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\nGenerated from protobuf message `google.type.Interval`\n\nNamespace\n---------\n\nGoogle \\\\ Type\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getStartTime\n\nOptional. Inclusive start of the interval.\n\nIf specified, a Timestamp matching this interval will have to be the same\nor after the start.\n\n### hasStartTime\n\n### clearStartTime\n\n### setStartTime\n\nOptional. Inclusive start of the interval.\n\nIf specified, a Timestamp matching this interval will have to be the same\nor after the start.\n\n### getEndTime\n\nOptional. Exclusive end of the interval.\n\nIf specified, a Timestamp matching this interval will have to be before the\nend.\n\n### hasEndTime\n\n### clearEndTime\n\n### setEndTime\n\nOptional. Exclusive end of the interval.\n\nIf specified, a Timestamp matching this interval will have to be before the\nend."]]