Class ScanConfig.Schedule.Builder (2.39.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.v1alpha.ScanConfig.Schedule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ScanConfig.Schedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ScanConfig.Schedule.Builder
Overrides

build()

public ScanConfig.Schedule build()
Returns
TypeDescription
ScanConfig.Schedule

buildPartial()

public ScanConfig.Schedule buildPartial()
Returns
TypeDescription
ScanConfig.Schedule

clear()

public ScanConfig.Schedule.Builder clear()
Returns
TypeDescription
ScanConfig.Schedule.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ScanConfig.Schedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ScanConfig.Schedule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ScanConfig.Schedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ScanConfig.Schedule.Builder

clone()

public ScanConfig.Schedule.Builder clone()
Returns
TypeDescription
ScanConfig.Schedule.Builder
Overrides

getDefaultInstanceForType()

public ScanConfig.Schedule getDefaultInstanceForType()
Returns
TypeDescription
ScanConfig.Schedule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the scheduleTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ScanConfig.Schedule other)

public ScanConfig.Schedule.Builder mergeFrom(ScanConfig.Schedule other)
Parameter
NameDescription
otherScanConfig.Schedule
Returns
TypeDescription
ScanConfig.Schedule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ScanConfig.Schedule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanConfig.Schedule.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ScanConfig.Schedule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ScanConfig.Schedule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScanConfig.Schedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ScanConfig.Schedule.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ScanConfig.Schedule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The intervalDurationDays to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ScanConfig.Schedule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ScanConfig.Schedule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ScanConfig.Schedule.Builder
Overrides