Package com.google.container.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllPdbBlockedPod(Iterable<? extends DisruptionEvent.PdbBlockedPod> values) The pods whose evictions are blocked by PDB.addPdbBlockedPod(int index, DisruptionEvent.PdbBlockedPod value) The pods whose evictions are blocked by PDB.addPdbBlockedPod(int index, DisruptionEvent.PdbBlockedPod.Builder builderForValue) The pods whose evictions are blocked by PDB.The pods whose evictions are blocked by PDB.addPdbBlockedPod(DisruptionEvent.PdbBlockedPod.Builder builderForValue) The pods whose evictions are blocked by PDB.The pods whose evictions are blocked by PDB.addPdbBlockedPodBuilder(int index) The pods whose evictions are blocked by PDB.build()clear()The type of the disruption event.The node whose drain is blocked by PDB.The pods whose evictions are blocked by PDB.The timeout in seconds for which the node drain is blocked by PDB.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe type of the disruption event.intThe type of the disruption event.The node whose drain is blocked by PDB.com.google.protobuf.ByteStringThe node whose drain is blocked by PDB.getPdbBlockedPod(int index) The pods whose evictions are blocked by PDB.getPdbBlockedPodBuilder(int index) The pods whose evictions are blocked by PDB.The pods whose evictions are blocked by PDB.intThe pods whose evictions are blocked by PDB.The pods whose evictions are blocked by PDB.getPdbBlockedPodOrBuilder(int index) The pods whose evictions are blocked by PDB.List<? extends DisruptionEvent.PdbBlockedPodOrBuilder>The pods whose evictions are blocked by PDB.com.google.protobuf.DurationThe timeout in seconds for which the node drain is blocked by PDB.com.google.protobuf.Duration.BuilderThe timeout in seconds for which the node drain is blocked by PDB.com.google.protobuf.DurationOrBuilderThe timeout in seconds for which the node drain is blocked by PDB.booleanThe timeout in seconds for which the node drain is blocked by PDB.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DisruptionEvent other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePdbViolationTimeout(com.google.protobuf.Duration value) The timeout in seconds for which the node drain is blocked by PDB.removePdbBlockedPod(int index) The pods whose evictions are blocked by PDB.The type of the disruption event.setDisruptionTypeValue(int value) The type of the disruption event.setPdbBlockedNode(String value) The node whose drain is blocked by PDB.setPdbBlockedNodeBytes(com.google.protobuf.ByteString value) The node whose drain is blocked by PDB.setPdbBlockedPod(int index, DisruptionEvent.PdbBlockedPod value) The pods whose evictions are blocked by PDB.setPdbBlockedPod(int index, DisruptionEvent.PdbBlockedPod.Builder builderForValue) The pods whose evictions are blocked by PDB.setPdbViolationTimeout(com.google.protobuf.Duration value) The timeout in seconds for which the node drain is blocked by PDB.setPdbViolationTimeout(com.google.protobuf.Duration.Builder builderForValue) The timeout in seconds for which the node drain is blocked by PDB.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DisruptionEvent.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DisruptionEvent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DisruptionEvent.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DisruptionEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getDisruptionTypeValuein interfaceDisruptionEventOrBuilder- Returns:
- The enum numeric value on the wire for disruptionType.
-
setDisruptionTypeValue
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
The type of the disruption event.
.google.container.v1.DisruptionEvent.DisruptionType disruption_type = 1;- Specified by:
getDisruptionTypein interfaceDisruptionEventOrBuilder- Returns:
- The disruptionType.
-
setDisruptionType
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
The type of the disruption event.
.google.container.v1.DisruptionEvent.DisruptionType disruption_type = 1;- Returns:
- This builder for chaining.
-
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:
getPdbBlockedNodein interfaceDisruptionEventOrBuilder- 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:
getPdbBlockedNodeBytesin interfaceDisruptionEventOrBuilder- Returns:
- The bytes for pdbBlockedNode.
-
setPdbBlockedNode
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
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
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
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:
getPdbBlockedPodListin interfaceDisruptionEventOrBuilder
-
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:
getPdbBlockedPodCountin interfaceDisruptionEventOrBuilder
-
getPdbBlockedPod
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:
getPdbBlockedPodin interfaceDisruptionEventOrBuilder
-
setPdbBlockedPod
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
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
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
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
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
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
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:
getPdbBlockedPodOrBuilderin interfaceDisruptionEventOrBuilder
-
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:
getPdbBlockedPodOrBuilderListin interfaceDisruptionEventOrBuilder
-
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
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
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:
hasPdbViolationTimeoutin interfaceDisruptionEventOrBuilder- 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:
getPdbViolationTimeoutin interfaceDisruptionEventOrBuilder- Returns:
- The pdbViolationTimeout.
-
setPdbViolationTimeout
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
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
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:
getPdbViolationTimeoutOrBuilderin interfaceDisruptionEventOrBuilder
-