Google Cloud Backup Dr V1 Client - Class SchedulingDuration (0.4.0)

Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class SchedulingDuration.

A SchedulingDuration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years.

Generated from protobuf message google.cloud.backupdr.v1.SchedulingDuration

Namespace

Google \ Cloud \ BackupDR \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ seconds int|string

Optional. Span of time at a resolution of a second.

↳ nanos int

Optional. Span of time that's a fraction of a second at nanosecond resolution.

getSeconds

Optional. Span of time at a resolution of a second.

Returns
Type Description
int|string

hasSeconds

clearSeconds

setSeconds

Optional. Span of time at a resolution of a second.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getNanos

Optional. Span of time that's a fraction of a second at nanosecond resolution.

Returns
Type Description
int

hasNanos

clearNanos

setNanos

Optional. Span of time that's a fraction of a second at nanosecond resolution.

Parameter
Name Description
var int
Returns
Type Description
$this