Class ResourceValueConfig (2.62.0)

public final class ResourceValueConfig extends GeneratedMessageV3 implements ResourceValueConfigOrBuilder

A resource value configuration (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations.

Protobuf type google.cloud.securitycenter.v1.ResourceValueConfig

Static Fields

CLOUD_PROVIDER_FIELD_NUMBER

public static final int CLOUD_PROVIDER_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_LABELS_SELECTOR_FIELD_NUMBER

public static final int RESOURCE_LABELS_SELECTOR_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_VALUE_FIELD_NUMBER

public static final int RESOURCE_VALUE_FIELD_NUMBER
Field Value
Type Description
int

SCOPE_FIELD_NUMBER

public static final int SCOPE_FIELD_NUMBER
Field Value
Type Description
int

SENSITIVE_DATA_PROTECTION_MAPPING_FIELD_NUMBER

public static final int SENSITIVE_DATA_PROTECTION_MAPPING_FIELD_NUMBER
Field Value
Type Description
int

TAG_VALUES_FIELD_NUMBER

public static final int TAG_VALUES_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResourceValueConfig getDefaultInstance()
Returns
Type Description
ResourceValueConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ResourceValueConfig.Builder newBuilder()
Returns
Type Description
ResourceValueConfig.Builder

newBuilder(ResourceValueConfig prototype)

public static ResourceValueConfig.Builder newBuilder(ResourceValueConfig prototype)
Parameter
Name Description
prototype ResourceValueConfig
Returns
Type Description
ResourceValueConfig.Builder

parseDelimitedFrom(InputStream input)

public static ResourceValueConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourceValueConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceValueConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceValueConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ResourceValueConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ResourceValueConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResourceValueConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceValueConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResourceValueConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ResourceValueConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResourceValueConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceValueConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResourceValueConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ResourceValueConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceValueConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceValueConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ResourceValueConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourceValueConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceValueConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceValueConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ResourceValueConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ResourceValueConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResourceValueConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceValueConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ResourceValueConfig> parser()
Returns
Type Description
Parser<ResourceValueConfig>

Methods

containsResourceLabelsSelector(String key)

public boolean containsResourceLabelsSelector(String key)

List of resource labels to search for, evaluated with AND. For example, "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
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCloudProvider()

public CloudProvider getCloudProvider()

Cloud provider this configuration applies to

.google.cloud.securitycenter.v1.CloudProvider cloud_provider = 10;

Returns
Type Description
CloudProvider

The cloudProvider.

getCloudProviderValue()

public int getCloudProviderValue()

Cloud provider this configuration applies to

.google.cloud.securitycenter.v1.CloudProvider cloud_provider = 10;

Returns
Type Description
int

The enum numeric value on the wire for cloudProvider.

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp this resource value configuration was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp this resource value configuration was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ResourceValueConfig getDefaultInstanceForType()
Returns
Type Description
ResourceValueConfig

getDescription()

public String getDescription()

Description of the resource value configuration.

string description = 7;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the resource value configuration.

string description = 7;

Returns
Type Description
ByteString

The bytes for description.

getName()

public String getName()

Name for the resource value configuration

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name for the resource value configuration

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<ResourceValueConfig> getParserForType()
Returns
Type Description
Parser<ResourceValueConfig>
Overrides

getResourceLabelsSelector() (deprecated)

public Map<String,String> getResourceLabelsSelector()
Returns
Type Description
Map<String,String>

getResourceLabelsSelectorCount()

public int getResourceLabelsSelectorCount()

List of resource labels to search for, evaluated with AND. For example, "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
Type Description
int

getResourceLabelsSelectorMap()

public Map<String,String> getResourceLabelsSelectorMap()

List of resource labels to search for, evaluated with AND. For example, "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
Type Description
Map<String,String>

getResourceLabelsSelectorOrDefault(String key, String defaultValue)

public String getResourceLabelsSelectorOrDefault(String key, String defaultValue)

List of resource labels to search for, evaluated with AND. For example, "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
Name Description
key String
defaultValue String
Returns
Type Description
String

getResourceLabelsSelectorOrThrow(String key)

public String getResourceLabelsSelectorOrThrow(String key)

List of resource labels to search for, evaluated with AND. For example, "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
Name Description
key String
Returns
Type Description
String

getResourceType()

public String getResourceType()

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

string resource_type = 4;

Returns
Type Description
String

The resourceType.

getResourceTypeBytes()

public ByteString getResourceTypeBytes()

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

string resource_type = 4;

Returns
Type Description
ByteString

The bytes for resourceType.

getResourceValue()

public ResourceValue getResourceValue()

Required. Resource value level this expression represents

.google.cloud.securitycenter.v1.ResourceValue resource_value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ResourceValue

The resourceValue.

getResourceValueValue()

public int getResourceValueValue()

Required. Resource value level this expression represents

.google.cloud.securitycenter.v1.ResourceValue resource_value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for resourceValue.

getScope()

public String getScope()

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

string scope = 5;

Returns
Type Description
String

The scope.

getScopeBytes()

public ByteString getScopeBytes()

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

string scope = 5;

Returns
Type Description
ByteString

The bytes for scope.

getSensitiveDataProtectionMapping()

public 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.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11;

Returns
Type Description
ResourceValueConfig.SensitiveDataProtectionMapping

The sensitiveDataProtectionMapping.

getSensitiveDataProtectionMappingOrBuilder()

public 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.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11;

Returns
Type Description
ResourceValueConfig.SensitiveDataProtectionMappingOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTagValues(int index)

public String getTagValues(int index)

Required. Tag values combined with AND to check against. Values in the form "tagValues/123" Example: [ "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
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The tagValues at the given index.

getTagValuesBytes(int index)

public ByteString getTagValuesBytes(int index)

Required. Tag values combined with AND to check against. Values in the form "tagValues/123" Example: [ "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
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the tagValues at the given index.

getTagValuesCount()

public int getTagValuesCount()

Required. Tag values combined with AND to check against. Values in the form "tagValues/123" Example: [ "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
Type Description
int

The count of tagValues.

getTagValuesList()

public ProtocolStringList getTagValuesList()

Required. Tag values combined with AND to check against. Values in the form "tagValues/123" Example: [ "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
Type Description
ProtocolStringList

A list containing the tagValues.

getUpdateTime()

public Timestamp getUpdateTime()

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

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

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

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp this resource value configuration was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasSensitiveDataProtectionMapping()

public 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.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11;

Returns
Type Description
boolean

Whether the sensitiveDataProtectionMapping field is set.

hasUpdateTime()

public boolean hasUpdateTime()

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

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

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ResourceValueConfig.Builder newBuilderForType()
Returns
Type Description
ResourceValueConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResourceValueConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ResourceValueConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ResourceValueConfig.Builder toBuilder()
Returns
Type Description
ResourceValueConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException