Class OSPolicyAssignment.Rollout.Builder (2.38.0)

public static final class OSPolicyAssignment.Rollout.Builder extends GeneratedMessageV3.Builder<OSPolicyAssignment.Rollout.Builder> implements OSPolicyAssignment.RolloutOrBuilder

Message to configure the rollout at the zonal level for the OS policy assignment.

Protobuf type google.cloud.osconfig.v1.OSPolicyAssignment.Rollout

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OSPolicyAssignment.Rollout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder
Overrides

build()

public OSPolicyAssignment.Rollout build()
Returns
TypeDescription
OSPolicyAssignment.Rollout

buildPartial()

public OSPolicyAssignment.Rollout buildPartial()
Returns
TypeDescription
OSPolicyAssignment.Rollout

clear()

public OSPolicyAssignment.Rollout.Builder clear()
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder
Overrides

clearDisruptionBudget()

public OSPolicyAssignment.Rollout.Builder clearDisruptionBudget()

Required. The maximum number (or percentage) of VMs per zone to disrupt at any given moment.

.google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder

clearField(Descriptors.FieldDescriptor field)

public OSPolicyAssignment.Rollout.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder
Overrides

clearMinWaitDuration()

public OSPolicyAssignment.Rollout.Builder clearMinWaitDuration()

Required. This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.

.google.protobuf.Duration min_wait_duration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public OSPolicyAssignment.Rollout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder
Overrides

clone()

public OSPolicyAssignment.Rollout.Builder clone()
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder
Overrides

getDefaultInstanceForType()

public OSPolicyAssignment.Rollout getDefaultInstanceForType()
Returns
TypeDescription
OSPolicyAssignment.Rollout

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisruptionBudget()

public Common.FixedOrPercent getDisruptionBudget()

Required. The maximum number (or percentage) of VMs per zone to disrupt at any given moment.

.google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Common.FixedOrPercent

The disruptionBudget.

getDisruptionBudgetBuilder()

public Common.FixedOrPercent.Builder getDisruptionBudgetBuilder()

Required. The maximum number (or percentage) of VMs per zone to disrupt at any given moment.

.google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Common.FixedOrPercent.Builder

getDisruptionBudgetOrBuilder()

public Common.FixedOrPercentOrBuilder getDisruptionBudgetOrBuilder()

Required. The maximum number (or percentage) of VMs per zone to disrupt at any given moment.

.google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Common.FixedOrPercentOrBuilder

getMinWaitDuration()

public Duration getMinWaitDuration()

Required. This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.

.google.protobuf.Duration min_wait_duration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Duration

The minWaitDuration.

getMinWaitDurationBuilder()

public Duration.Builder getMinWaitDurationBuilder()

Required. This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.

.google.protobuf.Duration min_wait_duration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Builder

getMinWaitDurationOrBuilder()

public DurationOrBuilder getMinWaitDurationOrBuilder()

Required. This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.

.google.protobuf.Duration min_wait_duration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DurationOrBuilder

hasDisruptionBudget()

public boolean hasDisruptionBudget()

Required. The maximum number (or percentage) of VMs per zone to disrupt at any given moment.

.google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the disruptionBudget field is set.

hasMinWaitDuration()

public boolean hasMinWaitDuration()

Required. This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.

.google.protobuf.Duration min_wait_duration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the minWaitDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDisruptionBudget(Common.FixedOrPercent value)

public OSPolicyAssignment.Rollout.Builder mergeDisruptionBudget(Common.FixedOrPercent value)

Required. The maximum number (or percentage) of VMs per zone to disrupt at any given moment.

.google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCommon.FixedOrPercent
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder

mergeFrom(OSPolicyAssignment.Rollout other)

public OSPolicyAssignment.Rollout.Builder mergeFrom(OSPolicyAssignment.Rollout other)
Parameter
NameDescription
otherOSPolicyAssignment.Rollout
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OSPolicyAssignment.Rollout.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OSPolicyAssignment.Rollout.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder
Overrides

mergeMinWaitDuration(Duration value)

public OSPolicyAssignment.Rollout.Builder mergeMinWaitDuration(Duration value)

Required. This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.

.google.protobuf.Duration min_wait_duration = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicyAssignment.Rollout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder
Overrides

setDisruptionBudget(Common.FixedOrPercent value)

public OSPolicyAssignment.Rollout.Builder setDisruptionBudget(Common.FixedOrPercent value)

Required. The maximum number (or percentage) of VMs per zone to disrupt at any given moment.

.google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCommon.FixedOrPercent
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder

setDisruptionBudget(Common.FixedOrPercent.Builder builderForValue)

public OSPolicyAssignment.Rollout.Builder setDisruptionBudget(Common.FixedOrPercent.Builder builderForValue)

Required. The maximum number (or percentage) of VMs per zone to disrupt at any given moment.

.google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCommon.FixedOrPercent.Builder
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OSPolicyAssignment.Rollout.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder
Overrides

setMinWaitDuration(Duration value)

public OSPolicyAssignment.Rollout.Builder setMinWaitDuration(Duration value)

Required. This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.

.google.protobuf.Duration min_wait_duration = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder

setMinWaitDuration(Duration.Builder builderForValue)

public OSPolicyAssignment.Rollout.Builder setMinWaitDuration(Duration.Builder builderForValue)

Required. This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.

.google.protobuf.Duration min_wait_duration = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OSPolicyAssignment.Rollout.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicyAssignment.Rollout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OSPolicyAssignment.Rollout.Builder
Overrides