Class Restore.Filter.Builder (0.43.0)

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

Static Methods

getDescriptor()

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

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>
Returns
Type Description
Restore.Filter.Builder

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>
Returns
Type Description
Restore.Filter.Builder

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];

Parameter
Name Description
value ResourceSelector
Returns
Type Description
Restore.Filter.Builder

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];

Parameter
Name Description
builderForValue ResourceSelector.Builder
Returns
Type Description
Restore.Filter.Builder

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];

Parameters
Name Description
index int
value ResourceSelector
Returns
Type Description
Restore.Filter.Builder

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];

Parameters
Name Description
index int
builderForValue ResourceSelector.Builder
Returns
Type Description
Restore.Filter.Builder

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];

Returns
Type Description
ResourceSelector.Builder

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
Returns
Type Description
ResourceSelector.Builder

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];

Parameter
Name Description
value ResourceSelector
Returns
Type Description
Restore.Filter.Builder

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];

Parameter
Name Description
builderForValue ResourceSelector.Builder
Returns
Type Description
Restore.Filter.Builder

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];

Parameters
Name Description
index int
value ResourceSelector
Returns
Type Description
Restore.Filter.Builder

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];

Parameters
Name Description
index int
builderForValue ResourceSelector.Builder
Returns
Type Description
Restore.Filter.Builder

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];

Returns
Type Description
ResourceSelector.Builder

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
Returns
Type Description
ResourceSelector.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Restore.Filter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Restore.Filter.Builder
Overrides

build()

public Restore.Filter build()
Returns
Type Description
Restore.Filter

buildPartial()

public Restore.Filter buildPartial()
Returns
Type Description
Restore.Filter

clear()

public Restore.Filter.Builder clear()
Returns
Type Description
Restore.Filter.Builder
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];

Returns
Type Description
Restore.Filter.Builder

clearField(Descriptors.FieldDescriptor field)

public Restore.Filter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Restore.Filter.Builder
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];

Returns
Type Description
Restore.Filter.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Restore.Filter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Restore.Filter.Builder
Overrides

clone()

public Restore.Filter.Builder clone()
Returns
Type Description
Restore.Filter.Builder
Overrides

getDefaultInstanceForType()

public Restore.Filter getDefaultInstanceForType()
Returns
Type Description
Restore.Filter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Returns
Type Description
ResourceSelector

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
Returns
Type Description
ResourceSelector.Builder

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];

Returns
Type Description
List<Builder>

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];

Returns
Type Description
List<ResourceSelector>

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
Returns
Type Description
ResourceSelectorOrBuilder

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
Returns
Type Description
ResourceSelector

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
Returns
Type Description
ResourceSelector.Builder

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];

Returns
Type Description
List<Builder>

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];

Returns
Type Description
List<ResourceSelector>

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
Returns
Type Description
ResourceSelectorOrBuilder

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Restore.Filter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Restore.Filter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Restore.Filter.Builder
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
Returns
Type Description
Restore.Filter.Builder

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
Returns
Type Description
Restore.Filter.Builder

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];

Parameters
Name Description
index int
value ResourceSelector
Returns
Type Description
Restore.Filter.Builder

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];

Parameters
Name Description
index int
builderForValue ResourceSelector.Builder
Returns
Type Description
Restore.Filter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Restore.Filter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Restore.Filter.Builder
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];

Parameters
Name Description
index int
value ResourceSelector
Returns
Type Description
Restore.Filter.Builder

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];

Parameters
Name Description
index int
builderForValue ResourceSelector.Builder
Returns
Type Description
Restore.Filter.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Restore.Filter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Restore.Filter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Restore.Filter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Restore.Filter.Builder
Overrides