All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.temporal.api.schedule.v1.StructuredCalendarSpec Maven / Gradle / Ivy

There is a newer version: 1.27.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: temporal/api/schedule/v1/message.proto

package io.temporal.api.schedule.v1;

/**
 * 
 * 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 {@code temporal.api.schedule.v1.StructuredCalendarSpec} */ @javax.annotation.Generated(value="protoc", comments="annotations:StructuredCalendarSpec.java.pb.meta") public final class StructuredCalendarSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:temporal.api.schedule.v1.StructuredCalendarSpec) StructuredCalendarSpecOrBuilder { private static final long serialVersionUID = 0L; // Use StructuredCalendarSpec.newBuilder() to construct. private StructuredCalendarSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StructuredCalendarSpec() { second_ = java.util.Collections.emptyList(); minute_ = java.util.Collections.emptyList(); hour_ = java.util.Collections.emptyList(); dayOfMonth_ = java.util.Collections.emptyList(); month_ = java.util.Collections.emptyList(); year_ = java.util.Collections.emptyList(); dayOfWeek_ = java.util.Collections.emptyList(); comment_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StructuredCalendarSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StructuredCalendarSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { second_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } second_.add( input.readMessage(io.temporal.api.schedule.v1.Range.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { minute_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } minute_.add( input.readMessage(io.temporal.api.schedule.v1.Range.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { hour_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } hour_.add( input.readMessage(io.temporal.api.schedule.v1.Range.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { dayOfMonth_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } dayOfMonth_.add( input.readMessage(io.temporal.api.schedule.v1.Range.parser(), extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { month_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } month_.add( input.readMessage(io.temporal.api.schedule.v1.Range.parser(), extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) != 0)) { year_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } year_.add( input.readMessage(io.temporal.api.schedule.v1.Range.parser(), extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) != 0)) { dayOfWeek_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } dayOfWeek_.add( input.readMessage(io.temporal.api.schedule.v1.Range.parser(), extensionRegistry)); break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); comment_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { second_ = java.util.Collections.unmodifiableList(second_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { minute_ = java.util.Collections.unmodifiableList(minute_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { hour_ = java.util.Collections.unmodifiableList(hour_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { dayOfMonth_ = java.util.Collections.unmodifiableList(dayOfMonth_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { month_ = java.util.Collections.unmodifiableList(month_); } if (((mutable_bitField0_ & 0x00000020) != 0)) { year_ = java.util.Collections.unmodifiableList(year_); } if (((mutable_bitField0_ & 0x00000040) != 0)) { dayOfWeek_ = java.util.Collections.unmodifiableList(dayOfWeek_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_StructuredCalendarSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_StructuredCalendarSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.schedule.v1.StructuredCalendarSpec.class, io.temporal.api.schedule.v1.StructuredCalendarSpec.Builder.class); } public static final int SECOND_FIELD_NUMBER = 1; private java.util.List second_; /** *
   * Match seconds (0-59)
   * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public java.util.List getSecondList() { return second_; } /** *
   * Match seconds (0-59)
   * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public java.util.List getSecondOrBuilderList() { return second_; } /** *
   * Match seconds (0-59)
   * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public int getSecondCount() { return second_.size(); } /** *
   * Match seconds (0-59)
   * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public io.temporal.api.schedule.v1.Range getSecond(int index) { return second_.get(index); } /** *
   * Match seconds (0-59)
   * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public io.temporal.api.schedule.v1.RangeOrBuilder getSecondOrBuilder( int index) { return second_.get(index); } public static final int MINUTE_FIELD_NUMBER = 2; private java.util.List minute_; /** *
   * Match minutes (0-59)
   * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public java.util.List getMinuteList() { return minute_; } /** *
   * Match minutes (0-59)
   * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public java.util.List getMinuteOrBuilderList() { return minute_; } /** *
   * Match minutes (0-59)
   * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public int getMinuteCount() { return minute_.size(); } /** *
   * Match minutes (0-59)
   * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public io.temporal.api.schedule.v1.Range getMinute(int index) { return minute_.get(index); } /** *
   * Match minutes (0-59)
   * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public io.temporal.api.schedule.v1.RangeOrBuilder getMinuteOrBuilder( int index) { return minute_.get(index); } public static final int HOUR_FIELD_NUMBER = 3; private java.util.List hour_; /** *
   * Match hours (0-23)
   * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public java.util.List getHourList() { return hour_; } /** *
   * Match hours (0-23)
   * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public java.util.List getHourOrBuilderList() { return hour_; } /** *
   * Match hours (0-23)
   * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public int getHourCount() { return hour_.size(); } /** *
   * Match hours (0-23)
   * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public io.temporal.api.schedule.v1.Range getHour(int index) { return hour_.get(index); } /** *
   * Match hours (0-23)
   * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public io.temporal.api.schedule.v1.RangeOrBuilder getHourOrBuilder( int index) { return hour_.get(index); } public static final int DAY_OF_MONTH_FIELD_NUMBER = 4; private java.util.List dayOfMonth_; /** *
   * 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; */ public java.util.List getDayOfMonthList() { return dayOfMonth_; } /** *
   * 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; */ public java.util.List getDayOfMonthOrBuilderList() { return dayOfMonth_; } /** *
   * 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; */ public int getDayOfMonthCount() { return dayOfMonth_.size(); } /** *
   * 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; */ public io.temporal.api.schedule.v1.Range getDayOfMonth(int index) { return dayOfMonth_.get(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; */ public io.temporal.api.schedule.v1.RangeOrBuilder getDayOfMonthOrBuilder( int index) { return dayOfMonth_.get(index); } public static final int MONTH_FIELD_NUMBER = 5; private java.util.List month_; /** *
   * Match months (1-12)
   * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public java.util.List getMonthList() { return month_; } /** *
   * Match months (1-12)
   * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public java.util.List getMonthOrBuilderList() { return month_; } /** *
   * Match months (1-12)
   * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public int getMonthCount() { return month_.size(); } /** *
   * Match months (1-12)
   * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public io.temporal.api.schedule.v1.Range getMonth(int index) { return month_.get(index); } /** *
   * Match months (1-12)
   * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public io.temporal.api.schedule.v1.RangeOrBuilder getMonthOrBuilder( int index) { return month_.get(index); } public static final int YEAR_FIELD_NUMBER = 6; private java.util.List year_; /** *
   * Match years.
   * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public java.util.List getYearList() { return year_; } /** *
   * Match years.
   * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public java.util.List getYearOrBuilderList() { return year_; } /** *
   * Match years.
   * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public int getYearCount() { return year_.size(); } /** *
   * Match years.
   * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public io.temporal.api.schedule.v1.Range getYear(int index) { return year_.get(index); } /** *
   * Match years.
   * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public io.temporal.api.schedule.v1.RangeOrBuilder getYearOrBuilder( int index) { return year_.get(index); } public static final int DAY_OF_WEEK_FIELD_NUMBER = 7; private java.util.List dayOfWeek_; /** *
   * Match days of the week (0-6; 0 is Sunday).
   * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public java.util.List getDayOfWeekList() { return dayOfWeek_; } /** *
   * Match days of the week (0-6; 0 is Sunday).
   * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public java.util.List getDayOfWeekOrBuilderList() { return dayOfWeek_; } /** *
   * Match days of the week (0-6; 0 is Sunday).
   * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public int getDayOfWeekCount() { return dayOfWeek_.size(); } /** *
   * Match days of the week (0-6; 0 is Sunday).
   * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public io.temporal.api.schedule.v1.Range getDayOfWeek(int index) { return dayOfWeek_.get(index); } /** *
   * Match days of the week (0-6; 0 is Sunday).
   * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public io.temporal.api.schedule.v1.RangeOrBuilder getDayOfWeekOrBuilder( int index) { return dayOfWeek_.get(index); } public static final int COMMENT_FIELD_NUMBER = 8; private volatile java.lang.Object comment_; /** *
   * Free-form comment describing the intention of this spec.
   * 
* * string comment = 8; * @return The comment. */ public java.lang.String getComment() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; } } /** *
   * Free-form comment describing the intention of this spec.
   * 
* * string comment = 8; * @return The bytes for comment. */ public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); comment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < second_.size(); i++) { output.writeMessage(1, second_.get(i)); } for (int i = 0; i < minute_.size(); i++) { output.writeMessage(2, minute_.get(i)); } for (int i = 0; i < hour_.size(); i++) { output.writeMessage(3, hour_.get(i)); } for (int i = 0; i < dayOfMonth_.size(); i++) { output.writeMessage(4, dayOfMonth_.get(i)); } for (int i = 0; i < month_.size(); i++) { output.writeMessage(5, month_.get(i)); } for (int i = 0; i < year_.size(); i++) { output.writeMessage(6, year_.get(i)); } for (int i = 0; i < dayOfWeek_.size(); i++) { output.writeMessage(7, dayOfWeek_.get(i)); } if (!getCommentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, comment_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < second_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, second_.get(i)); } for (int i = 0; i < minute_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, minute_.get(i)); } for (int i = 0; i < hour_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, hour_.get(i)); } for (int i = 0; i < dayOfMonth_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, dayOfMonth_.get(i)); } for (int i = 0; i < month_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, month_.get(i)); } for (int i = 0; i < year_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, year_.get(i)); } for (int i = 0; i < dayOfWeek_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, dayOfWeek_.get(i)); } if (!getCommentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, comment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.temporal.api.schedule.v1.StructuredCalendarSpec)) { return super.equals(obj); } io.temporal.api.schedule.v1.StructuredCalendarSpec other = (io.temporal.api.schedule.v1.StructuredCalendarSpec) obj; if (!getSecondList() .equals(other.getSecondList())) return false; if (!getMinuteList() .equals(other.getMinuteList())) return false; if (!getHourList() .equals(other.getHourList())) return false; if (!getDayOfMonthList() .equals(other.getDayOfMonthList())) return false; if (!getMonthList() .equals(other.getMonthList())) return false; if (!getYearList() .equals(other.getYearList())) return false; if (!getDayOfWeekList() .equals(other.getDayOfWeekList())) return false; if (!getComment() .equals(other.getComment())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSecondCount() > 0) { hash = (37 * hash) + SECOND_FIELD_NUMBER; hash = (53 * hash) + getSecondList().hashCode(); } if (getMinuteCount() > 0) { hash = (37 * hash) + MINUTE_FIELD_NUMBER; hash = (53 * hash) + getMinuteList().hashCode(); } if (getHourCount() > 0) { hash = (37 * hash) + HOUR_FIELD_NUMBER; hash = (53 * hash) + getHourList().hashCode(); } if (getDayOfMonthCount() > 0) { hash = (37 * hash) + DAY_OF_MONTH_FIELD_NUMBER; hash = (53 * hash) + getDayOfMonthList().hashCode(); } if (getMonthCount() > 0) { hash = (37 * hash) + MONTH_FIELD_NUMBER; hash = (53 * hash) + getMonthList().hashCode(); } if (getYearCount() > 0) { hash = (37 * hash) + YEAR_FIELD_NUMBER; hash = (53 * hash) + getYearList().hashCode(); } if (getDayOfWeekCount() > 0) { hash = (37 * hash) + DAY_OF_WEEK_FIELD_NUMBER; hash = (53 * hash) + getDayOfWeekList().hashCode(); } hash = (37 * hash) + COMMENT_FIELD_NUMBER; hash = (53 * hash) + getComment().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.schedule.v1.StructuredCalendarSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.schedule.v1.StructuredCalendarSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.schedule.v1.StructuredCalendarSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.schedule.v1.StructuredCalendarSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.schedule.v1.StructuredCalendarSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.schedule.v1.StructuredCalendarSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.schedule.v1.StructuredCalendarSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.schedule.v1.StructuredCalendarSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.schedule.v1.StructuredCalendarSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.schedule.v1.StructuredCalendarSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.schedule.v1.StructuredCalendarSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.schedule.v1.StructuredCalendarSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.temporal.api.schedule.v1.StructuredCalendarSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * 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 {@code temporal.api.schedule.v1.StructuredCalendarSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.schedule.v1.StructuredCalendarSpec) io.temporal.api.schedule.v1.StructuredCalendarSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_StructuredCalendarSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_StructuredCalendarSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.schedule.v1.StructuredCalendarSpec.class, io.temporal.api.schedule.v1.StructuredCalendarSpec.Builder.class); } // Construct using io.temporal.api.schedule.v1.StructuredCalendarSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSecondFieldBuilder(); getMinuteFieldBuilder(); getHourFieldBuilder(); getDayOfMonthFieldBuilder(); getMonthFieldBuilder(); getYearFieldBuilder(); getDayOfWeekFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (secondBuilder_ == null) { second_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { secondBuilder_.clear(); } if (minuteBuilder_ == null) { minute_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { minuteBuilder_.clear(); } if (hourBuilder_ == null) { hour_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { hourBuilder_.clear(); } if (dayOfMonthBuilder_ == null) { dayOfMonth_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { dayOfMonthBuilder_.clear(); } if (monthBuilder_ == null) { month_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { monthBuilder_.clear(); } if (yearBuilder_ == null) { year_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { yearBuilder_.clear(); } if (dayOfWeekBuilder_ == null) { dayOfWeek_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { dayOfWeekBuilder_.clear(); } comment_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_StructuredCalendarSpec_descriptor; } @java.lang.Override public io.temporal.api.schedule.v1.StructuredCalendarSpec getDefaultInstanceForType() { return io.temporal.api.schedule.v1.StructuredCalendarSpec.getDefaultInstance(); } @java.lang.Override public io.temporal.api.schedule.v1.StructuredCalendarSpec build() { io.temporal.api.schedule.v1.StructuredCalendarSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.schedule.v1.StructuredCalendarSpec buildPartial() { io.temporal.api.schedule.v1.StructuredCalendarSpec result = new io.temporal.api.schedule.v1.StructuredCalendarSpec(this); int from_bitField0_ = bitField0_; if (secondBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { second_ = java.util.Collections.unmodifiableList(second_); bitField0_ = (bitField0_ & ~0x00000001); } result.second_ = second_; } else { result.second_ = secondBuilder_.build(); } if (minuteBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { minute_ = java.util.Collections.unmodifiableList(minute_); bitField0_ = (bitField0_ & ~0x00000002); } result.minute_ = minute_; } else { result.minute_ = minuteBuilder_.build(); } if (hourBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { hour_ = java.util.Collections.unmodifiableList(hour_); bitField0_ = (bitField0_ & ~0x00000004); } result.hour_ = hour_; } else { result.hour_ = hourBuilder_.build(); } if (dayOfMonthBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { dayOfMonth_ = java.util.Collections.unmodifiableList(dayOfMonth_); bitField0_ = (bitField0_ & ~0x00000008); } result.dayOfMonth_ = dayOfMonth_; } else { result.dayOfMonth_ = dayOfMonthBuilder_.build(); } if (monthBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { month_ = java.util.Collections.unmodifiableList(month_); bitField0_ = (bitField0_ & ~0x00000010); } result.month_ = month_; } else { result.month_ = monthBuilder_.build(); } if (yearBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { year_ = java.util.Collections.unmodifiableList(year_); bitField0_ = (bitField0_ & ~0x00000020); } result.year_ = year_; } else { result.year_ = yearBuilder_.build(); } if (dayOfWeekBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { dayOfWeek_ = java.util.Collections.unmodifiableList(dayOfWeek_); bitField0_ = (bitField0_ & ~0x00000040); } result.dayOfWeek_ = dayOfWeek_; } else { result.dayOfWeek_ = dayOfWeekBuilder_.build(); } result.comment_ = comment_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.temporal.api.schedule.v1.StructuredCalendarSpec) { return mergeFrom((io.temporal.api.schedule.v1.StructuredCalendarSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.schedule.v1.StructuredCalendarSpec other) { if (other == io.temporal.api.schedule.v1.StructuredCalendarSpec.getDefaultInstance()) return this; if (secondBuilder_ == null) { if (!other.second_.isEmpty()) { if (second_.isEmpty()) { second_ = other.second_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSecondIsMutable(); second_.addAll(other.second_); } onChanged(); } } else { if (!other.second_.isEmpty()) { if (secondBuilder_.isEmpty()) { secondBuilder_.dispose(); secondBuilder_ = null; second_ = other.second_; bitField0_ = (bitField0_ & ~0x00000001); secondBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecondFieldBuilder() : null; } else { secondBuilder_.addAllMessages(other.second_); } } } if (minuteBuilder_ == null) { if (!other.minute_.isEmpty()) { if (minute_.isEmpty()) { minute_ = other.minute_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMinuteIsMutable(); minute_.addAll(other.minute_); } onChanged(); } } else { if (!other.minute_.isEmpty()) { if (minuteBuilder_.isEmpty()) { minuteBuilder_.dispose(); minuteBuilder_ = null; minute_ = other.minute_; bitField0_ = (bitField0_ & ~0x00000002); minuteBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMinuteFieldBuilder() : null; } else { minuteBuilder_.addAllMessages(other.minute_); } } } if (hourBuilder_ == null) { if (!other.hour_.isEmpty()) { if (hour_.isEmpty()) { hour_ = other.hour_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureHourIsMutable(); hour_.addAll(other.hour_); } onChanged(); } } else { if (!other.hour_.isEmpty()) { if (hourBuilder_.isEmpty()) { hourBuilder_.dispose(); hourBuilder_ = null; hour_ = other.hour_; bitField0_ = (bitField0_ & ~0x00000004); hourBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHourFieldBuilder() : null; } else { hourBuilder_.addAllMessages(other.hour_); } } } if (dayOfMonthBuilder_ == null) { if (!other.dayOfMonth_.isEmpty()) { if (dayOfMonth_.isEmpty()) { dayOfMonth_ = other.dayOfMonth_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDayOfMonthIsMutable(); dayOfMonth_.addAll(other.dayOfMonth_); } onChanged(); } } else { if (!other.dayOfMonth_.isEmpty()) { if (dayOfMonthBuilder_.isEmpty()) { dayOfMonthBuilder_.dispose(); dayOfMonthBuilder_ = null; dayOfMonth_ = other.dayOfMonth_; bitField0_ = (bitField0_ & ~0x00000008); dayOfMonthBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDayOfMonthFieldBuilder() : null; } else { dayOfMonthBuilder_.addAllMessages(other.dayOfMonth_); } } } if (monthBuilder_ == null) { if (!other.month_.isEmpty()) { if (month_.isEmpty()) { month_ = other.month_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureMonthIsMutable(); month_.addAll(other.month_); } onChanged(); } } else { if (!other.month_.isEmpty()) { if (monthBuilder_.isEmpty()) { monthBuilder_.dispose(); monthBuilder_ = null; month_ = other.month_; bitField0_ = (bitField0_ & ~0x00000010); monthBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMonthFieldBuilder() : null; } else { monthBuilder_.addAllMessages(other.month_); } } } if (yearBuilder_ == null) { if (!other.year_.isEmpty()) { if (year_.isEmpty()) { year_ = other.year_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureYearIsMutable(); year_.addAll(other.year_); } onChanged(); } } else { if (!other.year_.isEmpty()) { if (yearBuilder_.isEmpty()) { yearBuilder_.dispose(); yearBuilder_ = null; year_ = other.year_; bitField0_ = (bitField0_ & ~0x00000020); yearBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getYearFieldBuilder() : null; } else { yearBuilder_.addAllMessages(other.year_); } } } if (dayOfWeekBuilder_ == null) { if (!other.dayOfWeek_.isEmpty()) { if (dayOfWeek_.isEmpty()) { dayOfWeek_ = other.dayOfWeek_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureDayOfWeekIsMutable(); dayOfWeek_.addAll(other.dayOfWeek_); } onChanged(); } } else { if (!other.dayOfWeek_.isEmpty()) { if (dayOfWeekBuilder_.isEmpty()) { dayOfWeekBuilder_.dispose(); dayOfWeekBuilder_ = null; dayOfWeek_ = other.dayOfWeek_; bitField0_ = (bitField0_ & ~0x00000040); dayOfWeekBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDayOfWeekFieldBuilder() : null; } else { dayOfWeekBuilder_.addAllMessages(other.dayOfWeek_); } } } if (!other.getComment().isEmpty()) { comment_ = other.comment_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.temporal.api.schedule.v1.StructuredCalendarSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.schedule.v1.StructuredCalendarSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List second_ = java.util.Collections.emptyList(); private void ensureSecondIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { second_ = new java.util.ArrayList(second_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> secondBuilder_; /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public java.util.List getSecondList() { if (secondBuilder_ == null) { return java.util.Collections.unmodifiableList(second_); } else { return secondBuilder_.getMessageList(); } } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public int getSecondCount() { if (secondBuilder_ == null) { return second_.size(); } else { return secondBuilder_.getCount(); } } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public io.temporal.api.schedule.v1.Range getSecond(int index) { if (secondBuilder_ == null) { return second_.get(index); } else { return secondBuilder_.getMessage(index); } } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public Builder setSecond( int index, io.temporal.api.schedule.v1.Range value) { if (secondBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecondIsMutable(); second_.set(index, value); onChanged(); } else { secondBuilder_.setMessage(index, value); } return this; } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public Builder setSecond( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (secondBuilder_ == null) { ensureSecondIsMutable(); second_.set(index, builderForValue.build()); onChanged(); } else { secondBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public Builder addSecond(io.temporal.api.schedule.v1.Range value) { if (secondBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecondIsMutable(); second_.add(value); onChanged(); } else { secondBuilder_.addMessage(value); } return this; } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public Builder addSecond( int index, io.temporal.api.schedule.v1.Range value) { if (secondBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecondIsMutable(); second_.add(index, value); onChanged(); } else { secondBuilder_.addMessage(index, value); } return this; } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public Builder addSecond( io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (secondBuilder_ == null) { ensureSecondIsMutable(); second_.add(builderForValue.build()); onChanged(); } else { secondBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public Builder addSecond( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (secondBuilder_ == null) { ensureSecondIsMutable(); second_.add(index, builderForValue.build()); onChanged(); } else { secondBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public Builder addAllSecond( java.lang.Iterable values) { if (secondBuilder_ == null) { ensureSecondIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, second_); onChanged(); } else { secondBuilder_.addAllMessages(values); } return this; } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public Builder clearSecond() { if (secondBuilder_ == null) { second_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { secondBuilder_.clear(); } return this; } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public Builder removeSecond(int index) { if (secondBuilder_ == null) { ensureSecondIsMutable(); second_.remove(index); onChanged(); } else { secondBuilder_.remove(index); } return this; } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public io.temporal.api.schedule.v1.Range.Builder getSecondBuilder( int index) { return getSecondFieldBuilder().getBuilder(index); } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public io.temporal.api.schedule.v1.RangeOrBuilder getSecondOrBuilder( int index) { if (secondBuilder_ == null) { return second_.get(index); } else { return secondBuilder_.getMessageOrBuilder(index); } } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public java.util.List getSecondOrBuilderList() { if (secondBuilder_ != null) { return secondBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(second_); } } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public io.temporal.api.schedule.v1.Range.Builder addSecondBuilder() { return getSecondFieldBuilder().addBuilder( io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public io.temporal.api.schedule.v1.Range.Builder addSecondBuilder( int index) { return getSecondFieldBuilder().addBuilder( index, io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * Match seconds (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range second = 1; */ public java.util.List getSecondBuilderList() { return getSecondFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> getSecondFieldBuilder() { if (secondBuilder_ == null) { secondBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder>( second_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); second_ = null; } return secondBuilder_; } private java.util.List minute_ = java.util.Collections.emptyList(); private void ensureMinuteIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { minute_ = new java.util.ArrayList(minute_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> minuteBuilder_; /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public java.util.List getMinuteList() { if (minuteBuilder_ == null) { return java.util.Collections.unmodifiableList(minute_); } else { return minuteBuilder_.getMessageList(); } } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public int getMinuteCount() { if (minuteBuilder_ == null) { return minute_.size(); } else { return minuteBuilder_.getCount(); } } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public io.temporal.api.schedule.v1.Range getMinute(int index) { if (minuteBuilder_ == null) { return minute_.get(index); } else { return minuteBuilder_.getMessage(index); } } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public Builder setMinute( int index, io.temporal.api.schedule.v1.Range value) { if (minuteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMinuteIsMutable(); minute_.set(index, value); onChanged(); } else { minuteBuilder_.setMessage(index, value); } return this; } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public Builder setMinute( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (minuteBuilder_ == null) { ensureMinuteIsMutable(); minute_.set(index, builderForValue.build()); onChanged(); } else { minuteBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public Builder addMinute(io.temporal.api.schedule.v1.Range value) { if (minuteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMinuteIsMutable(); minute_.add(value); onChanged(); } else { minuteBuilder_.addMessage(value); } return this; } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public Builder addMinute( int index, io.temporal.api.schedule.v1.Range value) { if (minuteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMinuteIsMutable(); minute_.add(index, value); onChanged(); } else { minuteBuilder_.addMessage(index, value); } return this; } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public Builder addMinute( io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (minuteBuilder_ == null) { ensureMinuteIsMutable(); minute_.add(builderForValue.build()); onChanged(); } else { minuteBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public Builder addMinute( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (minuteBuilder_ == null) { ensureMinuteIsMutable(); minute_.add(index, builderForValue.build()); onChanged(); } else { minuteBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public Builder addAllMinute( java.lang.Iterable values) { if (minuteBuilder_ == null) { ensureMinuteIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, minute_); onChanged(); } else { minuteBuilder_.addAllMessages(values); } return this; } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public Builder clearMinute() { if (minuteBuilder_ == null) { minute_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { minuteBuilder_.clear(); } return this; } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public Builder removeMinute(int index) { if (minuteBuilder_ == null) { ensureMinuteIsMutable(); minute_.remove(index); onChanged(); } else { minuteBuilder_.remove(index); } return this; } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public io.temporal.api.schedule.v1.Range.Builder getMinuteBuilder( int index) { return getMinuteFieldBuilder().getBuilder(index); } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public io.temporal.api.schedule.v1.RangeOrBuilder getMinuteOrBuilder( int index) { if (minuteBuilder_ == null) { return minute_.get(index); } else { return minuteBuilder_.getMessageOrBuilder(index); } } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public java.util.List getMinuteOrBuilderList() { if (minuteBuilder_ != null) { return minuteBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(minute_); } } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public io.temporal.api.schedule.v1.Range.Builder addMinuteBuilder() { return getMinuteFieldBuilder().addBuilder( io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public io.temporal.api.schedule.v1.Range.Builder addMinuteBuilder( int index) { return getMinuteFieldBuilder().addBuilder( index, io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * Match minutes (0-59)
     * 
* * repeated .temporal.api.schedule.v1.Range minute = 2; */ public java.util.List getMinuteBuilderList() { return getMinuteFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> getMinuteFieldBuilder() { if (minuteBuilder_ == null) { minuteBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder>( minute_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); minute_ = null; } return minuteBuilder_; } private java.util.List hour_ = java.util.Collections.emptyList(); private void ensureHourIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { hour_ = new java.util.ArrayList(hour_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> hourBuilder_; /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public java.util.List getHourList() { if (hourBuilder_ == null) { return java.util.Collections.unmodifiableList(hour_); } else { return hourBuilder_.getMessageList(); } } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public int getHourCount() { if (hourBuilder_ == null) { return hour_.size(); } else { return hourBuilder_.getCount(); } } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public io.temporal.api.schedule.v1.Range getHour(int index) { if (hourBuilder_ == null) { return hour_.get(index); } else { return hourBuilder_.getMessage(index); } } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public Builder setHour( int index, io.temporal.api.schedule.v1.Range value) { if (hourBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHourIsMutable(); hour_.set(index, value); onChanged(); } else { hourBuilder_.setMessage(index, value); } return this; } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public Builder setHour( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (hourBuilder_ == null) { ensureHourIsMutable(); hour_.set(index, builderForValue.build()); onChanged(); } else { hourBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public Builder addHour(io.temporal.api.schedule.v1.Range value) { if (hourBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHourIsMutable(); hour_.add(value); onChanged(); } else { hourBuilder_.addMessage(value); } return this; } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public Builder addHour( int index, io.temporal.api.schedule.v1.Range value) { if (hourBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHourIsMutable(); hour_.add(index, value); onChanged(); } else { hourBuilder_.addMessage(index, value); } return this; } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public Builder addHour( io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (hourBuilder_ == null) { ensureHourIsMutable(); hour_.add(builderForValue.build()); onChanged(); } else { hourBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public Builder addHour( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (hourBuilder_ == null) { ensureHourIsMutable(); hour_.add(index, builderForValue.build()); onChanged(); } else { hourBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public Builder addAllHour( java.lang.Iterable values) { if (hourBuilder_ == null) { ensureHourIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, hour_); onChanged(); } else { hourBuilder_.addAllMessages(values); } return this; } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public Builder clearHour() { if (hourBuilder_ == null) { hour_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { hourBuilder_.clear(); } return this; } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public Builder removeHour(int index) { if (hourBuilder_ == null) { ensureHourIsMutable(); hour_.remove(index); onChanged(); } else { hourBuilder_.remove(index); } return this; } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public io.temporal.api.schedule.v1.Range.Builder getHourBuilder( int index) { return getHourFieldBuilder().getBuilder(index); } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public io.temporal.api.schedule.v1.RangeOrBuilder getHourOrBuilder( int index) { if (hourBuilder_ == null) { return hour_.get(index); } else { return hourBuilder_.getMessageOrBuilder(index); } } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public java.util.List getHourOrBuilderList() { if (hourBuilder_ != null) { return hourBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(hour_); } } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public io.temporal.api.schedule.v1.Range.Builder addHourBuilder() { return getHourFieldBuilder().addBuilder( io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public io.temporal.api.schedule.v1.Range.Builder addHourBuilder( int index) { return getHourFieldBuilder().addBuilder( index, io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * Match hours (0-23)
     * 
* * repeated .temporal.api.schedule.v1.Range hour = 3; */ public java.util.List getHourBuilderList() { return getHourFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> getHourFieldBuilder() { if (hourBuilder_ == null) { hourBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder>( hour_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); hour_ = null; } return hourBuilder_; } private java.util.List dayOfMonth_ = java.util.Collections.emptyList(); private void ensureDayOfMonthIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { dayOfMonth_ = new java.util.ArrayList(dayOfMonth_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> dayOfMonthBuilder_; /** *
     * 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; */ public java.util.List getDayOfMonthList() { if (dayOfMonthBuilder_ == null) { return java.util.Collections.unmodifiableList(dayOfMonth_); } else { return dayOfMonthBuilder_.getMessageList(); } } /** *
     * 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; */ public int getDayOfMonthCount() { if (dayOfMonthBuilder_ == null) { return dayOfMonth_.size(); } else { return dayOfMonthBuilder_.getCount(); } } /** *
     * 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; */ public io.temporal.api.schedule.v1.Range getDayOfMonth(int index) { if (dayOfMonthBuilder_ == null) { return dayOfMonth_.get(index); } else { return dayOfMonthBuilder_.getMessage(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; */ public Builder setDayOfMonth( int index, io.temporal.api.schedule.v1.Range value) { if (dayOfMonthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDayOfMonthIsMutable(); dayOfMonth_.set(index, value); onChanged(); } else { dayOfMonthBuilder_.setMessage(index, value); } return this; } /** *
     * 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; */ public Builder setDayOfMonth( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (dayOfMonthBuilder_ == null) { ensureDayOfMonthIsMutable(); dayOfMonth_.set(index, builderForValue.build()); onChanged(); } else { dayOfMonthBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * 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; */ public Builder addDayOfMonth(io.temporal.api.schedule.v1.Range value) { if (dayOfMonthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDayOfMonthIsMutable(); dayOfMonth_.add(value); onChanged(); } else { dayOfMonthBuilder_.addMessage(value); } return this; } /** *
     * 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; */ public Builder addDayOfMonth( int index, io.temporal.api.schedule.v1.Range value) { if (dayOfMonthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDayOfMonthIsMutable(); dayOfMonth_.add(index, value); onChanged(); } else { dayOfMonthBuilder_.addMessage(index, value); } return this; } /** *
     * 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; */ public Builder addDayOfMonth( io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (dayOfMonthBuilder_ == null) { ensureDayOfMonthIsMutable(); dayOfMonth_.add(builderForValue.build()); onChanged(); } else { dayOfMonthBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * 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; */ public Builder addDayOfMonth( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (dayOfMonthBuilder_ == null) { ensureDayOfMonthIsMutable(); dayOfMonth_.add(index, builderForValue.build()); onChanged(); } else { dayOfMonthBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * 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; */ public Builder addAllDayOfMonth( java.lang.Iterable values) { if (dayOfMonthBuilder_ == null) { ensureDayOfMonthIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dayOfMonth_); onChanged(); } else { dayOfMonthBuilder_.addAllMessages(values); } return this; } /** *
     * 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; */ public Builder clearDayOfMonth() { if (dayOfMonthBuilder_ == null) { dayOfMonth_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { dayOfMonthBuilder_.clear(); } return this; } /** *
     * 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; */ public Builder removeDayOfMonth(int index) { if (dayOfMonthBuilder_ == null) { ensureDayOfMonthIsMutable(); dayOfMonth_.remove(index); onChanged(); } else { dayOfMonthBuilder_.remove(index); } return this; } /** *
     * 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; */ public io.temporal.api.schedule.v1.Range.Builder getDayOfMonthBuilder( int index) { return getDayOfMonthFieldBuilder().getBuilder(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; */ public io.temporal.api.schedule.v1.RangeOrBuilder getDayOfMonthOrBuilder( int index) { if (dayOfMonthBuilder_ == null) { return dayOfMonth_.get(index); } else { return dayOfMonthBuilder_.getMessageOrBuilder(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; */ public java.util.List getDayOfMonthOrBuilderList() { if (dayOfMonthBuilder_ != null) { return dayOfMonthBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dayOfMonth_); } } /** *
     * 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; */ public io.temporal.api.schedule.v1.Range.Builder addDayOfMonthBuilder() { return getDayOfMonthFieldBuilder().addBuilder( io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * 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; */ public io.temporal.api.schedule.v1.Range.Builder addDayOfMonthBuilder( int index) { return getDayOfMonthFieldBuilder().addBuilder( index, io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * 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; */ public java.util.List getDayOfMonthBuilderList() { return getDayOfMonthFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> getDayOfMonthFieldBuilder() { if (dayOfMonthBuilder_ == null) { dayOfMonthBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder>( dayOfMonth_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); dayOfMonth_ = null; } return dayOfMonthBuilder_; } private java.util.List month_ = java.util.Collections.emptyList(); private void ensureMonthIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { month_ = new java.util.ArrayList(month_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> monthBuilder_; /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public java.util.List getMonthList() { if (monthBuilder_ == null) { return java.util.Collections.unmodifiableList(month_); } else { return monthBuilder_.getMessageList(); } } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public int getMonthCount() { if (monthBuilder_ == null) { return month_.size(); } else { return monthBuilder_.getCount(); } } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public io.temporal.api.schedule.v1.Range getMonth(int index) { if (monthBuilder_ == null) { return month_.get(index); } else { return monthBuilder_.getMessage(index); } } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public Builder setMonth( int index, io.temporal.api.schedule.v1.Range value) { if (monthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonthIsMutable(); month_.set(index, value); onChanged(); } else { monthBuilder_.setMessage(index, value); } return this; } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public Builder setMonth( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (monthBuilder_ == null) { ensureMonthIsMutable(); month_.set(index, builderForValue.build()); onChanged(); } else { monthBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public Builder addMonth(io.temporal.api.schedule.v1.Range value) { if (monthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonthIsMutable(); month_.add(value); onChanged(); } else { monthBuilder_.addMessage(value); } return this; } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public Builder addMonth( int index, io.temporal.api.schedule.v1.Range value) { if (monthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonthIsMutable(); month_.add(index, value); onChanged(); } else { monthBuilder_.addMessage(index, value); } return this; } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public Builder addMonth( io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (monthBuilder_ == null) { ensureMonthIsMutable(); month_.add(builderForValue.build()); onChanged(); } else { monthBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public Builder addMonth( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (monthBuilder_ == null) { ensureMonthIsMutable(); month_.add(index, builderForValue.build()); onChanged(); } else { monthBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public Builder addAllMonth( java.lang.Iterable values) { if (monthBuilder_ == null) { ensureMonthIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, month_); onChanged(); } else { monthBuilder_.addAllMessages(values); } return this; } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public Builder clearMonth() { if (monthBuilder_ == null) { month_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { monthBuilder_.clear(); } return this; } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public Builder removeMonth(int index) { if (monthBuilder_ == null) { ensureMonthIsMutable(); month_.remove(index); onChanged(); } else { monthBuilder_.remove(index); } return this; } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public io.temporal.api.schedule.v1.Range.Builder getMonthBuilder( int index) { return getMonthFieldBuilder().getBuilder(index); } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public io.temporal.api.schedule.v1.RangeOrBuilder getMonthOrBuilder( int index) { if (monthBuilder_ == null) { return month_.get(index); } else { return monthBuilder_.getMessageOrBuilder(index); } } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public java.util.List getMonthOrBuilderList() { if (monthBuilder_ != null) { return monthBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(month_); } } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public io.temporal.api.schedule.v1.Range.Builder addMonthBuilder() { return getMonthFieldBuilder().addBuilder( io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public io.temporal.api.schedule.v1.Range.Builder addMonthBuilder( int index) { return getMonthFieldBuilder().addBuilder( index, io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * Match months (1-12)
     * 
* * repeated .temporal.api.schedule.v1.Range month = 5; */ public java.util.List getMonthBuilderList() { return getMonthFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> getMonthFieldBuilder() { if (monthBuilder_ == null) { monthBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder>( month_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); month_ = null; } return monthBuilder_; } private java.util.List year_ = java.util.Collections.emptyList(); private void ensureYearIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { year_ = new java.util.ArrayList(year_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> yearBuilder_; /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public java.util.List getYearList() { if (yearBuilder_ == null) { return java.util.Collections.unmodifiableList(year_); } else { return yearBuilder_.getMessageList(); } } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public int getYearCount() { if (yearBuilder_ == null) { return year_.size(); } else { return yearBuilder_.getCount(); } } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public io.temporal.api.schedule.v1.Range getYear(int index) { if (yearBuilder_ == null) { return year_.get(index); } else { return yearBuilder_.getMessage(index); } } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public Builder setYear( int index, io.temporal.api.schedule.v1.Range value) { if (yearBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureYearIsMutable(); year_.set(index, value); onChanged(); } else { yearBuilder_.setMessage(index, value); } return this; } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public Builder setYear( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (yearBuilder_ == null) { ensureYearIsMutable(); year_.set(index, builderForValue.build()); onChanged(); } else { yearBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public Builder addYear(io.temporal.api.schedule.v1.Range value) { if (yearBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureYearIsMutable(); year_.add(value); onChanged(); } else { yearBuilder_.addMessage(value); } return this; } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public Builder addYear( int index, io.temporal.api.schedule.v1.Range value) { if (yearBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureYearIsMutable(); year_.add(index, value); onChanged(); } else { yearBuilder_.addMessage(index, value); } return this; } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public Builder addYear( io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (yearBuilder_ == null) { ensureYearIsMutable(); year_.add(builderForValue.build()); onChanged(); } else { yearBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public Builder addYear( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (yearBuilder_ == null) { ensureYearIsMutable(); year_.add(index, builderForValue.build()); onChanged(); } else { yearBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public Builder addAllYear( java.lang.Iterable values) { if (yearBuilder_ == null) { ensureYearIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, year_); onChanged(); } else { yearBuilder_.addAllMessages(values); } return this; } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public Builder clearYear() { if (yearBuilder_ == null) { year_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { yearBuilder_.clear(); } return this; } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public Builder removeYear(int index) { if (yearBuilder_ == null) { ensureYearIsMutable(); year_.remove(index); onChanged(); } else { yearBuilder_.remove(index); } return this; } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public io.temporal.api.schedule.v1.Range.Builder getYearBuilder( int index) { return getYearFieldBuilder().getBuilder(index); } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public io.temporal.api.schedule.v1.RangeOrBuilder getYearOrBuilder( int index) { if (yearBuilder_ == null) { return year_.get(index); } else { return yearBuilder_.getMessageOrBuilder(index); } } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public java.util.List getYearOrBuilderList() { if (yearBuilder_ != null) { return yearBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(year_); } } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public io.temporal.api.schedule.v1.Range.Builder addYearBuilder() { return getYearFieldBuilder().addBuilder( io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public io.temporal.api.schedule.v1.Range.Builder addYearBuilder( int index) { return getYearFieldBuilder().addBuilder( index, io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * Match years.
     * 
* * repeated .temporal.api.schedule.v1.Range year = 6; */ public java.util.List getYearBuilderList() { return getYearFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> getYearFieldBuilder() { if (yearBuilder_ == null) { yearBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder>( year_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); year_ = null; } return yearBuilder_; } private java.util.List dayOfWeek_ = java.util.Collections.emptyList(); private void ensureDayOfWeekIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { dayOfWeek_ = new java.util.ArrayList(dayOfWeek_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> dayOfWeekBuilder_; /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public java.util.List getDayOfWeekList() { if (dayOfWeekBuilder_ == null) { return java.util.Collections.unmodifiableList(dayOfWeek_); } else { return dayOfWeekBuilder_.getMessageList(); } } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public int getDayOfWeekCount() { if (dayOfWeekBuilder_ == null) { return dayOfWeek_.size(); } else { return dayOfWeekBuilder_.getCount(); } } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public io.temporal.api.schedule.v1.Range getDayOfWeek(int index) { if (dayOfWeekBuilder_ == null) { return dayOfWeek_.get(index); } else { return dayOfWeekBuilder_.getMessage(index); } } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public Builder setDayOfWeek( int index, io.temporal.api.schedule.v1.Range value) { if (dayOfWeekBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDayOfWeekIsMutable(); dayOfWeek_.set(index, value); onChanged(); } else { dayOfWeekBuilder_.setMessage(index, value); } return this; } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public Builder setDayOfWeek( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (dayOfWeekBuilder_ == null) { ensureDayOfWeekIsMutable(); dayOfWeek_.set(index, builderForValue.build()); onChanged(); } else { dayOfWeekBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public Builder addDayOfWeek(io.temporal.api.schedule.v1.Range value) { if (dayOfWeekBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDayOfWeekIsMutable(); dayOfWeek_.add(value); onChanged(); } else { dayOfWeekBuilder_.addMessage(value); } return this; } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public Builder addDayOfWeek( int index, io.temporal.api.schedule.v1.Range value) { if (dayOfWeekBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDayOfWeekIsMutable(); dayOfWeek_.add(index, value); onChanged(); } else { dayOfWeekBuilder_.addMessage(index, value); } return this; } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public Builder addDayOfWeek( io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (dayOfWeekBuilder_ == null) { ensureDayOfWeekIsMutable(); dayOfWeek_.add(builderForValue.build()); onChanged(); } else { dayOfWeekBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public Builder addDayOfWeek( int index, io.temporal.api.schedule.v1.Range.Builder builderForValue) { if (dayOfWeekBuilder_ == null) { ensureDayOfWeekIsMutable(); dayOfWeek_.add(index, builderForValue.build()); onChanged(); } else { dayOfWeekBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public Builder addAllDayOfWeek( java.lang.Iterable values) { if (dayOfWeekBuilder_ == null) { ensureDayOfWeekIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dayOfWeek_); onChanged(); } else { dayOfWeekBuilder_.addAllMessages(values); } return this; } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public Builder clearDayOfWeek() { if (dayOfWeekBuilder_ == null) { dayOfWeek_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { dayOfWeekBuilder_.clear(); } return this; } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public Builder removeDayOfWeek(int index) { if (dayOfWeekBuilder_ == null) { ensureDayOfWeekIsMutable(); dayOfWeek_.remove(index); onChanged(); } else { dayOfWeekBuilder_.remove(index); } return this; } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public io.temporal.api.schedule.v1.Range.Builder getDayOfWeekBuilder( int index) { return getDayOfWeekFieldBuilder().getBuilder(index); } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public io.temporal.api.schedule.v1.RangeOrBuilder getDayOfWeekOrBuilder( int index) { if (dayOfWeekBuilder_ == null) { return dayOfWeek_.get(index); } else { return dayOfWeekBuilder_.getMessageOrBuilder(index); } } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public java.util.List getDayOfWeekOrBuilderList() { if (dayOfWeekBuilder_ != null) { return dayOfWeekBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dayOfWeek_); } } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public io.temporal.api.schedule.v1.Range.Builder addDayOfWeekBuilder() { return getDayOfWeekFieldBuilder().addBuilder( io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public io.temporal.api.schedule.v1.Range.Builder addDayOfWeekBuilder( int index) { return getDayOfWeekFieldBuilder().addBuilder( index, io.temporal.api.schedule.v1.Range.getDefaultInstance()); } /** *
     * Match days of the week (0-6; 0 is Sunday).
     * 
* * repeated .temporal.api.schedule.v1.Range day_of_week = 7; */ public java.util.List getDayOfWeekBuilderList() { return getDayOfWeekFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder> getDayOfWeekFieldBuilder() { if (dayOfWeekBuilder_ == null) { dayOfWeekBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.temporal.api.schedule.v1.Range, io.temporal.api.schedule.v1.Range.Builder, io.temporal.api.schedule.v1.RangeOrBuilder>( dayOfWeek_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); dayOfWeek_ = null; } return dayOfWeekBuilder_; } private java.lang.Object comment_ = ""; /** *
     * Free-form comment describing the intention of this spec.
     * 
* * string comment = 8; * @return The comment. */ public java.lang.String getComment() { java.lang.Object ref = comment_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Free-form comment describing the intention of this spec.
     * 
* * string comment = 8; * @return The bytes for comment. */ public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); comment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Free-form comment describing the intention of this spec.
     * 
* * string comment = 8; * @param value The comment to set. * @return This builder for chaining. */ public Builder setComment( java.lang.String value) { if (value == null) { throw new NullPointerException(); } comment_ = value; onChanged(); return this; } /** *
     * Free-form comment describing the intention of this spec.
     * 
* * string comment = 8; * @return This builder for chaining. */ public Builder clearComment() { comment_ = getDefaultInstance().getComment(); onChanged(); return this; } /** *
     * Free-form comment describing the intention of this spec.
     * 
* * string comment = 8; * @param value The bytes for comment to set. * @return This builder for chaining. */ public Builder setCommentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); comment_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:temporal.api.schedule.v1.StructuredCalendarSpec) } // @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.StructuredCalendarSpec) private static final io.temporal.api.schedule.v1.StructuredCalendarSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.schedule.v1.StructuredCalendarSpec(); } public static io.temporal.api.schedule.v1.StructuredCalendarSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StructuredCalendarSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StructuredCalendarSpec(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.temporal.api.schedule.v1.StructuredCalendarSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy