public static final class CreateAuditScheduleRequest.Builder extends GeneratedMessage.Builder<CreateAuditScheduleRequest.Builder> implements CreateAuditScheduleRequestOrBuilderRequest message for CreateAuditSchedule.
Protobuf type google.cloud.auditmanager.v1.CreateAuditScheduleRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateAuditScheduleRequest.BuilderImplements
CreateAuditScheduleRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateAuditScheduleRequest build()| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest |
|
buildPartial()
public CreateAuditScheduleRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest |
|
clear()
public CreateAuditScheduleRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
|
clearAuditSchedule()
public CreateAuditScheduleRequest.Builder clearAuditSchedule()Required. Audit schedule to create.
.google.cloud.auditmanager.v1.AuditSchedule audit_schedule = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
|
clearAuditScheduleId()
public CreateAuditScheduleRequest.Builder clearAuditScheduleId()Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name.
string audit_schedule_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
This builder for chaining. |
clearParent()
public CreateAuditScheduleRequest.Builder clearParent()Required. Project or folder that this audit schedule is for, in one of the following formats:
projects/{project}/locations/{location}folders/{folder}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
This builder for chaining. |
clearValidateOnly()
public CreateAuditScheduleRequest.Builder clearValidateOnly() Optional. If true, only validates the request and does not create the
audit schedule. 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 = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
This builder for chaining. |
getAuditSchedule()
public AuditSchedule getAuditSchedule()Required. Audit schedule to create.
.google.cloud.auditmanager.v1.AuditSchedule audit_schedule = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AuditSchedule |
The auditSchedule. |
getAuditScheduleBuilder()
public AuditSchedule.Builder getAuditScheduleBuilder()Required. Audit schedule to create.
.google.cloud.auditmanager.v1.AuditSchedule audit_schedule = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AuditSchedule.Builder |
|
getAuditScheduleId()
public String getAuditScheduleId()Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name.
string audit_schedule_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The auditScheduleId. |
getAuditScheduleIdBytes()
public ByteString getAuditScheduleIdBytes()Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name.
string audit_schedule_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for auditScheduleId. |
getAuditScheduleOrBuilder()
public AuditScheduleOrBuilder getAuditScheduleOrBuilder()Required. Audit schedule to create.
.google.cloud.auditmanager.v1.AuditSchedule audit_schedule = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AuditScheduleOrBuilder |
|
getDefaultInstanceForType()
public CreateAuditScheduleRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent()Required. Project or folder that this audit schedule is for, in one of the following formats:
projects/{project}/locations/{location}folders/{folder}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()Required. Project or folder that this audit schedule is for, in one of the following formats:
projects/{project}/locations/{location}folders/{folder}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getValidateOnly()
public boolean getValidateOnly() Optional. If true, only validates the request and does not create the
audit schedule. 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 = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The validateOnly. |
hasAuditSchedule()
public boolean hasAuditSchedule()Required. Audit schedule to create.
.google.cloud.auditmanager.v1.AuditSchedule audit_schedule = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the auditSchedule field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAuditSchedule(AuditSchedule value)
public CreateAuditScheduleRequest.Builder mergeAuditSchedule(AuditSchedule value)Required. Audit schedule to create.
.google.cloud.auditmanager.v1.AuditSchedule audit_schedule = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AuditSchedule |
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
|
mergeFrom(CreateAuditScheduleRequest other)
public CreateAuditScheduleRequest.Builder mergeFrom(CreateAuditScheduleRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateAuditScheduleRequest |
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateAuditScheduleRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateAuditScheduleRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
|
setAuditSchedule(AuditSchedule value)
public CreateAuditScheduleRequest.Builder setAuditSchedule(AuditSchedule value)Required. Audit schedule to create.
.google.cloud.auditmanager.v1.AuditSchedule audit_schedule = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AuditSchedule |
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
|
setAuditSchedule(AuditSchedule.Builder builderForValue)
public CreateAuditScheduleRequest.Builder setAuditSchedule(AuditSchedule.Builder builderForValue)Required. Audit schedule to create.
.google.cloud.auditmanager.v1.AuditSchedule audit_schedule = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AuditSchedule.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
|
setAuditScheduleId(String value)
public CreateAuditScheduleRequest.Builder setAuditScheduleId(String value)Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name.
string audit_schedule_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe auditScheduleId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
This builder for chaining. |
setAuditScheduleIdBytes(ByteString value)
public CreateAuditScheduleRequest.Builder setAuditScheduleIdBytes(ByteString value)Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name.
string audit_schedule_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for auditScheduleId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
This builder for chaining. |
setParent(String value)
public CreateAuditScheduleRequest.Builder setParent(String value)Required. Project or folder that this audit schedule is for, in one of the following formats:
projects/{project}/locations/{location}folders/{folder}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateAuditScheduleRequest.Builder setParentBytes(ByteString value)Required. Project or folder that this audit schedule is for, in one of the following formats:
projects/{project}/locations/{location}folders/{folder}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
This builder for chaining. |
setValidateOnly(boolean value)
public CreateAuditScheduleRequest.Builder setValidateOnly(boolean value) Optional. If true, only validates the request and does not create the
audit schedule. 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 = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe validateOnly to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAuditScheduleRequest.Builder |
This builder for chaining. |