Class HostMaintenancePolicy (2.44.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
TypeDescription
int

OPPORTUNISTIC_MAINTENANCE_STRATEGY_FIELD_NUMBER

public static final int OPPORTUNISTIC_MAINTENANCE_STRATEGY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HostMaintenancePolicy getDefaultInstance()
Returns
TypeDescription
HostMaintenancePolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static HostMaintenancePolicy.Builder newBuilder()
Returns
TypeDescription
HostMaintenancePolicy.Builder

newBuilder(HostMaintenancePolicy prototype)

public static HostMaintenancePolicy.Builder newBuilder(HostMaintenancePolicy prototype)
Parameter
NameDescription
prototypeHostMaintenancePolicy
Returns
TypeDescription
HostMaintenancePolicy.Builder

parseDelimitedFrom(InputStream input)

public static HostMaintenancePolicy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HostMaintenancePolicy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HostMaintenancePolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HostMaintenancePolicy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static HostMaintenancePolicy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
HostMaintenancePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HostMaintenancePolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HostMaintenancePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HostMaintenancePolicy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
HostMaintenancePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HostMaintenancePolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HostMaintenancePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HostMaintenancePolicy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
HostMaintenancePolicy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HostMaintenancePolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HostMaintenancePolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static HostMaintenancePolicy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HostMaintenancePolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HostMaintenancePolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HostMaintenancePolicy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static HostMaintenancePolicy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
HostMaintenancePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HostMaintenancePolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HostMaintenancePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<HostMaintenancePolicy> parser()
Returns
TypeDescription
Parser<HostMaintenancePolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public HostMaintenancePolicy getDefaultInstanceForType()
Returns
TypeDescription
HostMaintenancePolicy

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.

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

getParserForType()

public Parser<HostMaintenancePolicy> getParserForType()
Returns
TypeDescription
Parser<HostMaintenancePolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HostMaintenancePolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
HostMaintenancePolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException