# Interface SimulatedFindingOrBuilder (0.61.0)

0.61.0 (latest) 0.59.0 0.56.0 0.55.0 0.53.0 0.51.0 0.50.0 0.48.0 0.46.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.38.0 0.36.0 0.35.0 0.32.0 0.31.0 0.30.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface SimulatedFindingOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsSourceProperties(String key)

    public abstract boolean containsSourceProperties(String key)

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

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getCategory()

    public abstract String getCategory()

The additional taxonomy group within findings from a given source. For
example, `XSS_FLASH_INJECTION`. This field is immutable after creation
time.

`string category = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The category. |

### getCategoryBytes()

    public abstract ByteString getCategoryBytes()

The additional taxonomy group within findings from a given source. For
example, `XSS_FLASH_INJECTION`. This field is immutable after creation
time.

`string category = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for category. |

### getEventTime()

    public abstract Timestamp getEventTime()

The time the finding was first detected. If an existing finding is updated,
then this is the time the update occurred. If the finding is later
resolved, then this time reflects when the finding was resolved.

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.

The event time must not be set to a value greater than the current
timestamp.

`.google.protobuf.Timestamp event_time = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The eventTime. |

### getEventTimeOrBuilder()

    public abstract TimestampOrBuilder getEventTimeOrBuilder()

The time the finding was first detected. If an existing finding is updated,
then this is the time the update occurred. If the finding is later
resolved, then this time reflects when the finding was resolved.

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.

The event time must not be set to a value greater than the current
timestamp.

`.google.protobuf.Timestamp event_time = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getFindingClass()

    public abstract SimulatedFinding.FindingClass getFindingClass()

The class of the finding.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-securitycentermanagement/latest/com.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass` | The findingClass. |

### getFindingClassValue()

    public abstract int getFindingClassValue()

The class of the finding.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for findingClass. |

### getName()

    public abstract String getName()

Identifier. The [relative resource name](https://google.aip.dev/122) of the
finding, in one of the following formats:

- `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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Identifier. The [relative resource name](https://google.aip.dev/122) of the
finding, in one of the following formats:

- `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** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getParent()

    public abstract String getParent()

The [relative resource name](https://google.aip.dev/122) of the source the
finding belongs to. For example,
`organizations/{organization_id}/sources/{source_id}`. This field is
immutable after creation time.

`string parent = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The parent. |

### getParentBytes()

    public abstract ByteString getParentBytes()

The [relative resource name](https://google.aip.dev/122) of the source the
finding belongs to. For example,
`organizations/{organization_id}/sources/{source_id}`. This field is
immutable after creation time.

`string parent = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for parent. |

### getResourceName()

    public abstract String getResourceName()

For findings on Google Cloud resources, the
[full resource name](https://google.aip.dev/122#full-resource-names) of the
Google Cloud resource this finding is for. When the finding is for a
non-Google Cloud resource, the value can be a customer or partner defined
string. This field is immutable after creation time.

`string resource_name = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The resourceName. |

### getResourceNameBytes()

    public abstract ByteString getResourceNameBytes()

For findings on Google Cloud resources, the
[full resource name](https://google.aip.dev/122#full-resource-names) of the
Google Cloud resource this finding is for. When the finding is for a
non-Google Cloud resource, the value can be a customer or partner defined
string. This field is immutable after creation time.

`string resource_name = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for resourceName. |

### getSeverity()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-securitycentermanagement/latest/com.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity` | The severity. |

### getSeverityValue()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for severity. |

### getSourceProperties() (deprecated)

    public abstract Map<String,Value> getSourceProperties()

Use [#getSourcePropertiesMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-securitycentermanagement/latest/com.google.cloud.securitycentermanagement.v1.SimulatedFindingOrBuilder#com_google_cloud_securitycentermanagement_v1_SimulatedFindingOrBuilder_getSourcePropertiesMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html>` |   |

### getSourcePropertiesCount()

    public abstract int getSourcePropertiesCount()

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getSourcePropertiesMap()

    public abstract Map<String,Value> getSourcePropertiesMap()

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html>` |   |

### getSourcePropertiesOrDefault(String key, Value defaultValue)

    public abstract Value getSourcePropertiesOrDefault(String key, Value defaultValue)

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

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html` |   |

### getSourcePropertiesOrThrow(String key)

    public abstract Value getSourcePropertiesOrThrow(String key)

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

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html` |   |

### getState()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-securitycentermanagement/latest/com.google.cloud.securitycentermanagement.v1.SimulatedFinding.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Output only. The state of the finding.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### hasEventTime()

    public abstract boolean hasEventTime()

The time the finding was first detected. If an existing finding is updated,
then this is the time the update occurred. If the finding is later
resolved, then this time reflects when the finding was resolved.

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.

The event time must not be set to a value greater than the current
timestamp.

`.google.protobuf.Timestamp event_time = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the eventTime field is set. |