Class SimulatedFinding.Builder (0.4.0)

public static final class SimulatedFinding.Builder extends GeneratedMessageV3.Builder<SimulatedFinding.Builder> implements SimulatedFindingOrBuilder

A subset of the fields of the Security Center Finding proto. The minimum set of fields needed to represent a simulated finding from a SHA custom module.

Protobuf type google.cloud.securitycentermanagement.v1.SimulatedFinding

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SimulatedFinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SimulatedFinding.Builder
Overrides

build()

public SimulatedFinding build()
Returns
TypeDescription
SimulatedFinding

buildPartial()

public SimulatedFinding buildPartial()
Returns
TypeDescription
SimulatedFinding

clear()

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

clearCategory()

public SimulatedFinding.Builder clearCategory()

The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"

string category = 4;

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

clearEventTime()

public SimulatedFinding.Builder clearEventTime()

The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.

.google.protobuf.Timestamp event_time = 7;

Returns
TypeDescription
SimulatedFinding.Builder

clearField(Descriptors.FieldDescriptor field)

public SimulatedFinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SimulatedFinding.Builder
Overrides

clearFindingClass()

public SimulatedFinding.Builder clearFindingClass()

The class of the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9;

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

clearName()

public SimulatedFinding.Builder clearName()

Identifier. The relative resource name of the finding. Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", "projects/{project_id}/sources/{source_id}/findings/{finding_id}".

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public SimulatedFinding.Builder clearParent()

The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id}/sources/{source_id}"

string parent = 2;

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

clearResourceName()

public SimulatedFinding.Builder clearResourceName()

For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.

string resource_name = 3;

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

clearSeverity()

public SimulatedFinding.Builder clearSeverity()

The severity of the finding. This field is managed by the source that writes the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8;

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

clearSourceProperties()

public SimulatedFinding.Builder clearSourceProperties()
Returns
TypeDescription
SimulatedFinding.Builder

clearState()

public SimulatedFinding.Builder clearState()

Output only. The state of the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

clone()

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

containsSourceProperties(String key)

public boolean containsSourceProperties(String key)

Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.

map<string, .google.protobuf.Value> source_properties = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCategory()

public String getCategory()

The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"

string category = 4;

Returns
TypeDescription
String

The category.

getCategoryBytes()

public ByteString getCategoryBytes()

The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"

string category = 4;

Returns
TypeDescription
ByteString

The bytes for category.

getDefaultInstanceForType()

public SimulatedFinding getDefaultInstanceForType()
Returns
TypeDescription
SimulatedFinding

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEventTime()

public Timestamp getEventTime()

The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.

.google.protobuf.Timestamp event_time = 7;

Returns
TypeDescription
Timestamp

The eventTime.

getEventTimeBuilder()

public Timestamp.Builder getEventTimeBuilder()

The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.

.google.protobuf.Timestamp event_time = 7;

Returns
TypeDescription
Builder

getEventTimeOrBuilder()

public TimestampOrBuilder getEventTimeOrBuilder()

The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.

.google.protobuf.Timestamp event_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getFindingClass()

public SimulatedFinding.FindingClass getFindingClass()

The class of the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9;

Returns
TypeDescription
SimulatedFinding.FindingClass

The findingClass.

getFindingClassValue()

public int getFindingClassValue()

The class of the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for findingClass.

getMutableSourceProperties() (deprecated)

public Map<String,Value> getMutableSourceProperties()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,Value>

getName()

public String getName()

Identifier. The relative resource name of the finding. Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", "projects/{project_id}/sources/{source_id}/findings/{finding_id}".

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The relative resource name of the finding. Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", "projects/{project_id}/sources/{source_id}/findings/{finding_id}".

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
ByteString

The bytes for name.

getParent()

public String getParent()

The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id}/sources/{source_id}"

string parent = 2;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id}/sources/{source_id}"

string parent = 2;

Returns
TypeDescription
ByteString

The bytes for parent.

getResourceName()

public String getResourceName()

For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.

string resource_name = 3;

Returns
TypeDescription
String

The resourceName.

getResourceNameBytes()

public ByteString getResourceNameBytes()

For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.

string resource_name = 3;

Returns
TypeDescription
ByteString

The bytes for resourceName.

getSeverity()

public SimulatedFinding.Severity getSeverity()

The severity of the finding. This field is managed by the source that writes the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8;

Returns
TypeDescription
SimulatedFinding.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

The severity of the finding. This field is managed by the source that writes the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8;

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

getSourceProperties() (deprecated)

public Map<String,Value> getSourceProperties()
Returns
TypeDescription
Map<String,Value>

getSourcePropertiesCount()

public int getSourcePropertiesCount()

Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.

map<string, .google.protobuf.Value> source_properties = 6;

Returns
TypeDescription
int

getSourcePropertiesMap()

public Map<String,Value> getSourcePropertiesMap()

Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.

map<string, .google.protobuf.Value> source_properties = 6;

Returns
TypeDescription
Map<String,Value>

getSourcePropertiesOrDefault(String key, Value defaultValue)

public Value getSourcePropertiesOrDefault(String key, Value defaultValue)

Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.

map<string, .google.protobuf.Value> source_properties = 6;

Parameters
NameDescription
keyString
defaultValueValue
Returns
TypeDescription
Value

getSourcePropertiesOrThrow(String key)

public Value getSourcePropertiesOrThrow(String key)

Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.

map<string, .google.protobuf.Value> source_properties = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
Value

getState()

public SimulatedFinding.State getState()

Output only. The state of the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SimulatedFinding.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

hasEventTime()

public boolean hasEventTime()

The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.

.google.protobuf.Timestamp event_time = 7;

Returns
TypeDescription
boolean

Whether the eventTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEventTime(Timestamp value)

public SimulatedFinding.Builder mergeEventTime(Timestamp value)

The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.

.google.protobuf.Timestamp event_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SimulatedFinding.Builder

mergeFrom(SimulatedFinding other)

public SimulatedFinding.Builder mergeFrom(SimulatedFinding other)
Parameter
NameDescription
otherSimulatedFinding
Returns
TypeDescription
SimulatedFinding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SimulatedFinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SimulatedFinding.Builder
Overrides

putAllSourceProperties(Map<String,Value> values)

public SimulatedFinding.Builder putAllSourceProperties(Map<String,Value> values)

Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.

map<string, .google.protobuf.Value> source_properties = 6;

Parameter
NameDescription
valuesMap<String,Value>
Returns
TypeDescription
SimulatedFinding.Builder

putSourceProperties(String key, Value value)

public SimulatedFinding.Builder putSourceProperties(String key, Value value)

Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.

map<string, .google.protobuf.Value> source_properties = 6;

Parameters
NameDescription
keyString
valueValue
Returns
TypeDescription
SimulatedFinding.Builder

putSourcePropertiesBuilderIfAbsent(String key)

public Value.Builder putSourcePropertiesBuilderIfAbsent(String key)

Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.

map<string, .google.protobuf.Value> source_properties = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
Builder

removeSourceProperties(String key)

public SimulatedFinding.Builder removeSourceProperties(String key)

Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.

map<string, .google.protobuf.Value> source_properties = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
SimulatedFinding.Builder

setCategory(String value)

public SimulatedFinding.Builder setCategory(String value)

The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"

string category = 4;

Parameter
NameDescription
valueString

The category to set.

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setCategoryBytes(ByteString value)

public SimulatedFinding.Builder setCategoryBytes(ByteString value)

The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"

string category = 4;

Parameter
NameDescription
valueByteString

The bytes for category to set.

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setEventTime(Timestamp value)

public SimulatedFinding.Builder setEventTime(Timestamp value)

The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.

.google.protobuf.Timestamp event_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SimulatedFinding.Builder

setEventTime(Timestamp.Builder builderForValue)

public SimulatedFinding.Builder setEventTime(Timestamp.Builder builderForValue)

The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.

.google.protobuf.Timestamp event_time = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SimulatedFinding.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SimulatedFinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SimulatedFinding.Builder
Overrides

setFindingClass(SimulatedFinding.FindingClass value)

public SimulatedFinding.Builder setFindingClass(SimulatedFinding.FindingClass value)

The class of the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9;

Parameter
NameDescription
valueSimulatedFinding.FindingClass

The findingClass to set.

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setFindingClassValue(int value)

public SimulatedFinding.Builder setFindingClassValue(int value)

The class of the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setName(String value)

public SimulatedFinding.Builder setName(String value)

Identifier. The relative resource name of the finding. Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", "projects/{project_id}/sources/{source_id}/findings/{finding_id}".

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SimulatedFinding.Builder setNameBytes(ByteString value)

Identifier. The relative resource name of the finding. Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", "projects/{project_id}/sources/{source_id}/findings/{finding_id}".

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setParent(String value)

public SimulatedFinding.Builder setParent(String value)

The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id}/sources/{source_id}"

string parent = 2;

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setParentBytes(ByteString value)

public SimulatedFinding.Builder setParentBytes(ByteString value)

The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id}/sources/{source_id}"

string parent = 2;

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

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

public SimulatedFinding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SimulatedFinding.Builder
Overrides

setResourceName(String value)

public SimulatedFinding.Builder setResourceName(String value)

For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.

string resource_name = 3;

Parameter
NameDescription
valueString

The resourceName to set.

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setResourceNameBytes(ByteString value)

public SimulatedFinding.Builder setResourceNameBytes(ByteString value)

For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.

string resource_name = 3;

Parameter
NameDescription
valueByteString

The bytes for resourceName to set.

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setSeverity(SimulatedFinding.Severity value)

public SimulatedFinding.Builder setSeverity(SimulatedFinding.Severity value)

The severity of the finding. This field is managed by the source that writes the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8;

Parameter
NameDescription
valueSimulatedFinding.Severity

The severity to set.

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setSeverityValue(int value)

public SimulatedFinding.Builder setSeverityValue(int value)

The severity of the finding. This field is managed by the source that writes the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setState(SimulatedFinding.State value)

public SimulatedFinding.Builder setState(SimulatedFinding.State value)

Output only. The state of the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueSimulatedFinding.State

The state to set.

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setStateValue(int value)

public SimulatedFinding.Builder setStateValue(int value)

Output only. The state of the finding.

.google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
SimulatedFinding.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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