Class CalendarSpec
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.temporal.api.schedule.v1.CalendarSpec
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CalendarSpecOrBuilder,Serializable
@Generated(value="protoc",
comments="annotations:CalendarSpec.java.pb.meta")
public final class CalendarSpec
extends com.google.protobuf.GeneratedMessageV3
implements CalendarSpecOrBuilder
CalendarSpec describes an event specification relative to the calendar, similar to a traditional cron specification, but with labeled fields. Each field can be one of: *: matches always x: matches when the field equals x x/y : matches when the field equals x+n*y where n is an integer x-z: matches when the field is between x and z inclusive w,x,y,...: matches when the field is one of the listed values Each x, y, z, ... is either a decimal integer, or a month or day of week name or abbreviation (in the appropriate fields). A timestamp matches if all fields match. Note that fields have different default values, for convenience. 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. day_of_week can accept 0 or 7 as Sunday CalendarSpec gets compiled into StructuredCalendarSpec, which is what will be returned if you describe the schedule.Protobuf type
temporal.api.schedule.v1.CalendarSpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCalendarSpec describes an event specification relative to the calendar, similar to a traditional cron specification, but with labeled fields.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 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 TypeMethodDescriptionbooleanFree-form comment describing the intention of this spec.com.google.protobuf.ByteStringFree-form comment describing the intention of this spec.Expression to match days of the month.com.google.protobuf.ByteStringExpression to match days of the month.Expression to match days of the week.com.google.protobuf.ByteStringExpression to match days of the week.static CalendarSpecstatic final com.google.protobuf.Descriptors.DescriptorgetHour()Expression to match hours.com.google.protobuf.ByteStringExpression to match hours.Expression to match minutes.com.google.protobuf.ByteStringExpression to match minutes.getMonth()Expression to match months.com.google.protobuf.ByteStringExpression to match months.com.google.protobuf.Parser<CalendarSpec> Expression to match seconds.com.google.protobuf.ByteStringExpression to match seconds.intgetYear()Expression to match years.com.google.protobuf.ByteStringExpression to match years.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic CalendarSpec.Builderstatic CalendarSpec.BuildernewBuilder(CalendarSpec prototype) protected CalendarSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static CalendarSpecparseDelimitedFrom(InputStream input) static CalendarSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CalendarSpecparseFrom(byte[] data) static CalendarSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CalendarSpecparseFrom(com.google.protobuf.ByteString data) static CalendarSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CalendarSpecparseFrom(com.google.protobuf.CodedInputStream input) static CalendarSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CalendarSpecparseFrom(InputStream input) static CalendarSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CalendarSpecparseFrom(ByteBuffer data) static CalendarSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CalendarSpec> 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
-
SECOND_FIELD_NUMBER
public static final int SECOND_FIELD_NUMBER- See Also:
-
MINUTE_FIELD_NUMBER
public static final int MINUTE_FIELD_NUMBER- See Also:
-
HOUR_FIELD_NUMBER
public static final int HOUR_FIELD_NUMBER- See Also:
-
DAY_OF_MONTH_FIELD_NUMBER
public static final int DAY_OF_MONTH_FIELD_NUMBER- See Also:
-
MONTH_FIELD_NUMBER
public static final int MONTH_FIELD_NUMBER- See Also:
-
YEAR_FIELD_NUMBER
public static final int YEAR_FIELD_NUMBER- See Also:
-
DAY_OF_WEEK_FIELD_NUMBER
public static final int DAY_OF_WEEK_FIELD_NUMBER- See Also:
-
COMMENT_FIELD_NUMBER
public static final int COMMENT_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
-
getSecond
Expression to match seconds. Default: 0
string second = 1;- Specified by:
getSecondin interfaceCalendarSpecOrBuilder- Returns:
- The second.
-
getSecondBytes
public com.google.protobuf.ByteString getSecondBytes()Expression to match seconds. Default: 0
string second = 1;- Specified by:
getSecondBytesin interfaceCalendarSpecOrBuilder- Returns:
- The bytes for second.
-
getMinute
Expression to match minutes. Default: 0
string minute = 2;- Specified by:
getMinutein interfaceCalendarSpecOrBuilder- Returns:
- The minute.
-
getMinuteBytes
public com.google.protobuf.ByteString getMinuteBytes()Expression to match minutes. Default: 0
string minute = 2;- Specified by:
getMinuteBytesin interfaceCalendarSpecOrBuilder- Returns:
- The bytes for minute.
-
getHour
Expression to match hours. Default: 0
string hour = 3;- Specified by:
getHourin interfaceCalendarSpecOrBuilder- Returns:
- The hour.
-
getHourBytes
public com.google.protobuf.ByteString getHourBytes()Expression to match hours. Default: 0
string hour = 3;- Specified by:
getHourBytesin interfaceCalendarSpecOrBuilder- Returns:
- The bytes for hour.
-
getDayOfMonth
Expression to match days of the month. Default: * (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --)string day_of_month = 4;- Specified by:
getDayOfMonthin interfaceCalendarSpecOrBuilder- Returns:
- The dayOfMonth.
-
getDayOfMonthBytes
public com.google.protobuf.ByteString getDayOfMonthBytes()Expression to match days of the month. Default: * (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --)string day_of_month = 4;- Specified by:
getDayOfMonthBytesin interfaceCalendarSpecOrBuilder- Returns:
- The bytes for dayOfMonth.
-
getMonth
Expression to match months. Default: *
string month = 5;- Specified by:
getMonthin interfaceCalendarSpecOrBuilder- Returns:
- The month.
-
getMonthBytes
public com.google.protobuf.ByteString getMonthBytes()Expression to match months. Default: *
string month = 5;- Specified by:
getMonthBytesin interfaceCalendarSpecOrBuilder- Returns:
- The bytes for month.
-
getYear
Expression to match years. Default: *
string year = 6;- Specified by:
getYearin interfaceCalendarSpecOrBuilder- Returns:
- The year.
-
getYearBytes
public com.google.protobuf.ByteString getYearBytes()Expression to match years. Default: *
string year = 6;- Specified by:
getYearBytesin interfaceCalendarSpecOrBuilder- Returns:
- The bytes for year.
-
getDayOfWeek
Expression to match days of the week. Default: *
string day_of_week = 7;- Specified by:
getDayOfWeekin interfaceCalendarSpecOrBuilder- Returns:
- The dayOfWeek.
-
getDayOfWeekBytes
public com.google.protobuf.ByteString getDayOfWeekBytes()Expression to match days of the week. Default: *
string day_of_week = 7;- Specified by:
getDayOfWeekBytesin interfaceCalendarSpecOrBuilder- Returns:
- The bytes for dayOfWeek.
-
getComment
Free-form comment describing the intention of this spec.
string comment = 8;- Specified by:
getCommentin interfaceCalendarSpecOrBuilder- Returns:
- The comment.
-
getCommentBytes
public com.google.protobuf.ByteString getCommentBytes()Free-form comment describing the intention of this spec.
string comment = 8;- Specified by:
getCommentBytesin interfaceCalendarSpecOrBuilder- Returns:
- The bytes for comment.
-
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 CalendarSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CalendarSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CalendarSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CalendarSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CalendarSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CalendarSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CalendarSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CalendarSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CalendarSpec 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 CalendarSpec.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
-