Class ScheduledCronTask.Builder (0.3.0)

public static final class ScheduledCronTask.Builder extends GeneratedMessage.Builder<ScheduledCronTask.Builder> implements ScheduledCronTaskOrBuilder

Information about a scheduled cron task.

Protobuf type google.backstory.ScheduledCronTask

Static Methods

getDescriptor()

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

Methods

build()

public ScheduledCronTask build()
Returns
Type Description
ScheduledCronTask

buildPartial()

public ScheduledCronTask buildPartial()
Returns
Type Description
ScheduledCronTask

clear()

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

clearAuthor()

public ScheduledCronTask.Builder clearAuthor()

The author or creator of the task.

string author = 7;

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

clearComment()

public ScheduledCronTask.Builder clearComment()

A comment or description for the task.

string comment = 6;

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

clearEvent()

public ScheduledCronTask.Builder clearEvent()

Crontab special string or event (e.g., "@reboot", "@daily").

string event = 8;

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

clearHour()

public ScheduledCronTask.Builder clearHour()

Crontab hour field. Value is an integer between 0 and 23, a range or list of values (e.g., "0-6", "/2", "1,2"), or an asterisk () to indicate first-last hours.

string hour = 2;

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

clearMinute()

public ScheduledCronTask.Builder clearMinute()

Crontab minute field. Value is an integer between 0 and 59 and can also be a range or list of values (e.g., "0-59", "0-59/5", "0,15,30,45") and it // can also be an asterisk (*) to indicate first-last minutes. More on crontab format can be found here: https://www.linux.org/docs/man5/crontab.html

string minute = 1;

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

clearMonth()

public ScheduledCronTask.Builder clearMonth()

Crontab month field. Value is an integer between 1 and 12 or a 3-letter name (e.g., "Jan"), a range or list of values (e.g., "1-3", "/2", "1,6"), or an asterisk () to indicate first-last months.

string month = 4;

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

clearMonthDay()

public ScheduledCronTask.Builder clearMonthDay()

Crontab day of month field. Value is an integer between 1 and 31, a range or list of values (e.g., "1-7", "1-31/7", "1,15"), or an asterisk (*) to indicate first-last days of month.

string month_day = 3;

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

clearPath()

public ScheduledCronTask.Builder clearPath()

The PATH environment variable defined in the crontab file.

string path = 9;

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

clearWeekDay()

public ScheduledCronTask.Builder clearWeekDay()

Crontab day of week field. Value is an integer between 0 and 7 (0 or 7 is Sunday) or a 3-letter name (e.g., "Fri"), a range or list of values (e.g., "1-5", "0,6"), or an asterisk (*) to indicate first-last days of week.

string week_day = 5;

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

getAuthor()

public String getAuthor()

The author or creator of the task.

string author = 7;

Returns
Type Description
String

The author.

getAuthorBytes()

public ByteString getAuthorBytes()

The author or creator of the task.

string author = 7;

Returns
Type Description
ByteString

The bytes for author.

getComment()

public String getComment()

A comment or description for the task.

string comment = 6;

Returns
Type Description
String

The comment.

getCommentBytes()

public ByteString getCommentBytes()

A comment or description for the task.

string comment = 6;

Returns
Type Description
ByteString

The bytes for comment.

getDefaultInstanceForType()

public ScheduledCronTask getDefaultInstanceForType()
Returns
Type Description
ScheduledCronTask

getDescriptorForType()

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

getEvent()

public String getEvent()

Crontab special string or event (e.g., "@reboot", "@daily").

string event = 8;

Returns
Type Description
String

The event.

getEventBytes()

public ByteString getEventBytes()

Crontab special string or event (e.g., "@reboot", "@daily").

string event = 8;

Returns
Type Description
ByteString

The bytes for event.

getHour()

public String getHour()

Crontab hour field. Value is an integer between 0 and 23, a range or list of values (e.g., "0-6", "/2", "1,2"), or an asterisk () to indicate first-last hours.

string hour = 2;

Returns
Type Description
String

The hour.

getHourBytes()

public ByteString getHourBytes()

Crontab hour field. Value is an integer between 0 and 23, a range or list of values (e.g., "0-6", "/2", "1,2"), or an asterisk () to indicate first-last hours.

string hour = 2;

Returns
Type Description
ByteString

The bytes for hour.

getMinute()

public String getMinute()

Crontab minute field. Value is an integer between 0 and 59 and can also be a range or list of values (e.g., "0-59", "0-59/5", "0,15,30,45") and it // can also be an asterisk (*) to indicate first-last minutes. More on crontab format can be found here: https://www.linux.org/docs/man5/crontab.html

string minute = 1;

Returns
Type Description
String

The minute.

getMinuteBytes()

public ByteString getMinuteBytes()

Crontab minute field. Value is an integer between 0 and 59 and can also be a range or list of values (e.g., "0-59", "0-59/5", "0,15,30,45") and it // can also be an asterisk (*) to indicate first-last minutes. More on crontab format can be found here: https://www.linux.org/docs/man5/crontab.html

string minute = 1;

Returns
Type Description
ByteString

The bytes for minute.

getMonth()

public String getMonth()

Crontab month field. Value is an integer between 1 and 12 or a 3-letter name (e.g., "Jan"), a range or list of values (e.g., "1-3", "/2", "1,6"), or an asterisk () to indicate first-last months.

string month = 4;

Returns
Type Description
String

The month.

getMonthBytes()

public ByteString getMonthBytes()

Crontab month field. Value is an integer between 1 and 12 or a 3-letter name (e.g., "Jan"), a range or list of values (e.g., "1-3", "/2", "1,6"), or an asterisk () to indicate first-last months.

string month = 4;

Returns
Type Description
ByteString

The bytes for month.

getMonthDay()

public String getMonthDay()

Crontab day of month field. Value is an integer between 1 and 31, a range or list of values (e.g., "1-7", "1-31/7", "1,15"), or an asterisk (*) to indicate first-last days of month.

string month_day = 3;

Returns
Type Description
String

The monthDay.

getMonthDayBytes()

public ByteString getMonthDayBytes()

Crontab day of month field. Value is an integer between 1 and 31, a range or list of values (e.g., "1-7", "1-31/7", "1,15"), or an asterisk (*) to indicate first-last days of month.

string month_day = 3;

Returns
Type Description
ByteString

The bytes for monthDay.

getPath()

public String getPath()

The PATH environment variable defined in the crontab file.

string path = 9;

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

The PATH environment variable defined in the crontab file.

string path = 9;

Returns
Type Description
ByteString

The bytes for path.

getWeekDay()

public String getWeekDay()

Crontab day of week field. Value is an integer between 0 and 7 (0 or 7 is Sunday) or a 3-letter name (e.g., "Fri"), a range or list of values (e.g., "1-5", "0,6"), or an asterisk (*) to indicate first-last days of week.

string week_day = 5;

Returns
Type Description
String

The weekDay.

getWeekDayBytes()

public ByteString getWeekDayBytes()

Crontab day of week field. Value is an integer between 0 and 7 (0 or 7 is Sunday) or a 3-letter name (e.g., "Fri"), a range or list of values (e.g., "1-5", "0,6"), or an asterisk (*) to indicate first-last days of week.

string week_day = 5;

Returns
Type Description
ByteString

The bytes for weekDay.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ScheduledCronTask other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAuthor(String value)

public ScheduledCronTask.Builder setAuthor(String value)

The author or creator of the task.

string author = 7;

Parameter
Name Description
value String

The author to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setAuthorBytes(ByteString value)

public ScheduledCronTask.Builder setAuthorBytes(ByteString value)

The author or creator of the task.

string author = 7;

Parameter
Name Description
value ByteString

The bytes for author to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setComment(String value)

public ScheduledCronTask.Builder setComment(String value)

A comment or description for the task.

string comment = 6;

Parameter
Name Description
value String

The comment to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setCommentBytes(ByteString value)

public ScheduledCronTask.Builder setCommentBytes(ByteString value)

A comment or description for the task.

string comment = 6;

Parameter
Name Description
value ByteString

The bytes for comment to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setEvent(String value)

public ScheduledCronTask.Builder setEvent(String value)

Crontab special string or event (e.g., "@reboot", "@daily").

string event = 8;

Parameter
Name Description
value String

The event to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setEventBytes(ByteString value)

public ScheduledCronTask.Builder setEventBytes(ByteString value)

Crontab special string or event (e.g., "@reboot", "@daily").

string event = 8;

Parameter
Name Description
value ByteString

The bytes for event to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setHour(String value)

public ScheduledCronTask.Builder setHour(String value)

Crontab hour field. Value is an integer between 0 and 23, a range or list of values (e.g., "0-6", "/2", "1,2"), or an asterisk () to indicate first-last hours.

string hour = 2;

Parameter
Name Description
value String

The hour to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setHourBytes(ByteString value)

public ScheduledCronTask.Builder setHourBytes(ByteString value)

Crontab hour field. Value is an integer between 0 and 23, a range or list of values (e.g., "0-6", "/2", "1,2"), or an asterisk () to indicate first-last hours.

string hour = 2;

Parameter
Name Description
value ByteString

The bytes for hour to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setMinute(String value)

public ScheduledCronTask.Builder setMinute(String value)

Crontab minute field. Value is an integer between 0 and 59 and can also be a range or list of values (e.g., "0-59", "0-59/5", "0,15,30,45") and it // can also be an asterisk (*) to indicate first-last minutes. More on crontab format can be found here: https://www.linux.org/docs/man5/crontab.html

string minute = 1;

Parameter
Name Description
value String

The minute to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setMinuteBytes(ByteString value)

public ScheduledCronTask.Builder setMinuteBytes(ByteString value)

Crontab minute field. Value is an integer between 0 and 59 and can also be a range or list of values (e.g., "0-59", "0-59/5", "0,15,30,45") and it // can also be an asterisk (*) to indicate first-last minutes. More on crontab format can be found here: https://www.linux.org/docs/man5/crontab.html

string minute = 1;

Parameter
Name Description
value ByteString

The bytes for minute to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setMonth(String value)

public ScheduledCronTask.Builder setMonth(String value)

Crontab month field. Value is an integer between 1 and 12 or a 3-letter name (e.g., "Jan"), a range or list of values (e.g., "1-3", "/2", "1,6"), or an asterisk () to indicate first-last months.

string month = 4;

Parameter
Name Description
value String

The month to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setMonthBytes(ByteString value)

public ScheduledCronTask.Builder setMonthBytes(ByteString value)

Crontab month field. Value is an integer between 1 and 12 or a 3-letter name (e.g., "Jan"), a range or list of values (e.g., "1-3", "/2", "1,6"), or an asterisk () to indicate first-last months.

string month = 4;

Parameter
Name Description
value ByteString

The bytes for month to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setMonthDay(String value)

public ScheduledCronTask.Builder setMonthDay(String value)

Crontab day of month field. Value is an integer between 1 and 31, a range or list of values (e.g., "1-7", "1-31/7", "1,15"), or an asterisk (*) to indicate first-last days of month.

string month_day = 3;

Parameter
Name Description
value String

The monthDay to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setMonthDayBytes(ByteString value)

public ScheduledCronTask.Builder setMonthDayBytes(ByteString value)

Crontab day of month field. Value is an integer between 1 and 31, a range or list of values (e.g., "1-7", "1-31/7", "1,15"), or an asterisk (*) to indicate first-last days of month.

string month_day = 3;

Parameter
Name Description
value ByteString

The bytes for monthDay to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setPath(String value)

public ScheduledCronTask.Builder setPath(String value)

The PATH environment variable defined in the crontab file.

string path = 9;

Parameter
Name Description
value String

The path to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setPathBytes(ByteString value)

public ScheduledCronTask.Builder setPathBytes(ByteString value)

The PATH environment variable defined in the crontab file.

string path = 9;

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setWeekDay(String value)

public ScheduledCronTask.Builder setWeekDay(String value)

Crontab day of week field. Value is an integer between 0 and 7 (0 or 7 is Sunday) or a 3-letter name (e.g., "Fri"), a range or list of values (e.g., "1-5", "0,6"), or an asterisk (*) to indicate first-last days of week.

string week_day = 5;

Parameter
Name Description
value String

The weekDay to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.

setWeekDayBytes(ByteString value)

public ScheduledCronTask.Builder setWeekDayBytes(ByteString value)

Crontab day of week field. Value is an integer between 0 and 7 (0 or 7 is Sunday) or a 3-letter name (e.g., "Fri"), a range or list of values (e.g., "1-5", "0,6"), or an asterisk (*) to indicate first-last days of week.

string week_day = 5;

Parameter
Name Description
value ByteString

The bytes for weekDay to set.

Returns
Type Description
ScheduledCronTask.Builder

This builder for chaining.