Interface ResourceValueConfigOrBuilder (2.45.0)

public interface ResourceValueConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsResourceLabelsSelector(String key)

public abstract boolean containsResourceLabelsSelector(String key)

List of resource labels to search for, evaluated with AND. E.g. "resource_labels_selector": {"key": "value", "env": "prod"} will match resources with labels "key": "value" AND "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels

map<string, string> resource_labels_selector = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. Timestamp this resource value config was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp this resource value config was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDescription()

public abstract String getDescription()

Description of the resource value config.

string description = 7;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

Description of the resource value config.

string description = 7;

Returns
TypeDescription
ByteString

The bytes for description.

getName()

public abstract String getName()

Name for the resource value config

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Name for the resource value config

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getResourceLabelsSelector() (deprecated)

public abstract Map<String,String> getResourceLabelsSelector()
Returns
TypeDescription
Map<String,String>

getResourceLabelsSelectorCount()

public abstract int getResourceLabelsSelectorCount()

List of resource labels to search for, evaluated with AND. E.g. "resource_labels_selector": {"key": "value", "env": "prod"} will match resources with labels "key": "value" AND "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels

map<string, string> resource_labels_selector = 6;

Returns
TypeDescription
int

getResourceLabelsSelectorMap()

public abstract Map<String,String> getResourceLabelsSelectorMap()

List of resource labels to search for, evaluated with AND. E.g. "resource_labels_selector": {"key": "value", "env": "prod"} will match resources with labels "key": "value" AND "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels

map<string, string> resource_labels_selector = 6;

Returns
TypeDescription
Map<String,String>

getResourceLabelsSelectorOrDefault(String key, String defaultValue)

public abstract String getResourceLabelsSelectorOrDefault(String key, String defaultValue)

List of resource labels to search for, evaluated with AND. E.g. "resource_labels_selector": {"key": "value", "env": "prod"} will match resources with labels "key": "value" AND "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels

map<string, string> resource_labels_selector = 6;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getResourceLabelsSelectorOrThrow(String key)

public abstract String getResourceLabelsSelectorOrThrow(String key)

List of resource labels to search for, evaluated with AND. E.g. "resource_labels_selector": {"key": "value", "env": "prod"} will match resources with labels "key": "value" AND "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels

map<string, string> resource_labels_selector = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getResourceType()

public abstract String getResourceType()

Apply resource_value only to resources that match resource_type. resource_type will be checked with "AND" of other resources. E.g. "storage.googleapis.com/Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.

string resource_type = 4;

Returns
TypeDescription
String

The resourceType.

getResourceTypeBytes()

public abstract ByteString getResourceTypeBytes()

Apply resource_value only to resources that match resource_type. resource_type will be checked with "AND" of other resources. E.g. "storage.googleapis.com/Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.

string resource_type = 4;

Returns
TypeDescription
ByteString

The bytes for resourceType.

getResourceValue()

public abstract ResourceValue getResourceValue()

Resource value level this expression represents Only required when there is no SDP mapping in the request

.google.cloud.securitycenter.v2.ResourceValue resource_value = 2;

Returns
TypeDescription
ResourceValue

The resourceValue.

getResourceValueValue()

public abstract int getResourceValueValue()

Resource value level this expression represents Only required when there is no SDP mapping in the request

.google.cloud.securitycenter.v2.ResourceValue resource_value = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for resourceValue.

getScope()

public abstract String getScope()

Project or folder to scope this config to. For example, "project/456" would apply this config only to resources in "project/456" scope will be checked with "AND" of other resources.

string scope = 5;

Returns
TypeDescription
String

The scope.

getScopeBytes()

public abstract ByteString getScopeBytes()

Project or folder to scope this config to. For example, "project/456" would apply this config only to resources in "project/456" scope will be checked with "AND" of other resources.

string scope = 5;

Returns
TypeDescription
ByteString

The bytes for scope.

getSensitiveDataProtectionMapping()

public abstract ResourceValueConfig.SensitiveDataProtectionMapping getSensitiveDataProtectionMapping()

A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. "bigquery.googleapis.com/Dataset".

.google.cloud.securitycenter.v2.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11;

Returns
TypeDescription
ResourceValueConfig.SensitiveDataProtectionMapping

The sensitiveDataProtectionMapping.

getSensitiveDataProtectionMappingOrBuilder()

public abstract ResourceValueConfig.SensitiveDataProtectionMappingOrBuilder getSensitiveDataProtectionMappingOrBuilder()

A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. "bigquery.googleapis.com/Dataset".

.google.cloud.securitycenter.v2.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11;

Returns
TypeDescription
ResourceValueConfig.SensitiveDataProtectionMappingOrBuilder

getTagValues(int index)

public abstract String getTagValues(int index)

Required. Tag values combined with AND to check against. Values in the form "tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing

repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The tagValues at the given index.

getTagValuesBytes(int index)

public abstract ByteString getTagValuesBytes(int index)

Required. Tag values combined with AND to check against. Values in the form "tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing

repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the tagValues at the given index.

getTagValuesCount()

public abstract int getTagValuesCount()

Required. Tag values combined with AND to check against. Values in the form "tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing

repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of tagValues.

getTagValuesList()

public abstract List<String> getTagValuesList()

Required. Tag values combined with AND to check against. Values in the form "tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing

repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<String>

A list containing the tagValues.

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. Timestamp this resource value config was last updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp this resource value config was last updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. Timestamp this resource value config was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasSensitiveDataProtectionMapping()

public abstract boolean hasSensitiveDataProtectionMapping()

A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. "bigquery.googleapis.com/Dataset".

.google.cloud.securitycenter.v2.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11;

Returns
TypeDescription
boolean

Whether the sensitiveDataProtectionMapping field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. Timestamp this resource value config was last updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.