Class RestoreConfig.ResourceFilter.Builder

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

public static final class RestoreConfig.ResourceFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<RestoreConfig.ResourceFilter.Builder> implements RestoreConfig.ResourceFilterOrBuilder
 ResourceFilter specifies matching criteria to limit the scope of a
 change to a specific set of kubernetes resources that are selected for
 restoration from a backup.
 
Protobuf type google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter
  • 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<RestoreConfig.ResourceFilter.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<RestoreConfig.ResourceFilter.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<RestoreConfig.ResourceFilter.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public RestoreConfig.ResourceFilter.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<RestoreConfig.ResourceFilter.Builder>
    • mergeFrom

    • isInitialized

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

      public RestoreConfig.ResourceFilter.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<RestoreConfig.ResourceFilter.Builder>
      Throws:
      IOException
    • getNamespacesList

      public com.google.protobuf.ProtocolStringList getNamespacesList()
       Optional. (Filtering parameter) Any resource subject to transformation
       must be contained within one of the listed Kubernetes Namespace in the
       Backup. If this field is not provided, no namespace filtering will be
       performed (all resources in all Namespaces, including all cluster-scoped
       resources, will be candidates for transformation).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespacesList in interface RestoreConfig.ResourceFilterOrBuilder
      Returns:
      A list containing the namespaces.
    • getNamespacesCount

      public int getNamespacesCount()
       Optional. (Filtering parameter) Any resource subject to transformation
       must be contained within one of the listed Kubernetes Namespace in the
       Backup. If this field is not provided, no namespace filtering will be
       performed (all resources in all Namespaces, including all cluster-scoped
       resources, will be candidates for transformation).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespacesCount in interface RestoreConfig.ResourceFilterOrBuilder
      Returns:
      The count of namespaces.
    • getNamespaces

      public String getNamespaces(int index)
       Optional. (Filtering parameter) Any resource subject to transformation
       must be contained within one of the listed Kubernetes Namespace in the
       Backup. If this field is not provided, no namespace filtering will be
       performed (all resources in all Namespaces, including all cluster-scoped
       resources, will be candidates for transformation).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespaces in interface RestoreConfig.ResourceFilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The namespaces at the given index.
    • getNamespacesBytes

      public com.google.protobuf.ByteString getNamespacesBytes(int index)
       Optional. (Filtering parameter) Any resource subject to transformation
       must be contained within one of the listed Kubernetes Namespace in the
       Backup. If this field is not provided, no namespace filtering will be
       performed (all resources in all Namespaces, including all cluster-scoped
       resources, will be candidates for transformation).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespacesBytes in interface RestoreConfig.ResourceFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the namespaces at the given index.
    • setNamespaces

      public RestoreConfig.ResourceFilter.Builder setNamespaces(int index, String value)
       Optional. (Filtering parameter) Any resource subject to transformation
       must be contained within one of the listed Kubernetes Namespace in the
       Backup. If this field is not provided, no namespace filtering will be
       performed (all resources in all Namespaces, including all cluster-scoped
       resources, will be candidates for transformation).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The namespaces to set.
      Returns:
      This builder for chaining.
    • addNamespaces

      public RestoreConfig.ResourceFilter.Builder addNamespaces(String value)
       Optional. (Filtering parameter) Any resource subject to transformation
       must be contained within one of the listed Kubernetes Namespace in the
       Backup. If this field is not provided, no namespace filtering will be
       performed (all resources in all Namespaces, including all cluster-scoped
       resources, will be candidates for transformation).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The namespaces to add.
      Returns:
      This builder for chaining.
    • addAllNamespaces

      public RestoreConfig.ResourceFilter.Builder addAllNamespaces(Iterable<String> values)
       Optional. (Filtering parameter) Any resource subject to transformation
       must be contained within one of the listed Kubernetes Namespace in the
       Backup. If this field is not provided, no namespace filtering will be
       performed (all resources in all Namespaces, including all cluster-scoped
       resources, will be candidates for transformation).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The namespaces to add.
      Returns:
      This builder for chaining.
    • clearNamespaces

      public RestoreConfig.ResourceFilter.Builder clearNamespaces()
       Optional. (Filtering parameter) Any resource subject to transformation
       must be contained within one of the listed Kubernetes Namespace in the
       Backup. If this field is not provided, no namespace filtering will be
       performed (all resources in all Namespaces, including all cluster-scoped
       resources, will be candidates for transformation).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addNamespacesBytes

      public RestoreConfig.ResourceFilter.Builder addNamespacesBytes(com.google.protobuf.ByteString value)
       Optional. (Filtering parameter) Any resource subject to transformation
       must be contained within one of the listed Kubernetes Namespace in the
       Backup. If this field is not provided, no namespace filtering will be
       performed (all resources in all Namespaces, including all cluster-scoped
       resources, will be candidates for transformation).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the namespaces to add.
      Returns:
      This builder for chaining.
    • getGroupKindsList

      public List<RestoreConfig.GroupKind> getGroupKindsList()
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroupKindsList in interface RestoreConfig.ResourceFilterOrBuilder
    • getGroupKindsCount

      public int getGroupKindsCount()
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroupKindsCount in interface RestoreConfig.ResourceFilterOrBuilder
    • getGroupKinds

      public RestoreConfig.GroupKind getGroupKinds(int index)
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroupKinds in interface RestoreConfig.ResourceFilterOrBuilder
    • setGroupKinds

      public RestoreConfig.ResourceFilter.Builder setGroupKinds(int index, RestoreConfig.GroupKind value)
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setGroupKinds

      public RestoreConfig.ResourceFilter.Builder setGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addGroupKinds

       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addGroupKinds

      public RestoreConfig.ResourceFilter.Builder addGroupKinds(int index, RestoreConfig.GroupKind value)
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addGroupKinds

       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addGroupKinds

      public RestoreConfig.ResourceFilter.Builder addGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllGroupKinds

      public RestoreConfig.ResourceFilter.Builder addAllGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values)
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearGroupKinds

      public RestoreConfig.ResourceFilter.Builder clearGroupKinds()
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeGroupKinds

      public RestoreConfig.ResourceFilter.Builder removeGroupKinds(int index)
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getGroupKindsBuilder

      public RestoreConfig.GroupKind.Builder getGroupKindsBuilder(int index)
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getGroupKindsOrBuilder

      public RestoreConfig.GroupKindOrBuilder getGroupKindsOrBuilder(int index)
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroupKindsOrBuilder in interface RestoreConfig.ResourceFilterOrBuilder
    • getGroupKindsOrBuilderList

      public List<? extends RestoreConfig.GroupKindOrBuilder> getGroupKindsOrBuilderList()
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroupKindsOrBuilderList in interface RestoreConfig.ResourceFilterOrBuilder
    • addGroupKindsBuilder

      public RestoreConfig.GroupKind.Builder addGroupKindsBuilder()
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addGroupKindsBuilder

      public RestoreConfig.GroupKind.Builder addGroupKindsBuilder(int index)
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getGroupKindsBuilderList

      public List<RestoreConfig.GroupKind.Builder> getGroupKindsBuilderList()
       Optional. (Filtering parameter) Any resource subject to transformation
       must belong to one of the listed "types". If this field is not provided,
       no type filtering will be performed (all resources of all types matching
       previous filtering parameters will be candidates for transformation).
       
      repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getJsonPath

      public String getJsonPath()
       Optional. This is a [JSONPath]
       (https://github.com/json-path/JsonPath/blob/master/README.md)
       expression that matches specific fields of candidate
       resources and it operates as a filtering parameter (resources that
       are not matched with this expression will not be candidates for
       transformation).
       
      string json_path = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getJsonPath in interface RestoreConfig.ResourceFilterOrBuilder
      Returns:
      The jsonPath.
    • getJsonPathBytes

      public com.google.protobuf.ByteString getJsonPathBytes()
       Optional. This is a [JSONPath]
       (https://github.com/json-path/JsonPath/blob/master/README.md)
       expression that matches specific fields of candidate
       resources and it operates as a filtering parameter (resources that
       are not matched with this expression will not be candidates for
       transformation).
       
      string json_path = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getJsonPathBytes in interface RestoreConfig.ResourceFilterOrBuilder
      Returns:
      The bytes for jsonPath.
    • setJsonPath

      public RestoreConfig.ResourceFilter.Builder setJsonPath(String value)
       Optional. This is a [JSONPath]
       (https://github.com/json-path/JsonPath/blob/master/README.md)
       expression that matches specific fields of candidate
       resources and it operates as a filtering parameter (resources that
       are not matched with this expression will not be candidates for
       transformation).
       
      string json_path = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The jsonPath to set.
      Returns:
      This builder for chaining.
    • clearJsonPath

      public RestoreConfig.ResourceFilter.Builder clearJsonPath()
       Optional. This is a [JSONPath]
       (https://github.com/json-path/JsonPath/blob/master/README.md)
       expression that matches specific fields of candidate
       resources and it operates as a filtering parameter (resources that
       are not matched with this expression will not be candidates for
       transformation).
       
      string json_path = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setJsonPathBytes

      public RestoreConfig.ResourceFilter.Builder setJsonPathBytes(com.google.protobuf.ByteString value)
       Optional. This is a [JSONPath]
       (https://github.com/json-path/JsonPath/blob/master/README.md)
       expression that matches specific fields of candidate
       resources and it operates as a filtering parameter (resources that
       are not matched with this expression will not be candidates for
       transformation).
       
      string json_path = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for jsonPath to set.
      Returns:
      This builder for chaining.