Class AuditSchedule.Builder (0.17.0)

public static final class AuditSchedule.Builder extends GeneratedMessage.Builder<AuditSchedule.Builder> implements AuditScheduleOrBuilder

An audit schedule, in one of the following formats:

  • projects/{project}/locations/{location}/auditSchedules/{audit_schedule}
  • folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}

Protobuf type google.cloud.auditmanager.v1.AuditSchedule

Static Methods

getDescriptor()

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

Methods

build()

public AuditSchedule build()
Returns
Type Description
AuditSchedule

buildPartial()

public AuditSchedule buildPartial()
Returns
Type Description
AuditSchedule

clear()

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

clearComplianceFramework()

public AuditSchedule.Builder clearComplianceFramework()

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

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

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

clearCreateTime()

public AuditSchedule.Builder clearCreateTime()

Output only. Timestamp when the schedule was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AuditSchedule.Builder

clearDisplayName()

public AuditSchedule.Builder clearDisplayName()

Optional. Display name for the audit schedule.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

clearErrorMessage()

public AuditSchedule.Builder clearErrorMessage()

Output only. Describes the error if the schedule is in an error state.

string error_message = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

clearGcsUri()

public AuditSchedule.Builder clearGcsUri()

Required. Cloud Storage bucket where Audit Manager can upload the audit report and evidence. The format is gs://{bucket_name}.

string gcs_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

clearLastTriggerTime()

public AuditSchedule.Builder clearLastTriggerTime()

Output only. Timestamp when the audit run was last triggered.

.google.protobuf.Timestamp last_trigger_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AuditSchedule.Builder

clearName()

public AuditSchedule.Builder clearName()

Identifier. Unique identifier for the audit schedule. Format: projects/{project}/locations/{location}/auditSchedules/{audit_schedule} folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

clearNextRunTime()

public AuditSchedule.Builder clearNextRunTime()

Output only. Calculated timestamp for the next scheduled run.

.google.protobuf.Timestamp next_run_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AuditSchedule.Builder

clearReportFormat()

public AuditSchedule.Builder clearReportFormat()

Required. Format for the audit report.

.google.cloud.auditmanager.v1.AuditSchedule.AuditReportFormat report_format = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

clearScheduleConfig()

public AuditSchedule.Builder clearScheduleConfig()

Required. Configuration that defines when and how often audit runs are automatically triggered for this schedule.

.google.cloud.auditmanager.v1.ScheduleConfig schedule_config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuditSchedule.Builder

clearState()

public AuditSchedule.Builder clearState()

Optional. State of the audit schedule. While most states are managed by the system, you can use UpdateAuditSchedule to start, pause, or delete the schedule.

.google.cloud.auditmanager.v1.ScheduleState state = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

clearUpdateTime()

public AuditSchedule.Builder clearUpdateTime()

Output only. Timestamp when the schedule was last updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AuditSchedule.Builder

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 = 4 [(.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 = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for complianceFramework.

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when the schedule was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp when the schedule was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when the schedule was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public AuditSchedule getDefaultInstanceForType()
Returns
Type Description
AuditSchedule

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Optional. Display name for the audit schedule.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Display name for the audit schedule.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getErrorMessage()

public String getErrorMessage()

Output only. Describes the error if the schedule is in an error state.

string error_message = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

Output only. Describes the error if the schedule is in an error state.

string error_message = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for errorMessage.

getGcsUri()

public String getGcsUri()

Required. Cloud Storage bucket where Audit Manager can upload the audit report and evidence. The format is gs://{bucket_name}.

string gcs_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The gcsUri.

getGcsUriBytes()

public ByteString getGcsUriBytes()

Required. Cloud Storage bucket where Audit Manager can upload the audit report and evidence. The format is gs://{bucket_name}.

string gcs_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for gcsUri.

getLastTriggerTime()

public Timestamp getLastTriggerTime()

Output only. Timestamp when the audit run was last triggered.

.google.protobuf.Timestamp last_trigger_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The lastTriggerTime.

getLastTriggerTimeBuilder()

public Timestamp.Builder getLastTriggerTimeBuilder()

Output only. Timestamp when the audit run was last triggered.

.google.protobuf.Timestamp last_trigger_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getLastTriggerTimeOrBuilder()

public TimestampOrBuilder getLastTriggerTimeOrBuilder()

Output only. Timestamp when the audit run was last triggered.

.google.protobuf.Timestamp last_trigger_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getName()

public String getName()

Identifier. Unique identifier for the audit schedule. Format: projects/{project}/locations/{location}/auditSchedules/{audit_schedule} folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Unique identifier for the audit schedule. Format: projects/{project}/locations/{location}/auditSchedules/{audit_schedule} folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getNextRunTime()

public Timestamp getNextRunTime()

Output only. Calculated timestamp for the next scheduled run.

.google.protobuf.Timestamp next_run_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The nextRunTime.

getNextRunTimeBuilder()

public Timestamp.Builder getNextRunTimeBuilder()

Output only. Calculated timestamp for the next scheduled run.

.google.protobuf.Timestamp next_run_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getNextRunTimeOrBuilder()

public TimestampOrBuilder getNextRunTimeOrBuilder()

Output only. Calculated timestamp for the next scheduled run.

.google.protobuf.Timestamp next_run_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getReportFormat()

public AuditSchedule.AuditReportFormat getReportFormat()

Required. Format for the audit report.

.google.cloud.auditmanager.v1.AuditSchedule.AuditReportFormat report_format = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuditSchedule.AuditReportFormat

The reportFormat.

getReportFormatValue()

public int getReportFormatValue()

Required. Format for the audit report.

.google.cloud.auditmanager.v1.AuditSchedule.AuditReportFormat report_format = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for reportFormat.

getScheduleConfig()

public ScheduleConfig getScheduleConfig()

Required. Configuration that defines when and how often audit runs are automatically triggered for this schedule.

.google.cloud.auditmanager.v1.ScheduleConfig schedule_config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScheduleConfig

The scheduleConfig.

getScheduleConfigBuilder()

public ScheduleConfig.Builder getScheduleConfigBuilder()

Required. Configuration that defines when and how often audit runs are automatically triggered for this schedule.

.google.cloud.auditmanager.v1.ScheduleConfig schedule_config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScheduleConfig.Builder

getScheduleConfigOrBuilder()

public ScheduleConfigOrBuilder getScheduleConfigOrBuilder()

Required. Configuration that defines when and how often audit runs are automatically triggered for this schedule.

.google.cloud.auditmanager.v1.ScheduleConfig schedule_config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScheduleConfigOrBuilder

getState()

public ScheduleState getState()

Optional. State of the audit schedule. While most states are managed by the system, you can use UpdateAuditSchedule to start, pause, or delete the schedule.

.google.cloud.auditmanager.v1.ScheduleState state = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ScheduleState

The state.

getStateValue()

public int getStateValue()

Optional. State of the audit schedule. While most states are managed by the system, you can use UpdateAuditSchedule to start, pause, or delete the schedule.

.google.cloud.auditmanager.v1.ScheduleState state = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when the schedule was last updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Timestamp when the schedule was last updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when the schedule was last updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when the schedule was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasLastTriggerTime()

public boolean hasLastTriggerTime()

Output only. Timestamp when the audit run was last triggered.

.google.protobuf.Timestamp last_trigger_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastTriggerTime field is set.

hasNextRunTime()

public boolean hasNextRunTime()

Output only. Calculated timestamp for the next scheduled run.

.google.protobuf.Timestamp next_run_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the nextRunTime field is set.

hasScheduleConfig()

public boolean hasScheduleConfig()

Required. Configuration that defines when and how often audit runs are automatically triggered for this schedule.

.google.cloud.auditmanager.v1.ScheduleConfig schedule_config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the scheduleConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Timestamp when the schedule was last updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public AuditSchedule.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when the schedule was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AuditSchedule.Builder

mergeFrom(AuditSchedule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastTriggerTime(Timestamp value)

public AuditSchedule.Builder mergeLastTriggerTime(Timestamp value)

Output only. Timestamp when the audit run was last triggered.

.google.protobuf.Timestamp last_trigger_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AuditSchedule.Builder

mergeNextRunTime(Timestamp value)

public AuditSchedule.Builder mergeNextRunTime(Timestamp value)

Output only. Calculated timestamp for the next scheduled run.

.google.protobuf.Timestamp next_run_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AuditSchedule.Builder

mergeScheduleConfig(ScheduleConfig value)

public AuditSchedule.Builder mergeScheduleConfig(ScheduleConfig value)

Required. Configuration that defines when and how often audit runs are automatically triggered for this schedule.

.google.cloud.auditmanager.v1.ScheduleConfig schedule_config = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ScheduleConfig
Returns
Type Description
AuditSchedule.Builder

mergeUpdateTime(Timestamp value)

public AuditSchedule.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp when the schedule was last updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AuditSchedule.Builder

setComplianceFramework(String value)

public AuditSchedule.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 = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The complianceFramework to set.

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setComplianceFrameworkBytes(ByteString value)

public AuditSchedule.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 = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for complianceFramework to set.

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public AuditSchedule.Builder setCreateTime(Timestamp value)

Output only. Timestamp when the schedule was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AuditSchedule.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AuditSchedule.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the schedule was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuditSchedule.Builder

setDisplayName(String value)

public AuditSchedule.Builder setDisplayName(String value)

Optional. Display name for the audit schedule.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public AuditSchedule.Builder setDisplayNameBytes(ByteString value)

Optional. Display name for the audit schedule.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setErrorMessage(String value)

public AuditSchedule.Builder setErrorMessage(String value)

Output only. Describes the error if the schedule is in an error state.

string error_message = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The errorMessage to set.

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setErrorMessageBytes(ByteString value)

public AuditSchedule.Builder setErrorMessageBytes(ByteString value)

Output only. Describes the error if the schedule is in an error state.

string error_message = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for errorMessage to set.

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setGcsUri(String value)

public AuditSchedule.Builder setGcsUri(String value)

Required. Cloud Storage bucket where Audit Manager can upload the audit report and evidence. The format is gs://{bucket_name}.

string gcs_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The gcsUri to set.

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setGcsUriBytes(ByteString value)

public AuditSchedule.Builder setGcsUriBytes(ByteString value)

Required. Cloud Storage bucket where Audit Manager can upload the audit report and evidence. The format is gs://{bucket_name}.

string gcs_uri = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for gcsUri to set.

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setLastTriggerTime(Timestamp value)

public AuditSchedule.Builder setLastTriggerTime(Timestamp value)

Output only. Timestamp when the audit run was last triggered.

.google.protobuf.Timestamp last_trigger_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AuditSchedule.Builder

setLastTriggerTime(Timestamp.Builder builderForValue)

public AuditSchedule.Builder setLastTriggerTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the audit run was last triggered.

.google.protobuf.Timestamp last_trigger_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuditSchedule.Builder

setName(String value)

public AuditSchedule.Builder setName(String value)

Identifier. Unique identifier for the audit schedule. Format: projects/{project}/locations/{location}/auditSchedules/{audit_schedule} folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AuditSchedule.Builder setNameBytes(ByteString value)

Identifier. Unique identifier for the audit schedule. Format: projects/{project}/locations/{location}/auditSchedules/{audit_schedule} folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setNextRunTime(Timestamp value)

public AuditSchedule.Builder setNextRunTime(Timestamp value)

Output only. Calculated timestamp for the next scheduled run.

.google.protobuf.Timestamp next_run_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AuditSchedule.Builder

setNextRunTime(Timestamp.Builder builderForValue)

public AuditSchedule.Builder setNextRunTime(Timestamp.Builder builderForValue)

Output only. Calculated timestamp for the next scheduled run.

.google.protobuf.Timestamp next_run_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuditSchedule.Builder

setReportFormat(AuditSchedule.AuditReportFormat value)

public AuditSchedule.Builder setReportFormat(AuditSchedule.AuditReportFormat value)

Required. Format for the audit report.

.google.cloud.auditmanager.v1.AuditSchedule.AuditReportFormat report_format = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AuditSchedule.AuditReportFormat

The reportFormat to set.

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setReportFormatValue(int value)

public AuditSchedule.Builder setReportFormatValue(int value)

Required. Format for the audit report.

.google.cloud.auditmanager.v1.AuditSchedule.AuditReportFormat report_format = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setScheduleConfig(ScheduleConfig value)

public AuditSchedule.Builder setScheduleConfig(ScheduleConfig value)

Required. Configuration that defines when and how often audit runs are automatically triggered for this schedule.

.google.cloud.auditmanager.v1.ScheduleConfig schedule_config = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ScheduleConfig
Returns
Type Description
AuditSchedule.Builder

setScheduleConfig(ScheduleConfig.Builder builderForValue)

public AuditSchedule.Builder setScheduleConfig(ScheduleConfig.Builder builderForValue)

Required. Configuration that defines when and how often audit runs are automatically triggered for this schedule.

.google.cloud.auditmanager.v1.ScheduleConfig schedule_config = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ScheduleConfig.Builder
Returns
Type Description
AuditSchedule.Builder

setState(ScheduleState value)

public AuditSchedule.Builder setState(ScheduleState value)

Optional. State of the audit schedule. While most states are managed by the system, you can use UpdateAuditSchedule to start, pause, or delete the schedule.

.google.cloud.auditmanager.v1.ScheduleState state = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ScheduleState

The state to set.

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setStateValue(int value)

public AuditSchedule.Builder setStateValue(int value)

Optional. State of the audit schedule. While most states are managed by the system, you can use UpdateAuditSchedule to start, pause, or delete the schedule.

.google.cloud.auditmanager.v1.ScheduleState state = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
AuditSchedule.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public AuditSchedule.Builder setUpdateTime(Timestamp value)

Output only. Timestamp when the schedule was last updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AuditSchedule.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public AuditSchedule.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the schedule was last updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuditSchedule.Builder