Class Schedule.Builder

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

The schedule of a recurring or one time event. The event's time span is specified by start_time and end_time. If the scheduled event's timespan is larger than the cron_spec + cron_job_duration, the event will be recurring. If only cron_spec + cron_job_duration are specified, the event is effective starting at the local time specified by cron_spec, and is recurring. start_time|-------[cron job]-------[cron job]-------[cron job]---|end_time cron job: cron spec start time + duration

Protobuf type google.cloud.gaming.v1beta.Schedule

Implements

ScheduleOrBuilder

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Schedule build()
Returns
TypeDescription
Schedule

buildPartial()

public Schedule buildPartial()
Returns
TypeDescription
Schedule

clear()

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

clearCronJobDuration()

public Schedule.Builder clearCronJobDuration()

The duration for the cron job event. The duration of the event is effective after the cron job's start time.

.google.protobuf.Duration cron_job_duration = 3;

Returns
TypeDescription
Schedule.Builder

clearCronSpec()

public Schedule.Builder clearCronSpec()

The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as defined by the realm.

string cron_spec = 4;

Returns
TypeDescription
Schedule.Builder

This builder for chaining.

clearEndTime()

public Schedule.Builder clearEndTime()

The end time of the event.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Schedule.Builder

clearField(Descriptors.FieldDescriptor field)

public Schedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Schedule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Schedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Schedule.Builder
Overrides

clearStartTime()

public Schedule.Builder clearStartTime()

The start time of the event.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Schedule.Builder

clone()

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

getCronJobDuration()

public Duration getCronJobDuration()

The duration for the cron job event. The duration of the event is effective after the cron job's start time.

.google.protobuf.Duration cron_job_duration = 3;

Returns
TypeDescription
Duration

The cronJobDuration.

getCronJobDurationBuilder()

public Duration.Builder getCronJobDurationBuilder()

The duration for the cron job event. The duration of the event is effective after the cron job's start time.

.google.protobuf.Duration cron_job_duration = 3;

Returns
TypeDescription
Builder

getCronJobDurationOrBuilder()

public DurationOrBuilder getCronJobDurationOrBuilder()

The duration for the cron job event. The duration of the event is effective after the cron job's start time.

.google.protobuf.Duration cron_job_duration = 3;

Returns
TypeDescription
DurationOrBuilder

getCronSpec()

public String getCronSpec()

The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as defined by the realm.

string cron_spec = 4;

Returns
TypeDescription
String

The cronSpec.

getCronSpecBytes()

public ByteString getCronSpecBytes()

The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as defined by the realm.

string cron_spec = 4;

Returns
TypeDescription
ByteString

The bytes for cronSpec.

getDefaultInstanceForType()

public Schedule getDefaultInstanceForType()
Returns
TypeDescription
Schedule

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

The end time of the event.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The end time of the event.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The end time of the event.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

The start time of the event.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The start time of the event.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The start time of the event.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
TimestampOrBuilder

hasCronJobDuration()

public boolean hasCronJobDuration()

The duration for the cron job event. The duration of the event is effective after the cron job's start time.

.google.protobuf.Duration cron_job_duration = 3;

Returns
TypeDescription
boolean

Whether the cronJobDuration field is set.

hasEndTime()

public boolean hasEndTime()

The end time of the event.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

The start time of the event.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCronJobDuration(Duration value)

public Schedule.Builder mergeCronJobDuration(Duration value)

The duration for the cron job event. The duration of the event is effective after the cron job's start time.

.google.protobuf.Duration cron_job_duration = 3;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Schedule.Builder

mergeEndTime(Timestamp value)

public Schedule.Builder mergeEndTime(Timestamp value)

The end time of the event.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Schedule.Builder

mergeFrom(Schedule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Schedule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Schedule.Builder
Overrides

mergeStartTime(Timestamp value)

public Schedule.Builder mergeStartTime(Timestamp value)

The start time of the event.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Schedule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCronJobDuration(Duration value)

public Schedule.Builder setCronJobDuration(Duration value)

The duration for the cron job event. The duration of the event is effective after the cron job's start time.

.google.protobuf.Duration cron_job_duration = 3;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Schedule.Builder

setCronJobDuration(Duration.Builder builderForValue)

public Schedule.Builder setCronJobDuration(Duration.Builder builderForValue)

The duration for the cron job event. The duration of the event is effective after the cron job's start time.

.google.protobuf.Duration cron_job_duration = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Schedule.Builder

setCronSpec(String value)

public Schedule.Builder setCronSpec(String value)

The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as defined by the realm.

string cron_spec = 4;

Parameter
NameDescription
valueString

The cronSpec to set.

Returns
TypeDescription
Schedule.Builder

This builder for chaining.

setCronSpecBytes(ByteString value)

public Schedule.Builder setCronSpecBytes(ByteString value)

The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as defined by the realm.

string cron_spec = 4;

Parameter
NameDescription
valueByteString

The bytes for cronSpec to set.

Returns
TypeDescription
Schedule.Builder

This builder for chaining.

setEndTime(Timestamp value)

public Schedule.Builder setEndTime(Timestamp value)

The end time of the event.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Schedule.Builder

setEndTime(Timestamp.Builder builderForValue)

public Schedule.Builder setEndTime(Timestamp.Builder builderForValue)

The end time of the event.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Schedule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Schedule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Schedule.Builder
Overrides

setStartTime(Timestamp value)

public Schedule.Builder setStartTime(Timestamp value)

The start time of the event.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Schedule.Builder

setStartTime(Timestamp.Builder builderForValue)

public Schedule.Builder setStartTime(Timestamp.Builder builderForValue)

The start time of the event.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Schedule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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