Class Criteria.Builder (0.58.0)

public static final class Criteria.Builder extends GeneratedMessage.Builder<Criteria.Builder> implements CriteriaOrBuilder

Criteria specifies a set of criteria for matching resources.

Protobuf type google.cloud.backupdr.v1beta.Criteria

Implements

CriteriaOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllMatchingConditions(Iterable<? extends MatchingCondition> values)

public Criteria.Builder addAllMatchingConditions(Iterable<? extends MatchingCondition> values)

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.backupdr.v1beta.MatchingCondition>
Returns
Type Description
Criteria.Builder

addMatchingConditions(MatchingCondition value)

public Criteria.Builder addMatchingConditions(MatchingCondition value)

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MatchingCondition
Returns
Type Description
Criteria.Builder

addMatchingConditions(MatchingCondition.Builder builderForValue)

public Criteria.Builder addMatchingConditions(MatchingCondition.Builder builderForValue)

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue MatchingCondition.Builder
Returns
Type Description
Criteria.Builder

addMatchingConditions(int index, MatchingCondition value)

public Criteria.Builder addMatchingConditions(int index, MatchingCondition value)

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value MatchingCondition
Returns
Type Description
Criteria.Builder

addMatchingConditions(int index, MatchingCondition.Builder builderForValue)

public Criteria.Builder addMatchingConditions(int index, MatchingCondition.Builder builderForValue)

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue MatchingCondition.Builder
Returns
Type Description
Criteria.Builder

addMatchingConditionsBuilder()

public MatchingCondition.Builder addMatchingConditionsBuilder()

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MatchingCondition.Builder

addMatchingConditionsBuilder(int index)

public MatchingCondition.Builder addMatchingConditionsBuilder(int index)

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
MatchingCondition.Builder

build()

public Criteria build()
Returns
Type Description
Criteria

buildPartial()

public Criteria buildPartial()
Returns
Type Description
Criteria

clear()

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

clearMatchingConditions()

public Criteria.Builder clearMatchingConditions()

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Criteria.Builder

getDefaultInstanceForType()

public Criteria getDefaultInstanceForType()
Returns
Type Description
Criteria

getDescriptorForType()

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

getMatchingConditions(int index)

public MatchingCondition getMatchingConditions(int index)

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
MatchingCondition

getMatchingConditionsBuilder(int index)

public MatchingCondition.Builder getMatchingConditionsBuilder(int index)

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
MatchingCondition.Builder

getMatchingConditionsBuilderList()

public List<MatchingCondition.Builder> getMatchingConditionsBuilderList()

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getMatchingConditionsCount()

public int getMatchingConditionsCount()

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getMatchingConditionsList()

public List<MatchingCondition> getMatchingConditionsList()

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<MatchingCondition>

getMatchingConditionsOrBuilder(int index)

public MatchingConditionOrBuilder getMatchingConditionsOrBuilder(int index)

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
MatchingConditionOrBuilder

getMatchingConditionsOrBuilderList()

public List<? extends MatchingConditionOrBuilder> getMatchingConditionsOrBuilderList()

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1beta.MatchingConditionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Criteria other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeMatchingConditions(int index)

public Criteria.Builder removeMatchingConditions(int index)

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Criteria.Builder

setMatchingConditions(int index, MatchingCondition value)

public Criteria.Builder setMatchingConditions(int index, MatchingCondition value)

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value MatchingCondition
Returns
Type Description
Criteria.Builder

setMatchingConditions(int index, MatchingCondition.Builder builderForValue)

public Criteria.Builder setMatchingConditions(int index, MatchingCondition.Builder builderForValue)

Required. A list of matching conditions that a resource must meet to be protected by the policy.

repeated .google.cloud.backupdr.v1beta.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue MatchingCondition.Builder
Returns
Type Description
Criteria.Builder