Package com.google.container.v1
Class DisruptionBudget.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DisruptionBudget.Builder>
com.google.container.v1.DisruptionBudget.Builder
- All Implemented Interfaces:
DisruptionBudgetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DisruptionBudget
public static final class DisruptionBudget.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DisruptionBudget.Builder>
implements DisruptionBudgetOrBuilder
DisruptionBudget defines the upgrade disruption budget for the cluster control plane.Protobuf type
google.container.v1.DisruptionBudget-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.booleanOutput only.booleanOutput only.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DisruptionBudget other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastDisruptionTime(com.google.protobuf.Timestamp value) Output only.mergeLastMinorVersionDisruptionTime(com.google.protobuf.Timestamp value) Output only.mergeMinorVersionDisruptionInterval(com.google.protobuf.Duration value) Optional.mergePatchVersionDisruptionInterval(com.google.protobuf.Duration value) Optional.setLastDisruptionTime(com.google.protobuf.Timestamp value) Output only.setLastDisruptionTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setLastMinorVersionDisruptionTime(com.google.protobuf.Timestamp value) Output only.setLastMinorVersionDisruptionTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setMinorVersionDisruptionInterval(com.google.protobuf.Duration value) Optional.setMinorVersionDisruptionInterval(com.google.protobuf.Duration.Builder builderForValue) Optional.setPatchVersionDisruptionInterval(com.google.protobuf.Duration value) Optional.setPatchVersionDisruptionInterval(com.google.protobuf.Duration.Builder builderForValue) Optional.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<DisruptionBudget.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<DisruptionBudget.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<DisruptionBudget.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<DisruptionBudget.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DisruptionBudget.Builder>
-
mergeFrom
public DisruptionBudget.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<DisruptionBudget.Builder>- Throws:
IOException
-
hasMinorVersionDisruptionInterval
public boolean hasMinorVersionDisruptionInterval()Optional. The minimum duration between two minor version upgrades of the control plane.
.google.protobuf.Duration minor_version_disruption_interval = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMinorVersionDisruptionIntervalin interfaceDisruptionBudgetOrBuilder- Returns:
- Whether the minorVersionDisruptionInterval field is set.
-
getMinorVersionDisruptionInterval
public com.google.protobuf.Duration getMinorVersionDisruptionInterval()Optional. The minimum duration between two minor version upgrades of the control plane.
.google.protobuf.Duration minor_version_disruption_interval = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinorVersionDisruptionIntervalin interfaceDisruptionBudgetOrBuilder- Returns:
- The minorVersionDisruptionInterval.
-
setMinorVersionDisruptionInterval
public DisruptionBudget.Builder setMinorVersionDisruptionInterval(com.google.protobuf.Duration value) Optional. The minimum duration between two minor version upgrades of the control plane.
.google.protobuf.Duration minor_version_disruption_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; -
setMinorVersionDisruptionInterval
public DisruptionBudget.Builder setMinorVersionDisruptionInterval(com.google.protobuf.Duration.Builder builderForValue) Optional. The minimum duration between two minor version upgrades of the control plane.
.google.protobuf.Duration minor_version_disruption_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; -
mergeMinorVersionDisruptionInterval
public DisruptionBudget.Builder mergeMinorVersionDisruptionInterval(com.google.protobuf.Duration value) Optional. The minimum duration between two minor version upgrades of the control plane.
.google.protobuf.Duration minor_version_disruption_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; -
clearMinorVersionDisruptionInterval
Optional. The minimum duration between two minor version upgrades of the control plane.
.google.protobuf.Duration minor_version_disruption_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getMinorVersionDisruptionIntervalBuilder
public com.google.protobuf.Duration.Builder getMinorVersionDisruptionIntervalBuilder()Optional. The minimum duration between two minor version upgrades of the control plane.
.google.protobuf.Duration minor_version_disruption_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getMinorVersionDisruptionIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getMinorVersionDisruptionIntervalOrBuilder()Optional. The minimum duration between two minor version upgrades of the control plane.
.google.protobuf.Duration minor_version_disruption_interval = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinorVersionDisruptionIntervalOrBuilderin interfaceDisruptionBudgetOrBuilder
-
hasPatchVersionDisruptionInterval
public boolean hasPatchVersionDisruptionInterval()Optional. The minimum duration between two patch version upgrades of the control plane.
.google.protobuf.Duration patch_version_disruption_interval = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPatchVersionDisruptionIntervalin interfaceDisruptionBudgetOrBuilder- Returns:
- Whether the patchVersionDisruptionInterval field is set.
-
getPatchVersionDisruptionInterval
public com.google.protobuf.Duration getPatchVersionDisruptionInterval()Optional. The minimum duration between two patch version upgrades of the control plane.
.google.protobuf.Duration patch_version_disruption_interval = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPatchVersionDisruptionIntervalin interfaceDisruptionBudgetOrBuilder- Returns:
- The patchVersionDisruptionInterval.
-
setPatchVersionDisruptionInterval
public DisruptionBudget.Builder setPatchVersionDisruptionInterval(com.google.protobuf.Duration value) Optional. The minimum duration between two patch version upgrades of the control plane.
.google.protobuf.Duration patch_version_disruption_interval = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setPatchVersionDisruptionInterval
public DisruptionBudget.Builder setPatchVersionDisruptionInterval(com.google.protobuf.Duration.Builder builderForValue) Optional. The minimum duration between two patch version upgrades of the control plane.
.google.protobuf.Duration patch_version_disruption_interval = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergePatchVersionDisruptionInterval
public DisruptionBudget.Builder mergePatchVersionDisruptionInterval(com.google.protobuf.Duration value) Optional. The minimum duration between two patch version upgrades of the control plane.
.google.protobuf.Duration patch_version_disruption_interval = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearPatchVersionDisruptionInterval
Optional. The minimum duration between two patch version upgrades of the control plane.
.google.protobuf.Duration patch_version_disruption_interval = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getPatchVersionDisruptionIntervalBuilder
public com.google.protobuf.Duration.Builder getPatchVersionDisruptionIntervalBuilder()Optional. The minimum duration between two patch version upgrades of the control plane.
.google.protobuf.Duration patch_version_disruption_interval = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getPatchVersionDisruptionIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getPatchVersionDisruptionIntervalOrBuilder()Optional. The minimum duration between two patch version upgrades of the control plane.
.google.protobuf.Duration patch_version_disruption_interval = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPatchVersionDisruptionIntervalOrBuilderin interfaceDisruptionBudgetOrBuilder
-
hasLastMinorVersionDisruptionTime
public boolean hasLastMinorVersionDisruptionTime()Output only. The last time a minor version upgrade was performed on the control plane.
.google.protobuf.Timestamp last_minor_version_disruption_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasLastMinorVersionDisruptionTimein interfaceDisruptionBudgetOrBuilder- Returns:
- Whether the lastMinorVersionDisruptionTime field is set.
-
getLastMinorVersionDisruptionTime
public com.google.protobuf.Timestamp getLastMinorVersionDisruptionTime()Output only. The last time a minor version upgrade was performed on the control plane.
.google.protobuf.Timestamp last_minor_version_disruption_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastMinorVersionDisruptionTimein interfaceDisruptionBudgetOrBuilder- Returns:
- The lastMinorVersionDisruptionTime.
-
setLastMinorVersionDisruptionTime
public DisruptionBudget.Builder setLastMinorVersionDisruptionTime(com.google.protobuf.Timestamp value) Output only. The last time a minor version upgrade was performed on the control plane.
.google.protobuf.Timestamp last_minor_version_disruption_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setLastMinorVersionDisruptionTime
public DisruptionBudget.Builder setLastMinorVersionDisruptionTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. The last time a minor version upgrade was performed on the control plane.
.google.protobuf.Timestamp last_minor_version_disruption_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeLastMinorVersionDisruptionTime
public DisruptionBudget.Builder mergeLastMinorVersionDisruptionTime(com.google.protobuf.Timestamp value) Output only. The last time a minor version upgrade was performed on the control plane.
.google.protobuf.Timestamp last_minor_version_disruption_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearLastMinorVersionDisruptionTime
Output only. The last time a minor version upgrade was performed on the control plane.
.google.protobuf.Timestamp last_minor_version_disruption_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLastMinorVersionDisruptionTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastMinorVersionDisruptionTimeBuilder()Output only. The last time a minor version upgrade was performed on the control plane.
.google.protobuf.Timestamp last_minor_version_disruption_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLastMinorVersionDisruptionTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastMinorVersionDisruptionTimeOrBuilder()Output only. The last time a minor version upgrade was performed on the control plane.
.google.protobuf.Timestamp last_minor_version_disruption_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastMinorVersionDisruptionTimeOrBuilderin interfaceDisruptionBudgetOrBuilder
-
hasLastDisruptionTime
public boolean hasLastDisruptionTime()Output only. The last time a disruption was performed on the control plane.
.google.protobuf.Timestamp last_disruption_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasLastDisruptionTimein interfaceDisruptionBudgetOrBuilder- Returns:
- Whether the lastDisruptionTime field is set.
-
getLastDisruptionTime
public com.google.protobuf.Timestamp getLastDisruptionTime()Output only. The last time a disruption was performed on the control plane.
.google.protobuf.Timestamp last_disruption_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastDisruptionTimein interfaceDisruptionBudgetOrBuilder- Returns:
- The lastDisruptionTime.
-
setLastDisruptionTime
Output only. The last time a disruption was performed on the control plane.
.google.protobuf.Timestamp last_disruption_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setLastDisruptionTime
public DisruptionBudget.Builder setLastDisruptionTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. The last time a disruption was performed on the control plane.
.google.protobuf.Timestamp last_disruption_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeLastDisruptionTime
Output only. The last time a disruption was performed on the control plane.
.google.protobuf.Timestamp last_disruption_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearLastDisruptionTime
Output only. The last time a disruption was performed on the control plane.
.google.protobuf.Timestamp last_disruption_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLastDisruptionTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastDisruptionTimeBuilder()Output only. The last time a disruption was performed on the control plane.
.google.protobuf.Timestamp last_disruption_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLastDisruptionTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastDisruptionTimeOrBuilder()Output only. The last time a disruption was performed on the control plane.
.google.protobuf.Timestamp last_disruption_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastDisruptionTimeOrBuilderin interfaceDisruptionBudgetOrBuilder
-