Class ResourceValueConfig (2.47.0)

public final class ResourceValueConfig extends GeneratedMessageV3 implements ResourceValueConfigOrBuilder

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

Protobuf type google.cloud.securitycenter.v2.ResourceValueConfig

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_LABELS_SELECTOR_FIELD_NUMBER

public static final int RESOURCE_LABELS_SELECTOR_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_VALUE_FIELD_NUMBER

public static final int RESOURCE_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

SCOPE_FIELD_NUMBER

public static final int SCOPE_FIELD_NUMBER
Field Value
TypeDescription
int

SENSITIVE_DATA_PROTECTION_MAPPING_FIELD_NUMBER

public static final int SENSITIVE_DATA_PROTECTION_MAPPING_FIELD_NUMBER
Field Value
TypeDescription
int

TAG_VALUES_FIELD_NUMBER

public static final int TAG_VALUES_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ResourceValueConfig getDefaultInstance()
Returns
TypeDescription
ResourceValueConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ResourceValueConfig.Builder newBuilder()
Returns
TypeDescription
ResourceValueConfig.Builder

newBuilder(ResourceValueConfig prototype)

public static ResourceValueConfig.Builder newBuilder(ResourceValueConfig prototype)
Parameter
NameDescription
prototypeResourceValueConfig
Returns
TypeDescription
ResourceValueConfig.Builder

parseDelimitedFrom(InputStream input)

public static ResourceValueConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResourceValueConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceValueConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceValueConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ResourceValueConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ResourceValueConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResourceValueConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceValueConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResourceValueConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ResourceValueConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResourceValueConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceValueConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResourceValueConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ResourceValueConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceValueConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceValueConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ResourceValueConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResourceValueConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceValueConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceValueConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ResourceValueConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ResourceValueConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResourceValueConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceValueConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ResourceValueConfig> parser()
Returns
TypeDescription
Parser<ResourceValueConfig>

Methods

containsResourceLabelsSelector(String key)

public 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

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCreateTime()

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

getDefaultInstanceForType()

public ResourceValueConfig getDefaultInstanceForType()
Returns
TypeDescription
ResourceValueConfig

getDescription()

public String getDescription()

Description of the resource value config.

string description = 7;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the resource value config.

string description = 7;

Returns
TypeDescription
ByteString

The bytes for description.

getName()

public String getName()

Name for the resource value config

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name for the resource value config

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<ResourceValueConfig> getParserForType()
Returns
TypeDescription
Parser<ResourceValueConfig>
Overrides

getResourceLabelsSelector() (deprecated)

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

getResourceLabelsSelectorCount()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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" 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 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 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 ProtocolStringList 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
ProtocolStringList

A list containing the tagValues.

getUpdateTime()

public 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 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 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 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 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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ResourceValueConfig.Builder newBuilderForType()
Returns
TypeDescription
ResourceValueConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResourceValueConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ResourceValueConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ResourceValueConfig.Builder toBuilder()
Returns
TypeDescription
ResourceValueConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException