@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSampleCount()) { hash = (37 * hash) + SAMPLE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSampleCount()); } if (hasSampleSum()) { hash = (37 * hash) + SAMPLE_SUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSampleSum())); } if (getQuantileCount() > 0) { hash = (37 * hash) + QUANTILE_FIELD_NUMBER; hash = (53 * hash) + getQuantileList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSampleCount()) { hash = (37 * hash) + SAMPLE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSampleCount()); } if (hasSampleSum()) { hash = (37 * hash) + SAMPLE_SUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSampleSum())); } if (getQuantileCount() > 0) { hash = (37 * hash) + QUANTILE_FIELD_NUMBER; hash = (53 * hash) + getQuantileList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(io.prometheus.client.Metrics.Summary other) { if (other == io.prometheus.client.Metrics.Summary.getDefaultInstance()) return this; if (other.hasSampleCount()) { setSampleCount(other.getSampleCount());
public Builder mergeFrom(io.prometheus.client.Metrics.Summary other) { if (other == io.prometheus.client.Metrics.Summary.getDefaultInstance()) return this; if (other.hasSampleCount()) { setSampleCount(other.getSampleCount());
public Builder mergeFrom(io.prometheus.client.Metrics.Summary other) { if (other == io.prometheus.client.Metrics.Summary.getDefaultInstance()) return this; if (other.hasSampleCount()) { setSampleCount(other.getSampleCount());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.prometheus.client.Metrics.Summary)) { return super.equals(obj); } io.prometheus.client.Metrics.Summary other = (io.prometheus.client.Metrics.Summary) obj; boolean result = true; result = result && (hasSampleCount() == other.hasSampleCount()); if (hasSampleCount()) { result = result && (getSampleCount() == other.getSampleCount()); } result = result && (hasSampleSum() == other.hasSampleSum()); if (hasSampleSum()) { result = result && ( java.lang.Double.doubleToLongBits(getSampleSum()) == java.lang.Double.doubleToLongBits( other.getSampleSum())); } result = result && getQuantileList() .equals(other.getQuantileList()); 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 io.prometheus.client.Metrics.Summary)) { return super.equals(obj); } io.prometheus.client.Metrics.Summary other = (io.prometheus.client.Metrics.Summary) obj; boolean result = true; result = result && (hasSampleCount() == other.hasSampleCount()); if (hasSampleCount()) { result = result && (getSampleCount() == other.getSampleCount()); } result = result && (hasSampleSum() == other.hasSampleSum()); if (hasSampleSum()) { result = result && ( java.lang.Double.doubleToLongBits(getSampleSum()) == java.lang.Double.doubleToLongBits( other.getSampleSum())); } result = result && getQuantileList() .equals(other.getQuantileList()); result = result && unknownFields.equals(other.unknownFields); return result; }