Class StructuredCalendarSpec.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StructuredCalendarSpecOrBuilder, java.lang.Cloneable
    Enclosing class:
    StructuredCalendarSpec

    public static final class StructuredCalendarSpec.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StructuredCalendarSpec.Builder>
    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.
     TODO: add relative-to-end-of-month
     TODO: add nth day-of-week in month
     
    Protobuf type temporal.api.schedule.v1.StructuredCalendarSpec
    • Method Detail

      • 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.Builder<StructuredCalendarSpec.Builder>
      • clear

        public StructuredCalendarSpec.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredCalendarSpec.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredCalendarSpec.Builder>
      • getDefaultInstanceForType

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

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

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

        public StructuredCalendarSpec.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredCalendarSpec.Builder>
      • setField

        public StructuredCalendarSpec.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredCalendarSpec.Builder>
      • clearField

        public StructuredCalendarSpec.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredCalendarSpec.Builder>
      • clearOneof

        public StructuredCalendarSpec.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredCalendarSpec.Builder>
      • setRepeatedField

        public StructuredCalendarSpec.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredCalendarSpec.Builder>
      • addRepeatedField

        public StructuredCalendarSpec.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredCalendarSpec.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredCalendarSpec.Builder>
      • mergeFrom

        public StructuredCalendarSpec.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StructuredCalendarSpec.Builder>
        Throws:
        java.io.IOException
      • addAllSecond

        public StructuredCalendarSpec.Builder addAllSecond​(java.lang.Iterable<? extends Range> values)
         Match seconds (0-59)
         
        repeated .temporal.api.schedule.v1.Range second = 1;
      • removeSecond

        public StructuredCalendarSpec.Builder removeSecond​(int index)
         Match seconds (0-59)
         
        repeated .temporal.api.schedule.v1.Range second = 1;
      • getSecondBuilder

        public Range.Builder getSecondBuilder​(int index)
         Match seconds (0-59)
         
        repeated .temporal.api.schedule.v1.Range second = 1;
      • addSecondBuilder

        public Range.Builder addSecondBuilder()
         Match seconds (0-59)
         
        repeated .temporal.api.schedule.v1.Range second = 1;
      • addSecondBuilder

        public Range.Builder addSecondBuilder​(int index)
         Match seconds (0-59)
         
        repeated .temporal.api.schedule.v1.Range second = 1;
      • getSecondBuilderList

        public java.util.List<Range.Builder> getSecondBuilderList()
         Match seconds (0-59)
         
        repeated .temporal.api.schedule.v1.Range second = 1;
      • addAllMinute

        public StructuredCalendarSpec.Builder addAllMinute​(java.lang.Iterable<? extends Range> values)
         Match minutes (0-59)
         
        repeated .temporal.api.schedule.v1.Range minute = 2;
      • removeMinute

        public StructuredCalendarSpec.Builder removeMinute​(int index)
         Match minutes (0-59)
         
        repeated .temporal.api.schedule.v1.Range minute = 2;
      • getMinuteBuilder

        public Range.Builder getMinuteBuilder​(int index)
         Match minutes (0-59)
         
        repeated .temporal.api.schedule.v1.Range minute = 2;
      • addMinuteBuilder

        public Range.Builder addMinuteBuilder()
         Match minutes (0-59)
         
        repeated .temporal.api.schedule.v1.Range minute = 2;
      • addMinuteBuilder

        public Range.Builder addMinuteBuilder​(int index)
         Match minutes (0-59)
         
        repeated .temporal.api.schedule.v1.Range minute = 2;
      • getMinuteBuilderList

        public java.util.List<Range.Builder> getMinuteBuilderList()
         Match minutes (0-59)
         
        repeated .temporal.api.schedule.v1.Range minute = 2;
      • addAllHour

        public StructuredCalendarSpec.Builder addAllHour​(java.lang.Iterable<? extends Range> values)
         Match hours (0-23)
         
        repeated .temporal.api.schedule.v1.Range hour = 3;
      • getHourBuilder

        public Range.Builder getHourBuilder​(int index)
         Match hours (0-23)
         
        repeated .temporal.api.schedule.v1.Range hour = 3;
      • addHourBuilder

        public Range.Builder addHourBuilder()
         Match hours (0-23)
         
        repeated .temporal.api.schedule.v1.Range hour = 3;
      • addHourBuilder

        public Range.Builder addHourBuilder​(int index)
         Match hours (0-23)
         
        repeated .temporal.api.schedule.v1.Range hour = 3;
      • getHourBuilderList

        public java.util.List<Range.Builder> getHourBuilderList()
         Match hours (0-23)
         
        repeated .temporal.api.schedule.v1.Range hour = 3;
      • getDayOfMonthList

        public java.util.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
      • 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
      • setDayOfMonth

        public StructuredCalendarSpec.Builder setDayOfMonth​(int index,
                                                            Range value)
         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;
      • setDayOfMonth

        public StructuredCalendarSpec.Builder setDayOfMonth​(int index,
                                                            Range.Builder builderForValue)
         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;
      • addDayOfMonth

        public StructuredCalendarSpec.Builder addDayOfMonth​(Range value)
         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;
      • addDayOfMonth

        public StructuredCalendarSpec.Builder addDayOfMonth​(int index,
                                                            Range value)
         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;
      • addDayOfMonth

        public StructuredCalendarSpec.Builder addDayOfMonth​(Range.Builder builderForValue)
         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;
      • addDayOfMonth

        public StructuredCalendarSpec.Builder addDayOfMonth​(int index,
                                                            Range.Builder builderForValue)
         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;
      • addAllDayOfMonth

        public StructuredCalendarSpec.Builder addAllDayOfMonth​(java.lang.Iterable<? extends Range> values)
         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;
      • clearDayOfMonth

        public StructuredCalendarSpec.Builder clearDayOfMonth()
         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;
      • removeDayOfMonth

        public StructuredCalendarSpec.Builder removeDayOfMonth​(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;
      • getDayOfMonthBuilder

        public Range.Builder getDayOfMonthBuilder​(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;
      • 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
      • getDayOfMonthOrBuilderList

        public java.util.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
      • addDayOfMonthBuilder

        public Range.Builder addDayOfMonthBuilder()
         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;
      • addDayOfMonthBuilder

        public Range.Builder addDayOfMonthBuilder​(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;
      • getDayOfMonthBuilderList

        public java.util.List<Range.Builder> getDayOfMonthBuilderList()
         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;
      • addAllMonth

        public StructuredCalendarSpec.Builder addAllMonth​(java.lang.Iterable<? extends Range> values)
         Match months (1-12)
         
        repeated .temporal.api.schedule.v1.Range month = 5;
      • removeMonth

        public StructuredCalendarSpec.Builder removeMonth​(int index)
         Match months (1-12)
         
        repeated .temporal.api.schedule.v1.Range month = 5;
      • getMonthBuilder

        public Range.Builder getMonthBuilder​(int index)
         Match months (1-12)
         
        repeated .temporal.api.schedule.v1.Range month = 5;
      • addMonthBuilder

        public Range.Builder addMonthBuilder()
         Match months (1-12)
         
        repeated .temporal.api.schedule.v1.Range month = 5;
      • addMonthBuilder

        public Range.Builder addMonthBuilder​(int index)
         Match months (1-12)
         
        repeated .temporal.api.schedule.v1.Range month = 5;
      • getMonthBuilderList

        public java.util.List<Range.Builder> getMonthBuilderList()
         Match months (1-12)
         
        repeated .temporal.api.schedule.v1.Range month = 5;
      • addAllYear

        public StructuredCalendarSpec.Builder addAllYear​(java.lang.Iterable<? extends Range> values)
         Match years.
         
        repeated .temporal.api.schedule.v1.Range year = 6;
      • getYearBuilder

        public Range.Builder getYearBuilder​(int index)
         Match years.
         
        repeated .temporal.api.schedule.v1.Range year = 6;
      • addYearBuilder

        public Range.Builder addYearBuilder()
         Match years.
         
        repeated .temporal.api.schedule.v1.Range year = 6;
      • addYearBuilder

        public Range.Builder addYearBuilder​(int index)
         Match years.
         
        repeated .temporal.api.schedule.v1.Range year = 6;
      • getYearBuilderList

        public java.util.List<Range.Builder> getYearBuilderList()
         Match years.
         
        repeated .temporal.api.schedule.v1.Range year = 6;
      • setDayOfWeek

        public StructuredCalendarSpec.Builder setDayOfWeek​(int index,
                                                           Range value)
         Match days of the week (0-6; 0 is Sunday).
         
        repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      • setDayOfWeek

        public StructuredCalendarSpec.Builder setDayOfWeek​(int index,
                                                           Range.Builder builderForValue)
         Match days of the week (0-6; 0 is Sunday).
         
        repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      • addDayOfWeek

        public StructuredCalendarSpec.Builder addDayOfWeek​(Range value)
         Match days of the week (0-6; 0 is Sunday).
         
        repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      • addDayOfWeek

        public StructuredCalendarSpec.Builder addDayOfWeek​(int index,
                                                           Range value)
         Match days of the week (0-6; 0 is Sunday).
         
        repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      • addDayOfWeek

        public StructuredCalendarSpec.Builder addDayOfWeek​(int index,
                                                           Range.Builder builderForValue)
         Match days of the week (0-6; 0 is Sunday).
         
        repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      • addAllDayOfWeek

        public StructuredCalendarSpec.Builder addAllDayOfWeek​(java.lang.Iterable<? extends Range> values)
         Match days of the week (0-6; 0 is Sunday).
         
        repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      • clearDayOfWeek

        public StructuredCalendarSpec.Builder clearDayOfWeek()
         Match days of the week (0-6; 0 is Sunday).
         
        repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      • removeDayOfWeek

        public StructuredCalendarSpec.Builder removeDayOfWeek​(int index)
         Match days of the week (0-6; 0 is Sunday).
         
        repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      • getDayOfWeekBuilder

        public Range.Builder getDayOfWeekBuilder​(int index)
         Match days of the week (0-6; 0 is Sunday).
         
        repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      • addDayOfWeekBuilder

        public Range.Builder addDayOfWeekBuilder()
         Match days of the week (0-6; 0 is Sunday).
         
        repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      • addDayOfWeekBuilder

        public Range.Builder addDayOfWeekBuilder​(int index)
         Match days of the week (0-6; 0 is Sunday).
         
        repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      • getDayOfWeekBuilderList

        public java.util.List<Range.Builder> getDayOfWeekBuilderList()
         Match days of the week (0-6; 0 is Sunday).
         
        repeated .temporal.api.schedule.v1.Range day_of_week = 7;
      • getComment

        public java.lang.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.
      • setComment

        public StructuredCalendarSpec.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 StructuredCalendarSpec.Builder clearComment()
         Free-form comment describing the intention of this spec.
         
        string comment = 8;
        Returns:
        This builder for chaining.
      • setCommentBytes

        public StructuredCalendarSpec.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 StructuredCalendarSpec.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredCalendarSpec.Builder>
      • mergeUnknownFields

        public final StructuredCalendarSpec.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredCalendarSpec.Builder>