Class HostMaintenancePolicy.Builder (2.58.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HostMaintenancePolicy build()
Returns
Type Description
HostMaintenancePolicy

buildPartial()

public HostMaintenancePolicy buildPartial()
Returns
Type Description
HostMaintenancePolicy

clear()

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

clearField(Descriptors.FieldDescriptor field)

public HostMaintenancePolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
HostMaintenancePolicy.Builder

This builder for chaining.

clearMaintenanceStrategy()

public HostMaintenancePolicy.Builder clearMaintenanceStrategy()
Returns
Type Description
HostMaintenancePolicy.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOpportunisticMaintenanceStrategy()

public HostMaintenancePolicy.Builder clearOpportunisticMaintenanceStrategy()

Strategy that will trigger maintenance on behalf of the customer.

.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2;

Returns
Type Description
HostMaintenancePolicy.Builder

clone()

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

getDefaultInstanceForType()

public HostMaintenancePolicy getDefaultInstanceForType()
Returns
Type Description
HostMaintenancePolicy

getDescriptorForType()

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

getMaintenanceInterval()

public HostMaintenancePolicy.MaintenanceInterval getMaintenanceInterval()

Specifies the frequency of planned maintenance events.

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

Returns
Type Description
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
Type Description
int

The enum numeric value on the wire for maintenanceInterval.

getMaintenanceStrategyCase()

public HostMaintenancePolicy.MaintenanceStrategyCase getMaintenanceStrategyCase()
Returns
Type Description
HostMaintenancePolicy.MaintenanceStrategyCase

getOpportunisticMaintenanceStrategy()

public HostMaintenancePolicy.OpportunisticMaintenanceStrategy getOpportunisticMaintenanceStrategy()

Strategy that will trigger maintenance on behalf of the customer.

.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2;

Returns
Type Description
HostMaintenancePolicy.OpportunisticMaintenanceStrategy

The opportunisticMaintenanceStrategy.

getOpportunisticMaintenanceStrategyBuilder()

public HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder getOpportunisticMaintenanceStrategyBuilder()

Strategy that will trigger maintenance on behalf of the customer.

.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2;

Returns
Type Description
HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder

getOpportunisticMaintenanceStrategyOrBuilder()

public HostMaintenancePolicy.OpportunisticMaintenanceStrategyOrBuilder getOpportunisticMaintenanceStrategyOrBuilder()

Strategy that will trigger maintenance on behalf of the customer.

.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2;

Returns
Type Description
HostMaintenancePolicy.OpportunisticMaintenanceStrategyOrBuilder

hasMaintenanceInterval()

public boolean hasMaintenanceInterval()

Specifies the frequency of planned maintenance events.

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

Returns
Type Description
boolean

Whether the maintenanceInterval field is set.

hasOpportunisticMaintenanceStrategy()

public boolean hasOpportunisticMaintenanceStrategy()

Strategy that will trigger maintenance on behalf of the customer.

.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2;

Returns
Type Description
boolean

Whether the opportunisticMaintenanceStrategy field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HostMaintenancePolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOpportunisticMaintenanceStrategy(HostMaintenancePolicy.OpportunisticMaintenanceStrategy value)

public HostMaintenancePolicy.Builder mergeOpportunisticMaintenanceStrategy(HostMaintenancePolicy.OpportunisticMaintenanceStrategy value)

Strategy that will trigger maintenance on behalf of the customer.

.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2;

Parameter
Name Description
value HostMaintenancePolicy.OpportunisticMaintenanceStrategy
Returns
Type Description
HostMaintenancePolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public HostMaintenancePolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value HostMaintenancePolicy.MaintenanceInterval

The maintenanceInterval to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
HostMaintenancePolicy.Builder

This builder for chaining.

setOpportunisticMaintenanceStrategy(HostMaintenancePolicy.OpportunisticMaintenanceStrategy value)

public HostMaintenancePolicy.Builder setOpportunisticMaintenanceStrategy(HostMaintenancePolicy.OpportunisticMaintenanceStrategy value)

Strategy that will trigger maintenance on behalf of the customer.

.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2;

Parameter
Name Description
value HostMaintenancePolicy.OpportunisticMaintenanceStrategy
Returns
Type Description
HostMaintenancePolicy.Builder

setOpportunisticMaintenanceStrategy(HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder builderForValue)

public HostMaintenancePolicy.Builder setOpportunisticMaintenanceStrategy(HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder builderForValue)

Strategy that will trigger maintenance on behalf of the customer.

.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2;

Parameter
Name Description
builderForValue HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder
Returns
Type Description
HostMaintenancePolicy.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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