Class DisruptionEvent.Builder (2.86.0)

public static final class DisruptionEvent.Builder extends GeneratedMessage.Builder<DisruptionEvent.Builder> implements DisruptionEventOrBuilder

DisruptionEvent is a notification sent to customers about the disruption event of a resource.

Protobuf type google.container.v1beta1.DisruptionEvent

Static Methods

getDescriptor()

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

Methods

addAllPdbBlockedPod(Iterable<? extends DisruptionEvent.PdbBlockedPod> values)

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Parameter
Name Description
values Iterable<? extends com.google.container.v1beta1.DisruptionEvent.PdbBlockedPod>
Returns
Type Description
DisruptionEvent.Builder

addPdbBlockedPod(DisruptionEvent.PdbBlockedPod value)

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Parameter
Name Description
value DisruptionEvent.PdbBlockedPod
Returns
Type Description
DisruptionEvent.Builder

addPdbBlockedPod(DisruptionEvent.PdbBlockedPod.Builder builderForValue)

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Parameter
Name Description
builderForValue DisruptionEvent.PdbBlockedPod.Builder
Returns
Type Description
DisruptionEvent.Builder

addPdbBlockedPod(int index, DisruptionEvent.PdbBlockedPod value)

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Parameters
Name Description
index int
value DisruptionEvent.PdbBlockedPod
Returns
Type Description
DisruptionEvent.Builder

addPdbBlockedPod(int index, DisruptionEvent.PdbBlockedPod.Builder builderForValue)

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Parameters
Name Description
index int
builderForValue DisruptionEvent.PdbBlockedPod.Builder
Returns
Type Description
DisruptionEvent.Builder

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Returns
Type Description
DisruptionEvent.PdbBlockedPod.Builder

addPdbBlockedPodBuilder(int index)

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Parameter
Name Description
index int
Returns
Type Description
DisruptionEvent.PdbBlockedPod.Builder

build()

public DisruptionEvent build()
Returns
Type Description
DisruptionEvent

buildPartial()

public DisruptionEvent buildPartial()
Returns
Type Description
DisruptionEvent

clear()

public DisruptionEvent.Builder clear()
Returns
Type Description
DisruptionEvent.Builder
Overrides

clearDisruptionType()

public DisruptionEvent.Builder clearDisruptionType()

The type of the disruption event.

.google.container.v1beta1.DisruptionEvent.DisruptionType disruption_type = 1;

Returns
Type Description
DisruptionEvent.Builder

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
Type Description
DisruptionEvent.Builder

This builder for chaining.

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Returns
Type Description
DisruptionEvent.Builder

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;

Returns
Type Description
DisruptionEvent.Builder

getDefaultInstanceForType()

public DisruptionEvent getDefaultInstanceForType()
Returns
Type Description
DisruptionEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisruptionType()

public DisruptionEvent.DisruptionType getDisruptionType()

The type of the disruption event.

.google.container.v1beta1.DisruptionEvent.DisruptionType disruption_type = 1;

Returns
Type Description
DisruptionEvent.DisruptionType

The disruptionType.

getDisruptionTypeValue()

public int getDisruptionTypeValue()

The type of the disruption event.

.google.container.v1beta1.DisruptionEvent.DisruptionType disruption_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for 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;

Returns
Type Description
String

The pdbBlockedNode.

getPdbBlockedNodeBytes()

public 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;

Returns
Type Description
ByteString

The bytes for pdbBlockedNode.

getPdbBlockedPod(int index)

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Parameter
Name Description
index int
Returns
Type Description
DisruptionEvent.PdbBlockedPod

getPdbBlockedPodBuilder(int index)

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Parameter
Name Description
index int
Returns
Type Description
DisruptionEvent.PdbBlockedPod.Builder

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Returns
Type Description
List<Builder>

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Returns
Type Description
int

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Returns
Type Description
List<PdbBlockedPod>

getPdbBlockedPodOrBuilder(int index)

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Parameter
Name Description
index int
Returns
Type Description
DisruptionEvent.PdbBlockedPodOrBuilder

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Returns
Type Description
List<? extends com.google.container.v1beta1.DisruptionEvent.PdbBlockedPodOrBuilder>

getPdbViolationTimeout()

public 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;

Returns
Type Description
Duration

The pdbViolationTimeout.

getPdbViolationTimeoutBuilder()

public 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;

Returns
Type Description
Builder

getPdbViolationTimeoutOrBuilder()

public 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;

Returns
Type Description
DurationOrBuilder

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;

Returns
Type Description
boolean

Whether the pdbViolationTimeout field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DisruptionEvent other)

public DisruptionEvent.Builder mergeFrom(DisruptionEvent other)
Parameter
Name Description
other DisruptionEvent
Returns
Type Description
DisruptionEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DisruptionEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DisruptionEvent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DisruptionEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DisruptionEvent.Builder
Overrides

mergePdbViolationTimeout(Duration value)

public DisruptionEvent.Builder mergePdbViolationTimeout(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;

Parameter
Name Description
value Duration
Returns
Type Description
DisruptionEvent.Builder

removePdbBlockedPod(int index)

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Parameter
Name Description
index int
Returns
Type Description
DisruptionEvent.Builder

setDisruptionType(DisruptionEvent.DisruptionType value)

public DisruptionEvent.Builder setDisruptionType(DisruptionEvent.DisruptionType value)

The type of the disruption event.

.google.container.v1beta1.DisruptionEvent.DisruptionType disruption_type = 1;

Parameter
Name Description
value DisruptionEvent.DisruptionType

The disruptionType to set.

Returns
Type Description
DisruptionEvent.Builder

This builder for chaining.

setDisruptionTypeValue(int value)

public DisruptionEvent.Builder setDisruptionTypeValue(int value)

The type of the disruption event.

.google.container.v1beta1.DisruptionEvent.DisruptionType disruption_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for disruptionType to set.

Returns
Type Description
DisruptionEvent.Builder

This builder for chaining.

setPdbBlockedNode(String value)

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;

Parameter
Name Description
value String

The pdbBlockedNode to set.

Returns
Type Description
DisruptionEvent.Builder

This builder for chaining.

setPdbBlockedNodeBytes(ByteString value)

public DisruptionEvent.Builder setPdbBlockedNodeBytes(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;

Parameter
Name Description
value ByteString

The bytes for pdbBlockedNode to set.

Returns
Type Description
DisruptionEvent.Builder

This builder for chaining.

setPdbBlockedPod(int index, DisruptionEvent.PdbBlockedPod value)

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Parameters
Name Description
index int
value DisruptionEvent.PdbBlockedPod
Returns
Type Description
DisruptionEvent.Builder

setPdbBlockedPod(int index, DisruptionEvent.PdbBlockedPod.Builder builderForValue)

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.v1beta1.DisruptionEvent.PdbBlockedPod pdb_blocked_pod = 3;

Parameters
Name Description
index int
builderForValue DisruptionEvent.PdbBlockedPod.Builder
Returns
Type Description
DisruptionEvent.Builder

setPdbViolationTimeout(Duration value)

public DisruptionEvent.Builder setPdbViolationTimeout(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;

Parameter
Name Description
value Duration
Returns
Type Description
DisruptionEvent.Builder

setPdbViolationTimeout(Duration.Builder builderForValue)

public DisruptionEvent.Builder setPdbViolationTimeout(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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DisruptionEvent.Builder