public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (hasA_ == null)
                    {
                        hasA_ = new global::Com.Zynga.Runtime.Protobuf.HasEvents();
                    }
                    input.ReadMessage(hasA_);
                    break;
                }

                case 18: {
                    global::Com.Zynga.Runtime.Protobuf.HasEvents subBuilder = new global::Com.Zynga.Runtime.Protobuf.HasEvents();
                    if (fooCase_ == FooOneofCase.HasB)
                    {
                        subBuilder.MergeFrom(HasB);
                    }
                    input.ReadMessage(subBuilder);
                    foo_     = subBuilder;
                    fooCase_ = FooOneofCase.HasB;
                    break;
                }
                }
            }
        }
 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;
     }
 }