Class NodeGroupMaintenanceWindow.Builder (1.63.0)

public static final class NodeGroupMaintenanceWindow.Builder extends GeneratedMessageV3.Builder<NodeGroupMaintenanceWindow.Builder> implements NodeGroupMaintenanceWindowOrBuilder

Time window specified for daily maintenance operations. GCE's internal maintenance will be performed within this window.

Protobuf type google.cloud.compute.v1.NodeGroupMaintenanceWindow

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodeGroupMaintenanceWindow build()
Returns
Type Description
NodeGroupMaintenanceWindow

buildPartial()

public NodeGroupMaintenanceWindow buildPartial()
Returns
Type Description
NodeGroupMaintenanceWindow

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMaintenanceDuration()

public NodeGroupMaintenanceWindow.Builder clearMaintenanceDuration()

[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;

Returns
Type Description
NodeGroupMaintenanceWindow.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartTime()

public NodeGroupMaintenanceWindow.Builder clearStartTime()

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

optional string start_time = 37467274;

Returns
Type Description
NodeGroupMaintenanceWindow.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public NodeGroupMaintenanceWindow getDefaultInstanceForType()
Returns
Type Description
NodeGroupMaintenanceWindow

getDescriptorForType()

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

getMaintenanceDuration()

public Duration getMaintenanceDuration()

[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;

Returns
Type Description
Duration

The maintenanceDuration.

getMaintenanceDurationBuilder()

public Duration.Builder getMaintenanceDurationBuilder()

[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;

Returns
Type Description
Duration.Builder

getMaintenanceDurationOrBuilder()

public DurationOrBuilder getMaintenanceDurationOrBuilder()

[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;

Returns
Type Description
DurationOrBuilder

getStartTime()

public String getStartTime()

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

optional string start_time = 37467274;

Returns
Type Description
String

The startTime.

getStartTimeBytes()

public ByteString getStartTimeBytes()

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

optional string start_time = 37467274;

Returns
Type Description
ByteString

The bytes for startTime.

hasMaintenanceDuration()

public boolean hasMaintenanceDuration()

[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;

Returns
Type Description
boolean

Whether the maintenanceDuration field is set.

hasStartTime()

public boolean hasStartTime()

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

optional string start_time = 37467274;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NodeGroupMaintenanceWindow other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMaintenanceDuration(Duration value)

public NodeGroupMaintenanceWindow.Builder mergeMaintenanceDuration(Duration value)

[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;

Parameter
Name Description
value Duration
Returns
Type Description
NodeGroupMaintenanceWindow.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaintenanceDuration(Duration value)

public NodeGroupMaintenanceWindow.Builder setMaintenanceDuration(Duration value)

[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;

Parameter
Name Description
value Duration
Returns
Type Description
NodeGroupMaintenanceWindow.Builder

setMaintenanceDuration(Duration.Builder builderForValue)

public NodeGroupMaintenanceWindow.Builder setMaintenanceDuration(Duration.Builder builderForValue)

[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;

Parameter
Name Description
builderForValue Duration.Builder
Returns
Type Description
NodeGroupMaintenanceWindow.Builder

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

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

setStartTime(String value)

public NodeGroupMaintenanceWindow.Builder setStartTime(String value)

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

optional string start_time = 37467274;

Parameter
Name Description
value String

The startTime to set.

Returns
Type Description
NodeGroupMaintenanceWindow.Builder

This builder for chaining.

setStartTimeBytes(ByteString value)

public NodeGroupMaintenanceWindow.Builder setStartTimeBytes(ByteString value)

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

optional string start_time = 37467274;

Parameter
Name Description
value ByteString

The bytes for startTime to set.

Returns
Type Description
NodeGroupMaintenanceWindow.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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