Class DeployPolicyResourceSelector.Builder (1.60.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 1.60.0keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeployPolicyResourceSelector . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public DeployPolicyResourceSelector build ()
buildPartial()
public DeployPolicyResourceSelector buildPartial ()
clear()
public DeployPolicyResourceSelector . Builder clear ()
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];
clearField(Descriptors.FieldDescriptor field)
public DeployPolicyResourceSelector . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DeployPolicyResourceSelector . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearTarget()
public DeployPolicyResourceSelector . Builder clearTarget ()
Optional. Contains attributes about a target.
.google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL];
clone()
public DeployPolicyResourceSelector . Builder clone ()
Overrides
getDefaultInstanceForType()
public DeployPolicyResourceSelector getDefaultInstanceForType ()
getDeliveryPipeline()
public DeliveryPipelineAttribute getDeliveryPipeline ()
Optional. Contains attributes about a delivery pipeline.
.google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL];
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];
getDeliveryPipelineOrBuilder()
public DeliveryPipelineAttributeOrBuilder getDeliveryPipelineOrBuilder ()
Optional. Contains attributes about a delivery pipeline.
.google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL];
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getTarget()
public TargetAttribute getTarget ()
Optional. Contains attributes about a target.
.google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL];
getTargetBuilder()
public TargetAttribute . Builder getTargetBuilder ()
Optional. Contains attributes about a target.
.google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL];
getTargetOrBuilder()
public TargetAttributeOrBuilder getTargetOrBuilder ()
Optional. Contains attributes about a target.
.google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL];
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
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];
mergeFrom(DeployPolicyResourceSelector other)
public DeployPolicyResourceSelector . Builder mergeFrom ( DeployPolicyResourceSelector other )
public DeployPolicyResourceSelector . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public DeployPolicyResourceSelector . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeployPolicyResourceSelector . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
public DeployPolicyResourceSelector . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeployPolicyResourceSelector . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final DeployPolicyResourceSelector . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,[]]