Class SchedulingDuration.Builder (0.21.0)

publicstaticfinalclass SchedulingDuration.BuilderextendsGeneratedMessageV3.Builder<SchedulingDuration.Builder>implementsSchedulingDurationOrBuilder

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.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicSchedulingDuration.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SchedulingDuration.Builder
Overrides

build()

publicSchedulingDurationbuild()
Returns
Type Description
SchedulingDuration

buildPartial()

publicSchedulingDurationbuildPartial()
Returns
Type Description
SchedulingDuration

clear()

publicSchedulingDuration.Builderclear()
Returns
Type Description
SchedulingDuration.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicSchedulingDuration.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SchedulingDuration.Builder
Overrides

clearNanos()

publicSchedulingDuration.BuilderclearNanos()

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
SchedulingDuration.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicSchedulingDuration.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SchedulingDuration.Builder
Overrides

clearSeconds()

publicSchedulingDuration.BuilderclearSeconds()

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

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

Returns
Type Description
SchedulingDuration.Builder

This builder for chaining.

clone()

publicSchedulingDuration.Builderclone()
Returns
Type Description
SchedulingDuration.Builder
Overrides

getDefaultInstanceForType()

publicSchedulingDurationgetDefaultInstanceForType()
Returns
Type Description
SchedulingDuration

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SchedulingDuration other)

publicSchedulingDuration.BuildermergeFrom(SchedulingDurationother)
Parameter
Name Description
other SchedulingDuration
Returns
Type Description
SchedulingDuration.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicSchedulingDuration.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SchedulingDuration.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicSchedulingDuration.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
SchedulingDuration.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalSchedulingDuration.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SchedulingDuration.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicSchedulingDuration.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SchedulingDuration.Builder
Overrides

setNanos(int value)

publicSchedulingDuration.BuildersetNanos(intvalue)

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

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

Parameter
Name Description
value int

The nanos to set.

Returns
Type Description
SchedulingDuration.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicSchedulingDuration.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SchedulingDuration.Builder
Overrides

setSeconds(long value)

publicSchedulingDuration.BuildersetSeconds(longvalue)

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

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

Parameter
Name Description
value long

The seconds to set.

Returns
Type Description
SchedulingDuration.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSchedulingDuration.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SchedulingDuration.Builder
Overrides

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.