Class ScheduleSpec
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.temporal.api.schedule.v1.ScheduleSpec
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ScheduleSpecOrBuilder,Serializable
@Generated(value="protoc",
comments="annotations:ScheduleSpec.java.pb.meta")
public final class ScheduleSpec
extends com.google.protobuf.GeneratedMessageV3
implements ScheduleSpecOrBuilder
ScheduleSpec is a complete description of a set of absolute timestamps (possibly infinite) that an action should occur at. The meaning of a ScheduleSpec depends only on its contents and never changes, except that the definition of a time zone can change over time (most commonly, when daylight saving time policy changes for an area). To create a totally self-contained ScheduleSpec, use UTC or include timezone_data. For input, you can provide zero or more of: structured_calendar, calendar, cron_string, interval, and exclude_structured_calendar, and all of them will be used (the schedule will take action at the union of all of their times, minus the ones that match exclude_structured_calendar). On input, calendar and cron_string fields will be compiled into structured_calendar (and maybe interval and timezone_name), so if you Describe a schedule, you'll see only structured_calendar, interval, etc. If a spec has no matching times after the current time, then the schedule will be subject to automatic deletion (after several days).Protobuf type
temporal.api.schedule.v1.ScheduleSpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classScheduleSpec is a complete description of a set of absolute timestamps (possibly infinite) that an action should occur at.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCalendar(int index) Calendar-based specifications of times.intCalendar-based specifications of times.Calendar-based specifications of times.getCalendarOrBuilder(int index) Calendar-based specifications of times.List<? extends CalendarSpecOrBuilder> Calendar-based specifications of times.getCronString(int index) cron_string holds a traditional cron specification as a string.com.google.protobuf.ByteStringgetCronStringBytes(int index) cron_string holds a traditional cron specification as a string.intcron_string holds a traditional cron specification as a string.com.google.protobuf.ProtocolStringListcron_string holds a traditional cron specification as a string.static ScheduleSpecstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampIf end_time is set, any timestamps after end_time will be skipped.com.google.protobuf.TimestampOrBuilderIf end_time is set, any timestamps after end_time will be skipped.getExcludeCalendar(int index) Deprecated.intDeprecated.Deprecated.getExcludeCalendarOrBuilder(int index) Deprecated.List<? extends CalendarSpecOrBuilder> Deprecated.getExcludeStructuredCalendar(int index) repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;intrepeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;getExcludeStructuredCalendarOrBuilder(int index) repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;List<? extends StructuredCalendarSpecOrBuilder> repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;getInterval(int index) Interval-based specifications of times.intInterval-based specifications of times.Interval-based specifications of times.getIntervalOrBuilder(int index) Interval-based specifications of times.List<? extends IntervalSpecOrBuilder> Interval-based specifications of times.com.google.protobuf.DurationAll timestamps will be incremented by a random value from 0 to this amount of jitter.com.google.protobuf.DurationOrBuilderAll timestamps will be incremented by a random value from 0 to this amount of jitter.com.google.protobuf.Parser<ScheduleSpec> intcom.google.protobuf.TimestampIf start_time is set, any timestamps before start_time will be skipped.com.google.protobuf.TimestampOrBuilderIf start_time is set, any timestamps before start_time will be skipped.getStructuredCalendar(int index) Calendar-based specifications of times.intCalendar-based specifications of times.Calendar-based specifications of times.getStructuredCalendarOrBuilder(int index) Calendar-based specifications of times.List<? extends StructuredCalendarSpecOrBuilder> Calendar-based specifications of times.com.google.protobuf.ByteStringbytes timezone_data = 11;Time zone to interpret all calendar-based specs in.com.google.protobuf.ByteStringTime zone to interpret all calendar-based specs in.booleanIf end_time is set, any timestamps after end_time will be skipped.inthashCode()booleanAll timestamps will be incremented by a random value from 0 to this amount of jitter.booleanIf start_time is set, any timestamps before start_time will be skipped.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic ScheduleSpec.Builderstatic ScheduleSpec.BuildernewBuilder(ScheduleSpec prototype) protected ScheduleSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ScheduleSpecparseDelimitedFrom(InputStream input) static ScheduleSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScheduleSpecparseFrom(byte[] data) static ScheduleSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScheduleSpecparseFrom(com.google.protobuf.ByteString data) static ScheduleSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScheduleSpecparseFrom(com.google.protobuf.CodedInputStream input) static ScheduleSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScheduleSpecparseFrom(InputStream input) static ScheduleSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ScheduleSpecparseFrom(ByteBuffer data) static ScheduleSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ScheduleSpec> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
STRUCTURED_CALENDAR_FIELD_NUMBER
public static final int STRUCTURED_CALENDAR_FIELD_NUMBER- See Also:
-
CRON_STRING_FIELD_NUMBER
public static final int CRON_STRING_FIELD_NUMBER- See Also:
-
CALENDAR_FIELD_NUMBER
public static final int CALENDAR_FIELD_NUMBER- See Also:
-
INTERVAL_FIELD_NUMBER
public static final int INTERVAL_FIELD_NUMBER- See Also:
-
EXCLUDE_CALENDAR_FIELD_NUMBER
public static final int EXCLUDE_CALENDAR_FIELD_NUMBER- See Also:
-
EXCLUDE_STRUCTURED_CALENDAR_FIELD_NUMBER
public static final int EXCLUDE_STRUCTURED_CALENDAR_FIELD_NUMBER- See Also:
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER- See Also:
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER- See Also:
-
JITTER_FIELD_NUMBER
public static final int JITTER_FIELD_NUMBER- See Also:
-
TIMEZONE_NAME_FIELD_NUMBER
public static final int TIMEZONE_NAME_FIELD_NUMBER- See Also:
-
TIMEZONE_DATA_FIELD_NUMBER
public static final int TIMEZONE_DATA_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getStructuredCalendarList
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;- Specified by:
getStructuredCalendarListin interfaceScheduleSpecOrBuilder
-
getStructuredCalendarOrBuilderList
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;- Specified by:
getStructuredCalendarOrBuilderListin interfaceScheduleSpecOrBuilder
-
getStructuredCalendarCount
public int getStructuredCalendarCount()Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;- Specified by:
getStructuredCalendarCountin interfaceScheduleSpecOrBuilder
-
getStructuredCalendar
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;- Specified by:
getStructuredCalendarin interfaceScheduleSpecOrBuilder
-
getStructuredCalendarOrBuilder
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;- Specified by:
getStructuredCalendarOrBuilderin interfaceScheduleSpecOrBuilder
-
getCronStringList
public com.google.protobuf.ProtocolStringList getCronStringList()cron_string holds a traditional cron specification as a string. It accepts 5, 6, or 7 fields, separated by spaces, and interprets them the same way as CalendarSpec. 5 fields: minute, hour, day_of_month, month, day_of_week 6 fields: minute, hour, day_of_month, month, day_of_week, year 7 fields: second, minute, hour, day_of_month, month, day_of_week, year If year is not given, it defaults to *. If second is not given, it defaults to 0. Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also accepted instead of the 5-7 time fields. Optionally, the string can be preceded by CRON_TZ=<timezone name> or TZ=<timezone name>, which will get copied to timezone_name. (There must not also be a timezone_name present.) Optionally "#" followed by a comment can appear at the end of the string. Note that the special case that some cron implementations have for treating day_of_month and day_of_week as "or" instead of "and" when both are set is not implemented. @every <interval>[/<phase>] is accepted and gets compiled into an IntervalSpec instead. <interval> and <phase> should be a decimal integer with a unit suffix s, m, h, or d.
repeated string cron_string = 8;- Specified by:
getCronStringListin interfaceScheduleSpecOrBuilder- Returns:
- A list containing the cronString.
-
getCronStringCount
public int getCronStringCount()cron_string holds a traditional cron specification as a string. It accepts 5, 6, or 7 fields, separated by spaces, and interprets them the same way as CalendarSpec. 5 fields: minute, hour, day_of_month, month, day_of_week 6 fields: minute, hour, day_of_month, month, day_of_week, year 7 fields: second, minute, hour, day_of_month, month, day_of_week, year If year is not given, it defaults to *. If second is not given, it defaults to 0. Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also accepted instead of the 5-7 time fields. Optionally, the string can be preceded by CRON_TZ=<timezone name> or TZ=<timezone name>, which will get copied to timezone_name. (There must not also be a timezone_name present.) Optionally "#" followed by a comment can appear at the end of the string. Note that the special case that some cron implementations have for treating day_of_month and day_of_week as "or" instead of "and" when both are set is not implemented. @every <interval>[/<phase>] is accepted and gets compiled into an IntervalSpec instead. <interval> and <phase> should be a decimal integer with a unit suffix s, m, h, or d.
repeated string cron_string = 8;- Specified by:
getCronStringCountin interfaceScheduleSpecOrBuilder- Returns:
- The count of cronString.
-
getCronString
cron_string holds a traditional cron specification as a string. It accepts 5, 6, or 7 fields, separated by spaces, and interprets them the same way as CalendarSpec. 5 fields: minute, hour, day_of_month, month, day_of_week 6 fields: minute, hour, day_of_month, month, day_of_week, year 7 fields: second, minute, hour, day_of_month, month, day_of_week, year If year is not given, it defaults to *. If second is not given, it defaults to 0. Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also accepted instead of the 5-7 time fields. Optionally, the string can be preceded by CRON_TZ=<timezone name> or TZ=<timezone name>, which will get copied to timezone_name. (There must not also be a timezone_name present.) Optionally "#" followed by a comment can appear at the end of the string. Note that the special case that some cron implementations have for treating day_of_month and day_of_week as "or" instead of "and" when both are set is not implemented. @every <interval>[/<phase>] is accepted and gets compiled into an IntervalSpec instead. <interval> and <phase> should be a decimal integer with a unit suffix s, m, h, or d.
repeated string cron_string = 8;- Specified by:
getCronStringin interfaceScheduleSpecOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The cronString at the given index.
-
getCronStringBytes
public com.google.protobuf.ByteString getCronStringBytes(int index) cron_string holds a traditional cron specification as a string. It accepts 5, 6, or 7 fields, separated by spaces, and interprets them the same way as CalendarSpec. 5 fields: minute, hour, day_of_month, month, day_of_week 6 fields: minute, hour, day_of_month, month, day_of_week, year 7 fields: second, minute, hour, day_of_month, month, day_of_week, year If year is not given, it defaults to *. If second is not given, it defaults to 0. Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also accepted instead of the 5-7 time fields. Optionally, the string can be preceded by CRON_TZ=<timezone name> or TZ=<timezone name>, which will get copied to timezone_name. (There must not also be a timezone_name present.) Optionally "#" followed by a comment can appear at the end of the string. Note that the special case that some cron implementations have for treating day_of_month and day_of_week as "or" instead of "and" when both are set is not implemented. @every <interval>[/<phase>] is accepted and gets compiled into an IntervalSpec instead. <interval> and <phase> should be a decimal integer with a unit suffix s, m, h, or d.
repeated string cron_string = 8;- Specified by:
getCronStringBytesin interfaceScheduleSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the cronString at the given index.
-
getCalendarList
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;- Specified by:
getCalendarListin interfaceScheduleSpecOrBuilder
-
getCalendarOrBuilderList
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;- Specified by:
getCalendarOrBuilderListin interfaceScheduleSpecOrBuilder
-
getCalendarCount
public int getCalendarCount()Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;- Specified by:
getCalendarCountin interfaceScheduleSpecOrBuilder
-
getCalendar
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;- Specified by:
getCalendarin interfaceScheduleSpecOrBuilder
-
getCalendarOrBuilder
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;- Specified by:
getCalendarOrBuilderin interfaceScheduleSpecOrBuilder
-
getIntervalList
Interval-based specifications of times.
repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;- Specified by:
getIntervalListin interfaceScheduleSpecOrBuilder
-
getIntervalOrBuilderList
Interval-based specifications of times.
repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;- Specified by:
getIntervalOrBuilderListin interfaceScheduleSpecOrBuilder
-
getIntervalCount
public int getIntervalCount()Interval-based specifications of times.
repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;- Specified by:
getIntervalCountin interfaceScheduleSpecOrBuilder
-
getInterval
Interval-based specifications of times.
repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;- Specified by:
getIntervalin interfaceScheduleSpecOrBuilder
-
getIntervalOrBuilder
Interval-based specifications of times.
repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;- Specified by:
getIntervalOrBuilderin interfaceScheduleSpecOrBuilder
-
getExcludeCalendarList
Deprecated.Any timestamps matching any of exclude_* will be skipped. Deprecated. Use exclude_structured_calendar.
repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];- Specified by:
getExcludeCalendarListin interfaceScheduleSpecOrBuilder
-
getExcludeCalendarOrBuilderList
Deprecated.Any timestamps matching any of exclude_* will be skipped. Deprecated. Use exclude_structured_calendar.
repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];- Specified by:
getExcludeCalendarOrBuilderListin interfaceScheduleSpecOrBuilder
-
getExcludeCalendarCount
Deprecated.Any timestamps matching any of exclude_* will be skipped. Deprecated. Use exclude_structured_calendar.
repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];- Specified by:
getExcludeCalendarCountin interfaceScheduleSpecOrBuilder
-
getExcludeCalendar
Deprecated.Any timestamps matching any of exclude_* will be skipped. Deprecated. Use exclude_structured_calendar.
repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];- Specified by:
getExcludeCalendarin interfaceScheduleSpecOrBuilder
-
getExcludeCalendarOrBuilder
Deprecated.Any timestamps matching any of exclude_* will be skipped. Deprecated. Use exclude_structured_calendar.
repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];- Specified by:
getExcludeCalendarOrBuilderin interfaceScheduleSpecOrBuilder
-
getExcludeStructuredCalendarList
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;- Specified by:
getExcludeStructuredCalendarListin interfaceScheduleSpecOrBuilder
-
getExcludeStructuredCalendarOrBuilderList
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;- Specified by:
getExcludeStructuredCalendarOrBuilderListin interfaceScheduleSpecOrBuilder
-
getExcludeStructuredCalendarCount
public int getExcludeStructuredCalendarCount()repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;- Specified by:
getExcludeStructuredCalendarCountin interfaceScheduleSpecOrBuilder
-
getExcludeStructuredCalendar
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;- Specified by:
getExcludeStructuredCalendarin interfaceScheduleSpecOrBuilder
-
getExcludeStructuredCalendarOrBuilder
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;- Specified by:
getExcludeStructuredCalendarOrBuilderin interfaceScheduleSpecOrBuilder
-
hasStartTime
public boolean hasStartTime()If start_time is set, any timestamps before start_time will be skipped. (Together, start_time and end_time make an inclusive interval.)
.google.protobuf.Timestamp start_time = 4;- Specified by:
hasStartTimein interfaceScheduleSpecOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()If start_time is set, any timestamps before start_time will be skipped. (Together, start_time and end_time make an inclusive interval.)
.google.protobuf.Timestamp start_time = 4;- Specified by:
getStartTimein interfaceScheduleSpecOrBuilder- Returns:
- The startTime.
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()If start_time is set, any timestamps before start_time will be skipped. (Together, start_time and end_time make an inclusive interval.)
.google.protobuf.Timestamp start_time = 4;- Specified by:
getStartTimeOrBuilderin interfaceScheduleSpecOrBuilder
-
hasEndTime
public boolean hasEndTime()If end_time is set, any timestamps after end_time will be skipped.
.google.protobuf.Timestamp end_time = 5;- Specified by:
hasEndTimein interfaceScheduleSpecOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()If end_time is set, any timestamps after end_time will be skipped.
.google.protobuf.Timestamp end_time = 5;- Specified by:
getEndTimein interfaceScheduleSpecOrBuilder- Returns:
- The endTime.
-
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()If end_time is set, any timestamps after end_time will be skipped.
.google.protobuf.Timestamp end_time = 5;- Specified by:
getEndTimeOrBuilderin interfaceScheduleSpecOrBuilder
-
hasJitter
public boolean hasJitter()All timestamps will be incremented by a random value from 0 to this amount of jitter. Default: 0
.google.protobuf.Duration jitter = 6;- Specified by:
hasJitterin interfaceScheduleSpecOrBuilder- Returns:
- Whether the jitter field is set.
-
getJitter
public com.google.protobuf.Duration getJitter()All timestamps will be incremented by a random value from 0 to this amount of jitter. Default: 0
.google.protobuf.Duration jitter = 6;- Specified by:
getJitterin interfaceScheduleSpecOrBuilder- Returns:
- The jitter.
-
getJitterOrBuilder
public com.google.protobuf.DurationOrBuilder getJitterOrBuilder()All timestamps will be incremented by a random value from 0 to this amount of jitter. Default: 0
.google.protobuf.Duration jitter = 6;- Specified by:
getJitterOrBuilderin interfaceScheduleSpecOrBuilder
-
getTimezoneName
Time zone to interpret all calendar-based specs in. If unset, defaults to UTC. We recommend using UTC for your application if at all possible, to avoid various surprising properties of time zones. Time zones may be provided by name, corresponding to names in the IANA time zone database (see https://www.iana.org/time-zones). The definition will be loaded by the Temporal server from the environment it runs in. If your application requires more control over the time zone definition used, it may pass in a complete definition in the form of a TZif file from the time zone database. If present, this will be used instead of loading anything from the environment. You are then responsible for updating timezone_data when the definition changes. Calendar spec matching is based on literal matching of the clock time with no special handling of DST: if you write a calendar spec that fires at 2:30am and specify a time zone that follows DST, that action will not be triggered on the day that has no 2:30am. Similarly, an action that fires at 1:30am will be triggered twice on the day that has two 1:30s. Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC).
string timezone_name = 10;- Specified by:
getTimezoneNamein interfaceScheduleSpecOrBuilder- Returns:
- The timezoneName.
-
getTimezoneNameBytes
public com.google.protobuf.ByteString getTimezoneNameBytes()Time zone to interpret all calendar-based specs in. If unset, defaults to UTC. We recommend using UTC for your application if at all possible, to avoid various surprising properties of time zones. Time zones may be provided by name, corresponding to names in the IANA time zone database (see https://www.iana.org/time-zones). The definition will be loaded by the Temporal server from the environment it runs in. If your application requires more control over the time zone definition used, it may pass in a complete definition in the form of a TZif file from the time zone database. If present, this will be used instead of loading anything from the environment. You are then responsible for updating timezone_data when the definition changes. Calendar spec matching is based on literal matching of the clock time with no special handling of DST: if you write a calendar spec that fires at 2:30am and specify a time zone that follows DST, that action will not be triggered on the day that has no 2:30am. Similarly, an action that fires at 1:30am will be triggered twice on the day that has two 1:30s. Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC).
string timezone_name = 10;- Specified by:
getTimezoneNameBytesin interfaceScheduleSpecOrBuilder- Returns:
- The bytes for timezoneName.
-
getTimezoneData
public com.google.protobuf.ByteString getTimezoneData()bytes timezone_data = 11;- Specified by:
getTimezoneDatain interfaceScheduleSpecOrBuilder- Returns:
- The timezoneData.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ScheduleSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScheduleSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScheduleSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScheduleSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScheduleSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScheduleSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ScheduleSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ScheduleSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ScheduleSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ScheduleSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-