Class PolicyRule.Builder (1.81.0)

public static final class PolicyRule.Builder extends GeneratedMessage.Builder<PolicyRule.Builder> implements PolicyRuleOrBuilder

Deploy Policy rule.

Protobuf type google.cloud.deploy.v1.PolicyRule

Implements

PolicyRuleOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public PolicyRule build()
Returns
Type Description
PolicyRule

buildPartial()

public PolicyRule buildPartial()
Returns
Type Description
PolicyRule

clear()

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

clearRolloutRestriction()

public PolicyRule.Builder clearRolloutRestriction()

Optional. Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PolicyRule.Builder

clearRule()

public PolicyRule.Builder clearRule()
Returns
Type Description
PolicyRule.Builder

getDefaultInstanceForType()

public PolicyRule getDefaultInstanceForType()
Returns
Type Description
PolicyRule

getDescriptorForType()

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

getRolloutRestriction()

public RolloutRestriction getRolloutRestriction()

Optional. Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RolloutRestriction

The rolloutRestriction.

getRolloutRestrictionBuilder()

public RolloutRestriction.Builder getRolloutRestrictionBuilder()

Optional. Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RolloutRestriction.Builder

getRolloutRestrictionOrBuilder()

public RolloutRestrictionOrBuilder getRolloutRestrictionOrBuilder()

Optional. Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RolloutRestrictionOrBuilder

getRuleCase()

public PolicyRule.RuleCase getRuleCase()
Returns
Type Description
PolicyRule.RuleCase

hasRolloutRestriction()

public boolean hasRolloutRestriction()

Optional. Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rolloutRestriction field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PolicyRule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRolloutRestriction(RolloutRestriction value)

public PolicyRule.Builder mergeRolloutRestriction(RolloutRestriction value)

Optional. Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RolloutRestriction
Returns
Type Description
PolicyRule.Builder

setRolloutRestriction(RolloutRestriction value)

public PolicyRule.Builder setRolloutRestriction(RolloutRestriction value)

Optional. Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RolloutRestriction
Returns
Type Description
PolicyRule.Builder

setRolloutRestriction(RolloutRestriction.Builder builderForValue)

public PolicyRule.Builder setRolloutRestriction(RolloutRestriction.Builder builderForValue)

Optional. Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RolloutRestriction.Builder
Returns
Type Description
PolicyRule.Builder