Class ResourceValueConfig.Builder (2.49.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
TypeDescription
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
NameDescription
valuesIterable<String>

The tagValues to add.

Returns
TypeDescription
ResourceValueConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceValueConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The tagValues to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the tagValues to add.

Returns
TypeDescription
ResourceValueConfig.Builder

This builder for chaining.

build()

public ResourceValueConfig build()
Returns
TypeDescription
ResourceValueConfig

buildPartial()

public ResourceValueConfig buildPartial()
Returns
TypeDescription
ResourceValueConfig

clear()

public ResourceValueConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
ResourceValueConfig.Builder

clearDescription()

public ResourceValueConfig.Builder clearDescription()

Description of the resource value config.

string description = 7;

Returns
TypeDescription
ResourceValueConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ResourceValueConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResourceValueConfig.Builder
Overrides

clearName()

public ResourceValueConfig.Builder clearName()

Name for the resource value config

string name = 1;

Returns
TypeDescription
ResourceValueConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceValueConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ResourceValueConfig.Builder
Overrides

clearResourceLabelsSelector()

public ResourceValueConfig.Builder clearResourceLabelsSelector()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ResourceValueConfig.Builder

clone()

public ResourceValueConfig.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableResourceLabelsSelector() (deprecated)

public Map<String,String> getMutableResourceLabelsSelector()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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.

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.

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

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

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

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ResourceValueConfig.Builder

mergeFrom(ResourceValueConfig other)

public ResourceValueConfig.Builder mergeFrom(ResourceValueConfig other)
Parameter
NameDescription
otherResourceValueConfig
Returns
TypeDescription
ResourceValueConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceValueConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceValueConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResourceValueConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueResourceValueConfig.SensitiveDataProtectionMapping
Returns
TypeDescription
ResourceValueConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceValueConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ResourceValueConfig.Builder

setDescription(String value)

public ResourceValueConfig.Builder setDescription(String value)

Description of the resource value config.

string description = 7;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ResourceValueConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceValueConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResourceValueConfig.Builder
Overrides

setName(String value)

public ResourceValueConfig.Builder setName(String value)

Name for the resource value config

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The resourceType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resourceType to set.

Returns
TypeDescription
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
NameDescription
valueResourceValue

The resourceValue to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The scope to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for scope to set.

Returns
TypeDescription
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
NameDescription
valueResourceValueConfig.SensitiveDataProtectionMapping
Returns
TypeDescription
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
NameDescription
builderForValueResourceValueConfig.SensitiveDataProtectionMapping.Builder
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The tagValues to set.

Returns
TypeDescription
ResourceValueConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceValueConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ResourceValueConfig.Builder