# Interface TargetResourceConfigOrBuilder (0.20.0)

0.20.0 (latest) 0.18.0 0.15.0 0.14.0 0.12.0 0.10.0 0.9.0 0.8.0 0.7.0 0.5.0 0.3.0 0.2.0 0.1.0

    public interface TargetResourceConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getExistingTargetResource()

    public abstract String getExistingTargetResource()

Optional. The resource hierarchy node, in one of the following formats:

- `organizations/{organizationID}`
- `folders/{folderID}`
- `projects/{projectID}`

`string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getExistingTargetResourceBytes()

    public abstract ByteString getExistingTargetResourceBytes()

Optional. The resource hierarchy node, in one of the following formats:

- `organizations/{organizationID}`
- `folders/{folderID}`
- `projects/{projectID}`

`string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getResourceConfigCase()

    public abstract TargetResourceConfig.ResourceConfigCase getResourceConfigCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/com.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig.ResourceConfigCase` |   |

### getTargetResourceCreationConfig()

    public abstract TargetResourceCreationConfig getTargetResourceCreationConfig()

Optional. The details that are required to create a resource and use
that resource as the target resource for deployment.

`
.google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfig target_resource_creation_config = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/com.google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfig` | The targetResourceCreationConfig. |

### getTargetResourceCreationConfigOrBuilder()

    public abstract TargetResourceCreationConfigOrBuilder getTargetResourceCreationConfigOrBuilder()

Optional. The details that are required to create a resource and use
that resource as the target resource for deployment.

`
.google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfig target_resource_creation_config = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/com.google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfigOrBuilder` |   |

### hasExistingTargetResource()

    public abstract boolean hasExistingTargetResource()

Optional. The resource hierarchy node, in one of the following formats:

- `organizations/{organizationID}`
- `folders/{folderID}`
- `projects/{projectID}`

`string existing_target_resource = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasTargetResourceCreationConfig()

    public abstract boolean hasTargetResourceCreationConfig()

Optional. The details that are required to create a resource and use
that resource as the target resource for deployment.

`
.google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfig target_resource_creation_config = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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