Class StructuredCalendarSpec
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.temporal.api.schedule.v1.StructuredCalendarSpec
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,StructuredCalendarSpecOrBuilder,Serializable
@Generated(value="protoc",
comments="annotations:StructuredCalendarSpec.java.pb.meta")
public final class StructuredCalendarSpec
extends com.google.protobuf.GeneratedMessageV3
implements StructuredCalendarSpecOrBuilder
StructuredCalendarSpec describes an event specification relative to the calendar, in a form that's easy to work with programmatically. Each field can be one or more ranges. A timestamp matches if at least one range of each field matches the corresponding fields of the timestamp, except for year: if year is missing, that means all years match. For all fields besides year, at least one Range must be present to match anything. Relative expressions such as "last day of the month" or "third Monday" are not currently representable; callers must enumerate the concrete days they require.Protobuf type
temporal.api.schedule.v1.StructuredCalendarSpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classStructuredCalendarSpec describes an event specification relative to the calendar, in a form that's easy to work with programmatically.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.getDayOfMonth(int index) Match days of the month (1-31) (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --)intMatch days of the month (1-31) (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --)Match days of the month (1-31) (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --)getDayOfMonthOrBuilder(int index) Match days of the month (1-31) (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --)List<? extends RangeOrBuilder> Match days of the month (1-31) (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --)getDayOfWeek(int index) Match days of the week (0-6; 0 is Sunday).intMatch days of the week (0-6; 0 is Sunday).Match days of the week (0-6; 0 is Sunday).getDayOfWeekOrBuilder(int index) Match days of the week (0-6; 0 is Sunday).List<? extends RangeOrBuilder> Match days of the week (0-6; 0 is Sunday).static StructuredCalendarSpecstatic final com.google.protobuf.Descriptors.DescriptorgetHour(int index) Match hours (0-23)intMatch hours (0-23)Match hours (0-23)getHourOrBuilder(int index) Match hours (0-23)List<? extends RangeOrBuilder> Match hours (0-23)getMinute(int index) Match minutes (0-59)intMatch minutes (0-59)Match minutes (0-59)getMinuteOrBuilder(int index) Match minutes (0-59)List<? extends RangeOrBuilder> Match minutes (0-59)getMonth(int index) Match months (1-12)intMatch months (1-12)Match months (1-12)getMonthOrBuilder(int index) Match months (1-12)List<? extends RangeOrBuilder> Match months (1-12)com.google.protobuf.Parser<StructuredCalendarSpec> getSecond(int index) Match seconds (0-59)intMatch seconds (0-59)Match seconds (0-59)getSecondOrBuilder(int index) Match seconds (0-59)List<? extends RangeOrBuilder> Match seconds (0-59)intgetYear(int index) Match years.intMatch years.Match years.getYearOrBuilder(int index) Match years.List<? extends RangeOrBuilder> Match years.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(StructuredCalendarSpec prototype) protected StructuredCalendarSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static StructuredCalendarSpecparseDelimitedFrom(InputStream input) static StructuredCalendarSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StructuredCalendarSpecparseFrom(byte[] data) static StructuredCalendarSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StructuredCalendarSpecparseFrom(com.google.protobuf.ByteString data) static StructuredCalendarSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StructuredCalendarSpecparseFrom(com.google.protobuf.CodedInputStream input) static StructuredCalendarSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StructuredCalendarSpecparseFrom(InputStream input) static StructuredCalendarSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StructuredCalendarSpecparseFrom(ByteBuffer data) static StructuredCalendarSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<StructuredCalendarSpec> 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
-
getSecondList
Match seconds (0-59)
repeated .temporal.api.schedule.v1.Range second = 1;- Specified by:
getSecondListin interfaceStructuredCalendarSpecOrBuilder
-
getSecondOrBuilderList
Match seconds (0-59)
repeated .temporal.api.schedule.v1.Range second = 1;- Specified by:
getSecondOrBuilderListin interfaceStructuredCalendarSpecOrBuilder
-
getSecondCount
public int getSecondCount()Match seconds (0-59)
repeated .temporal.api.schedule.v1.Range second = 1;- Specified by:
getSecondCountin interfaceStructuredCalendarSpecOrBuilder
-
getSecond
Match seconds (0-59)
repeated .temporal.api.schedule.v1.Range second = 1;- Specified by:
getSecondin interfaceStructuredCalendarSpecOrBuilder
-
getSecondOrBuilder
Match seconds (0-59)
repeated .temporal.api.schedule.v1.Range second = 1;- Specified by:
getSecondOrBuilderin interfaceStructuredCalendarSpecOrBuilder
-
getMinuteList
Match minutes (0-59)
repeated .temporal.api.schedule.v1.Range minute = 2;- Specified by:
getMinuteListin interfaceStructuredCalendarSpecOrBuilder
-
getMinuteOrBuilderList
Match minutes (0-59)
repeated .temporal.api.schedule.v1.Range minute = 2;- Specified by:
getMinuteOrBuilderListin interfaceStructuredCalendarSpecOrBuilder
-
getMinuteCount
public int getMinuteCount()Match minutes (0-59)
repeated .temporal.api.schedule.v1.Range minute = 2;- Specified by:
getMinuteCountin interfaceStructuredCalendarSpecOrBuilder
-
getMinute
Match minutes (0-59)
repeated .temporal.api.schedule.v1.Range minute = 2;- Specified by:
getMinutein interfaceStructuredCalendarSpecOrBuilder
-
getMinuteOrBuilder
Match minutes (0-59)
repeated .temporal.api.schedule.v1.Range minute = 2;- Specified by:
getMinuteOrBuilderin interfaceStructuredCalendarSpecOrBuilder
-
getHourList
Match hours (0-23)
repeated .temporal.api.schedule.v1.Range hour = 3;- Specified by:
getHourListin interfaceStructuredCalendarSpecOrBuilder
-
getHourOrBuilderList
Match hours (0-23)
repeated .temporal.api.schedule.v1.Range hour = 3;- Specified by:
getHourOrBuilderListin interfaceStructuredCalendarSpecOrBuilder
-
getHourCount
public int getHourCount()Match hours (0-23)
repeated .temporal.api.schedule.v1.Range hour = 3;- Specified by:
getHourCountin interfaceStructuredCalendarSpecOrBuilder
-
getHour
Match hours (0-23)
repeated .temporal.api.schedule.v1.Range hour = 3;- Specified by:
getHourin interfaceStructuredCalendarSpecOrBuilder
-
getHourOrBuilder
Match hours (0-23)
repeated .temporal.api.schedule.v1.Range hour = 3;- Specified by:
getHourOrBuilderin interfaceStructuredCalendarSpecOrBuilder
-
getDayOfMonthList
Match days of the month (1-31) (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --)repeated .temporal.api.schedule.v1.Range day_of_month = 4;- Specified by:
getDayOfMonthListin interfaceStructuredCalendarSpecOrBuilder
-
getDayOfMonthOrBuilderList
Match days of the month (1-31) (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --)repeated .temporal.api.schedule.v1.Range day_of_month = 4;- Specified by:
getDayOfMonthOrBuilderListin interfaceStructuredCalendarSpecOrBuilder
-
getDayOfMonthCount
public int getDayOfMonthCount()Match days of the month (1-31) (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --)repeated .temporal.api.schedule.v1.Range day_of_month = 4;- Specified by:
getDayOfMonthCountin interfaceStructuredCalendarSpecOrBuilder
-
getDayOfMonth
Match days of the month (1-31) (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --)repeated .temporal.api.schedule.v1.Range day_of_month = 4;- Specified by:
getDayOfMonthin interfaceStructuredCalendarSpecOrBuilder
-
getDayOfMonthOrBuilder
Match days of the month (1-31) (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --)repeated .temporal.api.schedule.v1.Range day_of_month = 4;- Specified by:
getDayOfMonthOrBuilderin interfaceStructuredCalendarSpecOrBuilder
-
getMonthList
Match months (1-12)
repeated .temporal.api.schedule.v1.Range month = 5;- Specified by:
getMonthListin interfaceStructuredCalendarSpecOrBuilder
-
getMonthOrBuilderList
Match months (1-12)
repeated .temporal.api.schedule.v1.Range month = 5;- Specified by:
getMonthOrBuilderListin interfaceStructuredCalendarSpecOrBuilder
-
getMonthCount
public int getMonthCount()Match months (1-12)
repeated .temporal.api.schedule.v1.Range month = 5;- Specified by:
getMonthCountin interfaceStructuredCalendarSpecOrBuilder
-
getMonth
Match months (1-12)
repeated .temporal.api.schedule.v1.Range month = 5;- Specified by:
getMonthin interfaceStructuredCalendarSpecOrBuilder
-
getMonthOrBuilder
Match months (1-12)
repeated .temporal.api.schedule.v1.Range month = 5;- Specified by:
getMonthOrBuilderin interfaceStructuredCalendarSpecOrBuilder
-
getYearList
Match years.
repeated .temporal.api.schedule.v1.Range year = 6;- Specified by:
getYearListin interfaceStructuredCalendarSpecOrBuilder
-
getYearOrBuilderList
Match years.
repeated .temporal.api.schedule.v1.Range year = 6;- Specified by:
getYearOrBuilderListin interfaceStructuredCalendarSpecOrBuilder
-
getYearCount
public int getYearCount()Match years.
repeated .temporal.api.schedule.v1.Range year = 6;- Specified by:
getYearCountin interfaceStructuredCalendarSpecOrBuilder
-
getYear
Match years.
repeated .temporal.api.schedule.v1.Range year = 6;- Specified by:
getYearin interfaceStructuredCalendarSpecOrBuilder
-
getYearOrBuilder
Match years.
repeated .temporal.api.schedule.v1.Range year = 6;- Specified by:
getYearOrBuilderin interfaceStructuredCalendarSpecOrBuilder
-
getDayOfWeekList
Match days of the week (0-6; 0 is Sunday).
repeated .temporal.api.schedule.v1.Range day_of_week = 7;- Specified by:
getDayOfWeekListin interfaceStructuredCalendarSpecOrBuilder
-
getDayOfWeekOrBuilderList
Match days of the week (0-6; 0 is Sunday).
repeated .temporal.api.schedule.v1.Range day_of_week = 7;- Specified by:
getDayOfWeekOrBuilderListin interfaceStructuredCalendarSpecOrBuilder
-
getDayOfWeekCount
public int getDayOfWeekCount()Match days of the week (0-6; 0 is Sunday).
repeated .temporal.api.schedule.v1.Range day_of_week = 7;- Specified by:
getDayOfWeekCountin interfaceStructuredCalendarSpecOrBuilder
-
getDayOfWeek
Match days of the week (0-6; 0 is Sunday).
repeated .temporal.api.schedule.v1.Range day_of_week = 7;- Specified by:
getDayOfWeekin interfaceStructuredCalendarSpecOrBuilder
-
getDayOfWeekOrBuilder
Match days of the week (0-6; 0 is Sunday).
repeated .temporal.api.schedule.v1.Range day_of_week = 7;- Specified by:
getDayOfWeekOrBuilderin interfaceStructuredCalendarSpecOrBuilder
-
getComment
Free-form comment describing the intention of this spec.
string comment = 8;- Specified by:
getCommentin interfaceStructuredCalendarSpecOrBuilder- 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 interfaceStructuredCalendarSpecOrBuilder- 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 StructuredCalendarSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StructuredCalendarSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StructuredCalendarSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StructuredCalendarSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StructuredCalendarSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StructuredCalendarSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StructuredCalendarSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static StructuredCalendarSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static StructuredCalendarSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static StructuredCalendarSpec 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 StructuredCalendarSpec.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
-