/** <code>.google.type.TimeOfDay time = 3;</code> */ public com.google.type.TimeOfDay getTime() { return time_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : time_; } /** <code>.google.type.TimeOfDay time = 3;</code> */
/** <code>.google.type.TimeOfDay time_value = 6;</code> */ public Builder mergeTimeValue(com.google.type.TimeOfDay value) { if (timeValueBuilder_ == null) { if (typeCase_ == 6 && type_ != com.google.type.TimeOfDay.getDefaultInstance()) { type_ = com.google.type.TimeOfDay.newBuilder((com.google.type.TimeOfDay) type_) .mergeFrom(value) .buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 6) { timeValueBuilder_.mergeFrom(value); } timeValueBuilder_.setMessage(value); } typeCase_ = 6; return this; } /** <code>.google.type.TimeOfDay time_value = 6;</code> */
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.type.TimeOfDay)) { return super.equals(obj); } com.google.type.TimeOfDay other = (com.google.type.TimeOfDay) obj; boolean result = true; result = result && (getHours() == other.getHours()); result = result && (getMinutes() == other.getMinutes()); result = result && (getSeconds() == other.getSeconds()); result = result && (getNanos() == other.getNanos()); return result; }
/** <code>.google.type.TimeOfDay time = 3;</code> */ public Builder mergeTime(com.google.type.TimeOfDay value) { if (timeBuilder_ == null) { if (time_ != null) { time_ = com.google.type.TimeOfDay.newBuilder(time_).mergeFrom(value).buildPartial(); } else { time_ = value; } onChanged(); } else { timeBuilder_.mergeFrom(value); } return this; } /** <code>.google.type.TimeOfDay time = 3;</code> */
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.type.TimeOfDay prototype) {
case 6: hash = (37 * hash) + TIME_VALUE_FIELD_NUMBER; hash = (53 * hash) + getTimeValue().hashCode(); break; case 7:
break; case 6: result = result && getTimeValue().equals(other.getTimeValue()); break; case 7:
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HOURS_FIELD_NUMBER; hash = (53 * hash) + getHours(); hash = (37 * hash) + MINUTES_FIELD_NUMBER; hash = (53 * hash) + getMinutes(); hash = (37 * hash) + SECONDS_FIELD_NUMBER; hash = (53 * hash) + getSeconds(); hash = (37 * hash) + NANOS_FIELD_NUMBER; hash = (53 * hash) + getNanos(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public static Builder newBuilder(com.google.type.TimeOfDay prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDate()) { hash = (37 * hash) + DATE_FIELD_NUMBER; hash = (53 * hash) + getDate().hashCode(); } hash = (37 * hash) + DAY_OF_WEEK_FIELD_NUMBER; hash = (53 * hash) + dayOfWeek_; if (hasTime()) { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + getTime().hashCode(); } if (hasTimeZone()) { hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.privacy.dlp.v2.DateTime)) { return super.equals(obj); } com.google.privacy.dlp.v2.DateTime other = (com.google.privacy.dlp.v2.DateTime) obj; boolean result = true; result = result && (hasDate() == other.hasDate()); if (hasDate()) { result = result && getDate().equals(other.getDate()); } result = result && dayOfWeek_ == other.dayOfWeek_; result = result && (hasTime() == other.hasTime()); if (hasTime()) { result = result && getTime().equals(other.getTime()); } result = result && (hasTimeZone() == other.hasTimeZone()); if (hasTimeZone()) { result = result && getTimeZone().equals(other.getTimeZone()); } result = result && unknownFields.equals(other.unknownFields); return result; }
Set daysOfWeek = new HashSet(); daysOfWeek.add(1); daysOfWeek.add(2); daysOfWeek.add(5); newTrigger().withIdentity(cronTriggerDTO.getTiggerId(), "simpleGroup") .startAt(getTriggerExecutionDate(cronTriggerDTO)) .withSchedule(dailyTimeIntervalSchedule() .onDaysOfTheWeek(daysOfWeek) .startingDailyAt(new TimeOfDay(8,0))) .build();
/** <code>.google.type.TimeOfDay time_value = 6;</code> */ public com.google.type.TimeOfDay getTimeValue() { if (typeCase_ == 6) { return (com.google.type.TimeOfDay) type_; } return com.google.type.TimeOfDay.getDefaultInstance(); } /** <code>.google.type.TimeOfDay time_value = 6;</code> */
public Builder mergeFrom(com.google.type.TimeOfDay other) { if (other == com.google.type.TimeOfDay.getDefaultInstance()) return this; if (other.getHours() != 0) { setHours(other.getHours()); } if (other.getMinutes() != 0) { setMinutes(other.getMinutes()); } if (other.getSeconds() != 0) { setSeconds(other.getSeconds()); } if (other.getNanos() != 0) { setNanos(other.getNanos()); } onChanged(); return this; }
/** * <code>.google.type.TimeOfDay time_value = 6;</code> */ public Builder mergeTimeValue(com.google.type.TimeOfDay value) { if (timeValueBuilder_ == null) { if (typeCase_ == 6 && type_ != com.google.type.TimeOfDay.getDefaultInstance()) { type_ = com.google.type.TimeOfDay.newBuilder((com.google.type.TimeOfDay) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 6) { timeValueBuilder_.mergeFrom(value); } timeValueBuilder_.setMessage(value); } typeCase_ = 6; return this; } /**