Esempio n. 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (resultWrapper_ == null)
                    {
                        resultWrapper_ = new global::Gabriel.ResultWrapper();
                    }
                    input.ReadMessage(resultWrapper_);
                    break;
                }

                case 16: {
                    NumTokens = input.ReadInt32();
                    break;
                }
                }
            }
        }
Esempio n. 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    Host = input.ReadString();
                    break;
                }

                case 16: {
                    Port = input.ReadInt32();
                    break;
                }

                case 26: {
                    global::Gabriel.FromClient subBuilder = new global::Gabriel.FromClient();
                    if (clientMessageCase_ == ClientMessageOneofCase.FromClient)
                    {
                        subBuilder.MergeFrom(FromClient);
                    }
                    input.ReadMessage(subBuilder);
                    FromClient = subBuilder;
                    break;
                }

                case 34: {
                    global::Gabriel.ResultWrapper subBuilder = new global::Gabriel.ResultWrapper();
                    if (clientMessageCase_ == ClientMessageOneofCase.ResultWrapper)
                    {
                        subBuilder.MergeFrom(ResultWrapper);
                    }
                    input.ReadMessage(subBuilder);
                    ResultWrapper = subBuilder;
                    break;
                }
                }
            }
        }
Esempio n. 3
0
 public void MergeFrom(ToClient other)
 {
     if (other == null)
     {
         return;
     }
     if (other.resultWrapper_ != null)
     {
         if (resultWrapper_ == null)
         {
             resultWrapper_ = new global::Gabriel.ResultWrapper();
         }
         ResultWrapper.MergeFrom(other.ResultWrapper);
     }
     if (other.NumTokens != 0)
     {
         NumTokens = other.NumTokens;
     }
 }