Class ScheduleConfig.Builder (0.17.0)

public static final class ScheduleConfig.Builder extends GeneratedMessage.Builder<ScheduleConfig.Builder> implements ScheduleConfigOrBuilder

Timing and frequency parameters for recurring audit runs.

Protobuf type google.cloud.auditmanager.v1.ScheduleConfig

Static Methods

getDescriptor()

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

Methods

build()

public ScheduleConfig build()
Returns
Type Description
ScheduleConfig

buildPartial()

public ScheduleConfig buildPartial()
Returns
Type Description
ScheduleConfig

clear()

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

clearEndTime()

public ScheduleConfig.Builder clearEndTime()

Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ScheduleConfig.Builder

clearFrequency()

public ScheduleConfig.Builder clearFrequency()

Required. Frequency of audit runs.

.google.cloud.auditmanager.v1.ScheduleConfig.Frequency frequency = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScheduleConfig.Builder

This builder for chaining.

clearStartTime()

public ScheduleConfig.Builder clearStartTime()

Required. Date and time when the first audit run is triggered. Subsequent runs are based on this time and the chosen frequency.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScheduleConfig.Builder

clearTimeZone()

public ScheduleConfig.Builder clearTimeZone()

Optional. Time zone for the audit schedule in IANA format (for example, America/New_York). The time zone is used to interpret the start_time and the end_time, and to calculate subsequent run dates. If not specified, the time zone default is UTC.

string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ScheduleConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public ScheduleConfig getDefaultInstanceForType()
Returns
Type Description
ScheduleConfig

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getFrequency()

public ScheduleConfig.Frequency getFrequency()

Required. Frequency of audit runs.

.google.cloud.auditmanager.v1.ScheduleConfig.Frequency frequency = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScheduleConfig.Frequency

The frequency.

getFrequencyValue()

public int getFrequencyValue()

Required. Frequency of audit runs.

.google.cloud.auditmanager.v1.ScheduleConfig.Frequency frequency = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for frequency.

getStartTime()

public Timestamp getStartTime()

Required. Date and time when the first audit run is triggered. Subsequent runs are based on this time and the chosen frequency.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Required. Date and time when the first audit run is triggered. Subsequent runs are based on this time and the chosen frequency.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Required. Date and time when the first audit run is triggered. Subsequent runs are based on this time and the chosen frequency.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getTimeZone()

public String getTimeZone()

Optional. Time zone for the audit schedule in IANA format (for example, America/New_York). The time zone is used to interpret the start_time and the end_time, and to calculate subsequent run dates. If not specified, the time zone default is UTC.

string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Optional. Time zone for the audit schedule in IANA format (for example, America/New_York). The time zone is used to interpret the start_time and the end_time, and to calculate subsequent run dates. If not specified, the time zone default is UTC.

string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for timeZone.

hasEndTime()

public boolean hasEndTime()

Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Required. Date and time when the first audit run is triggered. Subsequent runs are based on this time and the chosen frequency.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public ScheduleConfig.Builder mergeEndTime(Timestamp value)

Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
ScheduleConfig.Builder

mergeFrom(ScheduleConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public ScheduleConfig.Builder mergeStartTime(Timestamp value)

Required. Date and time when the first audit run is triggered. Subsequent runs are based on this time and the chosen frequency.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
ScheduleConfig.Builder

setEndTime(Timestamp value)

public ScheduleConfig.Builder setEndTime(Timestamp value)

Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
ScheduleConfig.Builder

setEndTime(Timestamp.Builder builderForValue)

public ScheduleConfig.Builder setEndTime(Timestamp.Builder builderForValue)

Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ScheduleConfig.Builder

setFrequency(ScheduleConfig.Frequency value)

public ScheduleConfig.Builder setFrequency(ScheduleConfig.Frequency value)

Required. Frequency of audit runs.

.google.cloud.auditmanager.v1.ScheduleConfig.Frequency frequency = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ScheduleConfig.Frequency

The frequency to set.

Returns
Type Description
ScheduleConfig.Builder

This builder for chaining.

setFrequencyValue(int value)

public ScheduleConfig.Builder setFrequencyValue(int value)

Required. Frequency of audit runs.

.google.cloud.auditmanager.v1.ScheduleConfig.Frequency frequency = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
ScheduleConfig.Builder

This builder for chaining.

setStartTime(Timestamp value)

public ScheduleConfig.Builder setStartTime(Timestamp value)

Required. Date and time when the first audit run is triggered. Subsequent runs are based on this time and the chosen frequency.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
ScheduleConfig.Builder

setStartTime(Timestamp.Builder builderForValue)

public ScheduleConfig.Builder setStartTime(Timestamp.Builder builderForValue)

Required. Date and time when the first audit run is triggered. Subsequent runs are based on this time and the chosen frequency.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ScheduleConfig.Builder

setTimeZone(String value)

public ScheduleConfig.Builder setTimeZone(String value)

Optional. Time zone for the audit schedule in IANA format (for example, America/New_York). The time zone is used to interpret the start_time and the end_time, and to calculate subsequent run dates. If not specified, the time zone default is UTC.

string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The timeZone to set.

Returns
Type Description
ScheduleConfig.Builder

This builder for chaining.

setTimeZoneBytes(ByteString value)

public ScheduleConfig.Builder setTimeZoneBytes(ByteString value)

Optional. Time zone for the audit schedule in IANA format (for example, America/New_York). The time zone is used to interpret the start_time and the end_time, and to calculate subsequent run dates. If not specified, the time zone default is UTC.

string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for timeZone to set.

Returns
Type Description
ScheduleConfig.Builder

This builder for chaining.