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 Summary
Modifier and TypeMethodDescriptionbooleanLabels to filter resources by.Filter compute engine resources.Filter compute engine resources.Deprecated.intLabels to filter resources by.Labels to filter resources by.getInclusionLabelsOrDefault(String key, String defaultValue) Labels to filter resources by.Labels to filter resources by.getResourceIdPatterns(int index) The pattern to filter resources by their id For example, a pattern of ".com.google.protobuf.ByteStringgetResourceIdPatternsBytes(int index) The pattern to filter resources by their id For example, a pattern of ".intThe pattern to filter resources by their id For example, a pattern of ".The pattern to filter resources by their id For example, a pattern of ".getScopes(int index) The scopes of evaluation resource.com.google.protobuf.ByteStringgetScopesBytes(int index) The scopes of evaluation resource.intThe scopes of evaluation resource.The scopes of evaluation resource.booleanFilter compute engine resources.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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
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
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
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.UsegetInclusionLabelsMap()instead. -
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
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
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;
-