Class HostMaintenancePolicy (2.54.0)

public final class HostMaintenancePolicy extends GeneratedMessageV3 implements HostMaintenancePolicyOrBuilder

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

Protobuf type google.container.v1beta1.HostMaintenancePolicy

Static Fields

MAINTENANCE_INTERVAL_FIELD_NUMBER

public static final int MAINTENANCE_INTERVAL_FIELD_NUMBER
Field Value
Type Description
int

OPPORTUNISTIC_MAINTENANCE_STRATEGY_FIELD_NUMBER

public static final int OPPORTUNISTIC_MAINTENANCE_STRATEGY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HostMaintenancePolicy getDefaultInstance()
Returns
Type Description
HostMaintenancePolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static HostMaintenancePolicy.Builder newBuilder()
Returns
Type Description
HostMaintenancePolicy.Builder

newBuilder(HostMaintenancePolicy prototype)

public static HostMaintenancePolicy.Builder newBuilder(HostMaintenancePolicy prototype)
Parameter
Name Description
prototype HostMaintenancePolicy
Returns
Type Description
HostMaintenancePolicy.Builder

parseDelimitedFrom(InputStream input)

public static HostMaintenancePolicy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HostMaintenancePolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HostMaintenancePolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HostMaintenancePolicy
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HostMaintenancePolicy parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HostMaintenancePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HostMaintenancePolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HostMaintenancePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HostMaintenancePolicy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HostMaintenancePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HostMaintenancePolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HostMaintenancePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HostMaintenancePolicy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HostMaintenancePolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HostMaintenancePolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HostMaintenancePolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HostMaintenancePolicy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HostMaintenancePolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HostMaintenancePolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HostMaintenancePolicy
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HostMaintenancePolicy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HostMaintenancePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HostMaintenancePolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HostMaintenancePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HostMaintenancePolicy> parser()
Returns
Type Description
Parser<HostMaintenancePolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public HostMaintenancePolicy getDefaultInstanceForType()
Returns
Type Description
HostMaintenancePolicy

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.

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

getParserForType()

public Parser<HostMaintenancePolicy> getParserForType()
Returns
Type Description
Parser<HostMaintenancePolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HostMaintenancePolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HostMaintenancePolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException