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.
[[["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 Cloud Backup Dr V1 Client - Class SchedulingDuration (0.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.7.0 (latest)](/php/docs/reference/cloud-backupdr/latest/V1.SchedulingDuration)\n- [0.6.2](/php/docs/reference/cloud-backupdr/0.6.2/V1.SchedulingDuration)\n- [0.5.1](/php/docs/reference/cloud-backupdr/0.5.1/V1.SchedulingDuration)\n- [0.4.2](/php/docs/reference/cloud-backupdr/0.4.2/V1.SchedulingDuration)\n- [0.3.0](/php/docs/reference/cloud-backupdr/0.3.0/V1.SchedulingDuration)\n- [0.2.0](/php/docs/reference/cloud-backupdr/0.2.0/V1.SchedulingDuration)\n- [0.1.0](/php/docs/reference/cloud-backupdr/0.1.0/V1.SchedulingDuration) \nReference documentation and code samples for the Google Cloud Backup Dr V1 Client class SchedulingDuration.\n\nA SchedulingDuration represents a fixed-length span of time represented\nas a count of seconds and fractions of seconds at nanosecond\nresolution. It is independent of any calendar and concepts like \"day\"\nor \"month\". Range is approximately 10,000 years.\n\nGenerated from protobuf message `google.cloud.backupdr.v1.SchedulingDuration`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BackupDR \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSeconds\n\nOptional. Span of time at a resolution of a second.\n\n### hasSeconds\n\n### clearSeconds\n\n### setSeconds\n\nOptional. Span of time at a resolution of a second.\n\n### getNanos\n\nOptional. Span of time that's a fraction of a second at nanosecond\nresolution.\n\n### hasNanos\n\n### clearNanos\n\n### setNanos\n\nOptional. Span of time that's a fraction of a second at nanosecond\nresolution."]]