예제 #1
0
파일: Play.cs 프로젝트: JaehoonHyun/tdd
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (buzz_ == null)
                    {
                        Buzz = new global::V1Advanced.Buzz();
                    }
                    input.ReadMessage(Buzz);
                    break;
                }

                case 18: {
                    Where = input.ReadBytes();
                    break;
                }

                case 26: {
                    Who = input.ReadBytes();
                    break;
                }

                case 34: {
                    How = input.ReadBytes();
                    break;
                }

                case 42: {
                    What = input.ReadBytes();
                    break;
                }

                case 50: {
                    Why = input.ReadBytes();
                    break;
                }
                }
            }
        }
예제 #2
0
파일: Play.cs 프로젝트: JaehoonHyun/tdd
 public void MergeFrom(BuzzPlay other)
 {
     if (other == null)
     {
         return;
     }
     if (other.buzz_ != null)
     {
         if (buzz_ == null)
         {
             Buzz = new global::V1Advanced.Buzz();
         }
         Buzz.MergeFrom(other.Buzz);
     }
     if (other.Where.Length != 0)
     {
         Where = other.Where;
     }
     if (other.Who.Length != 0)
     {
         Who = other.Who;
     }
     if (other.How.Length != 0)
     {
         How = other.How;
     }
     if (other.What.Length != 0)
     {
         What = other.What;
     }
     if (other.Why.Length != 0)
     {
         Why = other.Why;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }