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); }
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); }
public void MergeFrom(PlanNode other) { if (other == null) { return; } if (other.Index != 0) { Index = other.Index; } if (other.Kind != 0) { Kind = other.Kind; } if (other.DisplayName.Length != 0) { DisplayName = other.DisplayName; } childLinks_.Add(other.childLinks_); if (other.shortRepresentation_ != null) { if (shortRepresentation_ == null) { shortRepresentation_ = new global::Google.Cloud.Spanner.V1.PlanNode.Types.ShortRepresentation(); } ShortRepresentation.MergeFrom(other.ShortRepresentation); } if (other.metadata_ != null) { if (metadata_ == null) { metadata_ = new global::Google.Protobuf.WellKnownTypes.Struct(); } Metadata.MergeFrom(other.Metadata); } if (other.executionStats_ != null) { if (executionStats_ == null) { executionStats_ = new global::Google.Protobuf.WellKnownTypes.Struct(); } ExecutionStats.MergeFrom(other.ExecutionStats); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }