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

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

There is a newer version: 1.24.1
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;

/**
 * 
 * CalendarSpec describes an event specification relative to the calendar,
 * similar to a traditional cron specification, but with labeled fields. Each
 * field can be one of:
 *   *: matches always
 *   x: matches when the field equals x
 *   x/y : matches when the field equals x+n*y where n is an integer
 *   x-z: matches when the field is between x and z inclusive
 *   w,x,y,...: matches when the field is one of the listed values
 * Each x, y, z, ... is either a decimal integer, or a month or day of week name
 * or abbreviation (in the appropriate fields).
 * A timestamp matches if all fields match.
 * Note that fields have different default values, for convenience.
 * Note that the special case that some cron implementations have for treating
 * day_of_month and day_of_week as "or" instead of "and" when both are set is
 * not implemented.
 * day_of_week can accept 0 or 7 as Sunday
 * CalendarSpec gets compiled into StructuredCalendarSpec, which is what will be
 * returned if you describe the schedule.
 * 
* * Protobuf type {@code temporal.api.schedule.v1.CalendarSpec} */ @javax.annotation.Generated(value="protoc", comments="annotations:CalendarSpec.java.pb.meta") public final class CalendarSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:temporal.api.schedule.v1.CalendarSpec) CalendarSpecOrBuilder { private static final long serialVersionUID = 0L; // Use CalendarSpec.newBuilder() to construct. private CalendarSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CalendarSpec() { second_ = ""; minute_ = ""; hour_ = ""; dayOfMonth_ = ""; month_ = ""; year_ = ""; dayOfWeek_ = ""; comment_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CalendarSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CalendarSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { java.lang.String s = input.readStringRequireUtf8(); second_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); minute_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); hour_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); dayOfMonth_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); month_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); year_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); dayOfWeek_ = s; 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 { 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_CalendarSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_CalendarSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.schedule.v1.CalendarSpec.class, io.temporal.api.schedule.v1.CalendarSpec.Builder.class); } public static final int SECOND_FIELD_NUMBER = 1; private volatile java.lang.Object second_; /** *
   * Expression to match seconds. Default: 0
   * 
* * string second = 1; * @return The second. */ public java.lang.String getSecond() { java.lang.Object ref = second_; 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(); second_ = s; return s; } } /** *
   * Expression to match seconds. Default: 0
   * 
* * string second = 1; * @return The bytes for second. */ public com.google.protobuf.ByteString getSecondBytes() { java.lang.Object ref = second_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); second_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MINUTE_FIELD_NUMBER = 2; private volatile java.lang.Object minute_; /** *
   * Expression to match minutes. Default: 0
   * 
* * string minute = 2; * @return The minute. */ public java.lang.String getMinute() { java.lang.Object ref = minute_; 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(); minute_ = s; return s; } } /** *
   * Expression to match minutes. Default: 0
   * 
* * string minute = 2; * @return The bytes for minute. */ public com.google.protobuf.ByteString getMinuteBytes() { java.lang.Object ref = minute_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); minute_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOUR_FIELD_NUMBER = 3; private volatile java.lang.Object hour_; /** *
   * Expression to match hours. Default: 0
   * 
* * string hour = 3; * @return The hour. */ public java.lang.String getHour() { java.lang.Object ref = hour_; 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(); hour_ = s; return s; } } /** *
   * Expression to match hours. Default: 0
   * 
* * string hour = 3; * @return The bytes for hour. */ public com.google.protobuf.ByteString getHourBytes() { java.lang.Object ref = hour_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hour_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DAY_OF_MONTH_FIELD_NUMBER = 4; private volatile java.lang.Object dayOfMonth_; /** *
   * Expression to match days of the month. Default: *
   * (-- api-linter: core::0140::prepositions=disabled
   *     aip.dev/not-precedent: standard name of field --)
   * 
* * string day_of_month = 4; * @return The dayOfMonth. */ public java.lang.String getDayOfMonth() { java.lang.Object ref = dayOfMonth_; 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(); dayOfMonth_ = s; return s; } } /** *
   * Expression to match days of the month. Default: *
   * (-- api-linter: core::0140::prepositions=disabled
   *     aip.dev/not-precedent: standard name of field --)
   * 
* * string day_of_month = 4; * @return The bytes for dayOfMonth. */ public com.google.protobuf.ByteString getDayOfMonthBytes() { java.lang.Object ref = dayOfMonth_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dayOfMonth_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MONTH_FIELD_NUMBER = 5; private volatile java.lang.Object month_; /** *
   * Expression to match months. Default: *
   * 
* * string month = 5; * @return The month. */ public java.lang.String getMonth() { java.lang.Object ref = month_; 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(); month_ = s; return s; } } /** *
   * Expression to match months. Default: *
   * 
* * string month = 5; * @return The bytes for month. */ public com.google.protobuf.ByteString getMonthBytes() { java.lang.Object ref = month_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); month_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int YEAR_FIELD_NUMBER = 6; private volatile java.lang.Object year_; /** *
   * Expression to match years. Default: *
   * 
* * string year = 6; * @return The year. */ public java.lang.String getYear() { java.lang.Object ref = year_; 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(); year_ = s; return s; } } /** *
   * Expression to match years. Default: *
   * 
* * string year = 6; * @return The bytes for year. */ public com.google.protobuf.ByteString getYearBytes() { java.lang.Object ref = year_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); year_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DAY_OF_WEEK_FIELD_NUMBER = 7; private volatile java.lang.Object dayOfWeek_; /** *
   * Expression to match days of the week. Default: *
   * 
* * string day_of_week = 7; * @return The dayOfWeek. */ public java.lang.String getDayOfWeek() { java.lang.Object ref = dayOfWeek_; 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(); dayOfWeek_ = s; return s; } } /** *
   * Expression to match days of the week. Default: *
   * 
* * string day_of_week = 7; * @return The bytes for dayOfWeek. */ public com.google.protobuf.ByteString getDayOfWeekBytes() { java.lang.Object ref = dayOfWeek_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dayOfWeek_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 { if (!getSecondBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, second_); } if (!getMinuteBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, minute_); } if (!getHourBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hour_); } if (!getDayOfMonthBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dayOfMonth_); } if (!getMonthBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, month_); } if (!getYearBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, year_); } if (!getDayOfWeekBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, dayOfWeek_); } 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; if (!getSecondBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, second_); } if (!getMinuteBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, minute_); } if (!getHourBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hour_); } if (!getDayOfMonthBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dayOfMonth_); } if (!getMonthBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, month_); } if (!getYearBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, year_); } if (!getDayOfWeekBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dayOfWeek_); } 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.CalendarSpec)) { return super.equals(obj); } io.temporal.api.schedule.v1.CalendarSpec other = (io.temporal.api.schedule.v1.CalendarSpec) obj; if (!getSecond() .equals(other.getSecond())) return false; if (!getMinute() .equals(other.getMinute())) return false; if (!getHour() .equals(other.getHour())) return false; if (!getDayOfMonth() .equals(other.getDayOfMonth())) return false; if (!getMonth() .equals(other.getMonth())) return false; if (!getYear() .equals(other.getYear())) return false; if (!getDayOfWeek() .equals(other.getDayOfWeek())) 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(); hash = (37 * hash) + SECOND_FIELD_NUMBER; hash = (53 * hash) + getSecond().hashCode(); hash = (37 * hash) + MINUTE_FIELD_NUMBER; hash = (53 * hash) + getMinute().hashCode(); hash = (37 * hash) + HOUR_FIELD_NUMBER; hash = (53 * hash) + getHour().hashCode(); hash = (37 * hash) + DAY_OF_MONTH_FIELD_NUMBER; hash = (53 * hash) + getDayOfMonth().hashCode(); hash = (37 * hash) + MONTH_FIELD_NUMBER; hash = (53 * hash) + getMonth().hashCode(); hash = (37 * hash) + YEAR_FIELD_NUMBER; hash = (53 * hash) + getYear().hashCode(); hash = (37 * hash) + DAY_OF_WEEK_FIELD_NUMBER; hash = (53 * hash) + getDayOfWeek().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.CalendarSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.schedule.v1.CalendarSpec 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.CalendarSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.schedule.v1.CalendarSpec 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.CalendarSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.schedule.v1.CalendarSpec 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.CalendarSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.schedule.v1.CalendarSpec 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.CalendarSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.schedule.v1.CalendarSpec 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.CalendarSpec 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.CalendarSpec 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.CalendarSpec 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; } /** *
   * CalendarSpec describes an event specification relative to the calendar,
   * similar to a traditional cron specification, but with labeled fields. Each
   * field can be one of:
   *   *: matches always
   *   x: matches when the field equals x
   *   x/y : matches when the field equals x+n*y where n is an integer
   *   x-z: matches when the field is between x and z inclusive
   *   w,x,y,...: matches when the field is one of the listed values
   * Each x, y, z, ... is either a decimal integer, or a month or day of week name
   * or abbreviation (in the appropriate fields).
   * A timestamp matches if all fields match.
   * Note that fields have different default values, for convenience.
   * Note that the special case that some cron implementations have for treating
   * day_of_month and day_of_week as "or" instead of "and" when both are set is
   * not implemented.
   * day_of_week can accept 0 or 7 as Sunday
   * CalendarSpec gets compiled into StructuredCalendarSpec, which is what will be
   * returned if you describe the schedule.
   * 
* * Protobuf type {@code temporal.api.schedule.v1.CalendarSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.schedule.v1.CalendarSpec) io.temporal.api.schedule.v1.CalendarSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_CalendarSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_CalendarSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.schedule.v1.CalendarSpec.class, io.temporal.api.schedule.v1.CalendarSpec.Builder.class); } // Construct using io.temporal.api.schedule.v1.CalendarSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); second_ = ""; minute_ = ""; hour_ = ""; dayOfMonth_ = ""; month_ = ""; year_ = ""; dayOfWeek_ = ""; 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_CalendarSpec_descriptor; } @java.lang.Override public io.temporal.api.schedule.v1.CalendarSpec getDefaultInstanceForType() { return io.temporal.api.schedule.v1.CalendarSpec.getDefaultInstance(); } @java.lang.Override public io.temporal.api.schedule.v1.CalendarSpec build() { io.temporal.api.schedule.v1.CalendarSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.schedule.v1.CalendarSpec buildPartial() { io.temporal.api.schedule.v1.CalendarSpec result = new io.temporal.api.schedule.v1.CalendarSpec(this); result.second_ = second_; result.minute_ = minute_; result.hour_ = hour_; result.dayOfMonth_ = dayOfMonth_; result.month_ = month_; result.year_ = year_; result.dayOfWeek_ = dayOfWeek_; 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.CalendarSpec) { return mergeFrom((io.temporal.api.schedule.v1.CalendarSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.schedule.v1.CalendarSpec other) { if (other == io.temporal.api.schedule.v1.CalendarSpec.getDefaultInstance()) return this; if (!other.getSecond().isEmpty()) { second_ = other.second_; onChanged(); } if (!other.getMinute().isEmpty()) { minute_ = other.minute_; onChanged(); } if (!other.getHour().isEmpty()) { hour_ = other.hour_; onChanged(); } if (!other.getDayOfMonth().isEmpty()) { dayOfMonth_ = other.dayOfMonth_; onChanged(); } if (!other.getMonth().isEmpty()) { month_ = other.month_; onChanged(); } if (!other.getYear().isEmpty()) { year_ = other.year_; onChanged(); } if (!other.getDayOfWeek().isEmpty()) { dayOfWeek_ = other.dayOfWeek_; onChanged(); } 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.CalendarSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.schedule.v1.CalendarSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object second_ = ""; /** *
     * Expression to match seconds. Default: 0
     * 
* * string second = 1; * @return The second. */ public java.lang.String getSecond() { java.lang.Object ref = second_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); second_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Expression to match seconds. Default: 0
     * 
* * string second = 1; * @return The bytes for second. */ public com.google.protobuf.ByteString getSecondBytes() { java.lang.Object ref = second_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); second_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Expression to match seconds. Default: 0
     * 
* * string second = 1; * @param value The second to set. * @return This builder for chaining. */ public Builder setSecond( java.lang.String value) { if (value == null) { throw new NullPointerException(); } second_ = value; onChanged(); return this; } /** *
     * Expression to match seconds. Default: 0
     * 
* * string second = 1; * @return This builder for chaining. */ public Builder clearSecond() { second_ = getDefaultInstance().getSecond(); onChanged(); return this; } /** *
     * Expression to match seconds. Default: 0
     * 
* * string second = 1; * @param value The bytes for second to set. * @return This builder for chaining. */ public Builder setSecondBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); second_ = value; onChanged(); return this; } private java.lang.Object minute_ = ""; /** *
     * Expression to match minutes. Default: 0
     * 
* * string minute = 2; * @return The minute. */ public java.lang.String getMinute() { java.lang.Object ref = minute_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); minute_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Expression to match minutes. Default: 0
     * 
* * string minute = 2; * @return The bytes for minute. */ public com.google.protobuf.ByteString getMinuteBytes() { java.lang.Object ref = minute_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); minute_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Expression to match minutes. Default: 0
     * 
* * string minute = 2; * @param value The minute to set. * @return This builder for chaining. */ public Builder setMinute( java.lang.String value) { if (value == null) { throw new NullPointerException(); } minute_ = value; onChanged(); return this; } /** *
     * Expression to match minutes. Default: 0
     * 
* * string minute = 2; * @return This builder for chaining. */ public Builder clearMinute() { minute_ = getDefaultInstance().getMinute(); onChanged(); return this; } /** *
     * Expression to match minutes. Default: 0
     * 
* * string minute = 2; * @param value The bytes for minute to set. * @return This builder for chaining. */ public Builder setMinuteBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); minute_ = value; onChanged(); return this; } private java.lang.Object hour_ = ""; /** *
     * Expression to match hours. Default: 0
     * 
* * string hour = 3; * @return The hour. */ public java.lang.String getHour() { java.lang.Object ref = hour_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hour_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Expression to match hours. Default: 0
     * 
* * string hour = 3; * @return The bytes for hour. */ public com.google.protobuf.ByteString getHourBytes() { java.lang.Object ref = hour_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hour_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Expression to match hours. Default: 0
     * 
* * string hour = 3; * @param value The hour to set. * @return This builder for chaining. */ public Builder setHour( java.lang.String value) { if (value == null) { throw new NullPointerException(); } hour_ = value; onChanged(); return this; } /** *
     * Expression to match hours. Default: 0
     * 
* * string hour = 3; * @return This builder for chaining. */ public Builder clearHour() { hour_ = getDefaultInstance().getHour(); onChanged(); return this; } /** *
     * Expression to match hours. Default: 0
     * 
* * string hour = 3; * @param value The bytes for hour to set. * @return This builder for chaining. */ public Builder setHourBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hour_ = value; onChanged(); return this; } private java.lang.Object dayOfMonth_ = ""; /** *
     * Expression to match days of the month. Default: *
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: standard name of field --)
     * 
* * string day_of_month = 4; * @return The dayOfMonth. */ public java.lang.String getDayOfMonth() { java.lang.Object ref = dayOfMonth_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dayOfMonth_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Expression to match days of the month. Default: *
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: standard name of field --)
     * 
* * string day_of_month = 4; * @return The bytes for dayOfMonth. */ public com.google.protobuf.ByteString getDayOfMonthBytes() { java.lang.Object ref = dayOfMonth_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dayOfMonth_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Expression to match days of the month. Default: *
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: standard name of field --)
     * 
* * string day_of_month = 4; * @param value The dayOfMonth to set. * @return This builder for chaining. */ public Builder setDayOfMonth( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dayOfMonth_ = value; onChanged(); return this; } /** *
     * Expression to match days of the month. Default: *
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: standard name of field --)
     * 
* * string day_of_month = 4; * @return This builder for chaining. */ public Builder clearDayOfMonth() { dayOfMonth_ = getDefaultInstance().getDayOfMonth(); onChanged(); return this; } /** *
     * Expression to match days of the month. Default: *
     * (-- api-linter: core::0140::prepositions=disabled
     *     aip.dev/not-precedent: standard name of field --)
     * 
* * string day_of_month = 4; * @param value The bytes for dayOfMonth to set. * @return This builder for chaining. */ public Builder setDayOfMonthBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dayOfMonth_ = value; onChanged(); return this; } private java.lang.Object month_ = ""; /** *
     * Expression to match months. Default: *
     * 
* * string month = 5; * @return The month. */ public java.lang.String getMonth() { java.lang.Object ref = month_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); month_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Expression to match months. Default: *
     * 
* * string month = 5; * @return The bytes for month. */ public com.google.protobuf.ByteString getMonthBytes() { java.lang.Object ref = month_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); month_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Expression to match months. Default: *
     * 
* * string month = 5; * @param value The month to set. * @return This builder for chaining. */ public Builder setMonth( java.lang.String value) { if (value == null) { throw new NullPointerException(); } month_ = value; onChanged(); return this; } /** *
     * Expression to match months. Default: *
     * 
* * string month = 5; * @return This builder for chaining. */ public Builder clearMonth() { month_ = getDefaultInstance().getMonth(); onChanged(); return this; } /** *
     * Expression to match months. Default: *
     * 
* * string month = 5; * @param value The bytes for month to set. * @return This builder for chaining. */ public Builder setMonthBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); month_ = value; onChanged(); return this; } private java.lang.Object year_ = ""; /** *
     * Expression to match years. Default: *
     * 
* * string year = 6; * @return The year. */ public java.lang.String getYear() { java.lang.Object ref = year_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); year_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Expression to match years. Default: *
     * 
* * string year = 6; * @return The bytes for year. */ public com.google.protobuf.ByteString getYearBytes() { java.lang.Object ref = year_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); year_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Expression to match years. Default: *
     * 
* * string year = 6; * @param value The year to set. * @return This builder for chaining. */ public Builder setYear( java.lang.String value) { if (value == null) { throw new NullPointerException(); } year_ = value; onChanged(); return this; } /** *
     * Expression to match years. Default: *
     * 
* * string year = 6; * @return This builder for chaining. */ public Builder clearYear() { year_ = getDefaultInstance().getYear(); onChanged(); return this; } /** *
     * Expression to match years. Default: *
     * 
* * string year = 6; * @param value The bytes for year to set. * @return This builder for chaining. */ public Builder setYearBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); year_ = value; onChanged(); return this; } private java.lang.Object dayOfWeek_ = ""; /** *
     * Expression to match days of the week. Default: *
     * 
* * string day_of_week = 7; * @return The dayOfWeek. */ public java.lang.String getDayOfWeek() { java.lang.Object ref = dayOfWeek_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dayOfWeek_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Expression to match days of the week. Default: *
     * 
* * string day_of_week = 7; * @return The bytes for dayOfWeek. */ public com.google.protobuf.ByteString getDayOfWeekBytes() { java.lang.Object ref = dayOfWeek_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dayOfWeek_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Expression to match days of the week. Default: *
     * 
* * string day_of_week = 7; * @param value The dayOfWeek to set. * @return This builder for chaining. */ public Builder setDayOfWeek( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dayOfWeek_ = value; onChanged(); return this; } /** *
     * Expression to match days of the week. Default: *
     * 
* * string day_of_week = 7; * @return This builder for chaining. */ public Builder clearDayOfWeek() { dayOfWeek_ = getDefaultInstance().getDayOfWeek(); onChanged(); return this; } /** *
     * Expression to match days of the week. Default: *
     * 
* * string day_of_week = 7; * @param value The bytes for dayOfWeek to set. * @return This builder for chaining. */ public Builder setDayOfWeekBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dayOfWeek_ = value; onChanged(); return this; } 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.CalendarSpec) } // @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.CalendarSpec) private static final io.temporal.api.schedule.v1.CalendarSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.schedule.v1.CalendarSpec(); } public static io.temporal.api.schedule.v1.CalendarSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CalendarSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CalendarSpec(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.CalendarSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy