public override int GetHashCode() { int hash = 1; if (TraceId.Length != 0) { hash ^= TraceId.GetHashCode(); } if (SpanId.Length != 0) { hash ^= SpanId.GetHashCode(); } if (ParentSpanId.Length != 0) { hash ^= ParentSpanId.GetHashCode(); } if (SpanName.Length != 0) { hash ^= SpanName.GetHashCode(); } if (startTime_ != null) { hash ^= StartTime.GetHashCode(); } if (endTime_ != null) { hash ^= EndTime.GetHashCode(); } hash ^= SpanTags.GetHashCode(); if (HttpStatusCode != 0L) { hash ^= HttpStatusCode.GetHashCode(); } if (ClientSpan != false) { hash ^= ClientSpan.GetHashCode(); } if (RewriteClientSpanId != false) { hash ^= RewriteClientSpanId.GetHashCode(); } if (SourceName.Length != 0) { hash ^= SourceName.GetHashCode(); } if (sourceIp_ != null) { hash ^= SourceIp.GetHashCode(); } if (DestinationName.Length != 0) { hash ^= DestinationName.GetHashCode(); } if (destinationIp_ != null) { hash ^= DestinationIp.GetHashCode(); } if (RequestSize != 0L) { hash ^= RequestSize.GetHashCode(); } if (RequestTotalSize != 0L) { hash ^= RequestTotalSize.GetHashCode(); } if (ResponseSize != 0L) { hash ^= ResponseSize.GetHashCode(); } if (ResponseTotalSize != 0L) { hash ^= ResponseTotalSize.GetHashCode(); } if (ApiProtocol.Length != 0) { hash ^= ApiProtocol.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public bool Equals(Template other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (TraceId != other.TraceId) { return(false); } if (SpanId != other.SpanId) { return(false); } if (ParentSpanId != other.ParentSpanId) { return(false); } if (SpanName != other.SpanName) { return(false); } if (!object.Equals(StartTime, other.StartTime)) { return(false); } if (!object.Equals(EndTime, other.EndTime)) { return(false); } if (!SpanTags.Equals(other.SpanTags)) { return(false); } if (HttpStatusCode != other.HttpStatusCode) { return(false); } if (ClientSpan != other.ClientSpan) { return(false); } if (RewriteClientSpanId != other.RewriteClientSpanId) { return(false); } if (SourceName != other.SourceName) { return(false); } if (!object.Equals(SourceIp, other.SourceIp)) { return(false); } if (DestinationName != other.DestinationName) { return(false); } if (!object.Equals(DestinationIp, other.DestinationIp)) { return(false); } if (RequestSize != other.RequestSize) { return(false); } if (RequestTotalSize != other.RequestTotalSize) { return(false); } if (ResponseSize != other.ResponseSize) { return(false); } if (ResponseTotalSize != other.ResponseTotalSize) { return(false); } if (ApiProtocol != other.ApiProtocol) { return(false); } return(Equals(_unknownFields, other._unknownFields)); }