Class AutomationResourceSelector.Builder (1.81.0)

public static final class AutomationResourceSelector.Builder extends GeneratedMessage.Builder<AutomationResourceSelector.Builder> implements AutomationResourceSelectorOrBuilder

AutomationResourceSelector contains the information to select the resources to which an Automation is going to be applied.

Protobuf type google.cloud.deploy.v1.AutomationResourceSelector

Static Methods

getDescriptor()

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

Methods

addAllTargets(Iterable<? extends TargetAttribute> values)

public AutomationResourceSelector.Builder addAllTargets(Iterable<? extends TargetAttribute> values)

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.deploy.v1.TargetAttribute>
Returns
Type Description
AutomationResourceSelector.Builder

addTargets(TargetAttribute value)

public AutomationResourceSelector.Builder addTargets(TargetAttribute value)

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TargetAttribute
Returns
Type Description
AutomationResourceSelector.Builder

addTargets(TargetAttribute.Builder builderForValue)

public AutomationResourceSelector.Builder addTargets(TargetAttribute.Builder builderForValue)

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

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

addTargets(int index, TargetAttribute value)

public AutomationResourceSelector.Builder addTargets(int index, TargetAttribute value)

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value TargetAttribute
Returns
Type Description
AutomationResourceSelector.Builder

addTargets(int index, TargetAttribute.Builder builderForValue)

public AutomationResourceSelector.Builder addTargets(int index, TargetAttribute.Builder builderForValue)

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue TargetAttribute.Builder
Returns
Type Description
AutomationResourceSelector.Builder

addTargetsBuilder()

public TargetAttribute.Builder addTargetsBuilder()

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TargetAttribute.Builder

addTargetsBuilder(int index)

public TargetAttribute.Builder addTargetsBuilder(int index)

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TargetAttribute.Builder

build()

public AutomationResourceSelector build()
Returns
Type Description
AutomationResourceSelector

buildPartial()

public AutomationResourceSelector buildPartial()
Returns
Type Description
AutomationResourceSelector

clear()

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

clearTargets()

public AutomationResourceSelector.Builder clearTargets()

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutomationResourceSelector.Builder

getDefaultInstanceForType()

public AutomationResourceSelector getDefaultInstanceForType()
Returns
Type Description
AutomationResourceSelector

getDescriptorForType()

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

getTargets(int index)

public TargetAttribute getTargets(int index)

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TargetAttribute

getTargetsBuilder(int index)

public TargetAttribute.Builder getTargetsBuilder(int index)

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TargetAttribute.Builder

getTargetsBuilderList()

public List<TargetAttribute.Builder> getTargetsBuilderList()

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getTargetsCount()

public int getTargetsCount()

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getTargetsList()

public List<TargetAttribute> getTargetsList()

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<TargetAttribute>

getTargetsOrBuilder(int index)

public TargetAttributeOrBuilder getTargetsOrBuilder(int index)

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TargetAttributeOrBuilder

getTargetsOrBuilderList()

public List<? extends TargetAttributeOrBuilder> getTargetsOrBuilderList()

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.deploy.v1.TargetAttributeOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AutomationResourceSelector other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeTargets(int index)

public AutomationResourceSelector.Builder removeTargets(int index)

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AutomationResourceSelector.Builder

setTargets(int index, TargetAttribute value)

public AutomationResourceSelector.Builder setTargets(int index, TargetAttribute value)

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value TargetAttribute
Returns
Type Description
AutomationResourceSelector.Builder

setTargets(int index, TargetAttribute.Builder builderForValue)

public AutomationResourceSelector.Builder setTargets(int index, TargetAttribute.Builder builderForValue)

Optional. Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue TargetAttribute.Builder
Returns
Type Description
AutomationResourceSelector.Builder