Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LogName.Length != 0)
            {
                hash ^= LogName.GetHashCode();
            }
            if (resource_ != null)
            {
                hash ^= Resource.GetHashCode();
            }
            if (payloadCase_ == PayloadOneofCase.ProtoPayload)
            {
                hash ^= ProtoPayload.GetHashCode();
            }
            if (payloadCase_ == PayloadOneofCase.TextPayload)
            {
                hash ^= TextPayload.GetHashCode();
            }
            if (payloadCase_ == PayloadOneofCase.JsonPayload)
            {
                hash ^= JsonPayload.GetHashCode();
            }
            if (timestamp_ != null)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (Severity != 0)
            {
                hash ^= Severity.GetHashCode();
            }
            if (InsertId.Length != 0)
            {
                hash ^= InsertId.GetHashCode();
            }
            if (httpRequest_ != null)
            {
                hash ^= HttpRequest.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            if (operation_ != null)
            {
                hash ^= Operation.GetHashCode();
            }
            if (Trace.Length != 0)
            {
                hash ^= Trace.GetHashCode();
            }
            if (sourceLocation_ != null)
            {
                hash ^= SourceLocation.GetHashCode();
            }
            hash ^= (int)payloadCase_;
            return(hash);
        }