Package io.temporal.api.schedule.v1
Class CalendarSpec.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
- io.temporal.api.schedule.v1.CalendarSpec.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CalendarSpecOrBuilder,java.lang.Cloneable
- Enclosing class:
- CalendarSpec
public static final class CalendarSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder> 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 typetemporal.api.schedule.v1.CalendarSpec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CalendarSpec.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CalendarSpecbuild()CalendarSpecbuildPartial()CalendarSpec.Builderclear()CalendarSpec.BuilderclearComment()Free-form comment describing the intention of this spec.CalendarSpec.BuilderclearDayOfMonth()Expression to match days of the month.CalendarSpec.BuilderclearDayOfWeek()Expression to match days of the week.CalendarSpec.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CalendarSpec.BuilderclearHour()Expression to match hours.CalendarSpec.BuilderclearMinute()Expression to match minutes.CalendarSpec.BuilderclearMonth()Expression to match months.CalendarSpec.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CalendarSpec.BuilderclearSecond()Expression to match seconds.CalendarSpec.BuilderclearYear()Expression to match years.CalendarSpec.Builderclone()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.CalendarSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.java.lang.StringgetSecond()Expression to match seconds.com.google.protobuf.ByteStringgetSecondBytes()Expression to match seconds.java.lang.StringgetYear()Expression to match years.com.google.protobuf.ByteStringgetYearBytes()Expression to match years.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CalendarSpec.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CalendarSpec.BuildermergeFrom(com.google.protobuf.Message other)CalendarSpec.BuildermergeFrom(CalendarSpec other)CalendarSpec.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CalendarSpec.BuildersetComment(java.lang.String value)Free-form comment describing the intention of this spec.CalendarSpec.BuildersetCommentBytes(com.google.protobuf.ByteString value)Free-form comment describing the intention of this spec.CalendarSpec.BuildersetDayOfMonth(java.lang.String value)Expression to match days of the month.CalendarSpec.BuildersetDayOfMonthBytes(com.google.protobuf.ByteString value)Expression to match days of the month.CalendarSpec.BuildersetDayOfWeek(java.lang.String value)Expression to match days of the week.CalendarSpec.BuildersetDayOfWeekBytes(com.google.protobuf.ByteString value)Expression to match days of the week.CalendarSpec.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CalendarSpec.BuildersetHour(java.lang.String value)Expression to match hours.CalendarSpec.BuildersetHourBytes(com.google.protobuf.ByteString value)Expression to match hours.CalendarSpec.BuildersetMinute(java.lang.String value)Expression to match minutes.CalendarSpec.BuildersetMinuteBytes(com.google.protobuf.ByteString value)Expression to match minutes.CalendarSpec.BuildersetMonth(java.lang.String value)Expression to match months.CalendarSpec.BuildersetMonthBytes(com.google.protobuf.ByteString value)Expression to match months.CalendarSpec.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)CalendarSpec.BuildersetSecond(java.lang.String value)Expression to match seconds.CalendarSpec.BuildersetSecondBytes(com.google.protobuf.ByteString value)Expression to match seconds.CalendarSpec.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CalendarSpec.BuildersetYear(java.lang.String value)Expression to match years.CalendarSpec.BuildersetYearBytes(com.google.protobuf.ByteString value)Expression to match years.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<CalendarSpec.Builder>
-
clear
public CalendarSpec.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
getDefaultInstanceForType
public CalendarSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CalendarSpec build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CalendarSpec buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CalendarSpec.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
setField
public CalendarSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
clearField
public CalendarSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
clearOneof
public CalendarSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
setRepeatedField
public CalendarSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
addRepeatedField
public CalendarSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
mergeFrom
public CalendarSpec.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CalendarSpec.Builder>
-
mergeFrom
public CalendarSpec.Builder mergeFrom(CalendarSpec other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
mergeFrom
public CalendarSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CalendarSpec.Builder>- Throws:
java.io.IOException
-
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.
-
setSecond
public CalendarSpec.Builder setSecond(java.lang.String value)
Expression to match seconds. Default: 0
string second = 1;- Parameters:
value- The second to set.- Returns:
- This builder for chaining.
-
clearSecond
public CalendarSpec.Builder clearSecond()
Expression to match seconds. Default: 0
string second = 1;- Returns:
- This builder for chaining.
-
setSecondBytes
public CalendarSpec.Builder setSecondBytes(com.google.protobuf.ByteString value)
Expression to match seconds. Default: 0
string second = 1;- Parameters:
value- The bytes for second to set.- Returns:
- This builder for chaining.
-
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.
-
setMinute
public CalendarSpec.Builder setMinute(java.lang.String value)
Expression to match minutes. Default: 0
string minute = 2;- Parameters:
value- The minute to set.- Returns:
- This builder for chaining.
-
clearMinute
public CalendarSpec.Builder clearMinute()
Expression to match minutes. Default: 0
string minute = 2;- Returns:
- This builder for chaining.
-
setMinuteBytes
public CalendarSpec.Builder setMinuteBytes(com.google.protobuf.ByteString value)
Expression to match minutes. Default: 0
string minute = 2;- Parameters:
value- The bytes for minute to set.- Returns:
- This builder for chaining.
-
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.
-
setHour
public CalendarSpec.Builder setHour(java.lang.String value)
Expression to match hours. Default: 0
string hour = 3;- Parameters:
value- The hour to set.- Returns:
- This builder for chaining.
-
clearHour
public CalendarSpec.Builder clearHour()
Expression to match hours. Default: 0
string hour = 3;- Returns:
- This builder for chaining.
-
setHourBytes
public CalendarSpec.Builder setHourBytes(com.google.protobuf.ByteString value)
Expression to match hours. Default: 0
string hour = 3;- Parameters:
value- The bytes for hour to set.- Returns:
- This builder for chaining.
-
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.
-
setDayOfMonth
public CalendarSpec.Builder setDayOfMonth(java.lang.String value)
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;- Parameters:
value- The dayOfMonth to set.- Returns:
- This builder for chaining.
-
clearDayOfMonth
public CalendarSpec.Builder clearDayOfMonth()
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;- Returns:
- This builder for chaining.
-
setDayOfMonthBytes
public CalendarSpec.Builder setDayOfMonthBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for dayOfMonth to set.- Returns:
- This builder for chaining.
-
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.
-
setMonth
public CalendarSpec.Builder setMonth(java.lang.String value)
Expression to match months. Default: *
string month = 5;- Parameters:
value- The month to set.- Returns:
- This builder for chaining.
-
clearMonth
public CalendarSpec.Builder clearMonth()
Expression to match months. Default: *
string month = 5;- Returns:
- This builder for chaining.
-
setMonthBytes
public CalendarSpec.Builder setMonthBytes(com.google.protobuf.ByteString value)
Expression to match months. Default: *
string month = 5;- Parameters:
value- The bytes for month to set.- Returns:
- This builder for chaining.
-
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.
-
setYear
public CalendarSpec.Builder setYear(java.lang.String value)
Expression to match years. Default: *
string year = 6;- Parameters:
value- The year to set.- Returns:
- This builder for chaining.
-
clearYear
public CalendarSpec.Builder clearYear()
Expression to match years. Default: *
string year = 6;- Returns:
- This builder for chaining.
-
setYearBytes
public CalendarSpec.Builder setYearBytes(com.google.protobuf.ByteString value)
Expression to match years. Default: *
string year = 6;- Parameters:
value- The bytes for year to set.- Returns:
- This builder for chaining.
-
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.
-
setDayOfWeek
public CalendarSpec.Builder setDayOfWeek(java.lang.String value)
Expression to match days of the week. Default: *
string day_of_week = 7;- Parameters:
value- The dayOfWeek to set.- Returns:
- This builder for chaining.
-
clearDayOfWeek
public CalendarSpec.Builder clearDayOfWeek()
Expression to match days of the week. Default: *
string day_of_week = 7;- Returns:
- This builder for chaining.
-
setDayOfWeekBytes
public CalendarSpec.Builder setDayOfWeekBytes(com.google.protobuf.ByteString value)
Expression to match days of the week. Default: *
string day_of_week = 7;- Parameters:
value- The bytes for dayOfWeek to set.- Returns:
- This builder for chaining.
-
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.
-
setComment
public CalendarSpec.Builder setComment(java.lang.String value)
Free-form comment describing the intention of this spec.
string comment = 8;- Parameters:
value- The comment to set.- Returns:
- This builder for chaining.
-
clearComment
public CalendarSpec.Builder clearComment()
Free-form comment describing the intention of this spec.
string comment = 8;- Returns:
- This builder for chaining.
-
setCommentBytes
public CalendarSpec.Builder setCommentBytes(com.google.protobuf.ByteString value)
Free-form comment describing the intention of this spec.
string comment = 8;- Parameters:
value- The bytes for comment to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CalendarSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
mergeUnknownFields
public final CalendarSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
-