Cloud Controls Partner V1 API - Class Google::Type::Interval (v1.2.0)

Reference documentation and code samples for the Cloud Controls Partner 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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#end_time

def end_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::Google::Protobuf::Timestamp) — Optional. Exclusive end of the interval.

    If specified, a Timestamp matching this interval will have to be before the end.

#end_time=

def end_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • value (::Google::Protobuf::Timestamp) — Optional. Exclusive end of the interval.

    If specified, a Timestamp matching this interval will have to be before the end.

Returns
  • (::Google::Protobuf::Timestamp) — Optional. Exclusive end of the interval.

    If specified, a Timestamp matching this interval will have to be before the end.

#start_time

def start_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::Google::Protobuf::Timestamp) — Optional. Inclusive start of the interval.

    If specified, a Timestamp matching this interval will have to be the same or after the start.

#start_time=

def start_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • value (::Google::Protobuf::Timestamp) — Optional. Inclusive start of the interval.

    If specified, a Timestamp matching this interval will have to be the same or after the start.

Returns
  • (::Google::Protobuf::Timestamp) — Optional. Inclusive start of the interval.

    If specified, a Timestamp matching this interval will have to be the same or after the start.