public void MergeFrom(NoEventsHasChildEvents other) { if (other == null) { return; } if (other.hasA_ != null) { if (hasA_ == null) { hasA_ = new global::Com.Zynga.Runtime.Protobuf.HasEvents(); } HasA.MergeFrom(other.HasA); } switch (other.FooCase) { case FooOneofCase.HasB: if (HasB == null) { HasB = new global::Com.Zynga.Runtime.Protobuf.HasEvents(); } HasB.MergeFrom(other.HasB); break; } }
public override int GetHashCode() { int hash = 1; if (hasA_ != null) { hash ^= HasA.GetHashCode(); } if (fooCase_ == FooOneofCase.HasB) { hash ^= HasB.GetHashCode(); } hash ^= (int)fooCase_; return(hash); }