Class ValuedResource.Builder (2.45.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.v2.ValuedResource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v2.ResourceValueConfigMetadata>
Returns
TypeDescription
ValuedResource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ValuedResource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Parameter
NameDescription
valueResourceValueConfigMetadata
Returns
TypeDescription
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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Parameter
NameDescription
builderForValueResourceValueConfigMetadata.Builder
Returns
TypeDescription
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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Parameters
NameDescription
indexint
valueResourceValueConfigMetadata
Returns
TypeDescription
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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Parameters
NameDescription
indexint
builderForValueResourceValueConfigMetadata.Builder
Returns
TypeDescription
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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Returns
TypeDescription
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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceValueConfigMetadata.Builder

build()

public ValuedResource build()
Returns
TypeDescription
ValuedResource

buildPartial()

public ValuedResource buildPartial()
Returns
TypeDescription
ValuedResource

clear()

public ValuedResource.Builder clear()
Returns
TypeDescription
ValuedResource.Builder
Overrides

clearDisplayName()

public ValuedResource.Builder clearDisplayName()

Human-readable name of the valued resource.

string display_name = 4;

Returns
TypeDescription
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
TypeDescription
ValuedResource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ValuedResource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ValuedResource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResource()

public ValuedResource.Builder clearResource()

The full resource name of the valued resource.

string resource = 2;

Returns
TypeDescription
ValuedResource.Builder

This builder for chaining.

clearResourceType()

public ValuedResource.Builder clearResourceType()

The resource type of the valued resource.

string resource_type = 3;

Returns
TypeDescription
ValuedResource.Builder

This builder for chaining.

clearResourceValue()

public ValuedResource.Builder clearResourceValue()

How valuable this resource is.

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

Returns
TypeDescription
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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Returns
TypeDescription
ValuedResource.Builder

clone()

public ValuedResource.Builder clone()
Returns
TypeDescription
ValuedResource.Builder
Overrides

getDefaultInstanceForType()

public ValuedResource getDefaultInstanceForType()
Returns
TypeDescription
ValuedResource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ValuedResource other)

public ValuedResource.Builder mergeFrom(ValuedResource other)
Parameter
NameDescription
otherValuedResource
Returns
TypeDescription
ValuedResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ValuedResource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ValuedResource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ValuedResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
ValuedResource.Builder

setDisplayName(String value)

public ValuedResource.Builder setDisplayName(String value)

Human-readable name of the valued resource.

string display_name = 4;

Parameter
NameDescription
valueString

The displayName to set.

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

The bytes for displayName to set.

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

The exposedScore to set.

Returns
TypeDescription
ValuedResource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ValuedResource.Builder
Overrides

setResource(String value)

public ValuedResource.Builder setResource(String value)

The full resource name of the valued resource.

string resource = 2;

Parameter
NameDescription
valueString

The resource to set.

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

The bytes for resource to set.

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

The resourceType to set.

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

The bytes for resourceType to set.

Returns
TypeDescription
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.v2.ValuedResource.ResourceValue resource_value = 5;

Parameter
NameDescription
valueValuedResource.ResourceValue

The resourceValue to set.

Returns
TypeDescription
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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Parameters
NameDescription
indexint
valueResourceValueConfigMetadata
Returns
TypeDescription
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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;

Parameters
NameDescription
indexint
builderForValueResourceValueConfigMetadata.Builder
Returns
TypeDescription
ValuedResource.Builder

setResourceValueValue(int value)

public ValuedResource.Builder setResourceValueValue(int value)

How valuable this resource is.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ValuedResource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ValuedResource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ValuedResource.Builder
Overrides