Class ScanConfig.Schedule.Builder (2.51.0)

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

Scan schedule configuration.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ScanConfig.Schedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ScanConfig.Schedule.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ScanConfig.Schedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public ScanConfig.Schedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ScanConfig.Schedule.Builder
Overrides

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScanConfig.Schedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ScanConfig.Schedule.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ScanConfig.Schedule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ScanConfig.Schedule.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ScanConfig.Schedule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ScanConfig.Schedule.Builder
Overrides

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ScanConfig.Schedule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ScanConfig.Schedule.Builder
Overrides