Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Index != 0)
            {
                hash ^= Index.GetHashCode();
            }
            if (Kind != 0)
            {
                hash ^= Kind.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            hash ^= childLinks_.GetHashCode();
            if (shortRepresentation_ != null)
            {
                hash ^= ShortRepresentation.GetHashCode();
            }
            if (metadata_ != null)
            {
                hash ^= Metadata.GetHashCode();
            }
            if (executionStats_ != null)
            {
                hash ^= ExecutionStats.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Index != 0)
            {
                hash ^= Index.GetHashCode();
            }
            if (Kind != global::Google.Cloud.Spanner.V1.PlanNode.Types.Kind.Unspecified)
            {
                hash ^= Kind.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            hash ^= childLinks_.GetHashCode();
            if (shortRepresentation_ != null)
            {
                hash ^= ShortRepresentation.GetHashCode();
            }
            if (metadata_ != null)
            {
                hash ^= Metadata.GetHashCode();
            }
            if (executionStats_ != null)
            {
                hash ^= ExecutionStats.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }