@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeries)) { return super.equals(obj); } com.google.monitoring.v3.TimeSeries other = (com.google.monitoring.v3.TimeSeries) obj; boolean result = true; result = result && (hasMetric() == other.hasMetric()); if (hasMetric()) { result = result && getMetric().equals(other.getMetric()); } result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource().equals(other.getResource()); } result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && metricKind_ == other.metricKind_; result = result && valueType_ == other.valueType_; result = result && getPointsList().equals(other.getPointsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeries)) { return super.equals(obj); } com.google.monitoring.v3.TimeSeries other = (com.google.monitoring.v3.TimeSeries) obj; boolean result = true; result = result && (hasMetric() == other.hasMetric()); if (hasMetric()) { result = result && getMetric() .equals(other.getMetric()); } result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource() .equals(other.getResource()); } result = result && metricKind_ == other.metricKind_; result = result && valueType_ == other.valueType_; result = result && getPointsList() .equals(other.getPointsList()); return result; }