@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.Aggregation)) { return super.equals(obj); } com.google.monitoring.v3.Aggregation other = (com.google.monitoring.v3.Aggregation) obj; boolean result = true; result = result && (hasAlignmentPeriod() == other.hasAlignmentPeriod()); if (hasAlignmentPeriod()) { result = result && getAlignmentPeriod().equals(other.getAlignmentPeriod()); } result = result && perSeriesAligner_ == other.perSeriesAligner_; result = result && crossSeriesReducer_ == other.crossSeriesReducer_; result = result && getGroupByFieldsList().equals(other.getGroupByFieldsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAlignmentPeriod()) { hash = (37 * hash) + ALIGNMENT_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getAlignmentPeriod().hashCode(); } hash = (37 * hash) + PER_SERIES_ALIGNER_FIELD_NUMBER; hash = (53 * hash) + perSeriesAligner_; hash = (37 * hash) + CROSS_SERIES_REDUCER_FIELD_NUMBER; hash = (53 * hash) + crossSeriesReducer_; if (getGroupByFieldsCount() > 0) { hash = (37 * hash) + GROUP_BY_FIELDS_FIELD_NUMBER; hash = (53 * hash) + getGroupByFieldsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.monitoring.v3.Aggregation other) { if (other == com.google.monitoring.v3.Aggregation.getDefaultInstance()) return this; if (other.hasAlignmentPeriod()) { mergeAlignmentPeriod(other.getAlignmentPeriod()); } if (other.perSeriesAligner_ != 0) { setPerSeriesAlignerValue(other.getPerSeriesAlignerValue()); } if (other.crossSeriesReducer_ != 0) { setCrossSeriesReducerValue(other.getCrossSeriesReducerValue()); } if (!other.groupByFields_.isEmpty()) { if (groupByFields_.isEmpty()) { groupByFields_ = other.groupByFields_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureGroupByFieldsIsMutable(); groupByFields_.addAll(other.groupByFields_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.Aggregation)) { return super.equals(obj); } com.google.monitoring.v3.Aggregation other = (com.google.monitoring.v3.Aggregation) obj; boolean result = true; result = result && (hasAlignmentPeriod() == other.hasAlignmentPeriod()); if (hasAlignmentPeriod()) { result = result && getAlignmentPeriod() .equals(other.getAlignmentPeriod()); } result = result && perSeriesAligner_ == other.perSeriesAligner_; result = result && crossSeriesReducer_ == other.crossSeriesReducer_; result = result && getGroupByFieldsList() .equals(other.getGroupByFieldsList()); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasAlignmentPeriod()) { hash = (37 * hash) + ALIGNMENT_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getAlignmentPeriod().hashCode(); } hash = (37 * hash) + PER_SERIES_ALIGNER_FIELD_NUMBER; hash = (53 * hash) + perSeriesAligner_; hash = (37 * hash) + CROSS_SERIES_REDUCER_FIELD_NUMBER; hash = (53 * hash) + crossSeriesReducer_; if (getGroupByFieldsCount() > 0) { hash = (37 * hash) + GROUP_BY_FIELDS_FIELD_NUMBER; hash = (53 * hash) + getGroupByFieldsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.monitoring.v3.Aggregation other) { if (other == com.google.monitoring.v3.Aggregation.getDefaultInstance()) return this; if (other.hasAlignmentPeriod()) { mergeAlignmentPeriod(other.getAlignmentPeriod()); } if (other.perSeriesAligner_ != 0) { setPerSeriesAlignerValue(other.getPerSeriesAlignerValue()); } if (other.crossSeriesReducer_ != 0) { setCrossSeriesReducerValue(other.getCrossSeriesReducerValue()); } if (!other.groupByFields_.isEmpty()) { if (groupByFields_.isEmpty()) { groupByFields_ = other.groupByFields_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureGroupByFieldsIsMutable(); groupByFields_.addAll(other.groupByFields_); } onChanged(); } onChanged(); return this; }