Class Restore.Filter.Builder

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

public static final class Restore.Filter.Builder extends com.google.protobuf.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
  • 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.Builder<Restore.Filter.Builder>
    • clear

      public Restore.Filter.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Restore.Filter.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Restore.Filter.Builder>
    • getDefaultInstanceForType

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

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

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

      public Restore.Filter.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Restore.Filter.Builder>
    • mergeFrom

      public Restore.Filter.Builder mergeFrom(Restore.Filter other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Restore.Filter.Builder>
    • mergeFrom

      public Restore.Filter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Restore.Filter.Builder>
      Throws:
      IOException
    • 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
    • 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
    • setInclusionFilters

      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

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

      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

      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

      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

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

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

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

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

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

      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

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

      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

      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

      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

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

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

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

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

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