Class Restore.Filter

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gkebackup.v1.Restore.Filter
All Implemented Interfaces:
Restore.FilterOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Restore

public static final class Restore.Filter extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • INCLUSION_FILTERS_FIELD_NUMBER

      public static final int INCLUSION_FILTERS_FIELD_NUMBER
      See Also:
    • EXCLUSION_FILTERS_FIELD_NUMBER

      public static final int EXCLUSION_FILTERS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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];
      Specified by:
      getInclusionFiltersList in interface Restore.FilterOrBuilder
    • 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];
      Specified by:
      getInclusionFiltersOrBuilderList in interface Restore.FilterOrBuilder
    • 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];
      Specified by:
      getInclusionFiltersCount in interface Restore.FilterOrBuilder
    • getInclusionFilters

      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];
      Specified by:
      getInclusionFilters in interface Restore.FilterOrBuilder
    • getInclusionFiltersOrBuilder

      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];
      Specified by:
      getInclusionFiltersOrBuilder in interface Restore.FilterOrBuilder
    • 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];
      Specified by:
      getExclusionFiltersList in interface Restore.FilterOrBuilder
    • 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];
      Specified by:
      getExclusionFiltersOrBuilderList in interface Restore.FilterOrBuilder
    • 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];
      Specified by:
      getExclusionFiltersCount in interface Restore.FilterOrBuilder
    • getExclusionFilters

      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];
      Specified by:
      getExclusionFilters in interface Restore.FilterOrBuilder
    • getExclusionFiltersOrBuilder

      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];
      Specified by:
      getExclusionFiltersOrBuilder in interface Restore.FilterOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Restore.Filter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Restore.Filter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Restore.Filter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Restore.Filter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Restore.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Restore.Filter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Restore.Filter parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Restore.Filter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Restore.Filter parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Restore.Filter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Restore.Filter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Restore.Filter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Restore.Filter.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Restore.Filter.Builder newBuilder()
    • newBuilder

      public static Restore.Filter.Builder newBuilder(Restore.Filter prototype)
    • toBuilder

      public Restore.Filter.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Restore.Filter.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Restore.Filter getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Restore.Filter> parser()
    • getParserForType

      public com.google.protobuf.Parser<Restore.Filter> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Restore.Filter getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder