Send feedback
Class HostMaintenancePolicy.OpportunisticMaintenanceStrategy (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 . OpportunisticMaintenanceStrategy extends GeneratedMessageV3 implements HostMaintenancePolicy . OpportunisticMaintenanceStrategyOrBuilder
Strategy that will trigger maintenance on behalf of the customer.
Protobuf type
google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
MAINTENANCE_AVAILABILITY_WINDOW_FIELD_NUMBER
public static final int MAINTENANCE_AVAILABILITY_WINDOW_FIELD_NUMBER
Field Value
Type
Description
int
MIN_NODES_PER_POOL_FIELD_NUMBER
public static final int MIN_NODES_PER_POOL_FIELD_NUMBER
Field Value
Type
Description
int
NODE_IDLE_TIME_WINDOW_FIELD_NUMBER
public static final int NODE_IDLE_TIME_WINDOW_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy . Builder newBuilder ()
newBuilder(HostMaintenancePolicy.OpportunisticMaintenanceStrategy prototype)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy . Builder newBuilder ( HostMaintenancePolicy . OpportunisticMaintenanceStrategy prototype )
parseDelimitedFrom(InputStream input)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy parseDelimitedFrom ( InputStream input )
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
parseFrom(CodedInputStream input)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy parseFrom ( CodedInputStream input )
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(InputStream input)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy parseFrom ( InputStream input )
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HostMaintenancePolicy . OpportunisticMaintenanceStrategy parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<HostMaintenancePolicy . OpportunisticMaintenanceStrategy > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public HostMaintenancePolicy . OpportunisticMaintenanceStrategy getDefaultInstanceForType ()
getMaintenanceAvailabilityWindow()
public Duration getMaintenanceAvailabilityWindow ()
The window of time that opportunistic maintenance can run. Example: A
setting of 14 days implies that opportunistic maintenance can only be ran
in the 2 weeks leading up to the scheduled maintenance date. Setting 28
days allows opportunistic maintenance to run at any time in the scheduled
maintenance window (all PERIODIC
maintenance is set 28 days in
advance).
optional .google.protobuf.Duration maintenance_availability_window = 2;
Returns
Type
Description
Duration
The maintenanceAvailabilityWindow.
getMaintenanceAvailabilityWindowOrBuilder()
public DurationOrBuilder getMaintenanceAvailabilityWindowOrBuilder ()
The window of time that opportunistic maintenance can run. Example: A
setting of 14 days implies that opportunistic maintenance can only be ran
in the 2 weeks leading up to the scheduled maintenance date. Setting 28
days allows opportunistic maintenance to run at any time in the scheduled
maintenance window (all PERIODIC
maintenance is set 28 days in
advance).
optional .google.protobuf.Duration maintenance_availability_window = 2;
getMinNodesPerPool()
public long getMinNodesPerPool ()
The minimum nodes required to be available in a pool. Blocks maintenance
if it would cause the number of running nodes to dip below this value.
optional int64 min_nodes_per_pool = 3;
Returns
Type
Description
long
The minNodesPerPool.
getNodeIdleTimeWindow()
public Duration getNodeIdleTimeWindow ()
The amount of time that a node can remain idle (no customer owned
workloads running), before triggering maintenance.
optional .google.protobuf.Duration node_idle_time_window = 1;
Returns
Type
Description
Duration
The nodeIdleTimeWindow.
getNodeIdleTimeWindowOrBuilder()
public DurationOrBuilder getNodeIdleTimeWindowOrBuilder ()
The amount of time that a node can remain idle (no customer owned
workloads running), before triggering maintenance.
optional .google.protobuf.Duration node_idle_time_window = 1;
getParserForType()
public Parser<HostMaintenancePolicy . OpportunisticMaintenanceStrategy > getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hasMaintenanceAvailabilityWindow()
public boolean hasMaintenanceAvailabilityWindow ()
The window of time that opportunistic maintenance can run. Example: A
setting of 14 days implies that opportunistic maintenance can only be ran
in the 2 weeks leading up to the scheduled maintenance date. Setting 28
days allows opportunistic maintenance to run at any time in the scheduled
maintenance window (all PERIODIC
maintenance is set 28 days in
advance).
optional .google.protobuf.Duration maintenance_availability_window = 2;
Returns
Type
Description
boolean
Whether the maintenanceAvailabilityWindow field is set.
hasMinNodesPerPool()
public boolean hasMinNodesPerPool ()
The minimum nodes required to be available in a pool. Blocks maintenance
if it would cause the number of running nodes to dip below this value.
optional int64 min_nodes_per_pool = 3;
Returns
Type
Description
boolean
Whether the minNodesPerPool field is set.
hasNodeIdleTimeWindow()
public boolean hasNodeIdleTimeWindow ()
The amount of time that a node can remain idle (no customer owned
workloads running), before triggering maintenance.
optional .google.protobuf.Duration node_idle_time_window = 1;
Returns
Type
Description
boolean
Whether the nodeIdleTimeWindow field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public HostMaintenancePolicy . OpportunisticMaintenanceStrategy . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HostMaintenancePolicy . OpportunisticMaintenanceStrategy . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public HostMaintenancePolicy . OpportunisticMaintenanceStrategy . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
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."],[],[]]