- 2.60.0 (latest)
- 2.59.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.1
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.1
- 2.6.0
- 2.5.6
- 2.3.2
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ValuedResource.BuilderImplements
ValuedResourceOrBuilderStatic 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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.securitycenter.v2.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 |
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 | |
---|---|
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.v2.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.v2.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.v2.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.v2.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.v2.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 |
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 |
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 |
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.v2.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.v2.ResourceValueConfigMetadata resource_value_configs_used = 7;
Returns | |
---|---|
Type | Description |
ValuedResource.Builder |
clone()
public ValuedResource.Builder clone()
Returns | |
---|---|
Type | Description |
ValuedResource.Builder |
getDefaultInstanceForType()
public ValuedResource getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ValuedResource |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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.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 |
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 | |
---|---|
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.v2.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.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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ValuedResource.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ValuedResource.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ValuedResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ValuedResource.Builder |
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 | |
---|---|
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 |
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 |
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.v2.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.v2.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.v2.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.v2.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 |