Class HostMaintenancePolicy

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.container.v1beta1.HostMaintenancePolicy
All Implemented Interfaces:
HostMaintenancePolicyOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class HostMaintenancePolicy extends com.google.protobuf.GeneratedMessage implements HostMaintenancePolicyOrBuilder
 HostMaintenancePolicy contains the maintenance policy for the hosts on which
 the GKE VMs run on.
 
Protobuf type google.container.v1beta1.HostMaintenancePolicy
See Also:
  • Field Details

    • MAINTENANCE_INTERVAL_FIELD_NUMBER

      public static final int MAINTENANCE_INTERVAL_FIELD_NUMBER
      See Also:
    • OPPORTUNISTIC_MAINTENANCE_STRATEGY_FIELD_NUMBER

      public static final int OPPORTUNISTIC_MAINTENANCE_STRATEGY_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getMaintenanceStrategyCase

      public HostMaintenancePolicy.MaintenanceStrategyCase getMaintenanceStrategyCase()
      Specified by:
      getMaintenanceStrategyCase in interface HostMaintenancePolicyOrBuilder
    • hasMaintenanceInterval

      public boolean hasMaintenanceInterval()
       Specifies the frequency of planned maintenance events.
       
      optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1;
      Specified by:
      hasMaintenanceInterval in interface HostMaintenancePolicyOrBuilder
      Returns:
      Whether the maintenanceInterval field is set.
    • getMaintenanceIntervalValue

      public int getMaintenanceIntervalValue()
       Specifies the frequency of planned maintenance events.
       
      optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1;
      Specified by:
      getMaintenanceIntervalValue in interface HostMaintenancePolicyOrBuilder
      Returns:
      The enum numeric value on the wire for maintenanceInterval.
    • getMaintenanceInterval

      public HostMaintenancePolicy.MaintenanceInterval getMaintenanceInterval()
       Specifies the frequency of planned maintenance events.
       
      optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1;
      Specified by:
      getMaintenanceInterval in interface HostMaintenancePolicyOrBuilder
      Returns:
      The maintenanceInterval.
    • hasOpportunisticMaintenanceStrategy

      public boolean hasOpportunisticMaintenanceStrategy()
       Strategy that will trigger maintenance on behalf of the customer.
       
      .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2;
      Specified by:
      hasOpportunisticMaintenanceStrategy in interface HostMaintenancePolicyOrBuilder
      Returns:
      Whether the opportunisticMaintenanceStrategy field is set.
    • getOpportunisticMaintenanceStrategy

      public HostMaintenancePolicy.OpportunisticMaintenanceStrategy getOpportunisticMaintenanceStrategy()
       Strategy that will trigger maintenance on behalf of the customer.
       
      .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2;
      Specified by:
      getOpportunisticMaintenanceStrategy in interface HostMaintenancePolicyOrBuilder
      Returns:
      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;
      Specified by:
      getOpportunisticMaintenanceStrategyOrBuilder in interface HostMaintenancePolicyOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static HostMaintenancePolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HostMaintenancePolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HostMaintenancePolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HostMaintenancePolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HostMaintenancePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HostMaintenancePolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HostMaintenancePolicy parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HostMaintenancePolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static HostMaintenancePolicy parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static HostMaintenancePolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HostMaintenancePolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HostMaintenancePolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public HostMaintenancePolicy.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static HostMaintenancePolicy.Builder newBuilder()
    • newBuilder

      public static HostMaintenancePolicy.Builder newBuilder(HostMaintenancePolicy prototype)
    • toBuilder

      public HostMaintenancePolicy.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected HostMaintenancePolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static HostMaintenancePolicy getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<HostMaintenancePolicy> parser()
    • getParserForType

      public com.google.protobuf.Parser<HostMaintenancePolicy> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public HostMaintenancePolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder