public override int GetHashCode() { int hash = 1; if (commonTelemetry_ != null) { hash ^= CommonTelemetry.GetHashCode(); } if (datapointValueCase_ == DatapointValueOneofCase.LongValue) { hash ^= LongValue.GetHashCode(); } if (datapointValueCase_ == DatapointValueOneofCase.DoubleValue) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleValue); } if (datapointValueCase_ == DatapointValueOneofCase.BooleanValue) { hash ^= BooleanValue.GetHashCode(); } if (datapointValueCase_ == DatapointValueOneofCase.Distribution) { hash ^= Distribution.GetHashCode(); } if (MetricKind != 0) { hash ^= MetricKind.GetHashCode(); } hash ^= (int)datapointValueCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (commonTelemetry_ != null) { hash ^= CommonTelemetry.GetHashCode(); } if (LongValue != 0L) { hash ^= LongValue.GetHashCode(); } if (DoubleValue != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleValue); } if (BooleanValue != false) { hash ^= BooleanValue.GetHashCode(); } if (distribution_ != null) { hash ^= Distribution.GetHashCode(); } if (MetricKind != 0) { hash ^= MetricKind.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }