Class GenerateAuditScopeReportRequest.Builder (0.21.0)

public static final class GenerateAuditScopeReportRequest.Builder extends GeneratedMessage.Builder<GenerateAuditScopeReportRequest.Builder> implements GenerateAuditScopeReportRequestOrBuilder

Request message for GenerateAuditScopeReport.

Protobuf type google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public GenerateAuditScopeReportRequest build()
Returns
Type Description
GenerateAuditScopeReportRequest

buildPartial()

public GenerateAuditScopeReportRequest buildPartial()
Returns
Type Description
GenerateAuditScopeReportRequest

clear()

public GenerateAuditScopeReportRequest.Builder clear()
Returns
Type Description
GenerateAuditScopeReportRequest.Builder
Overrides

clearComplianceFramework()

public GenerateAuditScopeReportRequest.Builder clearComplianceFramework()

Required. Framework (set of controls) that the audit scope report is generated against. For example, NIST_800_53.

string compliance_framework = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

clearComplianceStandard() (deprecated)

public GenerateAuditScopeReportRequest.Builder clearComplianceStandard()

Deprecated. google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421

Optional. Deprecated. The standard (industry or regulatory requirements) that the audit scope report is run against.

Use the compliance_framework field instead.

string compliance_standard = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

clearParameterOverrides()

public GenerateAuditScopeReportRequest.Builder clearParameterOverrides()
Returns
Type Description
GenerateAuditScopeReportRequest.Builder

clearReportFormat()

public GenerateAuditScopeReportRequest.Builder clearReportFormat()

Required. Format for the audit scope report.

.google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.AuditScopeReportFormat report_format = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

clearScope()

public GenerateAuditScopeReportRequest.Builder clearScope()

Required. Project or folder that the audit scope report is generated for, in one of the following formats:

  • projects/{project}/locations/{location}
  • folders/{folder}/locations/{location}
  • organizations/{organization}/locations/{location}

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

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

clearValidateOnly()

public GenerateAuditScopeReportRequest.Builder clearValidateOnly()

Optional. If true, only validates the request and does not generate the audit scope report. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase.

Use this field for the following purposes:

  • Infrastructure as Code (IaC): Allow tools like Terraform to run dry-run mutations (e.g., terraform plan) without creating real resources or incurring costs.
  • User Interface Validation: Enable real-time form and permission validation in custom UIs before submitting requests.
  • CI/CD & Automation: Test your scripts, permissions, and parameters safely without consuming resource quotas.

bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

containsParameterOverrides(String key)

public boolean containsParameterOverrides(String key)

Optional. Maps dynamic parameter overrides by Cloud Control resource name at execution time. For example, {"organizations/123/locations/global/cloudControls/control-1": {parameters: [...]}}

map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getComplianceFramework()

public String getComplianceFramework()

Required. Framework (set of controls) that the audit scope report is generated against. For example, NIST_800_53.

string compliance_framework = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The complianceFramework.

getComplianceFrameworkBytes()

public ByteString getComplianceFrameworkBytes()

Required. Framework (set of controls) that the audit scope report is generated against. For example, NIST_800_53.

string compliance_framework = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for complianceFramework.

getComplianceStandard() (deprecated)

public String getComplianceStandard()

Deprecated. google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421

Optional. Deprecated. The standard (industry or regulatory requirements) that the audit scope report is run against.

Use the compliance_framework field instead.

string compliance_standard = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The complianceStandard.

getComplianceStandardBytes() (deprecated)

public ByteString getComplianceStandardBytes()

Deprecated. google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421

Optional. Deprecated. The standard (industry or regulatory requirements) that the audit scope report is run against.

Use the compliance_framework field instead.

string compliance_standard = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for complianceStandard.

getDefaultInstanceForType()

public GenerateAuditScopeReportRequest getDefaultInstanceForType()
Returns
Type Description
GenerateAuditScopeReportRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableParameterOverrides() (deprecated)

public Map<String,ParameterOverrides> getMutableParameterOverrides()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ParameterOverrides>

getParameterOverrides() (deprecated)

public Map<String,ParameterOverrides> getParameterOverrides()
Returns
Type Description
Map<String,ParameterOverrides>

getParameterOverridesCount()

public int getParameterOverridesCount()

Optional. Maps dynamic parameter overrides by Cloud Control resource name at execution time. For example, {"organizations/123/locations/global/cloudControls/control-1": {parameters: [...]}}

map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getParameterOverridesMap()

public Map<String,ParameterOverrides> getParameterOverridesMap()

Optional. Maps dynamic parameter overrides by Cloud Control resource name at execution time. For example, {"organizations/123/locations/global/cloudControls/control-1": {parameters: [...]}}

map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,ParameterOverrides>

getParameterOverridesOrDefault(String key, ParameterOverrides defaultValue)

public ParameterOverrides getParameterOverridesOrDefault(String key, ParameterOverrides defaultValue)

Optional. Maps dynamic parameter overrides by Cloud Control resource name at execution time. For example, {"organizations/123/locations/global/cloudControls/control-1": {parameters: [...]}}

map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue ParameterOverrides
Returns
Type Description
ParameterOverrides

getParameterOverridesOrThrow(String key)

public ParameterOverrides getParameterOverridesOrThrow(String key)

Optional. Maps dynamic parameter overrides by Cloud Control resource name at execution time. For example, {"organizations/123/locations/global/cloudControls/control-1": {parameters: [...]}}

map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ParameterOverrides

getReportFormat()

public GenerateAuditScopeReportRequest.AuditScopeReportFormat getReportFormat()

Required. Format for the audit scope report.

.google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.AuditScopeReportFormat report_format = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateAuditScopeReportRequest.AuditScopeReportFormat

The reportFormat.

getReportFormatValue()

public int getReportFormatValue()

Required. Format for the audit scope report.

.google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.AuditScopeReportFormat report_format = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for reportFormat.

getScope()

public String getScope()

Required. Project or folder that the audit scope report is generated for, in one of the following formats:

  • projects/{project}/locations/{location}
  • folders/{folder}/locations/{location}
  • organizations/{organization}/locations/{location}

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

Returns
Type Description
String

The scope.

getScopeBytes()

public ByteString getScopeBytes()

Required. Project or folder that the audit scope report is generated for, in one of the following formats:

  • projects/{project}/locations/{location}
  • folders/{folder}/locations/{location}
  • organizations/{organization}/locations/{location}

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

Returns
Type Description
ByteString

The bytes for scope.

getValidateOnly()

public boolean getValidateOnly()

Optional. If true, only validates the request and does not generate the audit scope report. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase.

Use this field for the following purposes:

  • Infrastructure as Code (IaC): Allow tools like Terraform to run dry-run mutations (e.g., terraform plan) without creating real resources or incurring costs.
  • User Interface Validation: Enable real-time form and permission validation in custom UIs before submitting requests.
  • CI/CD & Automation: Test your scripts, permissions, and parameters safely without consuming resource quotas.

bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateAuditScopeReportRequest other)

public GenerateAuditScopeReportRequest.Builder mergeFrom(GenerateAuditScopeReportRequest other)
Parameter
Name Description
other GenerateAuditScopeReportRequest
Returns
Type Description
GenerateAuditScopeReportRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenerateAuditScopeReportRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateAuditScopeReportRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GenerateAuditScopeReportRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GenerateAuditScopeReportRequest.Builder
Overrides

putAllParameterOverrides(Map<String,ParameterOverrides> values)

public GenerateAuditScopeReportRequest.Builder putAllParameterOverrides(Map<String,ParameterOverrides> values)

Optional. Maps dynamic parameter overrides by Cloud Control resource name at execution time. For example, {"organizations/123/locations/global/cloudControls/control-1": {parameters: [...]}}

map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,ParameterOverrides>
Returns
Type Description
GenerateAuditScopeReportRequest.Builder

putParameterOverrides(String key, ParameterOverrides value)

public GenerateAuditScopeReportRequest.Builder putParameterOverrides(String key, ParameterOverrides value)

Optional. Maps dynamic parameter overrides by Cloud Control resource name at execution time. For example, {"organizations/123/locations/global/cloudControls/control-1": {parameters: [...]}}

map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value ParameterOverrides
Returns
Type Description
GenerateAuditScopeReportRequest.Builder

putParameterOverridesBuilderIfAbsent(String key)

public ParameterOverrides.Builder putParameterOverridesBuilderIfAbsent(String key)

Optional. Maps dynamic parameter overrides by Cloud Control resource name at execution time. For example, {"organizations/123/locations/global/cloudControls/control-1": {parameters: [...]}}

map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ParameterOverrides.Builder

removeParameterOverrides(String key)

public GenerateAuditScopeReportRequest.Builder removeParameterOverrides(String key)

Optional. Maps dynamic parameter overrides by Cloud Control resource name at execution time. For example, {"organizations/123/locations/global/cloudControls/control-1": {parameters: [...]}}

map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
GenerateAuditScopeReportRequest.Builder

setComplianceFramework(String value)

public GenerateAuditScopeReportRequest.Builder setComplianceFramework(String value)

Required. Framework (set of controls) that the audit scope report is generated against. For example, NIST_800_53.

string compliance_framework = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The complianceFramework to set.

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

setComplianceFrameworkBytes(ByteString value)

public GenerateAuditScopeReportRequest.Builder setComplianceFrameworkBytes(ByteString value)

Required. Framework (set of controls) that the audit scope report is generated against. For example, NIST_800_53.

string compliance_framework = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for complianceFramework to set.

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

setComplianceStandard(String value) (deprecated)

public GenerateAuditScopeReportRequest.Builder setComplianceStandard(String value)

Deprecated. google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421

Optional. Deprecated. The standard (industry or regulatory requirements) that the audit scope report is run against.

Use the compliance_framework field instead.

string compliance_standard = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The complianceStandard to set.

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

setComplianceStandardBytes(ByteString value) (deprecated)

public GenerateAuditScopeReportRequest.Builder setComplianceStandardBytes(ByteString value)

Deprecated. google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421

Optional. Deprecated. The standard (industry or regulatory requirements) that the audit scope report is run against.

Use the compliance_framework field instead.

string compliance_standard = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for complianceStandard to set.

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

setReportFormat(GenerateAuditScopeReportRequest.AuditScopeReportFormat value)

public GenerateAuditScopeReportRequest.Builder setReportFormat(GenerateAuditScopeReportRequest.AuditScopeReportFormat value)

Required. Format for the audit scope report.

.google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.AuditScopeReportFormat report_format = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GenerateAuditScopeReportRequest.AuditScopeReportFormat

The reportFormat to set.

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

setReportFormatValue(int value)

public GenerateAuditScopeReportRequest.Builder setReportFormatValue(int value)

Required. Format for the audit scope report.

.google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.AuditScopeReportFormat report_format = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

setScope(String value)

public GenerateAuditScopeReportRequest.Builder setScope(String value)

Required. Project or folder that the audit scope report is generated for, in one of the following formats:

  • projects/{project}/locations/{location}
  • folders/{folder}/locations/{location}
  • organizations/{organization}/locations/{location}

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

Parameter
Name Description
value String

The scope to set.

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

setScopeBytes(ByteString value)

public GenerateAuditScopeReportRequest.Builder setScopeBytes(ByteString value)

Required. Project or folder that the audit scope report is generated for, in one of the following formats:

  • projects/{project}/locations/{location}
  • folders/{folder}/locations/{location}
  • organizations/{organization}/locations/{location}

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

Parameter
Name Description
value ByteString

The bytes for scope to set.

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.

setValidateOnly(boolean value)

public GenerateAuditScopeReportRequest.Builder setValidateOnly(boolean value)

Optional. If true, only validates the request and does not generate the audit scope report. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase.

Use this field for the following purposes:

  • Infrastructure as Code (IaC): Allow tools like Terraform to run dry-run mutations (e.g., terraform plan) without creating real resources or incurring costs.
  • User Interface Validation: Enable real-time form and permission validation in custom UIs before submitting requests.
  • CI/CD & Automation: Test your scripts, permissions, and parameters safely without consuming resource quotas.

bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
GenerateAuditScopeReportRequest.Builder

This builder for chaining.