Interface ResourceFilterOrBuilder (0.1.0)

public interface ResourceFilterOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsInclusionLabels(String key)

public abstract 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;

Parameter
Name Description
key String
Returns
Type Description
boolean

getGceInstanceFilter()

public abstract GceInstanceFilter getGceInstanceFilter()

Filter compute engine resources.

.google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4;

Returns
Type Description
GceInstanceFilter

The gceInstanceFilter.

getGceInstanceFilterOrBuilder()

public abstract GceInstanceFilterOrBuilder getGceInstanceFilterOrBuilder()

Filter compute engine resources.

.google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4;

Returns
Type Description
GceInstanceFilterOrBuilder

getInclusionLabels() (deprecated)

public abstract Map<String,String> getInclusionLabels()
Returns
Type Description
Map<String,String>

getInclusionLabelsCount()

public abstract 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;

Returns
Type Description
int

getInclusionLabelsMap()

public abstract 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;

Returns
Type Description
Map<String,String>

getInclusionLabelsOrDefault(String key, String defaultValue)

public abstract 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;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getInclusionLabelsOrThrow(String key)

public abstract 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;

Parameter
Name Description
key String
Returns
Type Description
String

getResourceIdPatterns(int index)

public abstract 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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The resourceIdPatterns at the given index.

getResourceIdPatternsBytes(int index)

public abstract 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;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the resourceIdPatterns at the given index.

getResourceIdPatternsCount()

public abstract 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
Type Description
int

The count of resourceIdPatterns.

getResourceIdPatternsList()

public abstract 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
Type Description
List<String>

A list containing the resourceIdPatterns.

getScopes(int index)

public abstract String getScopes(int index)

The scopes of evaluation resource. Format:

  • projects/{project_id}
  • folders/{folder_id}
  • organizations/{organization_id}

repeated string scopes = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The scopes at the given index.

getScopesBytes(int index)

public abstract ByteString getScopesBytes(int index)

The scopes of evaluation resource. Format:

  • projects/{project_id}
  • folders/{folder_id}
  • organizations/{organization_id}

repeated string scopes = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the scopes at the given index.

getScopesCount()

public abstract int getScopesCount()

The scopes of evaluation resource. Format:

  • projects/{project_id}
  • folders/{folder_id}
  • organizations/{organization_id}

repeated string scopes = 1;

Returns
Type Description
int

The count of scopes.

getScopesList()

public abstract List<String> getScopesList()

The scopes of evaluation resource. Format:

  • projects/{project_id}
  • folders/{folder_id}
  • organizations/{organization_id}

repeated string scopes = 1;

Returns
Type Description
List<String>

A list containing the scopes.

hasGceInstanceFilter()

public abstract boolean hasGceInstanceFilter()

Filter compute engine resources.

.google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4;

Returns
Type Description
boolean

Whether the gceInstanceFilter field is set.