public static final class EnrollResourceRequest.Builder extends GeneratedMessage.Builder<EnrollResourceRequest.Builder> implements EnrollResourceRequestOrBuilderRequest message to subscribe the Audit Manager service for given resource.
Protobuf type google.cloud.auditmanager.v1.EnrollResourceRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > EnrollResourceRequest.BuilderImplements
EnrollResourceRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDestinations(Iterable<? extends EnrollResourceRequest.EligibleDestination> values)
public EnrollResourceRequest.Builder addAllDestinations(Iterable<? extends EnrollResourceRequest.EligibleDestination> values)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 |
values |
Iterable<? extends com.google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination> |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
|
addDestinations(EnrollResourceRequest.EligibleDestination value)
public EnrollResourceRequest.Builder addDestinations(EnrollResourceRequest.EligibleDestination value)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 |
value |
EnrollResourceRequest.EligibleDestination |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
|
addDestinations(EnrollResourceRequest.EligibleDestination.Builder builderForValue)
public EnrollResourceRequest.Builder addDestinations(EnrollResourceRequest.EligibleDestination.Builder builderForValue)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 |
builderForValue |
EnrollResourceRequest.EligibleDestination.Builder |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
|
addDestinations(int index, EnrollResourceRequest.EligibleDestination value)
public EnrollResourceRequest.Builder addDestinations(int index, EnrollResourceRequest.EligibleDestination value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
EnrollResourceRequest.EligibleDestination |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
|
addDestinations(int index, EnrollResourceRequest.EligibleDestination.Builder builderForValue)
public EnrollResourceRequest.Builder addDestinations(int index, EnrollResourceRequest.EligibleDestination.Builder builderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
EnrollResourceRequest.EligibleDestination.Builder |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
|
addDestinationsBuilder()
public EnrollResourceRequest.EligibleDestination.Builder addDestinationsBuilder()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 |
EnrollResourceRequest.EligibleDestination.Builder |
|
addDestinationsBuilder(int index)
public EnrollResourceRequest.EligibleDestination.Builder addDestinationsBuilder(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 |
int |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.EligibleDestination.Builder |
|
build()
public EnrollResourceRequest build()| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest |
|
buildPartial()
public EnrollResourceRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest |
|
clear()
public EnrollResourceRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
|
clearDestinations()
public EnrollResourceRequest.Builder clearDestinations()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 |
EnrollResourceRequest.Builder |
|
clearScope()
public EnrollResourceRequest.Builder clearScope()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 |
EnrollResourceRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public EnrollResourceRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDestinations(int index)
public 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 |
int |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.EligibleDestination |
|
getDestinationsBuilder(int index)
public EnrollResourceRequest.EligibleDestination.Builder getDestinationsBuilder(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 |
int |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.EligibleDestination.Builder |
|
getDestinationsBuilderList()
public List<EnrollResourceRequest.EligibleDestination.Builder> getDestinationsBuilderList()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 |
List<Builder> |
|
getDestinationsCount()
public 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 |
int |
|
getDestinationsList()
public 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 |
List<EligibleDestination> |
|
getDestinationsOrBuilder(int index)
public 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 |
int |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.EligibleDestinationOrBuilder |
|
getDestinationsOrBuilderList()
public 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 |
List<? extends com.google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestinationOrBuilder> |
|
getScope()
public 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 |
String |
The scope. |
getScopeBytes()
public 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 |
ByteString |
The bytes for scope. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(EnrollResourceRequest other)
public EnrollResourceRequest.Builder mergeFrom(EnrollResourceRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
EnrollResourceRequest |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EnrollResourceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public EnrollResourceRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
|
removeDestinations(int index)
public EnrollResourceRequest.Builder removeDestinations(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 |
int |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
|
setDestinations(int index, EnrollResourceRequest.EligibleDestination value)
public EnrollResourceRequest.Builder setDestinations(int index, EnrollResourceRequest.EligibleDestination value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
EnrollResourceRequest.EligibleDestination |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
|
setDestinations(int index, EnrollResourceRequest.EligibleDestination.Builder builderForValue)
public EnrollResourceRequest.Builder setDestinations(int index, EnrollResourceRequest.EligibleDestination.Builder builderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
EnrollResourceRequest.EligibleDestination.Builder |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
|
setScope(String value)
public EnrollResourceRequest.Builder setScope(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe scope to set. |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
This builder for chaining. |
setScopeBytes(ByteString value)
public EnrollResourceRequest.Builder setScopeBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for scope to set. |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.Builder |
This builder for chaining. |