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
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()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SchedulingDuration.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SchedulingDuration build()
buildPartial()
public SchedulingDuration buildPartial()
clear()
public SchedulingDuration.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SchedulingDuration.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public SchedulingDuration.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public SchedulingDuration.Builder clone()
Overrides
getDefaultInstanceForType()
public SchedulingDuration getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SchedulingDuration other)
public SchedulingDuration.Builder mergeFrom(SchedulingDuration other)
public SchedulingDuration.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SchedulingDuration.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SchedulingDuration.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SchedulingDuration.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SchedulingDuration.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final SchedulingDuration.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides