Class MatchingCondition.Builder (0.58.0)

public static final class MatchingCondition.Builder extends GeneratedMessage.Builder<MatchingCondition.Builder> implements MatchingConditionOrBuilder

MatchingCondition specifies a set of conditions for matching resources.

Protobuf type google.cloud.backupdr.v1beta.MatchingCondition

Static Methods

getDescriptor()

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

Methods

build()

public MatchingCondition build()
Returns
Type Description
MatchingCondition

buildPartial()

public MatchingCondition buildPartial()
Returns
Type Description
MatchingCondition

clear()

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

clearCondition()

public MatchingCondition.Builder clearCondition()
Returns
Type Description
MatchingCondition.Builder

clearLabelCondition()

public MatchingCondition.Builder clearLabelCondition()

Optional. A condition that matches resources based on their labels. For MVP, this is limited to a single label match.

.google.cloud.backupdr.v1beta.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MatchingCondition.Builder

getConditionCase()

public MatchingCondition.ConditionCase getConditionCase()
Returns
Type Description
MatchingCondition.ConditionCase

getDefaultInstanceForType()

public MatchingCondition getDefaultInstanceForType()
Returns
Type Description
MatchingCondition

getDescriptorForType()

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

getLabelCondition()

public KeyValuePair getLabelCondition()

Optional. A condition that matches resources based on their labels. For MVP, this is limited to a single label match.

.google.cloud.backupdr.v1beta.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KeyValuePair

The labelCondition.

getLabelConditionBuilder()

public KeyValuePair.Builder getLabelConditionBuilder()

Optional. A condition that matches resources based on their labels. For MVP, this is limited to a single label match.

.google.cloud.backupdr.v1beta.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KeyValuePair.Builder

getLabelConditionOrBuilder()

public KeyValuePairOrBuilder getLabelConditionOrBuilder()

Optional. A condition that matches resources based on their labels. For MVP, this is limited to a single label match.

.google.cloud.backupdr.v1beta.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KeyValuePairOrBuilder

hasLabelCondition()

public boolean hasLabelCondition()

Optional. A condition that matches resources based on their labels. For MVP, this is limited to a single label match.

.google.cloud.backupdr.v1beta.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the labelCondition field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MatchingCondition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLabelCondition(KeyValuePair value)

public MatchingCondition.Builder mergeLabelCondition(KeyValuePair value)

Optional. A condition that matches resources based on their labels. For MVP, this is limited to a single label match.

.google.cloud.backupdr.v1beta.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value KeyValuePair
Returns
Type Description
MatchingCondition.Builder

setLabelCondition(KeyValuePair value)

public MatchingCondition.Builder setLabelCondition(KeyValuePair value)

Optional. A condition that matches resources based on their labels. For MVP, this is limited to a single label match.

.google.cloud.backupdr.v1beta.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value KeyValuePair
Returns
Type Description
MatchingCondition.Builder

setLabelCondition(KeyValuePair.Builder builderForValue)

public MatchingCondition.Builder setLabelCondition(KeyValuePair.Builder builderForValue)

Optional. A condition that matches resources based on their labels. For MVP, this is limited to a single label match.

.google.cloud.backupdr.v1beta.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL];

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