Class AutomationResourceSelector.Builder (1.35.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.deploy.v1.TargetAttribute>
Returns
TypeDescription
AutomationResourceSelector.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomationResourceSelector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTargetAttribute
Returns
TypeDescription
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
NameDescription
builderForValueTargetAttribute.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTargetAttribute
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTargetAttribute.Builder
Returns
TypeDescription
AutomationResourceSelector.Builder

addTargetsBuilder()

public TargetAttribute.Builder addTargetsBuilder()

Contains attributes about a target.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
TargetAttribute.Builder

build()

public AutomationResourceSelector build()
Returns
TypeDescription
AutomationResourceSelector

buildPartial()

public AutomationResourceSelector buildPartial()
Returns
TypeDescription
AutomationResourceSelector

clear()

public AutomationResourceSelector.Builder clear()
Returns
TypeDescription
AutomationResourceSelector.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AutomationResourceSelector.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AutomationResourceSelector.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AutomationResourceSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AutomationResourceSelector.Builder
Overrides

clearTargets()

public AutomationResourceSelector.Builder clearTargets()

Contains attributes about a target.

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

Returns
TypeDescription
AutomationResourceSelector.Builder

clone()

public AutomationResourceSelector.Builder clone()
Returns
TypeDescription
AutomationResourceSelector.Builder
Overrides

getDefaultInstanceForType()

public AutomationResourceSelector getDefaultInstanceForType()
Returns
TypeDescription
AutomationResourceSelector

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTargets(int index)

public TargetAttribute getTargets(int index)

Contains attributes about a target.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TargetAttribute

getTargetsBuilder(int index)

public TargetAttribute.Builder getTargetsBuilder(int index)

Contains attributes about a target.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TargetAttribute.Builder

getTargetsBuilderList()

public List<TargetAttribute.Builder> getTargetsBuilderList()

Contains attributes about a target.

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

Returns
TypeDescription
List<Builder>

getTargetsCount()

public int getTargetsCount()

Contains attributes about a target.

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

Returns
TypeDescription
int

getTargetsList()

public List<TargetAttribute> getTargetsList()

Contains attributes about a target.

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

Returns
TypeDescription
List<TargetAttribute>

getTargetsOrBuilder(int index)

public TargetAttributeOrBuilder getTargetsOrBuilder(int index)

Contains attributes about a target.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TargetAttributeOrBuilder

getTargetsOrBuilderList()

public List<? extends TargetAttributeOrBuilder> getTargetsOrBuilderList()

Contains attributes about a target.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AutomationResourceSelector other)

public AutomationResourceSelector.Builder mergeFrom(AutomationResourceSelector other)
Parameter
NameDescription
otherAutomationResourceSelector
Returns
TypeDescription
AutomationResourceSelector.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutomationResourceSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomationResourceSelector.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AutomationResourceSelector.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AutomationResourceSelector.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomationResourceSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AutomationResourceSelector.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AutomationResourceSelector.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutomationResourceSelector.Builder
Overrides

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

public AutomationResourceSelector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueTargetAttribute
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTargetAttribute.Builder
Returns
TypeDescription
AutomationResourceSelector.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomationResourceSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomationResourceSelector.Builder
Overrides