Class NodeGroupMaintenanceWindow.Builder (1.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NodeGroupMaintenanceWindow.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NodeGroupMaintenanceWindow.Builder
Overrides

build()

public NodeGroupMaintenanceWindow build()
Returns
TypeDescription
NodeGroupMaintenanceWindow

buildPartial()

public NodeGroupMaintenanceWindow buildPartial()
Returns
TypeDescription
NodeGroupMaintenanceWindow

clear()

public NodeGroupMaintenanceWindow.Builder clear()
Returns
TypeDescription
NodeGroupMaintenanceWindow.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NodeGroupMaintenanceWindow.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
NodeGroupMaintenanceWindow.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public NodeGroupMaintenanceWindow.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
NodeGroupMaintenanceWindow.Builder

This builder for chaining.

clone()

public NodeGroupMaintenanceWindow.Builder clone()
Returns
TypeDescription
NodeGroupMaintenanceWindow.Builder
Overrides

getDefaultInstanceForType()

public NodeGroupMaintenanceWindow getDefaultInstanceForType()
Returns
TypeDescription
NodeGroupMaintenanceWindow

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NodeGroupMaintenanceWindow other)

public NodeGroupMaintenanceWindow.Builder mergeFrom(NodeGroupMaintenanceWindow other)
Parameter
NameDescription
otherNodeGroupMaintenanceWindow
Returns
TypeDescription
NodeGroupMaintenanceWindow.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NodeGroupMaintenanceWindow.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupMaintenanceWindow.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NodeGroupMaintenanceWindow.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
NodeGroupMaintenanceWindow.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NodeGroupMaintenanceWindow.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NodeGroupMaintenanceWindow.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NodeGroupMaintenanceWindow.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueDuration.Builder
Returns
TypeDescription
NodeGroupMaintenanceWindow.Builder

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

public NodeGroupMaintenanceWindow.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The startTime to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for startTime to set.

Returns
TypeDescription
NodeGroupMaintenanceWindow.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NodeGroupMaintenanceWindow.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NodeGroupMaintenanceWindow.Builder
Overrides