Class ValuedResource (2.48.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
TypeDescription
int

EXPOSED_SCORE_FIELD_NUMBER

public static final int EXPOSED_SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_VALUE_CONFIGS_USED_FIELD_NUMBER

public static final int RESOURCE_VALUE_CONFIGS_USED_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_VALUE_FIELD_NUMBER

public static final int RESOURCE_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ValuedResource getDefaultInstance()
Returns
TypeDescription
ValuedResource

getDescriptor()

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

newBuilder()

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

newBuilder(ValuedResource prototype)

public static ValuedResource.Builder newBuilder(ValuedResource prototype)
Parameter
NameDescription
prototypeValuedResource
Returns
TypeDescription
ValuedResource.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ValuedResource getDefaultInstanceForType()
Returns
TypeDescription
ValuedResource

getDisplayName()

public String getDisplayName()

Human-readable name of the valued resource.

string display_name = 4;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Human-readable name of the valued resource.

string display_name = 4;

Returns
TypeDescription
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
TypeDescription
double

The exposedScore.

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getResource()

public String getResource()

The full resource name of the valued resource.

string resource = 2;

Returns
TypeDescription
String

The resource.

getResourceBytes()

public ByteString getResourceBytes()

The full resource name of the valued resource.

string resource = 2;

Returns
TypeDescription
ByteString

The bytes for resource.

getResourceType()

public String getResourceType()

The resource type of the valued resource.

string resource_type = 3;

Returns
TypeDescription
String

The resourceType.

getResourceTypeBytes()

public ByteString getResourceTypeBytes()

The resource type of the valued resource.

string resource_type = 3;

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for resourceValue.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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