Class AutomationResourceSelector.Builder (1.43.0)

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

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTargets(TargetAttribute value)

public AutomationResourceSelector.Builder addTargets(TargetAttribute value)

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

Parameter
Name Description
value TargetAttribute
Returns
Type Description
AutomationResourceSelector.Builder

addTargets(TargetAttribute.Builder builderForValue)

public AutomationResourceSelector.Builder addTargets(TargetAttribute.Builder builderForValue)

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

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

addTargets(int index, TargetAttribute value)

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

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

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)

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

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

addTargetsBuilder()

public TargetAttribute.Builder addTargetsBuilder()

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

Returns
Type Description
TargetAttribute.Builder

addTargetsBuilder(int index)

public TargetAttribute.Builder addTargetsBuilder(int index)

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargets()

public AutomationResourceSelector.Builder clearTargets()

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

Returns
Type Description
AutomationResourceSelector.Builder

clone()

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

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)

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

Parameter
Name Description
index int
Returns
Type Description
TargetAttribute

getTargetsBuilder(int index)

public TargetAttribute.Builder getTargetsBuilder(int index)

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

Parameter
Name Description
index int
Returns
Type Description
TargetAttribute.Builder

getTargetsBuilderList()

public List<TargetAttribute.Builder> getTargetsBuilderList()

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

Returns
Type Description
List<Builder>

getTargetsCount()

public int getTargetsCount()

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

Returns
Type Description
int

getTargetsList()

public List<TargetAttribute> getTargetsList()

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

Returns
Type Description
List<TargetAttribute>

getTargetsOrBuilder(int index)

public TargetAttributeOrBuilder getTargetsOrBuilder(int index)

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

Parameter
Name Description
index int
Returns
Type Description
TargetAttributeOrBuilder

getTargetsOrBuilderList()

public List<? extends TargetAttributeOrBuilder> getTargetsOrBuilderList()

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

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

internalGetFieldAccessorTable()

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTargets(int index)

public AutomationResourceSelector.Builder removeTargets(int index)

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

Parameter
Name Description
index int
Returns
Type Description
AutomationResourceSelector.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTargets(int index, TargetAttribute value)

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

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

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)

Contains attributes about a target.

repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;

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

setUnknownFields(UnknownFieldSet unknownFields)

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