예제 #1
0
                public void MergeFrom(pb::CodedInputStream input)
                {
                    uint tag;

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

                        case 8: {
                            type_ = (global::Mysqlx.Cursor.Open.Types.OneOfMessage.Types.Type)input.ReadEnum();
                            break;
                        }

                        case 18: {
                            if (prepareExecute_ == null)
                            {
                                prepareExecute_ = new global::Mysqlx.Prepare.Execute();
                            }
                            input.ReadMessage(prepareExecute_);
                            break;
                        }
                        }
                    }
                }
예제 #2
0
 public void MergeFrom(OneOfMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.prepareExecute_ != null)
     {
         if (prepareExecute_ == null)
         {
             prepareExecute_ = new global::Mysqlx.Prepare.Execute();
         }
         PrepareExecute.MergeFrom(other.PrepareExecute);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }