Interface ResourceSelectorOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ResourceSelector, ResourceSelector.Builder

@Generated public interface ResourceSelectorOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasGroupKind

      boolean hasGroupKind()
       Optional. Selects resources using their Kubernetes GroupKinds. If
       specified, only resources of provided GroupKind will be selected.
       
      .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the groupKind field is set.
    • getGroupKind

      RestoreConfig.GroupKind getGroupKind()
       Optional. Selects resources using their Kubernetes GroupKinds. If
       specified, only resources of provided GroupKind will be selected.
       
      .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The groupKind.
    • getGroupKindOrBuilder

      RestoreConfig.GroupKindOrBuilder getGroupKindOrBuilder()
       Optional. Selects resources using their Kubernetes GroupKinds. If
       specified, only resources of provided GroupKind will be selected.
       
      .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getName

      String getName()
       Optional. Selects resources using their resource names. If specified,
       only resources with the provided name will be selected.
       
      string name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Optional. Selects resources using their resource names. If specified,
       only resources with the provided name will be selected.
       
      string name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for name.
    • getNamespace

      String getNamespace()
       Optional. Selects resources using their namespaces. This only applies to
       namespace scoped resources and cannot be used for selecting
       cluster scoped resources. If specified, only resources in the provided
       namespace will be selected. If not specified, the filter will apply to
       both cluster scoped and namespace scoped resources (e.g. name or label).
       The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
       itself will be restored if and only if any resources within the namespace
       are restored.
       
      string namespace = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The namespace.
    • getNamespaceBytes

      com.google.protobuf.ByteString getNamespaceBytes()
       Optional. Selects resources using their namespaces. This only applies to
       namespace scoped resources and cannot be used for selecting
       cluster scoped resources. If specified, only resources in the provided
       namespace will be selected. If not specified, the filter will apply to
       both cluster scoped and namespace scoped resources (e.g. name or label).
       The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
       itself will be restored if and only if any resources within the namespace
       are restored.
       
      string namespace = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for namespace.
    • getLabelsCount

      int getLabelsCount()
       Optional. Selects resources using Kubernetes
       [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
       If specified, a resource will be selected if and only if the resource
       has all of the provided labels and all the label values match.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • containsLabels

      boolean containsLabels(String key)
       Optional. Selects resources using Kubernetes
       [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
       If specified, a resource will be selected if and only if the resource
       has all of the provided labels and all the label values match.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLabels

      Deprecated.
      Use getLabelsMap() instead.
    • getLabelsMap

      Map<String,String> getLabelsMap()
       Optional. Selects resources using Kubernetes
       [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
       If specified, a resource will be selected if and only if the resource
       has all of the provided labels and all the label values match.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLabelsOrDefault

      String getLabelsOrDefault(String key, String defaultValue)
       Optional. Selects resources using Kubernetes
       [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
       If specified, a resource will be selected if and only if the resource
       has all of the provided labels and all the label values match.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLabelsOrThrow

      String getLabelsOrThrow(String key)
       Optional. Selects resources using Kubernetes
       [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
       If specified, a resource will be selected if and only if the resource
       has all of the provided labels and all the label values match.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];