Class ValuedResource (2.53.0)

public final class ValuedResource extends GeneratedMessageV3 implements ValuedResourceOrBuilder

A resource that is determined to have value to a user's system

Protobuf type google.cloud.securitycenter.v2.ValuedResource

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

EXPOSED_SCORE_FIELD_NUMBER

public static final int EXPOSED_SCORE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_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_CONFIGS_USED_FIELD_NUMBER

public static final int RESOURCE_VALUE_CONFIGS_USED_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_VALUE_FIELD_NUMBER

public static final int RESOURCE_VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ValuedResource getDefaultInstance()
Returns
Type Description
ValuedResource

getDescriptor()

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

newBuilder()

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

newBuilder(ValuedResource prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ValuedResource getDefaultInstanceForType()
Returns
Type Description
ValuedResource

getDisplayName()

public String getDisplayName()

Human-readable name of the valued resource.

string display_name = 4;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Human-readable name of the valued resource.

string display_name = 4;

Returns
Type Description
ByteString

The bytes for displayName.

getExposedScore()

public double getExposedScore()

Exposed score for this valued resource. A value of 0 means no exposure was detected exposure.

double exposed_score = 6;

Returns
Type Description
double

The exposedScore.

getName()

public String getName()

Valued resource name, for example, e.g.: organizations/123/simulations/456/valuedResources/789

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Valued resource name, for example, e.g.: organizations/123/simulations/456/valuedResources/789

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getResource()

public String getResource()

The full resource name of the valued resource.

string resource = 2;

Returns
Type Description
String

The resource.

getResourceBytes()

public ByteString getResourceBytes()

The full resource name of the valued resource.

string resource = 2;

Returns
Type Description
ByteString

The bytes for resource.

getResourceType()

public String getResourceType()

The resource type of the valued resource.

string resource_type = 3;

Returns
Type Description
String

The resourceType.

getResourceTypeBytes()

public ByteString getResourceTypeBytes()

The resource type of the valued resource.

string resource_type = 3;

Returns
Type Description
ByteString

The bytes for resourceType.

getResourceValue()

public ValuedResource.ResourceValue getResourceValue()

How valuable this resource is.

.google.cloud.securitycenter.v2.ValuedResource.ResourceValue resource_value = 5;

Returns
Type Description
ValuedResource.ResourceValue

The resourceValue.

getResourceValueConfigsUsed(int index)

public ResourceValueConfigMetadata getResourceValueConfigsUsed(int index)

List of resource value configurations' metadata used to determine the value of this resource. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Parameter
Name Description
index int
Returns
Type Description
ResourceValueConfigMetadata

getResourceValueConfigsUsedCount()

public int getResourceValueConfigsUsedCount()

List of resource value configurations' metadata used to determine the value of this resource. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Returns
Type Description
int

getResourceValueConfigsUsedList()

public List<ResourceValueConfigMetadata> getResourceValueConfigsUsedList()

List of resource value configurations' metadata used to determine the value of this resource. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Returns
Type Description
List<ResourceValueConfigMetadata>

getResourceValueConfigsUsedOrBuilder(int index)

public ResourceValueConfigMetadataOrBuilder getResourceValueConfigsUsedOrBuilder(int index)

List of resource value configurations' metadata used to determine the value of this resource. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Parameter
Name Description
index int
Returns
Type Description
ResourceValueConfigMetadataOrBuilder

getResourceValueConfigsUsedOrBuilderList()

public List<? extends ResourceValueConfigMetadataOrBuilder> getResourceValueConfigsUsedOrBuilderList()

List of resource value configurations' metadata used to determine the value of this resource. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.ResourceValueConfigMetadataOrBuilder>

getResourceValueValue()

public int getResourceValueValue()

How valuable this resource is.

.google.cloud.securitycenter.v2.ValuedResource.ResourceValue resource_value = 5;

Returns
Type Description
int

The enum numeric value on the wire for resourceValue.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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