Class CalendarSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CalendarSpec.Builder>
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,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 type
temporal.api.schedule.v1.CalendarSpec-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Free-form comment describing the intention of this spec.Expression to match days of the month.Expression to match days of the week.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Expression to match hours.Expression to match minutes.Expression to match months.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Expression to match seconds.Expression to match years.clone()Free-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 final com.google.protobuf.Descriptors.Descriptorcom.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.Expression to match seconds.com.google.protobuf.ByteStringExpression to match seconds.getYear()Expression to match years.com.google.protobuf.ByteStringExpression to match years.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CalendarSpec other) final CalendarSpec.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setComment(String value) Free-form comment describing the intention of this spec.setCommentBytes(com.google.protobuf.ByteString value) Free-form comment describing the intention of this spec.setDayOfMonth(String value) Expression to match days of the month.setDayOfMonthBytes(com.google.protobuf.ByteString value) Expression to match days of the month.setDayOfWeek(String value) Expression to match days of the week.setDayOfWeekBytes(com.google.protobuf.ByteString value) Expression to match days of the week.Expression to match hours.setHourBytes(com.google.protobuf.ByteString value) Expression to match hours.Expression to match minutes.setMinuteBytes(com.google.protobuf.ByteString value) Expression to match minutes.Expression to match months.setMonthBytes(com.google.protobuf.ByteString value) Expression to match months.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Expression to match seconds.setSecondBytes(com.google.protobuf.ByteString value) Expression to match seconds.final CalendarSpec.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Expression to match years.setYearBytes(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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
clearOneof
- 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CalendarSpec.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CalendarSpec.Builder>
-
mergeFrom
-
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 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:
IOException
-
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
Expression to match seconds. Default: 0
string second = 1;- Parameters:
value- The second to set.- Returns:
- This builder for chaining.
-
clearSecond
Expression to match seconds. Default: 0
string second = 1;- Returns:
- This builder for chaining.
-
setSecondBytes
Expression to match seconds. Default: 0
string second = 1;- Parameters:
value- The bytes for second to set.- Returns:
- This builder for chaining.
-
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
Expression to match minutes. Default: 0
string minute = 2;- Parameters:
value- The minute to set.- Returns:
- This builder for chaining.
-
clearMinute
Expression to match minutes. Default: 0
string minute = 2;- Returns:
- This builder for chaining.
-
setMinuteBytes
Expression to match minutes. Default: 0
string minute = 2;- Parameters:
value- The bytes for minute to set.- Returns:
- This builder for chaining.
-
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
Expression to match hours. Default: 0
string hour = 3;- Parameters:
value- The hour to set.- Returns:
- This builder for chaining.
-
clearHour
Expression to match hours. Default: 0
string hour = 3;- Returns:
- This builder for chaining.
-
setHourBytes
Expression to match hours. Default: 0
string hour = 3;- Parameters:
value- The bytes for hour to set.- Returns:
- This builder for chaining.
-
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
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
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
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
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
Expression to match months. Default: *
string month = 5;- Parameters:
value- The month to set.- Returns:
- This builder for chaining.
-
clearMonth
Expression to match months. Default: *
string month = 5;- Returns:
- This builder for chaining.
-
setMonthBytes
Expression to match months. Default: *
string month = 5;- Parameters:
value- The bytes for month to set.- Returns:
- This builder for chaining.
-
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
Expression to match years. Default: *
string year = 6;- Parameters:
value- The year to set.- Returns:
- This builder for chaining.
-
clearYear
Expression to match years. Default: *
string year = 6;- Returns:
- This builder for chaining.
-
setYearBytes
Expression to match years. Default: *
string year = 6;- Parameters:
value- The bytes for year to set.- Returns:
- This builder for chaining.
-
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
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
Expression to match days of the week. Default: *
string day_of_week = 7;- Returns:
- This builder for chaining.
-
setDayOfWeekBytes
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
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
Free-form comment describing the intention of this spec.
string comment = 8;- Parameters:
value- The comment to set.- Returns:
- This builder for chaining.
-
clearComment
Free-form comment describing the intention of this spec.
string comment = 8;- Returns:
- This builder for chaining.
-
setCommentBytes
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>
-