Class HostMaintenancePolicy.Builder (2.38.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.

clearMaintenanceStrategy()

public HostMaintenancePolicy.Builder clearMaintenanceStrategy()
Returns
TypeDescription
HostMaintenancePolicy.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

getMaintenanceStrategyCase()

public HostMaintenancePolicy.MaintenanceStrategyCase getMaintenanceStrategyCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
HostMaintenancePolicy.OpportunisticMaintenanceStrategyOrBuilder

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.

hasOpportunisticMaintenanceStrategy()

public boolean hasOpportunisticMaintenanceStrategy()

Strategy that will trigger maintenance on behalf of the customer.

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

Returns
TypeDescription
boolean

Whether the opportunisticMaintenanceStrategy 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

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
NameDescription
valueHostMaintenancePolicy.OpportunisticMaintenanceStrategy
Returns
TypeDescription
HostMaintenancePolicy.Builder

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.

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
NameDescription
valueHostMaintenancePolicy.OpportunisticMaintenanceStrategy
Returns
TypeDescription
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
NameDescription
builderForValueHostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder
Returns
TypeDescription
HostMaintenancePolicy.Builder

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