Package io.temporal.api.schedule.v1
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,java.io.Serializable
@Generated(value="protoc", comments="annotations:CalendarSpec.java.pb.meta") public final class CalendarSpec extends com.google.protobuf.GeneratedMessageV3 implements CalendarSpecOrBuilderCalendarSpec 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 typetemporal.api.schedule.v1.CalendarSpec- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCalendarSpec.BuilderCalendarSpec 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
-
-
Field Summary
Fields Modifier and Type Field Description static intCOMMENT_FIELD_NUMBERstatic intDAY_OF_MONTH_FIELD_NUMBERstatic intDAY_OF_WEEK_FIELD_NUMBERstatic intHOUR_FIELD_NUMBERstatic intMINUTE_FIELD_NUMBERstatic intMONTH_FIELD_NUMBERstatic intSECOND_FIELD_NUMBERstatic intYEAR_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetComment()Free-form comment describing the intention of this spec.com.google.protobuf.ByteStringgetCommentBytes()Free-form comment describing the intention of this spec.java.lang.StringgetDayOfMonth()Expression to match days of the month.com.google.protobuf.ByteStringgetDayOfMonthBytes()Expression to match days of the month.java.lang.StringgetDayOfWeek()Expression to match days of the week.com.google.protobuf.ByteStringgetDayOfWeekBytes()Expression to match days of the week.static CalendarSpecgetDefaultInstance()CalendarSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetHour()Expression to match hours.com.google.protobuf.ByteStringgetHourBytes()Expression to match hours.java.lang.StringgetMinute()Expression to match minutes.com.google.protobuf.ByteStringgetMinuteBytes()Expression to match minutes.java.lang.StringgetMonth()Expression to match months.com.google.protobuf.ByteStringgetMonthBytes()Expression to match months.com.google.protobuf.Parser<CalendarSpec>getParserForType()java.lang.StringgetSecond()Expression to match seconds.com.google.protobuf.ByteStringgetSecondBytes()Expression to match seconds.intgetSerializedSize()java.lang.StringgetYear()Expression to match years.com.google.protobuf.ByteStringgetYearBytes()Expression to match years.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static CalendarSpec.BuildernewBuilder()static CalendarSpec.BuildernewBuilder(CalendarSpec prototype)CalendarSpec.BuildernewBuilderForType()protected CalendarSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CalendarSpecparseDelimitedFrom(java.io.InputStream input)static CalendarSpecparseDelimitedFrom(java.io.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(java.io.InputStream input)static CalendarSpecparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CalendarSpecparseFrom(java.nio.ByteBuffer data)static CalendarSpecparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CalendarSpec>parser()CalendarSpec.BuildertoBuilder()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, 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
-
SECOND_FIELD_NUMBER
public static final int SECOND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MINUTE_FIELD_NUMBER
public static final int MINUTE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HOUR_FIELD_NUMBER
public static final int HOUR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DAY_OF_MONTH_FIELD_NUMBER
public static final int DAY_OF_MONTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MONTH_FIELD_NUMBER
public static final int MONTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
YEAR_FIELD_NUMBER
public static final int YEAR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DAY_OF_WEEK_FIELD_NUMBER
public static final int DAY_OF_WEEK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMMENT_FIELD_NUMBER
public static final int COMMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- 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
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CalendarSpec parseFrom(java.nio.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
public static CalendarSpec parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CalendarSpec parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static CalendarSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static CalendarSpec parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CalendarSpec parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CalendarSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public CalendarSpec.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CalendarSpec.Builder newBuilder()
-
newBuilder
public static CalendarSpec.Builder newBuilder(CalendarSpec prototype)
-
toBuilder
public CalendarSpec.Builder 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
public static CalendarSpec getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CalendarSpec> parser()
-
getParserForType
public com.google.protobuf.Parser<CalendarSpec> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CalendarSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-