Interface ResourceFilterOrBuilder

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

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

    • getScopesList

      List<String> getScopesList()
       The scopes of evaluation resource.
       Format:
       * `projects/{project_id}`
       * `folders/{folder_id}`
       * `organizations/{organization_id}`
       
      repeated string scopes = 1;
      Returns:
      A list containing the scopes.
    • getScopesCount

      int getScopesCount()
       The scopes of evaluation resource.
       Format:
       * `projects/{project_id}`
       * `folders/{folder_id}`
       * `organizations/{organization_id}`
       
      repeated string scopes = 1;
      Returns:
      The count of scopes.
    • getScopes

      String getScopes(int index)
       The scopes of evaluation resource.
       Format:
       * `projects/{project_id}`
       * `folders/{folder_id}`
       * `organizations/{organization_id}`
       
      repeated string scopes = 1;
      Parameters:
      index - The index of the element to return.
      Returns:
      The scopes at the given index.
    • getScopesBytes

      com.google.protobuf.ByteString getScopesBytes(int index)
       The scopes of evaluation resource.
       Format:
       * `projects/{project_id}`
       * `folders/{folder_id}`
       * `organizations/{organization_id}`
       
      repeated string scopes = 1;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the scopes at the given index.
    • getResourceIdPatternsList

      List<String> getResourceIdPatternsList()
       The pattern to filter resources by their id
       For example, a pattern of ".*prod-cluster.*" will match all resources that
       contain "prod-cluster" in their ID.
       
      repeated string resource_id_patterns = 2;
      Returns:
      A list containing the resourceIdPatterns.
    • getResourceIdPatternsCount

      int getResourceIdPatternsCount()
       The pattern to filter resources by their id
       For example, a pattern of ".*prod-cluster.*" will match all resources that
       contain "prod-cluster" in their ID.
       
      repeated string resource_id_patterns = 2;
      Returns:
      The count of resourceIdPatterns.
    • getResourceIdPatterns

      String getResourceIdPatterns(int index)
       The pattern to filter resources by their id
       For example, a pattern of ".*prod-cluster.*" will match all resources that
       contain "prod-cluster" in their ID.
       
      repeated string resource_id_patterns = 2;
      Parameters:
      index - The index of the element to return.
      Returns:
      The resourceIdPatterns at the given index.
    • getResourceIdPatternsBytes

      com.google.protobuf.ByteString getResourceIdPatternsBytes(int index)
       The pattern to filter resources by their id
       For example, a pattern of ".*prod-cluster.*" will match all resources that
       contain "prod-cluster" in their ID.
       
      repeated string resource_id_patterns = 2;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resourceIdPatterns at the given index.
    • getInclusionLabelsCount

      int getInclusionLabelsCount()
       Labels to filter resources by. Each key-value pair in the map must exist
       on the resource for it to be included (e.g. VM instance labels).
       For example, specifying `{ "env": "prod", "database": "nosql" }` will only
       include resources that have labels `env=prod` and `database=nosql`.
       
      map<string, string> inclusion_labels = 3;
    • containsInclusionLabels

      boolean containsInclusionLabels(String key)
       Labels to filter resources by. Each key-value pair in the map must exist
       on the resource for it to be included (e.g. VM instance labels).
       For example, specifying `{ "env": "prod", "database": "nosql" }` will only
       include resources that have labels `env=prod` and `database=nosql`.
       
      map<string, string> inclusion_labels = 3;
    • getInclusionLabels

      @Deprecated Map<String,String> getInclusionLabels()
      Deprecated.
    • getInclusionLabelsMap

      Map<String,String> getInclusionLabelsMap()
       Labels to filter resources by. Each key-value pair in the map must exist
       on the resource for it to be included (e.g. VM instance labels).
       For example, specifying `{ "env": "prod", "database": "nosql" }` will only
       include resources that have labels `env=prod` and `database=nosql`.
       
      map<string, string> inclusion_labels = 3;
    • getInclusionLabelsOrDefault

      String getInclusionLabelsOrDefault(String key, String defaultValue)
       Labels to filter resources by. Each key-value pair in the map must exist
       on the resource for it to be included (e.g. VM instance labels).
       For example, specifying `{ "env": "prod", "database": "nosql" }` will only
       include resources that have labels `env=prod` and `database=nosql`.
       
      map<string, string> inclusion_labels = 3;
    • getInclusionLabelsOrThrow

      String getInclusionLabelsOrThrow(String key)
       Labels to filter resources by. Each key-value pair in the map must exist
       on the resource for it to be included (e.g. VM instance labels).
       For example, specifying `{ "env": "prod", "database": "nosql" }` will only
       include resources that have labels `env=prod` and `database=nosql`.
       
      map<string, string> inclusion_labels = 3;
    • hasGceInstanceFilter

      boolean hasGceInstanceFilter()
       Filter compute engine resources.
       
      .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4;
      Returns:
      Whether the gceInstanceFilter field is set.
    • getGceInstanceFilter

      GceInstanceFilter getGceInstanceFilter()
       Filter compute engine resources.
       
      .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4;
      Returns:
      The gceInstanceFilter.
    • getGceInstanceFilterOrBuilder

      GceInstanceFilterOrBuilder getGceInstanceFilterOrBuilder()
       Filter compute engine resources.
       
      .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4;