Class DisruptionEvent

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.container.v1.DisruptionEvent
All Implemented Interfaces:
DisruptionEventOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class DisruptionEvent extends com.google.protobuf.GeneratedMessage implements DisruptionEventOrBuilder
 DisruptionEvent is a notification sent to customers about the disruption
 event of a resource.
 
Protobuf type google.container.v1.DisruptionEvent
See Also:
  • Field Details

    • DISRUPTION_TYPE_FIELD_NUMBER

      public static final int DISRUPTION_TYPE_FIELD_NUMBER
      See Also:
    • PDB_BLOCKED_NODE_FIELD_NUMBER

      public static final int PDB_BLOCKED_NODE_FIELD_NUMBER
      See Also:
    • PDB_BLOCKED_POD_FIELD_NUMBER

      public static final int PDB_BLOCKED_POD_FIELD_NUMBER
      See Also:
    • PDB_VIOLATION_TIMEOUT_FIELD_NUMBER

      public static final int PDB_VIOLATION_TIMEOUT_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
    • getDisruptionTypeValue

      public int getDisruptionTypeValue()
       The type of the disruption event.
       
      .google.container.v1.DisruptionEvent.DisruptionType disruption_type = 1;
      Specified by:
      getDisruptionTypeValue in interface DisruptionEventOrBuilder
      Returns:
      The enum numeric value on the wire for disruptionType.
    • getDisruptionType

      public DisruptionEvent.DisruptionType getDisruptionType()
       The type of the disruption event.
       
      .google.container.v1.DisruptionEvent.DisruptionType disruption_type = 1;
      Specified by:
      getDisruptionType in interface DisruptionEventOrBuilder
      Returns:
      The disruptionType.
    • getPdbBlockedNode

      public String getPdbBlockedNode()
       The node whose drain is blocked by PDB. This field is set for both
       POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.
       
      string pdb_blocked_node = 2;
      Specified by:
      getPdbBlockedNode in interface DisruptionEventOrBuilder
      Returns:
      The pdbBlockedNode.
    • getPdbBlockedNodeBytes

      public com.google.protobuf.ByteString getPdbBlockedNodeBytes()
       The node whose drain is blocked by PDB. This field is set for both
       POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.
       
      string pdb_blocked_node = 2;
      Specified by:
      getPdbBlockedNodeBytes in interface DisruptionEventOrBuilder
      Returns:
      The bytes for pdbBlockedNode.
    • getPdbBlockedPodList

      public List<DisruptionEvent.PdbBlockedPod> getPdbBlockedPodList()
       The pods whose evictions are blocked by PDB. This field is set for
       both POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.
       
      repeated .google.container.v1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;
      Specified by:
      getPdbBlockedPodList in interface DisruptionEventOrBuilder
    • getPdbBlockedPodOrBuilderList

      public List<? extends DisruptionEvent.PdbBlockedPodOrBuilder> getPdbBlockedPodOrBuilderList()
       The pods whose evictions are blocked by PDB. This field is set for
       both POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.
       
      repeated .google.container.v1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;
      Specified by:
      getPdbBlockedPodOrBuilderList in interface DisruptionEventOrBuilder
    • getPdbBlockedPodCount

      public int getPdbBlockedPodCount()
       The pods whose evictions are blocked by PDB. This field is set for
       both POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.
       
      repeated .google.container.v1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;
      Specified by:
      getPdbBlockedPodCount in interface DisruptionEventOrBuilder
    • getPdbBlockedPod

      public DisruptionEvent.PdbBlockedPod getPdbBlockedPod(int index)
       The pods whose evictions are blocked by PDB. This field is set for
       both POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.
       
      repeated .google.container.v1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;
      Specified by:
      getPdbBlockedPod in interface DisruptionEventOrBuilder
    • getPdbBlockedPodOrBuilder

      public DisruptionEvent.PdbBlockedPodOrBuilder getPdbBlockedPodOrBuilder(int index)
       The pods whose evictions are blocked by PDB. This field is set for
       both POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.
       
      repeated .google.container.v1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;
      Specified by:
      getPdbBlockedPodOrBuilder in interface DisruptionEventOrBuilder
    • hasPdbViolationTimeout

      public boolean hasPdbViolationTimeout()
       The timeout in seconds for which the node drain is blocked by PDB.
       After this timeout, pods are forcefully evicted.
       This field is only populated when event_type is
       POD_PDB_VIOLATION.
       
      optional .google.protobuf.Duration pdb_violation_timeout = 4;
      Specified by:
      hasPdbViolationTimeout in interface DisruptionEventOrBuilder
      Returns:
      Whether the pdbViolationTimeout field is set.
    • getPdbViolationTimeout

      public com.google.protobuf.Duration getPdbViolationTimeout()
       The timeout in seconds for which the node drain is blocked by PDB.
       After this timeout, pods are forcefully evicted.
       This field is only populated when event_type is
       POD_PDB_VIOLATION.
       
      optional .google.protobuf.Duration pdb_violation_timeout = 4;
      Specified by:
      getPdbViolationTimeout in interface DisruptionEventOrBuilder
      Returns:
      The pdbViolationTimeout.
    • getPdbViolationTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getPdbViolationTimeoutOrBuilder()
       The timeout in seconds for which the node drain is blocked by PDB.
       After this timeout, pods are forcefully evicted.
       This field is only populated when event_type is
       POD_PDB_VIOLATION.
       
      optional .google.protobuf.Duration pdb_violation_timeout = 4;
      Specified by:
      getPdbViolationTimeoutOrBuilder in interface DisruptionEventOrBuilder
    • 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 DisruptionEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static DisruptionEvent.Builder newBuilder()
    • newBuilder

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

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

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

      public static DisruptionEvent getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<DisruptionEvent> 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 DisruptionEvent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder