@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getValue())); } 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 (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getValue())); } 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 io.prometheus.client.Metrics.Counter)) { return super.equals(obj); } io.prometheus.client.Metrics.Counter other = (io.prometheus.client.Metrics.Counter) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && ( java.lang.Double.doubleToLongBits(getValue()) == java.lang.Double.doubleToLongBits( other.getValue())); } 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.Counter)) { return super.equals(obj); } io.prometheus.client.Metrics.Counter other = (io.prometheus.client.Metrics.Counter) obj; boolean result = true; result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && ( java.lang.Double.doubleToLongBits(getValue()) == java.lang.Double.doubleToLongBits( other.getValue())); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(io.prometheus.client.Metrics.Counter other) { if (other == io.prometheus.client.Metrics.Counter.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(io.prometheus.client.Metrics.Counter other) { if (other == io.prometheus.client.Metrics.Counter.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(io.prometheus.client.Metrics.Counter other) { if (other == io.prometheus.client.Metrics.Counter.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }