Class Restore.Filter (0.50.0)

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

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

getDescriptor()

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

newBuilder()

public static Restore.Filter.Builder newBuilder()
Returns
Type Description
Restore.Filter.Builder

newBuilder(Restore.Filter prototype)

public static Restore.Filter.Builder newBuilder(Restore.Filter prototype)
Parameter
Name Description
prototype Restore.Filter
Returns
Type Description
Restore.Filter.Builder

parseDelimitedFrom(InputStream input)

public static Restore.Filter parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Restore.Filter
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Restore.Filter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Restore.Filter
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Restore.Filter parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Restore.Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Restore.Filter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Restore.Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Restore.Filter parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Restore.Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Restore.Filter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Restore.Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Restore.Filter parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Restore.Filter
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Restore.Filter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Restore.Filter
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Restore.Filter parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Restore.Filter
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Restore.Filter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Restore.Filter
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Restore.Filter parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Restore.Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Restore.Filter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Restore.Filter
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Restore.Filter> parser()
Returns
Type Description
Parser<Filter>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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

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

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>

getParserForType()

public Parser<Restore.Filter> getParserForType()
Returns
Type Description
Parser<Filter>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Restore.Filter.Builder newBuilderForType()
Returns
Type Description
Restore.Filter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Restore.Filter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Restore.Filter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Restore.Filter.Builder toBuilder()
Returns
Type Description
Restore.Filter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException