public static final class Restore.Filter extends GeneratedMessageV3 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.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
EXCLUSION_FILTERS_FIELD_NUMBER
public static final int EXCLUSION_FILTERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
INCLUSION_FILTERS_FIELD_NUMBER
public static final int INCLUSION_FILTERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Restore.Filter getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Restore.Filter.Builder newBuilder()
newBuilder(Restore.Filter prototype)
public static Restore.Filter.Builder newBuilder(Restore.Filter prototype)
public static Restore.Filter parseDelimitedFrom(InputStream input)
public static Restore.Filter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Restore.Filter parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Restore.Filter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Restore.Filter parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Restore.Filter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Restore.Filter parseFrom(CodedInputStream input)
public static Restore.Filter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Restore.Filter parseFrom(InputStream input)
public static Restore.Filter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Restore.Filter parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Restore.Filter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Restore.Filter> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Restore.Filter getDefaultInstanceForType()
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
|
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
|
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> |
|
getParserForType()
public Parser<Restore.Filter> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Restore.Filter.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Restore.Filter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Restore.Filter.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides