Class ResourceValueConfig.Builder (2.51.0)

public static final class ResourceValueConfig.Builder extends GeneratedMessageV3.Builder<ResourceValueConfig.Builder> 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 Methods

getDescriptor()

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

Methods

addAllTagValues(Iterable<String> values)

public ResourceValueConfig.Builder addAllTagValues(Iterable<String> values)

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
Name Description
values Iterable<String>

The tagValues to add.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceValueConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceValueConfig.Builder
Overrides

addTagValues(String value)

public ResourceValueConfig.Builder addTagValues(String value)

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
Name Description
value String

The tagValues to add.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

addTagValuesBytes(ByteString value)

public ResourceValueConfig.Builder addTagValuesBytes(ByteString value)

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
Name Description
value ByteString

The bytes of the tagValues to add.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

build()

public ResourceValueConfig build()
Returns
Type Description
ResourceValueConfig

buildPartial()

public ResourceValueConfig buildPartial()
Returns
Type Description
ResourceValueConfig

clear()

public ResourceValueConfig.Builder clear()
Returns
Type Description
ResourceValueConfig.Builder
Overrides

clearCreateTime()

public ResourceValueConfig.Builder clearCreateTime()

Output only. Timestamp this resource value config was created.

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

Returns
Type Description
ResourceValueConfig.Builder

clearDescription()

public ResourceValueConfig.Builder clearDescription()

Description of the resource value config.

string description = 7;

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ResourceValueConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResourceValueConfig.Builder
Overrides

clearName()

public ResourceValueConfig.Builder clearName()

Name for the resource value config

string name = 1;

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceValueConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResourceValueConfig.Builder
Overrides

clearResourceLabelsSelector()

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

clearResourceType()

public ResourceValueConfig.Builder clearResourceType()

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
Type Description
ResourceValueConfig.Builder

This builder for chaining.

clearResourceValue()

public ResourceValueConfig.Builder clearResourceValue()

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
Type Description
ResourceValueConfig.Builder

This builder for chaining.

clearScope()

public ResourceValueConfig.Builder clearScope()

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
Type Description
ResourceValueConfig.Builder

This builder for chaining.

clearSensitiveDataProtectionMapping()

public ResourceValueConfig.Builder clearSensitiveDataProtectionMapping()

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
Type Description
ResourceValueConfig.Builder

clearTagValues()

public ResourceValueConfig.Builder clearTagValues()

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
Type Description
ResourceValueConfig.Builder

This builder for chaining.

clearUpdateTime()

public ResourceValueConfig.Builder clearUpdateTime()

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

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

Returns
Type Description
ResourceValueConfig.Builder

clone()

public ResourceValueConfig.Builder clone()
Returns
Type Description
ResourceValueConfig.Builder
Overrides

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
Name Description
key String
Returns
Type Description
boolean

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
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp this resource value config was created.

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

Returns
Type Description
Builder

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
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ResourceValueConfig getDefaultInstanceForType()
Returns
Type Description
ResourceValueConfig

getDescription()

public String getDescription()

Description of the resource value config.

string description = 7;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the resource value config.

string description = 7;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableResourceLabelsSelector() (deprecated)

public Map<String,String> getMutableResourceLabelsSelector()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Name for the resource value config

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name for the resource value config

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

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. 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
Type Description
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
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. 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
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. 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
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. 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
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. 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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
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.v2.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11;

Returns
Type Description
ResourceValueConfig.SensitiveDataProtectionMapping

The sensitiveDataProtectionMapping.

getSensitiveDataProtectionMappingBuilder()

public ResourceValueConfig.SensitiveDataProtectionMapping.Builder getSensitiveDataProtectionMappingBuilder()

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
Type Description
ResourceValueConfig.SensitiveDataProtectionMapping.Builder

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
Type Description
ResourceValueConfig.SensitiveDataProtectionMappingOrBuilder

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
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" 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
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" 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
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" 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
Type Description
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
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

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

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

Returns
Type Description
Builder

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
Type Description
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
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.v2.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 config 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.

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ResourceValueConfig.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp this resource value config was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ResourceValueConfig.Builder

mergeFrom(ResourceValueConfig other)

public ResourceValueConfig.Builder mergeFrom(ResourceValueConfig other)
Parameter
Name Description
other ResourceValueConfig
Returns
Type Description
ResourceValueConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceValueConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceValueConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResourceValueConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResourceValueConfig.Builder
Overrides

mergeSensitiveDataProtectionMapping(ResourceValueConfig.SensitiveDataProtectionMapping value)

public ResourceValueConfig.Builder mergeSensitiveDataProtectionMapping(ResourceValueConfig.SensitiveDataProtectionMapping value)

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;

Parameter
Name Description
value ResourceValueConfig.SensitiveDataProtectionMapping
Returns
Type Description
ResourceValueConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceValueConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceValueConfig.Builder
Overrides

mergeUpdateTime(Timestamp value)

public ResourceValueConfig.Builder mergeUpdateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ResourceValueConfig.Builder

putAllResourceLabelsSelector(Map<String,String> values)

public ResourceValueConfig.Builder putAllResourceLabelsSelector(Map<String,String> values)

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
Name Description
values Map<String,String>
Returns
Type Description
ResourceValueConfig.Builder

putResourceLabelsSelector(String key, String value)

public ResourceValueConfig.Builder putResourceLabelsSelector(String key, String value)

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
Name Description
key String
value String
Returns
Type Description
ResourceValueConfig.Builder

removeResourceLabelsSelector(String key)

public ResourceValueConfig.Builder removeResourceLabelsSelector(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
Name Description
key String
Returns
Type Description
ResourceValueConfig.Builder

setCreateTime(Timestamp value)

public ResourceValueConfig.Builder setCreateTime(Timestamp value)

Output only. Timestamp this resource value config was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ResourceValueConfig.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ResourceValueConfig.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp this resource value config was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ResourceValueConfig.Builder

setDescription(String value)

public ResourceValueConfig.Builder setDescription(String value)

Description of the resource value config.

string description = 7;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ResourceValueConfig.Builder setDescriptionBytes(ByteString value)

Description of the resource value config.

string description = 7;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceValueConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceValueConfig.Builder
Overrides

setName(String value)

public ResourceValueConfig.Builder setName(String value)

Name for the resource value config

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ResourceValueConfig.Builder setNameBytes(ByteString value)

Name for the resource value config

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResourceValueConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResourceValueConfig.Builder
Overrides

setResourceType(String value)

public ResourceValueConfig.Builder setResourceType(String value)

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;

Parameter
Name Description
value String

The resourceType to set.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

setResourceTypeBytes(ByteString value)

public ResourceValueConfig.Builder setResourceTypeBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for resourceType to set.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

setResourceValue(ResourceValue value)

public ResourceValueConfig.Builder setResourceValue(ResourceValue value)

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;

Parameter
Name Description
value ResourceValue

The resourceValue to set.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

setResourceValueValue(int value)

public ResourceValueConfig.Builder setResourceValueValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for resourceValue to set.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

setScope(String value)

public ResourceValueConfig.Builder setScope(String value)

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;

Parameter
Name Description
value String

The scope to set.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

setScopeBytes(ByteString value)

public ResourceValueConfig.Builder setScopeBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for scope to set.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

setSensitiveDataProtectionMapping(ResourceValueConfig.SensitiveDataProtectionMapping value)

public ResourceValueConfig.Builder setSensitiveDataProtectionMapping(ResourceValueConfig.SensitiveDataProtectionMapping value)

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;

Parameter
Name Description
value ResourceValueConfig.SensitiveDataProtectionMapping
Returns
Type Description
ResourceValueConfig.Builder

setSensitiveDataProtectionMapping(ResourceValueConfig.SensitiveDataProtectionMapping.Builder builderForValue)

public ResourceValueConfig.Builder setSensitiveDataProtectionMapping(ResourceValueConfig.SensitiveDataProtectionMapping.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ResourceValueConfig.SensitiveDataProtectionMapping.Builder
Returns
Type Description
ResourceValueConfig.Builder

setTagValues(int index, String value)

public ResourceValueConfig.Builder setTagValues(int index, String value)

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];

Parameters
Name Description
index int

The index to set the value at.

value String

The tagValues to set.

Returns
Type Description
ResourceValueConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceValueConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceValueConfig.Builder
Overrides

setUpdateTime(Timestamp value)

public ResourceValueConfig.Builder setUpdateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ResourceValueConfig.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ResourceValueConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ResourceValueConfig.Builder