Class ValuedResource.Builder (2.63.0)

public static final class ValuedResource.Builder extends GeneratedMessageV3.Builder<ValuedResource.Builder> implements ValuedResourceOrBuilder

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

Protobuf type google.cloud.securitycenter.v1.ValuedResource

Static Methods

getDescriptor()

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

Methods

addAllResourceValueConfigsUsed(Iterable<? extends ResourceValueConfigMetadata> values)

public ValuedResource.Builder addAllResourceValueConfigsUsed(Iterable<? extends ResourceValueConfigMetadata> values)

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

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v1.ResourceValueConfigMetadata>
Returns
Type Description
ValuedResource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResourceValueConfigsUsed(ResourceValueConfigMetadata value)

public ValuedResource.Builder addResourceValueConfigsUsed(ResourceValueConfigMetadata value)

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

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

Parameter
Name Description
value ResourceValueConfigMetadata
Returns
Type Description
ValuedResource.Builder

addResourceValueConfigsUsed(ResourceValueConfigMetadata.Builder builderForValue)

public ValuedResource.Builder addResourceValueConfigsUsed(ResourceValueConfigMetadata.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue ResourceValueConfigMetadata.Builder
Returns
Type Description
ValuedResource.Builder

addResourceValueConfigsUsed(int index, ResourceValueConfigMetadata value)

public ValuedResource.Builder addResourceValueConfigsUsed(int index, ResourceValueConfigMetadata value)

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

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

Parameters
Name Description
index int
value ResourceValueConfigMetadata
Returns
Type Description
ValuedResource.Builder

addResourceValueConfigsUsed(int index, ResourceValueConfigMetadata.Builder builderForValue)

public ValuedResource.Builder addResourceValueConfigsUsed(int index, ResourceValueConfigMetadata.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue ResourceValueConfigMetadata.Builder
Returns
Type Description
ValuedResource.Builder

addResourceValueConfigsUsedBuilder()

public ResourceValueConfigMetadata.Builder addResourceValueConfigsUsedBuilder()

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

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

Returns
Type Description
ResourceValueConfigMetadata.Builder

addResourceValueConfigsUsedBuilder(int index)

public ResourceValueConfigMetadata.Builder addResourceValueConfigsUsedBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
ResourceValueConfigMetadata.Builder

build()

public ValuedResource build()
Returns
Type Description
ValuedResource

buildPartial()

public ValuedResource buildPartial()
Returns
Type Description
ValuedResource

clear()

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

clearDisplayName()

public ValuedResource.Builder clearDisplayName()

Human-readable name of the valued resource.

string display_name = 4;

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

clearExposedScore()

public ValuedResource.Builder clearExposedScore()

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

double exposed_score = 6;

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ValuedResource.Builder clearName()

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

string name = 1;

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResource()

public ValuedResource.Builder clearResource()

The full resource name of the valued resource.

string resource = 2;

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

clearResourceType()

public ValuedResource.Builder clearResourceType()

The resource type of the valued resource.

string resource_type = 3;

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

clearResourceValue()

public ValuedResource.Builder clearResourceValue()

How valuable this resource is.

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

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

clearResourceValueConfigsUsed()

public ValuedResource.Builder clearResourceValueConfigsUsed()

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

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

Returns
Type Description
ValuedResource.Builder

clone()

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

getDefaultInstanceForType()

public ValuedResource getDefaultInstanceForType()
Returns
Type Description
ValuedResource

getDescriptorForType()

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

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.

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.v1.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.v1.ResourceValueConfigMetadata resource_value_configs_used = 7;

Parameter
Name Description
index int
Returns
Type Description
ResourceValueConfigMetadata

getResourceValueConfigsUsedBuilder(int index)

public ResourceValueConfigMetadata.Builder getResourceValueConfigsUsedBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
ResourceValueConfigMetadata.Builder

getResourceValueConfigsUsedBuilderList()

public List<ResourceValueConfigMetadata.Builder> getResourceValueConfigsUsedBuilderList()

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

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

Returns
Type Description
List<Builder>

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.v1.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.v1.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.v1.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.v1.ResourceValueConfigMetadata resource_value_configs_used = 7;

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

getResourceValueValue()

public int getResourceValueValue()

How valuable this resource is.

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

Returns
Type Description
int

The enum numeric value on the wire for resourceValue.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ValuedResource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeResourceValueConfigsUsed(int index)

public ValuedResource.Builder removeResourceValueConfigsUsed(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
ValuedResource.Builder

setDisplayName(String value)

public ValuedResource.Builder setDisplayName(String value)

Human-readable name of the valued resource.

string display_name = 4;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ValuedResource.Builder setDisplayNameBytes(ByteString value)

Human-readable name of the valued resource.

string display_name = 4;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

setExposedScore(double value)

public ValuedResource.Builder setExposedScore(double value)

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

double exposed_score = 6;

Parameter
Name Description
value double

The exposedScore to set.

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ValuedResource.Builder setName(String value)

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

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ValuedResource.Builder setNameBytes(ByteString value)

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

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

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

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

setResource(String value)

public ValuedResource.Builder setResource(String value)

The full resource name of the valued resource.

string resource = 2;

Parameter
Name Description
value String

The resource to set.

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public ValuedResource.Builder setResourceBytes(ByteString value)

The full resource name of the valued resource.

string resource = 2;

Parameter
Name Description
value ByteString

The bytes for resource to set.

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

setResourceType(String value)

public ValuedResource.Builder setResourceType(String value)

The resource type of the valued resource.

string resource_type = 3;

Parameter
Name Description
value String

The resourceType to set.

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

setResourceTypeBytes(ByteString value)

public ValuedResource.Builder setResourceTypeBytes(ByteString value)

The resource type of the valued resource.

string resource_type = 3;

Parameter
Name Description
value ByteString

The bytes for resourceType to set.

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

setResourceValue(ValuedResource.ResourceValue value)

public ValuedResource.Builder setResourceValue(ValuedResource.ResourceValue value)

How valuable this resource is.

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

Parameter
Name Description
value ValuedResource.ResourceValue

The resourceValue to set.

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

setResourceValueConfigsUsed(int index, ResourceValueConfigMetadata value)

public ValuedResource.Builder setResourceValueConfigsUsed(int index, ResourceValueConfigMetadata value)

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

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

Parameters
Name Description
index int
value ResourceValueConfigMetadata
Returns
Type Description
ValuedResource.Builder

setResourceValueConfigsUsed(int index, ResourceValueConfigMetadata.Builder builderForValue)

public ValuedResource.Builder setResourceValueConfigsUsed(int index, ResourceValueConfigMetadata.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue ResourceValueConfigMetadata.Builder
Returns
Type Description
ValuedResource.Builder

setResourceValueValue(int value)

public ValuedResource.Builder setResourceValueValue(int value)

How valuable this resource is.

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

Parameter
Name Description
value int

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

Returns
Type Description
ValuedResource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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