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
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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];
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];
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];
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];
addTargetsBuilder()
public TargetAttribute.Builder addTargetsBuilder()
Optional. Contains attributes about a target.
repeated .google.cloud.deploy.v1.TargetAttribute targets = 1 [(.google.api.field_behavior) = OPTIONAL];
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
|
build()
public AutomationResourceSelector build()
buildPartial()
public AutomationResourceSelector buildPartial()
clear()
public AutomationResourceSelector.Builder clear()
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];
getDefaultInstanceForType()
public AutomationResourceSelector getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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];
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];
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AutomationResourceSelector other)
public AutomationResourceSelector.Builder mergeFrom(AutomationResourceSelector other)
public AutomationResourceSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AutomationResourceSelector.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
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
|
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];
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];