Class DisruptionEvent.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DisruptionEvent.Builder>
com.google.container.v1.DisruptionEvent.Builder
All Implemented Interfaces:
DisruptionEventOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DisruptionEvent

public static final class DisruptionEvent.Builder extends com.google.protobuf.GeneratedMessage.Builder<DisruptionEvent.Builder> implements DisruptionEventOrBuilder
 DisruptionEvent is a notification sent to customers about the disruption
 event of a resource.
 
Protobuf type google.container.v1.DisruptionEvent
  • 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.Builder<DisruptionEvent.Builder>
    • clear

      public DisruptionEvent.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DisruptionEvent.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DisruptionEvent.Builder>
    • getDefaultInstanceForType

      public DisruptionEvent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public DisruptionEvent.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DisruptionEvent.Builder>
    • mergeFrom

      public DisruptionEvent.Builder mergeFrom(DisruptionEvent other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DisruptionEvent.Builder>
    • mergeFrom

      public DisruptionEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DisruptionEvent.Builder>
      Throws:
      IOException
    • 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.
    • setDisruptionTypeValue

      public DisruptionEvent.Builder setDisruptionTypeValue(int value)
       The type of the disruption event.
       
      .google.container.v1.DisruptionEvent.DisruptionType disruption_type = 1;
      Parameters:
      value - The enum numeric value on the wire for disruptionType to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDisruptionType

      public DisruptionEvent.Builder setDisruptionType(DisruptionEvent.DisruptionType value)
       The type of the disruption event.
       
      .google.container.v1.DisruptionEvent.DisruptionType disruption_type = 1;
      Parameters:
      value - The disruptionType to set.
      Returns:
      This builder for chaining.
    • clearDisruptionType

      public DisruptionEvent.Builder clearDisruptionType()
       The type of the disruption event.
       
      .google.container.v1.DisruptionEvent.DisruptionType disruption_type = 1;
      Returns:
      This builder for chaining.
    • 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.
    • setPdbBlockedNode

      public DisruptionEvent.Builder setPdbBlockedNode(String value)
       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;
      Parameters:
      value - The pdbBlockedNode to set.
      Returns:
      This builder for chaining.
    • clearPdbBlockedNode

      public DisruptionEvent.Builder clearPdbBlockedNode()
       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;
      Returns:
      This builder for chaining.
    • setPdbBlockedNodeBytes

      public DisruptionEvent.Builder setPdbBlockedNodeBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for pdbBlockedNode to set.
      Returns:
      This builder for chaining.
    • 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
    • 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
    • setPdbBlockedPod

      public DisruptionEvent.Builder setPdbBlockedPod(int index, DisruptionEvent.PdbBlockedPod value)
       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;
    • setPdbBlockedPod

      public DisruptionEvent.Builder setPdbBlockedPod(int index, DisruptionEvent.PdbBlockedPod.Builder builderForValue)
       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;
    • addPdbBlockedPod

      public DisruptionEvent.Builder addPdbBlockedPod(DisruptionEvent.PdbBlockedPod value)
       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;
    • addPdbBlockedPod

      public DisruptionEvent.Builder addPdbBlockedPod(int index, DisruptionEvent.PdbBlockedPod value)
       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;
    • addPdbBlockedPod

      public DisruptionEvent.Builder addPdbBlockedPod(DisruptionEvent.PdbBlockedPod.Builder builderForValue)
       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;
    • addPdbBlockedPod

      public DisruptionEvent.Builder addPdbBlockedPod(int index, DisruptionEvent.PdbBlockedPod.Builder builderForValue)
       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;
    • addAllPdbBlockedPod

      public DisruptionEvent.Builder addAllPdbBlockedPod(Iterable<? extends DisruptionEvent.PdbBlockedPod> values)
       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;
    • clearPdbBlockedPod

      public DisruptionEvent.Builder clearPdbBlockedPod()
       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;
    • removePdbBlockedPod

      public DisruptionEvent.Builder removePdbBlockedPod(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;
    • getPdbBlockedPodBuilder

      public DisruptionEvent.PdbBlockedPod.Builder getPdbBlockedPodBuilder(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;
    • 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
    • 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
    • addPdbBlockedPodBuilder

      public DisruptionEvent.PdbBlockedPod.Builder addPdbBlockedPodBuilder()
       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;
    • addPdbBlockedPodBuilder

      public DisruptionEvent.PdbBlockedPod.Builder addPdbBlockedPodBuilder(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;
    • getPdbBlockedPodBuilderList

      public List<DisruptionEvent.PdbBlockedPod.Builder> getPdbBlockedPodBuilderList()
       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;
    • 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.
    • setPdbViolationTimeout

      public DisruptionEvent.Builder setPdbViolationTimeout(com.google.protobuf.Duration value)
       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;
    • setPdbViolationTimeout

      public DisruptionEvent.Builder setPdbViolationTimeout(com.google.protobuf.Duration.Builder builderForValue)
       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;
    • mergePdbViolationTimeout

      public DisruptionEvent.Builder mergePdbViolationTimeout(com.google.protobuf.Duration value)
       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;
    • clearPdbViolationTimeout

      public DisruptionEvent.Builder clearPdbViolationTimeout()
       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;
    • getPdbViolationTimeoutBuilder

      public com.google.protobuf.Duration.Builder getPdbViolationTimeoutBuilder()
       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;
    • 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