Class SchedulingDuration.Builder (0.10.0)

public static final class SchedulingDuration.Builder extends GeneratedMessageV3.Builder<SchedulingDuration.Builder> implements SchedulingDurationOrBuilder

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SchedulingDuration.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SchedulingDuration.Builder
Overrides

build()

public SchedulingDuration build()
Returns
Type Description
SchedulingDuration

buildPartial()

public SchedulingDuration buildPartial()
Returns
Type Description
SchedulingDuration

clear()

public SchedulingDuration.Builder clear()
Returns
Type Description
SchedulingDuration.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SchedulingDuration.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SchedulingDuration.Builder
Overrides

clearNanos()

public SchedulingDuration.Builder clearNanos()

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)

public SchedulingDuration.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SchedulingDuration.Builder
Overrides

clearSeconds()

public SchedulingDuration.Builder clearSeconds()

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()

public SchedulingDuration.Builder clone()
Returns
Type Description
SchedulingDuration.Builder
Overrides

getDefaultInstanceForType()

public SchedulingDuration getDefaultInstanceForType()
Returns
Type Description
SchedulingDuration

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNanos()

public int getNanos()

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()

public long getSeconds()

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()

public boolean hasNanos()

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()

public boolean hasSeconds()

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()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SchedulingDuration other)

public SchedulingDuration.Builder mergeFrom(SchedulingDuration other)
Parameter
Name Description
other SchedulingDuration
Returns
Type Description
SchedulingDuration.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SchedulingDuration.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SchedulingDuration.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SchedulingDuration.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SchedulingDuration.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SchedulingDuration.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SchedulingDuration.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SchedulingDuration.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SchedulingDuration.Builder
Overrides

setNanos(int value)

public SchedulingDuration.Builder setNanos(int value)

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)

public SchedulingDuration.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SchedulingDuration.Builder
Overrides

setSeconds(long value)

public SchedulingDuration.Builder setSeconds(long value)

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)

public final SchedulingDuration.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SchedulingDuration.Builder
Overrides