Class DeployPolicyResourceSelector.Builder (1.52.0)

public static final class DeployPolicyResourceSelector.Builder extends GeneratedMessageV3.Builder<DeployPolicyResourceSelector.Builder> implements DeployPolicyResourceSelectorOrBuilder

Contains information on the resources to select for a deploy policy. Attributes provided must all match the resource in order for policy restrictions to apply. For example, if delivery pipelines attributes given are an id "prod" and labels "foo: bar", a delivery pipeline resource must match both that id and have that label in order to be subject to the policy.

Protobuf type google.cloud.deploy.v1.DeployPolicyResourceSelector

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeployPolicyResourceSelector build()
Returns
Type Description
DeployPolicyResourceSelector

buildPartial()

public DeployPolicyResourceSelector buildPartial()
Returns
Type Description
DeployPolicyResourceSelector

clear()

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

clearDeliveryPipeline()

public DeployPolicyResourceSelector.Builder clearDeliveryPipeline()

Optional. Contains attributes about a delivery pipeline.

.google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeployPolicyResourceSelector.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTarget()

public DeployPolicyResourceSelector.Builder clearTarget()

Optional. Contains attributes about a target.

.google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeployPolicyResourceSelector.Builder

clone()

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

getDefaultInstanceForType()

public DeployPolicyResourceSelector getDefaultInstanceForType()
Returns
Type Description
DeployPolicyResourceSelector

getDeliveryPipeline()

public DeliveryPipelineAttribute getDeliveryPipeline()

Optional. Contains attributes about a delivery pipeline.

.google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeliveryPipelineAttribute

The deliveryPipeline.

getDeliveryPipelineBuilder()

public DeliveryPipelineAttribute.Builder getDeliveryPipelineBuilder()

Optional. Contains attributes about a delivery pipeline.

.google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeliveryPipelineAttribute.Builder

getDeliveryPipelineOrBuilder()

public DeliveryPipelineAttributeOrBuilder getDeliveryPipelineOrBuilder()

Optional. Contains attributes about a delivery pipeline.

.google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeliveryPipelineAttributeOrBuilder

getDescriptorForType()

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

getTarget()

public TargetAttribute getTarget()

Optional. Contains attributes about a target.

.google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TargetAttribute

The target.

getTargetBuilder()

public TargetAttribute.Builder getTargetBuilder()

Optional. Contains attributes about a target.

.google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TargetAttribute.Builder

getTargetOrBuilder()

public TargetAttributeOrBuilder getTargetOrBuilder()

Optional. Contains attributes about a target.

.google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TargetAttributeOrBuilder

hasDeliveryPipeline()

public boolean hasDeliveryPipeline()

Optional. Contains attributes about a delivery pipeline.

.google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the deliveryPipeline field is set.

hasTarget()

public boolean hasTarget()

Optional. Contains attributes about a target.

.google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the target field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeliveryPipeline(DeliveryPipelineAttribute value)

public DeployPolicyResourceSelector.Builder mergeDeliveryPipeline(DeliveryPipelineAttribute value)

Optional. Contains attributes about a delivery pipeline.

.google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DeliveryPipelineAttribute
Returns
Type Description
DeployPolicyResourceSelector.Builder

mergeFrom(DeployPolicyResourceSelector other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTarget(TargetAttribute value)

public DeployPolicyResourceSelector.Builder mergeTarget(TargetAttribute value)

Optional. Contains attributes about a target.

.google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TargetAttribute
Returns
Type Description
DeployPolicyResourceSelector.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDeliveryPipeline(DeliveryPipelineAttribute value)

public DeployPolicyResourceSelector.Builder setDeliveryPipeline(DeliveryPipelineAttribute value)

Optional. Contains attributes about a delivery pipeline.

.google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DeliveryPipelineAttribute
Returns
Type Description
DeployPolicyResourceSelector.Builder

setDeliveryPipeline(DeliveryPipelineAttribute.Builder builderForValue)

public DeployPolicyResourceSelector.Builder setDeliveryPipeline(DeliveryPipelineAttribute.Builder builderForValue)

Optional. Contains attributes about a delivery pipeline.

.google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DeliveryPipelineAttribute.Builder
Returns
Type Description
DeployPolicyResourceSelector.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTarget(TargetAttribute value)

public DeployPolicyResourceSelector.Builder setTarget(TargetAttribute value)

Optional. Contains attributes about a target.

.google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TargetAttribute
Returns
Type Description
DeployPolicyResourceSelector.Builder

setTarget(TargetAttribute.Builder builderForValue)

public DeployPolicyResourceSelector.Builder setTarget(TargetAttribute.Builder builderForValue)

Optional. Contains attributes about a target.

.google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue TargetAttribute.Builder
Returns
Type Description
DeployPolicyResourceSelector.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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