public static final class Restore.Filter.Builder extends GeneratedMessageV3.Builder<Restore.Filter.Builder> implements Restore.FilterOrBuilder
Defines the filter for Restore
. This filter can be used to further
refine the resource selection of the Restore
beyond the coarse-grained
scope defined in the RestorePlan
. exclusion_filters
take precedence
over inclusion_filters
. If a resource matches both inclusion_filters
and exclusion_filters
, it will not be restored.
Protobuf type google.cloud.gkebackup.v1.Restore.Filter
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllExclusionFilters(Iterable<? extends ResourceSelector> values)
public Restore.Filter.Builder addAllExclusionFilters(Iterable<? extends ResourceSelector> values)
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.gkebackup.v1.ResourceSelector>
|
addAllInclusionFilters(Iterable<? extends ResourceSelector> values)
public Restore.Filter.Builder addAllInclusionFilters(Iterable<? extends ResourceSelector> values)
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.gkebackup.v1.ResourceSelector>
|
addExclusionFilters(ResourceSelector value)
public Restore.Filter.Builder addExclusionFilters(ResourceSelector value)
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
addExclusionFilters(ResourceSelector.Builder builderForValue)
public Restore.Filter.Builder addExclusionFilters(ResourceSelector.Builder builderForValue)
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
addExclusionFilters(int index, ResourceSelector value)
public Restore.Filter.Builder addExclusionFilters(int index, ResourceSelector value)
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
addExclusionFilters(int index, ResourceSelector.Builder builderForValue)
public Restore.Filter.Builder addExclusionFilters(int index, ResourceSelector.Builder builderForValue)
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
addExclusionFiltersBuilder()
public ResourceSelector.Builder addExclusionFiltersBuilder()
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
addExclusionFiltersBuilder(int index)
public ResourceSelector.Builder addExclusionFiltersBuilder(int index)
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
addInclusionFilters(ResourceSelector value)
public Restore.Filter.Builder addInclusionFilters(ResourceSelector value)
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
addInclusionFilters(ResourceSelector.Builder builderForValue)
public Restore.Filter.Builder addInclusionFilters(ResourceSelector.Builder builderForValue)
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
addInclusionFilters(int index, ResourceSelector value)
public Restore.Filter.Builder addInclusionFilters(int index, ResourceSelector value)
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
addInclusionFilters(int index, ResourceSelector.Builder builderForValue)
public Restore.Filter.Builder addInclusionFilters(int index, ResourceSelector.Builder builderForValue)
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
addInclusionFiltersBuilder()
public ResourceSelector.Builder addInclusionFiltersBuilder()
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
addInclusionFiltersBuilder(int index)
public ResourceSelector.Builder addInclusionFiltersBuilder(int index)
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Restore.Filter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Restore.Filter build()
buildPartial()
public Restore.Filter buildPartial()
clear()
public Restore.Filter.Builder clear()
Overrides
clearExclusionFilters()
public Restore.Filter.Builder clearExclusionFilters()
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
clearField(Descriptors.FieldDescriptor field)
public Restore.Filter.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearInclusionFilters()
public Restore.Filter.Builder clearInclusionFilters()
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
clearOneof(Descriptors.OneofDescriptor oneof)
public Restore.Filter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Restore.Filter.Builder clone()
Overrides
getDefaultInstanceForType()
public Restore.Filter getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getExclusionFilters(int index)
public ResourceSelector getExclusionFilters(int index)
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getExclusionFiltersBuilder(int index)
public ResourceSelector.Builder getExclusionFiltersBuilder(int index)
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getExclusionFiltersBuilderList()
public List<ResourceSelector.Builder> getExclusionFiltersBuilderList()
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
getExclusionFiltersCount()
public int getExclusionFiltersCount()
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getExclusionFiltersList()
public List<ResourceSelector> getExclusionFiltersList()
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
getExclusionFiltersOrBuilder(int index)
public ResourceSelectorOrBuilder getExclusionFiltersOrBuilder(int index)
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getExclusionFiltersOrBuilderList()
public List<? extends ResourceSelectorOrBuilder> getExclusionFiltersOrBuilderList()
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder> |
|
getInclusionFilters(int index)
public ResourceSelector getInclusionFilters(int index)
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getInclusionFiltersBuilder(int index)
public ResourceSelector.Builder getInclusionFiltersBuilder(int index)
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getInclusionFiltersBuilderList()
public List<ResourceSelector.Builder> getInclusionFiltersBuilderList()
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
getInclusionFiltersCount()
public int getInclusionFiltersCount()
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getInclusionFiltersList()
public List<ResourceSelector> getInclusionFiltersList()
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
getInclusionFiltersOrBuilder(int index)
public ResourceSelectorOrBuilder getInclusionFiltersOrBuilder(int index)
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getInclusionFiltersOrBuilderList()
public List<? extends ResourceSelectorOrBuilder> getInclusionFiltersOrBuilderList()
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Restore.Filter other)
public Restore.Filter.Builder mergeFrom(Restore.Filter other)
public Restore.Filter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Restore.Filter.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Restore.Filter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeExclusionFilters(int index)
public Restore.Filter.Builder removeExclusionFilters(int index)
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
removeInclusionFilters(int index)
public Restore.Filter.Builder removeInclusionFilters(int index)
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
setExclusionFilters(int index, ResourceSelector value)
public Restore.Filter.Builder setExclusionFilters(int index, ResourceSelector value)
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
setExclusionFilters(int index, ResourceSelector.Builder builderForValue)
public Restore.Filter.Builder setExclusionFilters(int index, ResourceSelector.Builder builderForValue)
Optional. Excludes resources from restoration. If specified,
a resource will not be restored if it matches
any ResourceSelector
of the exclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
setField(Descriptors.FieldDescriptor field, Object value)
public Restore.Filter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setInclusionFilters(int index, ResourceSelector value)
public Restore.Filter.Builder setInclusionFilters(int index, ResourceSelector value)
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
setInclusionFilters(int index, ResourceSelector.Builder builderForValue)
public Restore.Filter.Builder setInclusionFilters(int index, ResourceSelector.Builder builderForValue)
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A
resource will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Restore.Filter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Restore.Filter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides