Class SchedulingDuration (0.11.0)

publicfinalclass SchedulingDurationextendsGeneratedMessageV3implementsSchedulingDurationOrBuilder

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.

Protobuf type google.cloud.backupdr.v1.SchedulingDuration

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

NANOS_FIELD_NUMBER

publicstaticfinalintNANOS_FIELD_NUMBER
Field Value
Type Description
int

SECONDS_FIELD_NUMBER

publicstaticfinalintSECONDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticSchedulingDurationgetDefaultInstance()
Returns
Type Description
SchedulingDuration

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticSchedulingDuration.BuildernewBuilder()
Returns
Type Description
SchedulingDuration.Builder

newBuilder(SchedulingDuration prototype)

publicstaticSchedulingDuration.BuildernewBuilder(SchedulingDurationprototype)
Parameter
Name Description
prototype SchedulingDuration
Returns
Type Description
SchedulingDuration.Builder

parseDelimitedFrom(InputStream input)

publicstaticSchedulingDurationparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
SchedulingDuration
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSchedulingDurationparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SchedulingDuration
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticSchedulingDurationparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
SchedulingDuration
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticSchedulingDurationparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SchedulingDuration
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticSchedulingDurationparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
SchedulingDuration
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticSchedulingDurationparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SchedulingDuration
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticSchedulingDurationparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SchedulingDuration
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSchedulingDurationparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SchedulingDuration
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticSchedulingDurationparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
SchedulingDuration
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSchedulingDurationparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SchedulingDuration
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticSchedulingDurationparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SchedulingDuration
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticSchedulingDurationparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SchedulingDuration
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<SchedulingDuration>parser()
Returns
Type Description
Parser<SchedulingDuration>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicSchedulingDurationgetDefaultInstanceForType()
Returns
Type Description
SchedulingDuration

getNanos()

publicintgetNanos()

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

optional int32 nanos = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The nanos.

getParserForType()

publicParser<SchedulingDuration>getParserForType()
Returns
Type Description
Parser<SchedulingDuration>
Overrides

getSeconds()

publiclonggetSeconds()

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

optional int64 seconds = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The seconds.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasNanos()

publicbooleanhasNanos()

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

optional int32 nanos = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the nanos field is set.

hasSeconds()

publicbooleanhasSeconds()

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

optional int64 seconds = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the seconds field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicSchedulingDuration.BuildernewBuilderForType()
Returns
Type Description
SchedulingDuration.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedSchedulingDuration.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SchedulingDuration.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicSchedulingDuration.BuildertoBuilder()
Returns
Type Description
SchedulingDuration.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.