Class HostMaintenancePolicy.Builder (2.31.0)

public static final class HostMaintenancePolicy.Builder extends GeneratedMessageV3.Builder<HostMaintenancePolicy.Builder> implements HostMaintenancePolicyOrBuilder

HostMaintenancePolicy contains the maintenance policy for the hosts on which the GKE VMs run on.

Protobuf type google.container.v1beta1.HostMaintenancePolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HostMaintenancePolicy build()
Returns
TypeDescription
HostMaintenancePolicy

buildPartial()

public HostMaintenancePolicy buildPartial()
Returns
TypeDescription
HostMaintenancePolicy

clear()

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

clearField(Descriptors.FieldDescriptor field)

public HostMaintenancePolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HostMaintenancePolicy.Builder
Overrides

clearMaintenanceInterval()

public HostMaintenancePolicy.Builder clearMaintenanceInterval()

Specifies the frequency of planned maintenance events.

optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1;

Returns
TypeDescription
HostMaintenancePolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HostMaintenancePolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HostMaintenancePolicy.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public HostMaintenancePolicy getDefaultInstanceForType()
Returns
TypeDescription
HostMaintenancePolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMaintenanceInterval()

public HostMaintenancePolicy.MaintenanceInterval getMaintenanceInterval()

Specifies the frequency of planned maintenance events.

optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1;

Returns
TypeDescription
HostMaintenancePolicy.MaintenanceInterval

The maintenanceInterval.

getMaintenanceIntervalValue()

public int getMaintenanceIntervalValue()

Specifies the frequency of planned maintenance events.

optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for maintenanceInterval.

hasMaintenanceInterval()

public boolean hasMaintenanceInterval()

Specifies the frequency of planned maintenance events.

optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1;

Returns
TypeDescription
boolean

Whether the maintenanceInterval field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HostMaintenancePolicy other)

public HostMaintenancePolicy.Builder mergeFrom(HostMaintenancePolicy other)
Parameter
NameDescription
otherHostMaintenancePolicy
Returns
TypeDescription
HostMaintenancePolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public HostMaintenancePolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HostMaintenancePolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaintenanceInterval(HostMaintenancePolicy.MaintenanceInterval value)

public HostMaintenancePolicy.Builder setMaintenanceInterval(HostMaintenancePolicy.MaintenanceInterval value)

Specifies the frequency of planned maintenance events.

optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1;

Parameter
NameDescription
valueHostMaintenancePolicy.MaintenanceInterval

The maintenanceInterval to set.

Returns
TypeDescription
HostMaintenancePolicy.Builder

This builder for chaining.

setMaintenanceIntervalValue(int value)

public HostMaintenancePolicy.Builder setMaintenanceIntervalValue(int value)

Specifies the frequency of planned maintenance events.

optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for maintenanceInterval to set.

Returns
TypeDescription
HostMaintenancePolicy.Builder

This builder for chaining.

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

public HostMaintenancePolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HostMaintenancePolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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