public static final class Restore.Filter.Builder extends GeneratedMessage.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.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
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
|
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];
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];
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 GeneratedMessage.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
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];
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];