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:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getSecondList

      public List<Range> getSecondList()
       Match seconds (0-59)
       
      repeated .temporal.api.schedule.v1.Range second = 1;
      Specified by:
      getSecondList in interface StructuredCalendarSpecOrBuilder
    • getSecondOrBuilderList

      public List<? extends RangeOrBuilder> getSecondOrBuilderList()
       Match seconds (0-59)
       
      repeated .temporal.api.schedule.v1.Range second = 1;
      Specified by:
      getSecondOrBuilderList in interface StructuredCalendarSpecOrBuilder
    • getSecondCount

      public int getSecondCount()
       Match seconds (0-59)
       
      repeated .temporal.api.schedule.v1.Range second = 1;
      Specified by:
      getSecondCount in interface StructuredCalendarSpecOrBuilder
    • getSecond

      public Range getSecond(int index)
       Match seconds (0-59)
       
      repeated .temporal.api.schedule.v1.Range second = 1;
      Specified by:
      getSecond in interface StructuredCalendarSpecOrBuilder
    • getSecondOrBuilder

      public RangeOrBuilder getSecondOrBuilder(int index)
       Match seconds (0-59)
       
      repeated .temporal.api.schedule.v1.Range second = 1;
      Specified by:
      getSecondOrBuilder in interface StructuredCalendarSpecOrBuilder
    • getMinuteList

      public List<Range> getMinuteList()
       Match minutes (0-59)
       
      repeated .temporal.api.schedule.v1.Range minute = 2;
      Specified by:
      getMinuteList in interface StructuredCalendarSpecOrBuilder
    • getMinuteOrBuilderList

      public List<? extends RangeOrBuilder> getMinuteOrBuilderList()
       Match minutes (0-59)
       
      repeated .temporal.api.schedule.v1.Range minute = 2;
      Specified by:
      getMinuteOrBuilderList in interface StructuredCalendarSpecOrBuilder
    • getMinuteCount

      public int getMinuteCount()
       Match minutes (0-59)
       
      repeated .temporal.api.schedule.v1.Range minute = 2;
      Specified by:
      getMinuteCount in interface StructuredCalendarSpecOrBuilder
    • getMinute

      public Range getMinute(int index)
       Match minutes (0-59)
       
      repeated .temporal.api.schedule.v1.Range minute = 2;
      Specified by:
      getMinute in interface StructuredCalendarSpecOrBuilder
    • getMinuteOrBuilder

      public RangeOrBuilder getMinuteOrBuilder(int index)
       Match minutes (0-59)
       
      repeated .temporal.api.schedule.v1.Range minute = 2;
      Specified by:
      getMinuteOrBuilder in interface StructuredCalendarSpecOrBuilder
    • getHourList

      public List<Range> getHourList()
       Match hours (0-23)
       
      repeated .temporal.api.schedule.v1.Range hour = 3;
      Specified by:
      getHourList in interface StructuredCalendarSpecOrBuilder
    • getHourOrBuilderList

      public List<? extends RangeOrBuilder> getHourOrBuilderList()
       Match hours (0-23)
       
      repeated .temporal.api.schedule.v1.Range hour = 3;
      Specified by:
      getHourOrBuilderList in interface StructuredCalendarSpecOrBuilder
    • getHourCount

      public int getHourCount()
       Match hours (0-23)
       
      repeated .temporal.api.schedule.v1.Range hour = 3;
      Specified by:
      getHourCount in interface StructuredCalendarSpecOrBuilder
    • getHour

      public Range getHour(int index)
       Match hours (0-23)
       
      repeated .temporal.api.schedule.v1.Range hour = 3;
      Specified by:
      getHour in interface StructuredCalendarSpecOrBuilder
    • getHourOrBuilder

      public RangeOrBuilder getHourOrBuilder(int index)
       Match hours (0-23)
       
      repeated .temporal.api.schedule.v1.Range hour = 3;
      Specified by:
      getHourOrBuilder in interface StructuredCalendarSpecOrBuilder
    • getDayOfMonthList

      public List<Range> 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:
      getDayOfMonthList in interface StructuredCalendarSpecOrBuilder
    • getDayOfMonthOrBuilderList

      public List<? extends RangeOrBuilder> 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:
      getDayOfMonthOrBuilderList in interface StructuredCalendarSpecOrBuilder
    • 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:
      getDayOfMonthCount in interface StructuredCalendarSpecOrBuilder
    • getDayOfMonth

      public Range getDayOfMonth(int index)
       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:
      getDayOfMonth in interface StructuredCalendarSpecOrBuilder
    • getDayOfMonthOrBuilder

      public RangeOrBuilder getDayOfMonthOrBuilder(int index)
       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:
      getDayOfMonthOrBuilder in interface StructuredCalendarSpecOrBuilder
    • getMonthList

      public List<Range> getMonthList()
       Match months (1-12)
       
      repeated .temporal.api.schedule.v1.Range month = 5;
      Specified by:
      getMonthList in interface StructuredCalendarSpecOrBuilder
    • getMonthOrBuilderList

      public List<? extends RangeOrBuilder> getMonthOrBuilderList()
       Match months (1-12)
       
      repeated .temporal.api.schedule.v1.Range month = 5;
      Specified by:
      getMonthOrBuilderList in interface StructuredCalendarSpecOrBuilder
    • getMonthCount

      public int getMonthCount()
       Match months (1-12)
       
      repeated .temporal.api.schedule.v1.Range month = 5;
      Specified by:
      getMonthCount in interface StructuredCalendarSpecOrBuilder
    • getMonth

      public Range getMonth(int index)
       Match months (1-12)
       
      repeated .temporal.api.schedule.v1.Range month = 5;
      Specified by:
      getMonth in interface StructuredCalendarSpecOrBuilder
    • getMonthOrBuilder

      public RangeOrBuilder getMonthOrBuilder(int index)
       Match months (1-12)
       
      repeated .temporal.api.schedule.v1.Range month = 5;
      Specified by:
      getMonthOrBuilder in interface StructuredCalendarSpecOrBuilder
    • getYearList

      public List<Range> getYearList()
       Match years.
       
      repeated .temporal.api.schedule.v1.Range year = 6;
      Specified by:
      getYearList in interface StructuredCalendarSpecOrBuilder
    • getYearOrBuilderList

      public List<? extends RangeOrBuilder> getYearOrBuilderList()
       Match years.
       
      repeated .temporal.api.schedule.v1.Range year = 6;
      Specified by:
      getYearOrBuilderList in interface StructuredCalendarSpecOrBuilder
    • getYearCount

      public int getYearCount()
       Match years.
       
      repeated .temporal.api.schedule.v1.Range year = 6;
      Specified by:
      getYearCount in interface StructuredCalendarSpecOrBuilder
    • getYear

      public Range getYear(int index)
       Match years.
       
      repeated .temporal.api.schedule.v1.Range year = 6;
      Specified by:
      getYear in interface StructuredCalendarSpecOrBuilder
    • getYearOrBuilder

      public RangeOrBuilder getYearOrBuilder(int index)
       Match years.
       
      repeated .temporal.api.schedule.v1.Range year = 6;
      Specified by:
      getYearOrBuilder in interface StructuredCalendarSpecOrBuilder
    • getDayOfWeekList

      public List<Range> getDayOfWeekList()
       Match days of the week (0-6; 0 is Sunday).
       
      repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      Specified by:
      getDayOfWeekList in interface StructuredCalendarSpecOrBuilder
    • getDayOfWeekOrBuilderList

      public List<? extends RangeOrBuilder> getDayOfWeekOrBuilderList()
       Match days of the week (0-6; 0 is Sunday).
       
      repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      Specified by:
      getDayOfWeekOrBuilderList in interface StructuredCalendarSpecOrBuilder
    • 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:
      getDayOfWeekCount in interface StructuredCalendarSpecOrBuilder
    • getDayOfWeek

      public Range getDayOfWeek(int index)
       Match days of the week (0-6; 0 is Sunday).
       
      repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      Specified by:
      getDayOfWeek in interface StructuredCalendarSpecOrBuilder
    • getDayOfWeekOrBuilder

      public RangeOrBuilder getDayOfWeekOrBuilder(int index)
       Match days of the week (0-6; 0 is Sunday).
       
      repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      Specified by:
      getDayOfWeekOrBuilder in interface StructuredCalendarSpecOrBuilder
    • getComment

      public String getComment()
       Free-form comment describing the intention of this spec.
       
      string comment = 8;
      Specified by:
      getComment in interface StructuredCalendarSpecOrBuilder
      Returns:
      The comment.
    • getCommentBytes

      public com.google.protobuf.ByteString getCommentBytes()
       Free-form comment describing the intention of this spec.
       
      string comment = 8;
      Specified by:
      getCommentBytes in interface StructuredCalendarSpecOrBuilder
      Returns:
      The bytes for comment.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static StructuredCalendarSpec parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StructuredCalendarSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StructuredCalendarSpec parseDelimitedFrom(InputStream input) throws IOException
      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

      public StructuredCalendarSpec.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static StructuredCalendarSpec.Builder newBuilder()
    • newBuilder

      public static StructuredCalendarSpec.Builder newBuilder(StructuredCalendarSpec prototype)
    • toBuilder

      public StructuredCalendarSpec.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected StructuredCalendarSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static StructuredCalendarSpec getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<StructuredCalendarSpec> parser()
    • getParserForType

      public com.google.protobuf.Parser<StructuredCalendarSpec> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public StructuredCalendarSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder