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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ResourceValueConfig.Builder newBuilder()
newBuilder(ResourceValueConfig prototype)
public static ResourceValueConfig.Builder newBuilder(ResourceValueConfig prototype)
public static ResourceValueConfig parseDelimitedFrom(InputStream input)
public static ResourceValueConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ResourceValueConfig parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ResourceValueConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ResourceValueConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResourceValueConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResourceValueConfig parseFrom(CodedInputStream input)
public static ResourceValueConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ResourceValueConfig parseFrom(InputStream input)
public static ResourceValueConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ResourceValueConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ResourceValueConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ResourceValueConfig> parser()
Methods
containsResourceLabelsSelector(String key)
public boolean containsResourceLabelsSelector(String key)
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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 |
Type |
Description |
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];
getDefaultInstanceForType()
public ResourceValueConfig getDefaultInstanceForType()
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.
|
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.
|
getParserForType()
public Parser<ResourceValueConfig> getParserForType()
Overrides
getResourceLabelsSelector() (deprecated)
public Map<String,String> getResourceLabelsSelector()
getResourceLabelsSelectorCount()
public int getResourceLabelsSelectorCount()
Returns |
Type |
Description |
int |
|
getResourceLabelsSelectorMap()
public Map<String,String> getResourceLabelsSelectorMap()
getResourceLabelsSelectorOrDefault(String key, String defaultValue)
public String getResourceLabelsSelectorOrDefault(String key, String defaultValue)
Returns |
Type |
Description |
String |
|
getResourceLabelsSelectorOrThrow(String key)
public String getResourceLabelsSelectorOrThrow(String key)
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;
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()
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;
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;
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getTagValues(int index)
public String getTagValues(int index)
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)
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()
Returns |
Type |
Description |
int |
The count of tagValues.
|
getTagValuesList()
public ProtocolStringList getTagValuesList()
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.
|
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];
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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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()
Overrides
newBuilderForType()
public ResourceValueConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ResourceValueConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ResourceValueConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides