public static final class SchedulingDuration.Builder extends GeneratedMessage.Builder<SchedulingDuration.Builder> implements SchedulingDurationOrBuilderA 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SchedulingDuration.BuilderImplements
SchedulingDurationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
getDefaultInstanceForType()
public SchedulingDuration getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SchedulingDuration |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SchedulingDuration.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SchedulingDuration.Builder |
|
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 |
intThe nanos to set. |
| Returns | |
|---|---|
| Type | Description |
SchedulingDuration.Builder |
This builder for chaining. |
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 |
longThe seconds to set. |
| Returns | |
|---|---|
| Type | Description |
SchedulingDuration.Builder |
This builder for chaining. |