Package io.temporal.api.schedule.v1
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
,java.io.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.
Protobuf typetemporal.api.schedule.v1.ScheduleSpec
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScheduleSpec.Builder
ScheduleSpec 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<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CALENDAR_FIELD_NUMBER
static int
CRON_STRING_FIELD_NUMBER
static int
END_TIME_FIELD_NUMBER
static int
EXCLUDE_CALENDAR_FIELD_NUMBER
static int
EXCLUDE_STRUCTURED_CALENDAR_FIELD_NUMBER
static int
INTERVAL_FIELD_NUMBER
static int
JITTER_FIELD_NUMBER
static int
START_TIME_FIELD_NUMBER
static int
STRUCTURED_CALENDAR_FIELD_NUMBER
static int
TIMEZONE_DATA_FIELD_NUMBER
static int
TIMEZONE_NAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
CalendarSpec
getCalendar(int index)
Calendar-based specifications of times.int
getCalendarCount()
Calendar-based specifications of times.java.util.List<CalendarSpec>
getCalendarList()
Calendar-based specifications of times.CalendarSpecOrBuilder
getCalendarOrBuilder(int index)
Calendar-based specifications of times.java.util.List<? extends CalendarSpecOrBuilder>
getCalendarOrBuilderList()
Calendar-based specifications of times.java.lang.String
getCronString(int index)
cron_string holds a traditional cron specification as a string.com.google.protobuf.ByteString
getCronStringBytes(int index)
cron_string holds a traditional cron specification as a string.int
getCronStringCount()
cron_string holds a traditional cron specification as a string.com.google.protobuf.ProtocolStringList
getCronStringList()
cron_string holds a traditional cron specification as a string.static ScheduleSpec
getDefaultInstance()
ScheduleSpec
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Timestamp
getEndTime()
If end_time is set, any timestamps after end_time will be skipped.com.google.protobuf.TimestampOrBuilder
getEndTimeOrBuilder()
If end_time is set, any timestamps after end_time will be skipped.CalendarSpec
getExcludeCalendar(int index)
Deprecated.int
getExcludeCalendarCount()
Deprecated.java.util.List<CalendarSpec>
getExcludeCalendarList()
Deprecated.CalendarSpecOrBuilder
getExcludeCalendarOrBuilder(int index)
Deprecated.java.util.List<? extends CalendarSpecOrBuilder>
getExcludeCalendarOrBuilderList()
Deprecated.StructuredCalendarSpec
getExcludeStructuredCalendar(int index)
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
int
getExcludeStructuredCalendarCount()
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
java.util.List<StructuredCalendarSpec>
getExcludeStructuredCalendarList()
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
StructuredCalendarSpecOrBuilder
getExcludeStructuredCalendarOrBuilder(int index)
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
java.util.List<? extends StructuredCalendarSpecOrBuilder>
getExcludeStructuredCalendarOrBuilderList()
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
IntervalSpec
getInterval(int index)
Interval-based specifications of times.int
getIntervalCount()
Interval-based specifications of times.java.util.List<IntervalSpec>
getIntervalList()
Interval-based specifications of times.IntervalSpecOrBuilder
getIntervalOrBuilder(int index)
Interval-based specifications of times.java.util.List<? extends IntervalSpecOrBuilder>
getIntervalOrBuilderList()
Interval-based specifications of times.com.google.protobuf.Duration
getJitter()
All timestamps will be incremented by a random value from 0 to this amount of jitter.com.google.protobuf.DurationOrBuilder
getJitterOrBuilder()
All timestamps will be incremented by a random value from 0 to this amount of jitter.com.google.protobuf.Parser<ScheduleSpec>
getParserForType()
int
getSerializedSize()
com.google.protobuf.Timestamp
getStartTime()
If start_time is set, any timestamps before start_time will be skipped.com.google.protobuf.TimestampOrBuilder
getStartTimeOrBuilder()
If start_time is set, any timestamps before start_time will be skipped.StructuredCalendarSpec
getStructuredCalendar(int index)
Calendar-based specifications of times.int
getStructuredCalendarCount()
Calendar-based specifications of times.java.util.List<StructuredCalendarSpec>
getStructuredCalendarList()
Calendar-based specifications of times.StructuredCalendarSpecOrBuilder
getStructuredCalendarOrBuilder(int index)
Calendar-based specifications of times.java.util.List<? extends StructuredCalendarSpecOrBuilder>
getStructuredCalendarOrBuilderList()
Calendar-based specifications of times.com.google.protobuf.ByteString
getTimezoneData()
bytes timezone_data = 11;
java.lang.String
getTimezoneName()
Time zone to interpret all calendar-based specs in.com.google.protobuf.ByteString
getTimezoneNameBytes()
Time zone to interpret all calendar-based specs in.com.google.protobuf.UnknownFieldSet
getUnknownFields()
boolean
hasEndTime()
If end_time is set, any timestamps after end_time will be skipped.int
hashCode()
boolean
hasJitter()
All timestamps will be incremented by a random value from 0 to this amount of jitter.boolean
hasStartTime()
If start_time is set, any timestamps before start_time will be skipped.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ScheduleSpec.Builder
newBuilder()
static ScheduleSpec.Builder
newBuilder(ScheduleSpec prototype)
ScheduleSpec.Builder
newBuilderForType()
protected ScheduleSpec.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected java.lang.Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ScheduleSpec
parseDelimitedFrom(java.io.InputStream input)
static ScheduleSpec
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ScheduleSpec
parseFrom(byte[] data)
static ScheduleSpec
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ScheduleSpec
parseFrom(com.google.protobuf.ByteString data)
static ScheduleSpec
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ScheduleSpec
parseFrom(com.google.protobuf.CodedInputStream input)
static ScheduleSpec
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ScheduleSpec
parseFrom(java.io.InputStream input)
static ScheduleSpec
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ScheduleSpec
parseFrom(java.nio.ByteBuffer data)
static ScheduleSpec
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ScheduleSpec>
parser()
ScheduleSpec.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
STRUCTURED_CALENDAR_FIELD_NUMBER
public static final int STRUCTURED_CALENDAR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CRON_STRING_FIELD_NUMBER
public static final int CRON_STRING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CALENDAR_FIELD_NUMBER
public static final int CALENDAR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INTERVAL_FIELD_NUMBER
public static final int INTERVAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXCLUDE_CALENDAR_FIELD_NUMBER
public static final int EXCLUDE_CALENDAR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXCLUDE_STRUCTURED_CALENDAR_FIELD_NUMBER
public static final int EXCLUDE_STRUCTURED_CALENDAR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
JITTER_FIELD_NUMBER
public static final int JITTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMEZONE_NAME_FIELD_NUMBER
public static final int TIMEZONE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMEZONE_DATA_FIELD_NUMBER
public static final int TIMEZONE_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getStructuredCalendarList
public java.util.List<StructuredCalendarSpec> getStructuredCalendarList()
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;
- Specified by:
getStructuredCalendarList
in interfaceScheduleSpecOrBuilder
-
getStructuredCalendarOrBuilderList
public java.util.List<? extends StructuredCalendarSpecOrBuilder> getStructuredCalendarOrBuilderList()
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;
- Specified by:
getStructuredCalendarOrBuilderList
in interfaceScheduleSpecOrBuilder
-
getStructuredCalendarCount
public int getStructuredCalendarCount()
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;
- Specified by:
getStructuredCalendarCount
in interfaceScheduleSpecOrBuilder
-
getStructuredCalendar
public StructuredCalendarSpec getStructuredCalendar(int index)
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;
- Specified by:
getStructuredCalendar
in interfaceScheduleSpecOrBuilder
-
getStructuredCalendarOrBuilder
public StructuredCalendarSpecOrBuilder getStructuredCalendarOrBuilder(int index)
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;
- Specified by:
getStructuredCalendarOrBuilder
in 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:
getCronStringList
in 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:
getCronStringCount
in interfaceScheduleSpecOrBuilder
- Returns:
- The count of cronString.
-
getCronString
public java.lang.String getCronString(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:
getCronString
in 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:
getCronStringBytes
in interfaceScheduleSpecOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the cronString at the given index.
-
getCalendarList
public java.util.List<CalendarSpec> getCalendarList()
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;
- Specified by:
getCalendarList
in interfaceScheduleSpecOrBuilder
-
getCalendarOrBuilderList
public java.util.List<? extends CalendarSpecOrBuilder> getCalendarOrBuilderList()
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;
- Specified by:
getCalendarOrBuilderList
in interfaceScheduleSpecOrBuilder
-
getCalendarCount
public int getCalendarCount()
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;
- Specified by:
getCalendarCount
in interfaceScheduleSpecOrBuilder
-
getCalendar
public CalendarSpec getCalendar(int index)
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;
- Specified by:
getCalendar
in interfaceScheduleSpecOrBuilder
-
getCalendarOrBuilder
public CalendarSpecOrBuilder getCalendarOrBuilder(int index)
Calendar-based specifications of times.
repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;
- Specified by:
getCalendarOrBuilder
in interfaceScheduleSpecOrBuilder
-
getIntervalList
public java.util.List<IntervalSpec> getIntervalList()
Interval-based specifications of times.
repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;
- Specified by:
getIntervalList
in interfaceScheduleSpecOrBuilder
-
getIntervalOrBuilderList
public java.util.List<? extends IntervalSpecOrBuilder> getIntervalOrBuilderList()
Interval-based specifications of times.
repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;
- Specified by:
getIntervalOrBuilderList
in interfaceScheduleSpecOrBuilder
-
getIntervalCount
public int getIntervalCount()
Interval-based specifications of times.
repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;
- Specified by:
getIntervalCount
in interfaceScheduleSpecOrBuilder
-
getInterval
public IntervalSpec getInterval(int index)
Interval-based specifications of times.
repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;
- Specified by:
getInterval
in interfaceScheduleSpecOrBuilder
-
getIntervalOrBuilder
public IntervalSpecOrBuilder getIntervalOrBuilder(int index)
Interval-based specifications of times.
repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;
- Specified by:
getIntervalOrBuilder
in interfaceScheduleSpecOrBuilder
-
getExcludeCalendarList
@Deprecated public java.util.List<CalendarSpec> getExcludeCalendarList()
Deprecated.Any timestamps matching any of exclude_* will be skipped.
repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];
- Specified by:
getExcludeCalendarList
in interfaceScheduleSpecOrBuilder
-
getExcludeCalendarOrBuilderList
@Deprecated public java.util.List<? extends CalendarSpecOrBuilder> getExcludeCalendarOrBuilderList()
Deprecated.Any timestamps matching any of exclude_* will be skipped.
repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];
- Specified by:
getExcludeCalendarOrBuilderList
in interfaceScheduleSpecOrBuilder
-
getExcludeCalendarCount
@Deprecated public int getExcludeCalendarCount()
Deprecated.Any timestamps matching any of exclude_* will be skipped.
repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];
- Specified by:
getExcludeCalendarCount
in interfaceScheduleSpecOrBuilder
-
getExcludeCalendar
@Deprecated public CalendarSpec getExcludeCalendar(int index)
Deprecated.Any timestamps matching any of exclude_* will be skipped.
repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];
- Specified by:
getExcludeCalendar
in interfaceScheduleSpecOrBuilder
-
getExcludeCalendarOrBuilder
@Deprecated public CalendarSpecOrBuilder getExcludeCalendarOrBuilder(int index)
Deprecated.Any timestamps matching any of exclude_* will be skipped.
repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];
- Specified by:
getExcludeCalendarOrBuilder
in interfaceScheduleSpecOrBuilder
-
getExcludeStructuredCalendarList
public java.util.List<StructuredCalendarSpec> getExcludeStructuredCalendarList()
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
- Specified by:
getExcludeStructuredCalendarList
in interfaceScheduleSpecOrBuilder
-
getExcludeStructuredCalendarOrBuilderList
public java.util.List<? extends StructuredCalendarSpecOrBuilder> getExcludeStructuredCalendarOrBuilderList()
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
- Specified by:
getExcludeStructuredCalendarOrBuilderList
in interfaceScheduleSpecOrBuilder
-
getExcludeStructuredCalendarCount
public int getExcludeStructuredCalendarCount()
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
- Specified by:
getExcludeStructuredCalendarCount
in interfaceScheduleSpecOrBuilder
-
getExcludeStructuredCalendar
public StructuredCalendarSpec getExcludeStructuredCalendar(int index)
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
- Specified by:
getExcludeStructuredCalendar
in interfaceScheduleSpecOrBuilder
-
getExcludeStructuredCalendarOrBuilder
public StructuredCalendarSpecOrBuilder getExcludeStructuredCalendarOrBuilder(int index)
repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
- Specified by:
getExcludeStructuredCalendarOrBuilder
in 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 [(.gogoproto.stdtime) = true];
- Specified by:
hasStartTime
in 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 [(.gogoproto.stdtime) = true];
- Specified by:
getStartTime
in 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 [(.gogoproto.stdtime) = true];
- Specified by:
getStartTimeOrBuilder
in interfaceScheduleSpecOrBuilder
-
hasEndTime
public boolean hasEndTime()
If end_time is set, any timestamps after end_time will be skipped.
.google.protobuf.Timestamp end_time = 5 [(.gogoproto.stdtime) = true];
- Specified by:
hasEndTime
in 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 [(.gogoproto.stdtime) = true];
- Specified by:
getEndTime
in 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 [(.gogoproto.stdtime) = true];
- Specified by:
getEndTimeOrBuilder
in 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 [(.gogoproto.stdduration) = true];
- Specified by:
hasJitter
in 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 [(.gogoproto.stdduration) = true];
- Specified by:
getJitter
in 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 [(.gogoproto.stdduration) = true];
- Specified by:
getJitterOrBuilder
in interfaceScheduleSpecOrBuilder
-
getTimezoneName
public java.lang.String 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:
getTimezoneName
in 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:
getTimezoneNameBytes
in interfaceScheduleSpecOrBuilder
- Returns:
- The bytes for timezoneName.
-
getTimezoneData
public com.google.protobuf.ByteString getTimezoneData()
bytes timezone_data = 11;
- Specified by:
getTimezoneData
in interfaceScheduleSpecOrBuilder
- Returns:
- The timezoneData.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ScheduleSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ScheduleSpec parseFrom(java.nio.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
public static ScheduleSpec parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ScheduleSpec parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static ScheduleSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static ScheduleSpec parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ScheduleSpec parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ScheduleSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public ScheduleSpec.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ScheduleSpec.Builder newBuilder()
-
newBuilder
public static ScheduleSpec.Builder newBuilder(ScheduleSpec prototype)
-
toBuilder
public ScheduleSpec.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ScheduleSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ScheduleSpec getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ScheduleSpec> parser()
-
getParserForType
public com.google.protobuf.Parser<ScheduleSpec> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ScheduleSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-