Class ScanConfig.Schedule.Builder (2.85.0)

public static final class ScanConfig.Schedule.Builder extends GeneratedMessage.Builder<ScanConfig.Schedule.Builder> implements ScanConfig.ScheduleOrBuilder

Scan schedule configuration.

Protobuf type google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule

Static Methods

getDescriptor()

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

Methods

build()

public ScanConfig.Schedule build()
Returns
Type Description
ScanConfig.Schedule

buildPartial()

public ScanConfig.Schedule buildPartial()
Returns
Type Description
ScanConfig.Schedule

clear()

public ScanConfig.Schedule.Builder clear()
Returns
Type Description
ScanConfig.Schedule.Builder
Overrides

clearIntervalDurationDays()

public ScanConfig.Schedule.Builder clearIntervalDurationDays()

Required. The duration of time between executions in days.

int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScanConfig.Schedule.Builder

This builder for chaining.

clearScheduleTime()

public ScanConfig.Schedule.Builder clearScheduleTime()

A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.

.google.protobuf.Timestamp schedule_time = 1;

Returns
Type Description
ScanConfig.Schedule.Builder

getDefaultInstanceForType()

public ScanConfig.Schedule getDefaultInstanceForType()
Returns
Type Description
ScanConfig.Schedule

getDescriptorForType()

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

getIntervalDurationDays()

public int getIntervalDurationDays()

Required. The duration of time between executions in days.

int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The intervalDurationDays.

getScheduleTime()

public Timestamp getScheduleTime()

A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.

.google.protobuf.Timestamp schedule_time = 1;

Returns
Type Description
Timestamp

The scheduleTime.

getScheduleTimeBuilder()

public Timestamp.Builder getScheduleTimeBuilder()

A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.

.google.protobuf.Timestamp schedule_time = 1;

Returns
Type Description
Builder

getScheduleTimeOrBuilder()

public TimestampOrBuilder getScheduleTimeOrBuilder()

A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.

.google.protobuf.Timestamp schedule_time = 1;

Returns
Type Description
TimestampOrBuilder

hasScheduleTime()

public boolean hasScheduleTime()

A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.

.google.protobuf.Timestamp schedule_time = 1;

Returns
Type Description
boolean

Whether the scheduleTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ScanConfig.Schedule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeScheduleTime(Timestamp value)

public ScanConfig.Schedule.Builder mergeScheduleTime(Timestamp value)

A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.

.google.protobuf.Timestamp schedule_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
ScanConfig.Schedule.Builder

setIntervalDurationDays(int value)

public ScanConfig.Schedule.Builder setIntervalDurationDays(int value)

Required. The duration of time between executions in days.

int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The intervalDurationDays to set.

Returns
Type Description
ScanConfig.Schedule.Builder

This builder for chaining.

setScheduleTime(Timestamp value)

public ScanConfig.Schedule.Builder setScheduleTime(Timestamp value)

A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.

.google.protobuf.Timestamp schedule_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
ScanConfig.Schedule.Builder

setScheduleTime(Timestamp.Builder builderForValue)

public ScanConfig.Schedule.Builder setScheduleTime(Timestamp.Builder builderForValue)

A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.

.google.protobuf.Timestamp schedule_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ScanConfig.Schedule.Builder