Send feedback
Class HostMaintenancePolicy.Builder (2.56.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.56.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HostMaintenancePolicy . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public HostMaintenancePolicy build ()
buildPartial()
public HostMaintenancePolicy buildPartial ()
clear()
public HostMaintenancePolicy . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public HostMaintenancePolicy . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearMaintenanceInterval()
public HostMaintenancePolicy . Builder clearMaintenanceInterval ()
Specifies the frequency of planned maintenance events.
optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1;
clearMaintenanceStrategy()
public HostMaintenancePolicy . Builder clearMaintenanceStrategy ()
clearOneof(Descriptors.OneofDescriptor oneof)
public HostMaintenancePolicy . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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;
clone()
public HostMaintenancePolicy . Builder clone ()
Overrides
getDefaultInstanceForType()
public HostMaintenancePolicy getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getMaintenanceInterval()
public HostMaintenancePolicy . MaintenanceInterval getMaintenanceInterval ()
Specifies the frequency of planned maintenance events.
optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1;
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 ()
getOpportunisticMaintenanceStrategy()
public HostMaintenancePolicy . OpportunisticMaintenanceStrategy getOpportunisticMaintenanceStrategy ()
Strategy that will trigger maintenance on behalf of the customer.
.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2;
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;
getOpportunisticMaintenanceStrategyOrBuilder()
public HostMaintenancePolicy . OpportunisticMaintenanceStrategyOrBuilder getOpportunisticMaintenanceStrategyOrBuilder ()
Strategy that will trigger maintenance on behalf of the customer.
.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2;
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(HostMaintenancePolicy other)
public HostMaintenancePolicy . Builder mergeFrom ( HostMaintenancePolicy other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HostMaintenancePolicy . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public HostMaintenancePolicy . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HostMaintenancePolicy . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public HostMaintenancePolicy . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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;
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.
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HostMaintenancePolicy . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final HostMaintenancePolicy . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]