# Interface EnrollResourceRequestOrBuilder (0.9.0)

0.9.0 (latest) 0.6.0 0.5.0 0.3.0 0.1.0

    public interface EnrollResourceRequestOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getDestinations(int index)

    public abstract EnrollResourceRequest.EligibleDestination getDestinations(int index)

Required. List of destination among which customer can choose to upload
their reports during the audit process. While enrolling at a
organization/folder level, customer can choose Cloud storage bucket in any
project. If the audit is triggered at project level using the service agent
at organization/folder level, all the destination options associated with
respective organization/folder level service agent will be available to
auditing projects.

`
repeated .google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/com.google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination` |   |

### getDestinationsCount()

    public abstract int getDestinationsCount()

Required. List of destination among which customer can choose to upload
their reports during the audit process. While enrolling at a
organization/folder level, customer can choose Cloud storage bucket in any
project. If the audit is triggered at project level using the service agent
at organization/folder level, all the destination options associated with
respective organization/folder level service agent will be available to
auditing projects.

`
repeated .google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];
`

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

### getDestinationsList()

    public abstract List<EnrollResourceRequest.EligibleDestination> getDestinationsList()

Required. List of destination among which customer can choose to upload
their reports during the audit process. While enrolling at a
organization/folder level, customer can choose Cloud storage bucket in any
project. If the audit is triggered at project level using the service agent
at organization/folder level, all the destination options associated with
respective organization/folder level service agent will be available to
auditing projects.

`
repeated .google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/com.google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination>` |   |

### getDestinationsOrBuilder(int index)

    public abstract EnrollResourceRequest.EligibleDestinationOrBuilder getDestinationsOrBuilder(int index)

Required. List of destination among which customer can choose to upload
their reports during the audit process. While enrolling at a
organization/folder level, customer can choose Cloud storage bucket in any
project. If the audit is triggered at project level using the service agent
at organization/folder level, all the destination options associated with
respective organization/folder level service agent will be available to
auditing projects.

`
repeated .google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/com.google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestinationOrBuilder` |   |

### getDestinationsOrBuilderList()

    public abstract List<? extends EnrollResourceRequest.EligibleDestinationOrBuilder> getDestinationsOrBuilderList()

Required. List of destination among which customer can choose to upload
their reports during the audit process. While enrolling at a
organization/folder level, customer can choose Cloud storage bucket in any
project. If the audit is triggered at project level using the service agent
at organization/folder level, all the destination options associated with
respective organization/folder level service agent will be available to
auditing projects.

`
repeated .google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestinationOrBuilder>` |   |

### getScope()

    public abstract String getScope()

Required. The resource to be enrolled to the audit manager. Scope format
should be resource_type/resource_identifier Eg:
projects/{project}/locations/{location},
folders/{folder}/locations/{location}
organizations/{organization}/locations/{location}

`string scope = 1 [(.google.api.field_behavior) = REQUIRED];`

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

### getScopeBytes()

    public abstract ByteString getScopeBytes()

Required. The resource to be enrolled to the audit manager. Scope format
should be resource_type/resource_identifier Eg:
projects/{project}/locations/{location},
folders/{folder}/locations/{location}
organizations/{organization}/locations/{location}

`string scope = 1 [(.google.api.field_behavior) = REQUIRED];`

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