Package com.google.container.v1
Class MaintenancePolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MaintenancePolicy.Builder>
com.google.container.v1.MaintenancePolicy.Builder
- All Implemented Interfaces:
MaintenancePolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MaintenancePolicy
public static final class MaintenancePolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MaintenancePolicy.Builder>
implements MaintenancePolicyOrBuilder
MaintenancePolicy defines the maintenance policy to be used for the cluster.Protobuf type
google.container.v1.MaintenancePolicy-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.A hash identifying the version of this policy, so that updates to fields of the policy won't accidentally undo intermediate changes (and so that users of the API unaware of some fields won't accidentally remove other fields).Specifies the maintenance window in which maintenance may be performed.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.A hash identifying the version of this policy, so that updates to fields of the policy won't accidentally undo intermediate changes (and so that users of the API unaware of some fields won't accidentally remove other fields).com.google.protobuf.ByteStringA hash identifying the version of this policy, so that updates to fields of the policy won't accidentally undo intermediate changes (and so that users of the API unaware of some fields won't accidentally remove other fields).Specifies the maintenance window in which maintenance may be performed.Specifies the maintenance window in which maintenance may be performed.Specifies the maintenance window in which maintenance may be performed.booleanOptional.booleanSpecifies the maintenance window in which maintenance may be performed.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(MaintenancePolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeWindow(MaintenanceWindow value) Specifies the maintenance window in which maintenance may be performed.Optional.setDisruptionBudget(DisruptionBudget.Builder builderForValue) Optional.setResourceVersion(String value) A hash identifying the version of this policy, so that updates to fields of the policy won't accidentally undo intermediate changes (and so that users of the API unaware of some fields won't accidentally remove other fields).setResourceVersionBytes(com.google.protobuf.ByteString value) A hash identifying the version of this policy, so that updates to fields of the policy won't accidentally undo intermediate changes (and so that users of the API unaware of some fields won't accidentally remove other fields).setWindow(MaintenanceWindow value) Specifies the maintenance window in which maintenance may be performed.setWindow(MaintenanceWindow.Builder builderForValue) Specifies the maintenance window in which maintenance may be performed.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<MaintenancePolicy.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<MaintenancePolicy.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<MaintenancePolicy.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<MaintenancePolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MaintenancePolicy.Builder>
-
mergeFrom
public MaintenancePolicy.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<MaintenancePolicy.Builder>- Throws:
IOException
-
hasWindow
public boolean hasWindow()Specifies the maintenance window in which maintenance may be performed.
.google.container.v1.MaintenanceWindow window = 1;- Specified by:
hasWindowin interfaceMaintenancePolicyOrBuilder- Returns:
- Whether the window field is set.
-
getWindow
Specifies the maintenance window in which maintenance may be performed.
.google.container.v1.MaintenanceWindow window = 1;- Specified by:
getWindowin interfaceMaintenancePolicyOrBuilder- Returns:
- The window.
-
setWindow
Specifies the maintenance window in which maintenance may be performed.
.google.container.v1.MaintenanceWindow window = 1; -
setWindow
Specifies the maintenance window in which maintenance may be performed.
.google.container.v1.MaintenanceWindow window = 1; -
mergeWindow
Specifies the maintenance window in which maintenance may be performed.
.google.container.v1.MaintenanceWindow window = 1; -
clearWindow
Specifies the maintenance window in which maintenance may be performed.
.google.container.v1.MaintenanceWindow window = 1; -
getWindowBuilder
Specifies the maintenance window in which maintenance may be performed.
.google.container.v1.MaintenanceWindow window = 1; -
getWindowOrBuilder
Specifies the maintenance window in which maintenance may be performed.
.google.container.v1.MaintenanceWindow window = 1;- Specified by:
getWindowOrBuilderin interfaceMaintenancePolicyOrBuilder
-
getResourceVersion
A hash identifying the version of this policy, so that updates to fields of the policy won't accidentally undo intermediate changes (and so that users of the API unaware of some fields won't accidentally remove other fields). Make a `get()` request to the cluster to get the current resource version and include it with requests to set the policy.
string resource_version = 3;- Specified by:
getResourceVersionin interfaceMaintenancePolicyOrBuilder- Returns:
- The resourceVersion.
-
getResourceVersionBytes
public com.google.protobuf.ByteString getResourceVersionBytes()A hash identifying the version of this policy, so that updates to fields of the policy won't accidentally undo intermediate changes (and so that users of the API unaware of some fields won't accidentally remove other fields). Make a `get()` request to the cluster to get the current resource version and include it with requests to set the policy.
string resource_version = 3;- Specified by:
getResourceVersionBytesin interfaceMaintenancePolicyOrBuilder- Returns:
- The bytes for resourceVersion.
-
setResourceVersion
A hash identifying the version of this policy, so that updates to fields of the policy won't accidentally undo intermediate changes (and so that users of the API unaware of some fields won't accidentally remove other fields). Make a `get()` request to the cluster to get the current resource version and include it with requests to set the policy.
string resource_version = 3;- Parameters:
value- The resourceVersion to set.- Returns:
- This builder for chaining.
-
clearResourceVersion
A hash identifying the version of this policy, so that updates to fields of the policy won't accidentally undo intermediate changes (and so that users of the API unaware of some fields won't accidentally remove other fields). Make a `get()` request to the cluster to get the current resource version and include it with requests to set the policy.
string resource_version = 3;- Returns:
- This builder for chaining.
-
setResourceVersionBytes
A hash identifying the version of this policy, so that updates to fields of the policy won't accidentally undo intermediate changes (and so that users of the API unaware of some fields won't accidentally remove other fields). Make a `get()` request to the cluster to get the current resource version and include it with requests to set the policy.
string resource_version = 3;- Parameters:
value- The bytes for resourceVersion to set.- Returns:
- This builder for chaining.
-
hasDisruptionBudget
public boolean hasDisruptionBudget()Optional. The upgrade disruption budget for the cluster control plane.
.google.container.v1.DisruptionBudget disruption_budget = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDisruptionBudgetin interfaceMaintenancePolicyOrBuilder- Returns:
- Whether the disruptionBudget field is set.
-
getDisruptionBudget
Optional. The upgrade disruption budget for the cluster control plane.
.google.container.v1.DisruptionBudget disruption_budget = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisruptionBudgetin interfaceMaintenancePolicyOrBuilder- Returns:
- The disruptionBudget.
-
setDisruptionBudget
Optional. The upgrade disruption budget for the cluster control plane.
.google.container.v1.DisruptionBudget disruption_budget = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setDisruptionBudget
Optional. The upgrade disruption budget for the cluster control plane.
.google.container.v1.DisruptionBudget disruption_budget = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeDisruptionBudget
Optional. The upgrade disruption budget for the cluster control plane.
.google.container.v1.DisruptionBudget disruption_budget = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearDisruptionBudget
Optional. The upgrade disruption budget for the cluster control plane.
.google.container.v1.DisruptionBudget disruption_budget = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getDisruptionBudgetBuilder
Optional. The upgrade disruption budget for the cluster control plane.
.google.container.v1.DisruptionBudget disruption_budget = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getDisruptionBudgetOrBuilder
Optional. The upgrade disruption budget for the cluster control plane.
.google.container.v1.DisruptionBudget disruption_budget = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisruptionBudgetOrBuilderin interfaceMaintenancePolicyOrBuilder
-