Class PolicyRule.Builder (1.52.0)

public static final class PolicyRule.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PolicyRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PolicyRule.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public PolicyRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PolicyRule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PolicyRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PolicyRule.Builder
Overrides

clearRolloutRestriction()

public PolicyRule.Builder clearRolloutRestriction()

Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2;

Returns
Type Description
PolicyRule.Builder

clearRule()

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

clone()

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

getDefaultInstanceForType()

public PolicyRule getDefaultInstanceForType()
Returns
Type Description
PolicyRule

getDescriptorForType()

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

getRolloutRestriction()

public RolloutRestriction getRolloutRestriction()

Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2;

Returns
Type Description
RolloutRestriction

The rolloutRestriction.

getRolloutRestrictionBuilder()

public RolloutRestriction.Builder getRolloutRestrictionBuilder()

Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2;

Returns
Type Description
RolloutRestriction.Builder

getRolloutRestrictionOrBuilder()

public RolloutRestrictionOrBuilder getRolloutRestrictionOrBuilder()

Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2;

Returns
Type Description
RolloutRestrictionOrBuilder

getRuleCase()

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

hasRolloutRestriction()

public boolean hasRolloutRestriction()

Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2;

Returns
Type Description
boolean

Whether the rolloutRestriction field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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)

Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2;

Parameter
Name Description
value RolloutRestriction
Returns
Type Description
PolicyRule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PolicyRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PolicyRule.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PolicyRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PolicyRule.Builder
Overrides

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

public PolicyRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PolicyRule.Builder
Overrides

setRolloutRestriction(RolloutRestriction value)

public PolicyRule.Builder setRolloutRestriction(RolloutRestriction value)

Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2;

Parameter
Name Description
value RolloutRestriction
Returns
Type Description
PolicyRule.Builder

setRolloutRestriction(RolloutRestriction.Builder builderForValue)

public PolicyRule.Builder setRolloutRestriction(RolloutRestriction.Builder builderForValue)

Rollout restrictions.

.google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2;

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

setUnknownFields(UnknownFieldSet unknownFields)

public final PolicyRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PolicyRule.Builder
Overrides