public void MergeFrom(ComplexInner other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Number != 0) { Number = other.Number; } if (other.nestedInner_ != null) { if (nestedInner_ == null) { nestedInner_ = new global::Grpc.Gcp.IntegrationTest.ComplexInner(); } NestedInner.MergeFrom(other.NestedInner); } nestedInners_.Add(other.nestedInners_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Number != 0) { hash ^= Number.GetHashCode(); } if (nestedInner_ != null) { hash ^= NestedInner.GetHashCode(); } hash ^= nestedInners_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }