Пример #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: {
                    CursorId = input.ReadUInt32();
                    break;
                }

                case 34: {
                    if (stmt_ == null)
                    {
                        stmt_ = new global::Mysqlx.Cursor.Open.Types.OneOfMessage();
                    }
                    input.ReadMessage(stmt_);
                    break;
                }

                case 40: {
                    FetchRows = input.ReadUInt64();
                    break;
                }
                }
            }
        }
Пример #2
0
 public void MergeFrom(Open other)
 {
     if (other == null)
     {
         return;
     }
     if (other.CursorId != 0)
     {
         CursorId = other.CursorId;
     }
     if (other.stmt_ != null)
     {
         if (stmt_ == null)
         {
             stmt_ = new global::Mysqlx.Cursor.Open.Types.OneOfMessage();
         }
         Stmt.MergeFrom(other.Stmt);
     }
     if (other.FetchRows != 0UL)
     {
         FetchRows = other.FetchRows;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }